diff --git a/src/visier_api_administration/.openapi-generator/FILES b/src/visier_api_administration/.openapi-generator/FILES index d85b6e20ee..569e927e41 100644 --- a/src/visier_api_administration/.openapi-generator/FILES +++ b/src/visier_api_administration/.openapi-generator/FILES @@ -4,195 +4,198 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_admin_all_tenants_status_apidto.py +test/test_admin_batch_tenant_provision_apidto.py +test/test_admin_business_location_dto.py +test/test_admin_consolidated_analytics_api_excluded_source_list_dto.py +test/test_admin_consolidated_analytics_api_source_tenant_list_dto.py +test/test_admin_consolidated_analytics_api_tenant_create_request_dto.py +test/test_admin_consolidated_analytics_api_tenant_list_response_dto.py +test/test_admin_consolidated_analytics_api_tenant_with_details.py +test/test_admin_consolidated_analytics_api_tenant_with_details_list_response_dto.py +test/test_admin_custom_property_dto.py +test/test_admin_custom_tenant_property_dto.py test/test_admin_delete_user_group_v2_request.py +test/test_admin_element_ids_dto.py +test/test_admin_email_domains_dto.py test/test_admin_excluded_sources_body.py +test/test_admin_home_analysis_by_user_group_dto.py test/test_admin_key_name.py test/test_admin_mask_message.py +test/test_admin_network_subnets_message_request.py +test/test_admin_network_subnets_message_response.py +test/test_admin_permission_response_dto.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_permissions_to_user_group_for_tenant_dto.py +test/test_admin_permissions_to_user_group_request_dto.py +test/test_admin_permissions_to_user_groups_request_dto.py test/test_admin_put_project_commits_request.py +test/test_admin_security_assignment_response_dto.py +test/test_admin_simple_user_dto.py +test/test_admin_target_project_for_tenant_dto.py +test/test_admin_target_project_for_tenants_list_dto.py +test/test_admin_tenant_assignments_dto.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_tenant_detail_apidto.py +test/test_admin_tenant_management_api_get_response_dto.py +test/test_admin_tenant_management_api_list_response_dto.py +test/test_admin_tenant_management_api_update_request_dto.py +test/test_admin_tenant_management_api_update_response_dto.py +test/test_admin_tenant_provision_apidto.py +test/test_admin_tenant_status_apidto.py test/test_admin_update_tenant_model.py +test/test_admin_user_group_change_definition_dto.py +test/test_admin_user_group_change_dimension_filter_dto.py +test/test_admin_user_group_change_failure_dto.py +test/test_admin_user_group_change_filter_dto.py +test/test_admin_user_group_change_member_selection_dto.py +test/test_admin_user_group_change_response_dto.py +test/test_admin_user_group_change_success_dto.py +test/test_admin_user_group_change_users_dto.py +test/test_admin_user_group_delete_dto.py +test/test_admin_user_group_delete_failure_dto.py +test/test_admin_user_group_delete_response_dto.py +test/test_admin_user_group_delete_success_dto.py +test/test_admin_user_group_filters_dto.py +test/test_admin_user_group_get_api_response_dto.py +test/test_admin_user_group_single_delete_response_dto.py +test/test_admin_user_groups_change_dto.py +test/test_admin_user_groups_delete_request_dto.py +test/test_admin_user_groups_get_api_response_dto.py +test/test_admin_user_groups_users_dto.py +test/test_admin_user_groups_users_for_tenant_dto.py +test/test_admin_user_security_assignments_dto.py +test/test_admin_users_to_user_group_request_dto.py +test/test_admin_users_to_user_groups_request_dto.py test/test_consolidated_analytics_api.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_designer_module_settings_dto.py +test/test_designer_tenant_module_dto.py +test/test_dp_automation_metric_validation_summary_dto.py +test/test_dp_automation_tenant_preview_entries_summary_dto.py +test/test_dp_automation_tenant_preview_entries_summary_list_dto.py test/test_email_domains_api.py test/test_encryption_keys_api.py +test/test_network_subnets_api.py test/test_permissions_api.py test/test_production_versions_api.py test/test_profiles_api.py test/test_projects_api.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_servicing_accessible_tenant_profile_assignment_request_dto.py +test/test_servicing_accessible_tenant_profile_assignment_response_dto.py +test/test_servicing_accessible_tenant_profile_revoke_request_dto.py +test/test_servicing_accessible_tenant_profile_revoke_response_dto.py +test/test_servicing_additional_capabilities_dto.py +test/test_servicing_admin_capability_config_dto.py +test/test_servicing_all_permissions_assigned_for_local_tenant_dto.py +test/test_servicing_all_profile_assigned_for_accessible_tenant_dto.py +test/test_servicing_all_profile_assigned_for_local_tenant_dto.py +test/test_servicing_all_user_groups_assigned_for_local_tenant_dto.py +test/test_servicing_all_users_get_api_response_dto.py +test/test_servicing_analytic_object_dto.py +test/test_servicing_assign_revoke_permission_by_permission_dto.py +test/test_servicing_assign_revoke_permission_by_tenant_dto.py +test/test_servicing_assign_revoke_permission_by_user_dto.py +test/test_servicing_assign_revoke_permission_request_dto.py +test/test_servicing_assign_revoke_permissions_request_dto.py +test/test_servicing_assign_revoke_permissions_response_dto.py +test/test_servicing_bulk_data_access_set_response_dto.py +test/test_servicing_capabilities_dto.py +test/test_servicing_capability_dto.py +test/test_servicing_commit_and_publish_operation_response_dto.py +test/test_servicing_commit_dto.py +test/test_servicing_content_package_dto.py +test/test_servicing_create_data_access_set_request_dto.py +test/test_servicing_data_access_set_dto.py +test/test_servicing_data_access_set_error_dto.py +test/test_servicing_data_access_set_failure_dto.py +test/test_servicing_data_access_set_success_dto.py +test/test_servicing_data_security_profile_dto.py +test/test_servicing_delete_permissions_request_dto.py +test/test_servicing_dimension_filter_dto.py +test/test_servicing_dynamic_dimension_filter_dto.py +test/test_servicing_dynamic_property_mapping_dto.py +test/test_servicing_error_dto.py +test/test_servicing_export_production_versions_api_operation_parameters_dto.py +test/test_servicing_failed_accessible_tenant_profile_assignment_dto.py +test/test_servicing_failed_local_tenant_profile_assignment_dto.py +test/test_servicing_failed_local_tenant_profile_revoke_dto.py +test/test_servicing_get_capabilities_api_response_dto.py +test/test_servicing_get_content_packages_api_response_dto.py +test/test_servicing_get_data_access_sets_api_response_dto.py +test/test_servicing_get_data_security_objects_api_response_dto.py +test/test_servicing_get_permissions_api_response_dto.py +test/test_servicing_get_production_versions_api_response_dto.py +test/test_servicing_get_projects_api_response_dto.py +test/test_servicing_hierarchy_property_dto.py +test/test_servicing_inherited_access_config_dto.py +test/test_servicing_inherited_reference_member_filter_config_dto.py +test/test_servicing_last_login_dto.py +test/test_servicing_local_tenant_profile_assignment_request_dto.py +test/test_servicing_local_tenant_profile_assignment_response_dto.py +test/test_servicing_local_tenant_profile_revoke_request_dto.py +test/test_servicing_local_tenant_profile_revoke_response_dto.py +test/test_servicing_member_filter_config_dto.py +test/test_servicing_member_selection_dto.py +test/test_servicing_permission_assigned_by_tenant_dto.py +test/test_servicing_permission_assigned_for_local_tenant_dto.py +test/test_servicing_permission_assigned_user_dto.py +test/test_servicing_permission_assigned_users_dto.py +test/test_servicing_permission_bulk_operation_response_dto.py +test/test_servicing_permission_dto.py +test/test_servicing_permission_error_dto.py +test/test_servicing_permission_failure_dto.py +test/test_servicing_permission_success_dto.py +test/test_servicing_production_version_api_operation_request_dto.py +test/test_servicing_production_version_api_operation_response_dto.py +test/test_servicing_production_versions_api_operation_request_dto.py +test/test_servicing_production_versions_api_operation_response_dto.py +test/test_servicing_profile_assigned_for_accessible_tenant_dto.py +test/test_servicing_profile_assigned_for_local_tenant_dto.py +test/test_servicing_profile_get_api_response_dto.py +test/test_servicing_profiles_get_api_response_dto.py +test/test_servicing_project_commits_api_response_dto.py +test/test_servicing_project_dto.py +test/test_servicing_project_operation_request_dto.py +test/test_servicing_project_operation_response_dto.py +test/test_servicing_property_access_config_dto.py +test/test_servicing_property_set_config_dto.py +test/test_servicing_reduced_error_dto.py +test/test_servicing_reduced_tenant_code_error_dto.py +test/test_servicing_reduced_user_id_error_dto.py +test/test_servicing_related_analytic_object_dto.py +test/test_servicing_role_modules_config_dto.py +test/test_servicing_securable_dimension_dto.py +test/test_servicing_securable_property_dto.py +test/test_servicing_shareable_data_access_set.py +test/test_servicing_sources_api_operation_request_dto.py +test/test_servicing_static_dimension_filter_dto.py +test/test_servicing_successful_accessible_tenant_profile_assignment_dto.py +test/test_servicing_successful_local_tenant_profile_assignment_dto.py +test/test_servicing_target_tenant_code_dto.py +test/test_servicing_tenant_code_error_dto.py +test/test_servicing_user_creation_api_request_dto.py +test/test_servicing_user_get_api_response_dto.py +test/test_servicing_user_group_assigned_for_local_tenant_dto.py +test/test_servicing_user_id_error_dto.py +test/test_servicing_user_property_dto.py +test/test_servicing_user_update_api_request_dto.py +test/test_servicing_users_api_error_message_dto.py +test/test_servicing_users_api_failure_dto.py +test/test_servicing_users_api_response_dto.py +test/test_servicing_users_api_success_dto.py +test/test_servicing_users_creation_api_request_dto.py +test/test_servicing_users_delete_api_request_dto.py +test/test_servicing_users_update_api_request_dto.py +test/test_servicing_users_update_api_user_dto.py test/test_source_import_result_summary_dto.py test/test_sources_api.py test/test_sources_api_put_response_dto.py test/test_status.py test/test_system_status_api.py -test/test_systemstatus_publicapi_transfers_system_status_dto.py +test/test_systemstatus_system_status_dto.py test/test_tenants_v1_api.py test/test_tenants_v2_api.py test/test_user_creation_api_response_dto.py @@ -205,6 +208,7 @@ visier_api_administration/api/__init__.py visier_api_administration/api/consolidated_analytics_api.py visier_api_administration/api/email_domains_api.py visier_api_administration/api/encryption_keys_api.py +visier_api_administration/api/network_subnets_api.py visier_api_administration/api/permissions_api.py visier_api_administration/api/production_versions_api.py visier_api_administration/api/profiles_api.py @@ -217,185 +221,187 @@ 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/admin_all_tenants_status_apidto.py +visier_api_administration/models/admin_batch_tenant_provision_apidto.py +visier_api_administration/models/admin_business_location_dto.py +visier_api_administration/models/admin_consolidated_analytics_api_excluded_source_list_dto.py +visier_api_administration/models/admin_consolidated_analytics_api_source_tenant_list_dto.py +visier_api_administration/models/admin_consolidated_analytics_api_tenant_create_request_dto.py +visier_api_administration/models/admin_consolidated_analytics_api_tenant_list_response_dto.py +visier_api_administration/models/admin_consolidated_analytics_api_tenant_with_details.py +visier_api_administration/models/admin_consolidated_analytics_api_tenant_with_details_list_response_dto.py +visier_api_administration/models/admin_custom_property_dto.py +visier_api_administration/models/admin_custom_tenant_property_dto.py visier_api_administration/models/admin_delete_user_group_v2_request.py +visier_api_administration/models/admin_element_ids_dto.py +visier_api_administration/models/admin_email_domains_dto.py visier_api_administration/models/admin_excluded_sources_body.py +visier_api_administration/models/admin_home_analysis_by_user_group_dto.py visier_api_administration/models/admin_key_name.py visier_api_administration/models/admin_mask_message.py +visier_api_administration/models/admin_network_subnets_message_request.py +visier_api_administration/models/admin_network_subnets_message_response.py +visier_api_administration/models/admin_permission_response_dto.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_permissions_to_user_group_for_tenant_dto.py +visier_api_administration/models/admin_permissions_to_user_group_request_dto.py +visier_api_administration/models/admin_permissions_to_user_groups_request_dto.py visier_api_administration/models/admin_put_project_commits_request.py +visier_api_administration/models/admin_security_assignment_response_dto.py +visier_api_administration/models/admin_simple_user_dto.py +visier_api_administration/models/admin_target_project_for_tenant_dto.py +visier_api_administration/models/admin_target_project_for_tenants_list_dto.py +visier_api_administration/models/admin_tenant_assignments_dto.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_tenant_detail_apidto.py +visier_api_administration/models/admin_tenant_management_api_get_response_dto.py +visier_api_administration/models/admin_tenant_management_api_list_response_dto.py +visier_api_administration/models/admin_tenant_management_api_update_request_dto.py +visier_api_administration/models/admin_tenant_management_api_update_response_dto.py +visier_api_administration/models/admin_tenant_provision_apidto.py +visier_api_administration/models/admin_tenant_status_apidto.py visier_api_administration/models/admin_update_tenant_model.py +visier_api_administration/models/admin_user_group_change_definition_dto.py +visier_api_administration/models/admin_user_group_change_dimension_filter_dto.py +visier_api_administration/models/admin_user_group_change_failure_dto.py +visier_api_administration/models/admin_user_group_change_filter_dto.py +visier_api_administration/models/admin_user_group_change_member_selection_dto.py +visier_api_administration/models/admin_user_group_change_response_dto.py +visier_api_administration/models/admin_user_group_change_success_dto.py +visier_api_administration/models/admin_user_group_change_users_dto.py +visier_api_administration/models/admin_user_group_delete_dto.py +visier_api_administration/models/admin_user_group_delete_failure_dto.py +visier_api_administration/models/admin_user_group_delete_response_dto.py +visier_api_administration/models/admin_user_group_delete_success_dto.py +visier_api_administration/models/admin_user_group_filters_dto.py +visier_api_administration/models/admin_user_group_get_api_response_dto.py +visier_api_administration/models/admin_user_group_single_delete_response_dto.py +visier_api_administration/models/admin_user_groups_change_dto.py +visier_api_administration/models/admin_user_groups_delete_request_dto.py +visier_api_administration/models/admin_user_groups_get_api_response_dto.py +visier_api_administration/models/admin_user_groups_users_dto.py +visier_api_administration/models/admin_user_groups_users_for_tenant_dto.py +visier_api_administration/models/admin_user_security_assignments_dto.py +visier_api_administration/models/admin_users_to_user_group_request_dto.py +visier_api_administration/models/admin_users_to_user_groups_request_dto.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/designer_module_settings_dto.py +visier_api_administration/models/designer_tenant_module_dto.py +visier_api_administration/models/dp_automation_metric_validation_summary_dto.py +visier_api_administration/models/dp_automation_tenant_preview_entries_summary_dto.py +visier_api_administration/models/dp_automation_tenant_preview_entries_summary_list_dto.py +visier_api_administration/models/servicing_accessible_tenant_profile_assignment_request_dto.py +visier_api_administration/models/servicing_accessible_tenant_profile_assignment_response_dto.py +visier_api_administration/models/servicing_accessible_tenant_profile_revoke_request_dto.py +visier_api_administration/models/servicing_accessible_tenant_profile_revoke_response_dto.py +visier_api_administration/models/servicing_additional_capabilities_dto.py +visier_api_administration/models/servicing_admin_capability_config_dto.py +visier_api_administration/models/servicing_all_permissions_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_all_profile_assigned_for_accessible_tenant_dto.py +visier_api_administration/models/servicing_all_profile_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_all_user_groups_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_all_users_get_api_response_dto.py +visier_api_administration/models/servicing_analytic_object_dto.py +visier_api_administration/models/servicing_assign_revoke_permission_by_permission_dto.py +visier_api_administration/models/servicing_assign_revoke_permission_by_tenant_dto.py +visier_api_administration/models/servicing_assign_revoke_permission_by_user_dto.py +visier_api_administration/models/servicing_assign_revoke_permission_request_dto.py +visier_api_administration/models/servicing_assign_revoke_permissions_request_dto.py +visier_api_administration/models/servicing_assign_revoke_permissions_response_dto.py +visier_api_administration/models/servicing_bulk_data_access_set_response_dto.py +visier_api_administration/models/servicing_capabilities_dto.py +visier_api_administration/models/servicing_capability_dto.py +visier_api_administration/models/servicing_commit_and_publish_operation_response_dto.py +visier_api_administration/models/servicing_commit_dto.py +visier_api_administration/models/servicing_content_package_dto.py +visier_api_administration/models/servicing_create_data_access_set_request_dto.py +visier_api_administration/models/servicing_data_access_set_dto.py +visier_api_administration/models/servicing_data_access_set_error_dto.py +visier_api_administration/models/servicing_data_access_set_failure_dto.py +visier_api_administration/models/servicing_data_access_set_success_dto.py +visier_api_administration/models/servicing_data_security_profile_dto.py +visier_api_administration/models/servicing_delete_permissions_request_dto.py +visier_api_administration/models/servicing_dimension_filter_dto.py +visier_api_administration/models/servicing_dynamic_dimension_filter_dto.py +visier_api_administration/models/servicing_dynamic_property_mapping_dto.py +visier_api_administration/models/servicing_error_dto.py +visier_api_administration/models/servicing_export_production_versions_api_operation_parameters_dto.py +visier_api_administration/models/servicing_failed_accessible_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_failed_local_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_failed_local_tenant_profile_revoke_dto.py +visier_api_administration/models/servicing_get_capabilities_api_response_dto.py +visier_api_administration/models/servicing_get_content_packages_api_response_dto.py +visier_api_administration/models/servicing_get_data_access_sets_api_response_dto.py +visier_api_administration/models/servicing_get_data_security_objects_api_response_dto.py +visier_api_administration/models/servicing_get_permissions_api_response_dto.py +visier_api_administration/models/servicing_get_production_versions_api_response_dto.py +visier_api_administration/models/servicing_get_projects_api_response_dto.py +visier_api_administration/models/servicing_hierarchy_property_dto.py +visier_api_administration/models/servicing_inherited_access_config_dto.py +visier_api_administration/models/servicing_inherited_reference_member_filter_config_dto.py +visier_api_administration/models/servicing_last_login_dto.py +visier_api_administration/models/servicing_local_tenant_profile_assignment_request_dto.py +visier_api_administration/models/servicing_local_tenant_profile_assignment_response_dto.py +visier_api_administration/models/servicing_local_tenant_profile_revoke_request_dto.py +visier_api_administration/models/servicing_local_tenant_profile_revoke_response_dto.py +visier_api_administration/models/servicing_member_filter_config_dto.py +visier_api_administration/models/servicing_member_selection_dto.py +visier_api_administration/models/servicing_permission_assigned_by_tenant_dto.py +visier_api_administration/models/servicing_permission_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_permission_assigned_user_dto.py +visier_api_administration/models/servicing_permission_assigned_users_dto.py +visier_api_administration/models/servicing_permission_bulk_operation_response_dto.py +visier_api_administration/models/servicing_permission_dto.py +visier_api_administration/models/servicing_permission_error_dto.py +visier_api_administration/models/servicing_permission_failure_dto.py +visier_api_administration/models/servicing_permission_success_dto.py +visier_api_administration/models/servicing_production_version_api_operation_request_dto.py +visier_api_administration/models/servicing_production_version_api_operation_response_dto.py +visier_api_administration/models/servicing_production_versions_api_operation_request_dto.py +visier_api_administration/models/servicing_production_versions_api_operation_response_dto.py +visier_api_administration/models/servicing_profile_assigned_for_accessible_tenant_dto.py +visier_api_administration/models/servicing_profile_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_profile_get_api_response_dto.py +visier_api_administration/models/servicing_profiles_get_api_response_dto.py +visier_api_administration/models/servicing_project_commits_api_response_dto.py +visier_api_administration/models/servicing_project_dto.py +visier_api_administration/models/servicing_project_operation_request_dto.py +visier_api_administration/models/servicing_project_operation_response_dto.py +visier_api_administration/models/servicing_property_access_config_dto.py +visier_api_administration/models/servicing_property_set_config_dto.py +visier_api_administration/models/servicing_reduced_error_dto.py +visier_api_administration/models/servicing_reduced_tenant_code_error_dto.py +visier_api_administration/models/servicing_reduced_user_id_error_dto.py +visier_api_administration/models/servicing_related_analytic_object_dto.py +visier_api_administration/models/servicing_role_modules_config_dto.py +visier_api_administration/models/servicing_securable_dimension_dto.py +visier_api_administration/models/servicing_securable_property_dto.py +visier_api_administration/models/servicing_shareable_data_access_set.py +visier_api_administration/models/servicing_sources_api_operation_request_dto.py +visier_api_administration/models/servicing_static_dimension_filter_dto.py +visier_api_administration/models/servicing_successful_accessible_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_successful_local_tenant_profile_assignment_dto.py +visier_api_administration/models/servicing_target_tenant_code_dto.py +visier_api_administration/models/servicing_tenant_code_error_dto.py +visier_api_administration/models/servicing_user_creation_api_request_dto.py +visier_api_administration/models/servicing_user_get_api_response_dto.py +visier_api_administration/models/servicing_user_group_assigned_for_local_tenant_dto.py +visier_api_administration/models/servicing_user_id_error_dto.py +visier_api_administration/models/servicing_user_property_dto.py +visier_api_administration/models/servicing_user_update_api_request_dto.py +visier_api_administration/models/servicing_users_api_error_message_dto.py +visier_api_administration/models/servicing_users_api_failure_dto.py +visier_api_administration/models/servicing_users_api_response_dto.py +visier_api_administration/models/servicing_users_api_success_dto.py +visier_api_administration/models/servicing_users_creation_api_request_dto.py +visier_api_administration/models/servicing_users_delete_api_request_dto.py +visier_api_administration/models/servicing_users_update_api_request_dto.py +visier_api_administration/models/servicing_users_update_api_user_dto.py visier_api_administration/models/source_import_result_summary_dto.py visier_api_administration/models/sources_api_put_response_dto.py visier_api_administration/models/status.py -visier_api_administration/models/systemstatus_publicapi_transfers_system_status_dto.py +visier_api_administration/models/systemstatus_system_status_dto.py visier_api_administration/models/user_creation_api_response_dto.py visier_api_administration/py.typed diff --git a/src/visier_api_administration/pyproject.toml b/src/visier_api_administration/pyproject.toml index a57578d6ee..cc9c1661cc 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.1793" +version = "0.99201.1830" 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.1793" +visier-api-core = "~= 0.99201.1830" [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 ebf9a91559..3efff2d87e 100644 --- a/src/visier_api_administration/requirements.txt +++ b/src/visier_api_administration/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1793 \ No newline at end of file +visier-api-core ~= 0.99201.1830 \ No newline at end of file diff --git a/src/visier_api_administration/setup.py b/src/visier_api_administration/setup.py index 8d115ae953..1248b7da81 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793" +VERSION = "0.99201.1830" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1793", + "visier-api-core ~= 0.99201.1830", ] setup( diff --git a/src/visier_api_administration/test/test_admin_all_tenants_status_apidto.py b/src/visier_api_administration/test/test_admin_all_tenants_status_apidto.py new file mode 100644 index 0000000000..307c9cdd3c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_tenants_status_apidto import AdminAllTenantsStatusAPIDTO + +class TestAdminAllTenantsStatusAPIDTO(unittest.TestCase): + """AdminAllTenantsStatusAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminAllTenantsStatusAPIDTO: + """Test AdminAllTenantsStatusAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminAllTenantsStatusAPIDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/tenant_detail_apidto.admin.TenantDetailAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/custom_tenant_property_dto.admin.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + embeddable_domains = [ + '' + ], + industry_code = 56, + modules = [ + visier_api_administration.models.designer/tenant_module_dto.designer.TenantModuleDTO( + display_name = '', + module_settings = None, + symbol_name = '', ) + ], + provision_date = '', + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '', ) + ] + ) + else: + return AdminAllTenantsStatusAPIDTO( + ) + + def testAdminAllTenantsStatusAPIDTO(self): + """Test AdminAllTenantsStatusAPIDTO""" + def validate_instance(instance): + AdminAllTenantsStatusAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminAllTenantsStatusAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_batch_tenant_provision_apidto.py b/src/visier_api_administration/test/test_admin_batch_tenant_provision_apidto.py new file mode 100644 index 0000000000..0154ab44c5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_batch_tenant_provision_apidto import AdminBatchTenantProvisionAPIDTO + +class TestAdminBatchTenantProvisionAPIDTO(unittest.TestCase): + """AdminBatchTenantProvisionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminBatchTenantProvisionAPIDTO: + """Test AdminBatchTenantProvisionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminBatchTenantProvisionAPIDTO( + tenants = [ + visier_api_administration.models.admin/tenant_provision_apidto.admin.TenantProvisionAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + custom_properties = [ + visier_api_administration.models.admin/custom_tenant_property_dto.admin.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + embeddable_domains = [ + '' + ], + industry_code = 56, + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_code = '', + tenant_display_name = '', ) + ] + ) + else: + return AdminBatchTenantProvisionAPIDTO( + ) + + def testAdminBatchTenantProvisionAPIDTO(self): + """Test AdminBatchTenantProvisionAPIDTO""" + def validate_instance(instance): + AdminBatchTenantProvisionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminBatchTenantProvisionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_business_location_dto.py b/src/visier_api_administration/test/test_admin_business_location_dto.py new file mode 100644 index 0000000000..03cfca325e --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_business_location_dto import AdminBusinessLocationDTO + +class TestAdminBusinessLocationDTO(unittest.TestCase): + """AdminBusinessLocationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminBusinessLocationDTO: + """Test AdminBusinessLocationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminBusinessLocationDTO( + country_code = '', + postal_code = '' + ) + else: + return AdminBusinessLocationDTO( + ) + + def testAdminBusinessLocationDTO(self): + """Test AdminBusinessLocationDTO""" + def validate_instance(instance): + AdminBusinessLocationDTO.model_validate(inst_req_only) + instance_deserialized = AdminBusinessLocationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_excluded_source_list_dto.py new file mode 100644 index 0000000000..0d44426f24 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_excluded_source_list_dto import AdminConsolidatedAnalyticsAPIExcludedSourceListDTO + +class TestAdminConsolidatedAnalyticsAPIExcludedSourceListDTO(unittest.TestCase): + """AdminConsolidatedAnalyticsAPIExcludedSourceListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPIExcludedSourceListDTO: + """Test AdminConsolidatedAnalyticsAPIExcludedSourceListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPIExcludedSourceListDTO( + excluded_sources = [ + '' + ] + ) + else: + return AdminConsolidatedAnalyticsAPIExcludedSourceListDTO( + ) + + def testAdminConsolidatedAnalyticsAPIExcludedSourceListDTO(self): + """Test AdminConsolidatedAnalyticsAPIExcludedSourceListDTO""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPIExcludedSourceListDTO.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPIExcludedSourceListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_source_tenant_list_dto.py new file mode 100644 index 0000000000..f5c59bcf6d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_source_tenant_list_dto import AdminConsolidatedAnalyticsAPISourceTenantListDTO + +class TestAdminConsolidatedAnalyticsAPISourceTenantListDTO(unittest.TestCase): + """AdminConsolidatedAnalyticsAPISourceTenantListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPISourceTenantListDTO: + """Test AdminConsolidatedAnalyticsAPISourceTenantListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPISourceTenantListDTO( + tenant_codes = [ + '' + ] + ) + else: + return AdminConsolidatedAnalyticsAPISourceTenantListDTO( + ) + + def testAdminConsolidatedAnalyticsAPISourceTenantListDTO(self): + """Test AdminConsolidatedAnalyticsAPISourceTenantListDTO""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPISourceTenantListDTO.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPISourceTenantListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_tenant_create_request_dto.py new file mode 100644 index 0000000000..8524d710e0 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_tenant_create_request_dto import AdminConsolidatedAnalyticsAPITenantCreateRequestDTO + +class TestAdminConsolidatedAnalyticsAPITenantCreateRequestDTO(unittest.TestCase): + """AdminConsolidatedAnalyticsAPITenantCreateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPITenantCreateRequestDTO: + """Test AdminConsolidatedAnalyticsAPITenantCreateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPITenantCreateRequestDTO( + tenant_code = '' + ) + else: + return AdminConsolidatedAnalyticsAPITenantCreateRequestDTO( + ) + + def testAdminConsolidatedAnalyticsAPITenantCreateRequestDTO(self): + """Test AdminConsolidatedAnalyticsAPITenantCreateRequestDTO""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPITenantCreateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPITenantCreateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_tenant_list_response_dto.py new file mode 100644 index 0000000000..25e05ecfb5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_tenant_list_response_dto import AdminConsolidatedAnalyticsAPITenantListResponseDTO + +class TestAdminConsolidatedAnalyticsAPITenantListResponseDTO(unittest.TestCase): + """AdminConsolidatedAnalyticsAPITenantListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPITenantListResponseDTO: + """Test AdminConsolidatedAnalyticsAPITenantListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPITenantListResponseDTO( + tenant_codes = [ + '' + ] + ) + else: + return AdminConsolidatedAnalyticsAPITenantListResponseDTO( + ) + + def testAdminConsolidatedAnalyticsAPITenantListResponseDTO(self): + """Test AdminConsolidatedAnalyticsAPITenantListResponseDTO""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPITenantListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPITenantListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_tenant_with_details.py new file mode 100644 index 0000000000..21a281d092 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_tenant_with_details import AdminConsolidatedAnalyticsAPITenantWithDetails + +class TestAdminConsolidatedAnalyticsAPITenantWithDetails(unittest.TestCase): + """AdminConsolidatedAnalyticsAPITenantWithDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPITenantWithDetails: + """Test AdminConsolidatedAnalyticsAPITenantWithDetails + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPITenantWithDetails( + excluded_sources_list = [ + '' + ], + source_tenants_list = [ + '' + ], + tenant_code = '' + ) + else: + return AdminConsolidatedAnalyticsAPITenantWithDetails( + ) + + def testAdminConsolidatedAnalyticsAPITenantWithDetails(self): + """Test AdminConsolidatedAnalyticsAPITenantWithDetails""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPITenantWithDetails.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPITenantWithDetails.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/test/test_admin_consolidated_analytics_api_tenant_with_details_list_response_dto.py new file mode 100644 index 0000000000..d1c99bae20 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + +class TestAdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(unittest.TestCase): + """AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: + """Test AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( + tenants = [ + visier_api_administration.models.admin/consolidated_analytics_api_tenant_with_details.admin.ConsolidatedAnalyticsAPITenantWithDetails( + excluded_sources_list = [ + '' + ], + source_tenants_list = [ + '' + ], + tenant_code = '', ) + ] + ) + else: + return AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO( + ) + + def testAdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(self): + """Test AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO""" + def validate_instance(instance): + AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_custom_property_dto.py b/src/visier_api_administration/test/test_admin_custom_property_dto.py new file mode 100644 index 0000000000..ae0306f8d9 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_custom_property_dto import AdminCustomPropertyDTO + +class TestAdminCustomPropertyDTO(unittest.TestCase): + """AdminCustomPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminCustomPropertyDTO: + """Test AdminCustomPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminCustomPropertyDTO( + key = '', + value = '' + ) + else: + return AdminCustomPropertyDTO( + ) + + def testAdminCustomPropertyDTO(self): + """Test AdminCustomPropertyDTO""" + def validate_instance(instance): + AdminCustomPropertyDTO.model_validate(inst_req_only) + instance_deserialized = AdminCustomPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_custom_tenant_property_dto.py b/src/visier_api_administration/test/test_admin_custom_tenant_property_dto.py new file mode 100644 index 0000000000..6c307de6bf --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_custom_tenant_property_dto import AdminCustomTenantPropertyDTO + +class TestAdminCustomTenantPropertyDTO(unittest.TestCase): + """AdminCustomTenantPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminCustomTenantPropertyDTO: + """Test AdminCustomTenantPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminCustomTenantPropertyDTO( + key = '', + value = '' + ) + else: + return AdminCustomTenantPropertyDTO( + ) + + def testAdminCustomTenantPropertyDTO(self): + """Test AdminCustomTenantPropertyDTO""" + def validate_instance(instance): + AdminCustomTenantPropertyDTO.model_validate(inst_req_only) + instance_deserialized = AdminCustomTenantPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 index 7689b4aaed..83e844f300 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_element_ids_dto.py b/src/visier_api_administration/test/test_admin_element_ids_dto.py new file mode 100644 index 0000000000..a0f8a384e8 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_element_ids_dto import AdminElementIDsDTO + +class TestAdminElementIDsDTO(unittest.TestCase): + """AdminElementIDsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminElementIDsDTO: + """Test AdminElementIDsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminElementIDsDTO( + ids = [ + '' + ] + ) + else: + return AdminElementIDsDTO( + ) + + def testAdminElementIDsDTO(self): + """Test AdminElementIDsDTO""" + def validate_instance(instance): + AdminElementIDsDTO.model_validate(inst_req_only) + instance_deserialized = AdminElementIDsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_email_domains_dto.py b/src/visier_api_administration/test/test_admin_email_domains_dto.py new file mode 100644 index 0000000000..04e9544ea5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_email_domains_dto import AdminEmailDomainsDTO + +class TestAdminEmailDomainsDTO(unittest.TestCase): + """AdminEmailDomainsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminEmailDomainsDTO: + """Test AdminEmailDomainsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminEmailDomainsDTO( + confirm_not_allowed_domain = True, + domains = [ + '' + ] + ) + else: + return AdminEmailDomainsDTO( + ) + + def testAdminEmailDomainsDTO(self): + """Test AdminEmailDomainsDTO""" + def validate_instance(instance): + AdminEmailDomainsDTO.model_validate(inst_req_only) + instance_deserialized = AdminEmailDomainsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 index 6fe8122b3f..6ceb744653 100644 --- a/src/visier_api_administration/test/test_admin_excluded_sources_body.py +++ b/src/visier_api_administration/test/test_admin_excluded_sources_body.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_home_analysis_by_user_group_dto.py b/src/visier_api_administration/test/test_admin_home_analysis_by_user_group_dto.py new file mode 100644 index 0000000000..8a2e964f01 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO + +class TestAdminHomeAnalysisByUserGroupDTO(unittest.TestCase): + """AdminHomeAnalysisByUserGroupDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminHomeAnalysisByUserGroupDTO: + """Test AdminHomeAnalysisByUserGroupDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminHomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '' + ) + else: + return AdminHomeAnalysisByUserGroupDTO( + ) + + def testAdminHomeAnalysisByUserGroupDTO(self): + """Test AdminHomeAnalysisByUserGroupDTO""" + def validate_instance(instance): + AdminHomeAnalysisByUserGroupDTO.model_validate(inst_req_only) + instance_deserialized = AdminHomeAnalysisByUserGroupDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 index dcddd979f5..356e968e15 100644 --- a/src/visier_api_administration/test/test_admin_key_name.py +++ b/src/visier_api_administration/test/test_admin_key_name.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_mask_message.py b/src/visier_api_administration/test/test_admin_mask_message.py index 2fc745a439..a96ccf06ea 100644 --- a/src/visier_api_administration/test/test_admin_mask_message.py +++ b/src/visier_api_administration/test/test_admin_mask_message.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_network_subnets_message_request.py b/src/visier_api_administration/test/test_admin_network_subnets_message_request.py new file mode 100644 index 0000000000..260a0efb25 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_network_subnets_message_request.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_network_subnets_message_request import AdminNetworkSubnetsMessageRequest + +class TestAdminNetworkSubnetsMessageRequest(unittest.TestCase): + """AdminNetworkSubnetsMessageRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminNetworkSubnetsMessageRequest: + """Test AdminNetworkSubnetsMessageRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminNetworkSubnetsMessageRequest( + confirm_lockout = True, + network_subnets_for_api = [ + '' + ] + ) + else: + return AdminNetworkSubnetsMessageRequest( + ) + + def testAdminNetworkSubnetsMessageRequest(self): + """Test AdminNetworkSubnetsMessageRequest""" + def validate_instance(instance): + AdminNetworkSubnetsMessageRequest.model_validate(inst_req_only) + instance_deserialized = AdminNetworkSubnetsMessageRequest.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_network_subnets_message_response.py b/src/visier_api_administration/test/test_admin_network_subnets_message_response.py new file mode 100644 index 0000000000..4ade3aac53 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_network_subnets_message_response.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_network_subnets_message_response import AdminNetworkSubnetsMessageResponse + +class TestAdminNetworkSubnetsMessageResponse(unittest.TestCase): + """AdminNetworkSubnetsMessageResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminNetworkSubnetsMessageResponse: + """Test AdminNetworkSubnetsMessageResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminNetworkSubnetsMessageResponse( + network_subnets_for_api = [ + '' + ] + ) + else: + return AdminNetworkSubnetsMessageResponse( + ) + + def testAdminNetworkSubnetsMessageResponse(self): + """Test AdminNetworkSubnetsMessageResponse""" + def validate_instance(instance): + AdminNetworkSubnetsMessageResponse.model_validate(inst_req_only) + instance_deserialized = AdminNetworkSubnetsMessageResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_response_dto.py b/src/visier_api_administration/test/test_admin_permission_response_dto.py new file mode 100644 index 0000000000..662edf556c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_response_dto import AdminPermissionResponseDTO + +class TestAdminPermissionResponseDTO(unittest.TestCase): + """AdminPermissionResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPermissionResponseDTO: + """Test AdminPermissionResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPermissionResponseDTO( + display_name = '', + permission_id = '' + ) + else: + return AdminPermissionResponseDTO( + ) + + def testAdminPermissionResponseDTO(self): + """Test AdminPermissionResponseDTO""" + def validate_instance(instance): + AdminPermissionResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminPermissionResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 index e7f4786b24..e86bb919b6 100644 --- a/src/visier_api_administration/test/test_admin_permissions_list_dto.py +++ b/src/visier_api_administration/test/test_admin_permissions_list_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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -37,25 +37,25 @@ def make_instance(self, include_optional) -> AdminPermissionsListDTO: if include_optional: return AdminPermissionsListDTO( permissions = [ - visier_api_administration.models.servicing/publicapi/transfers/permission_dto.servicing.publicapi.transfers.PermissionDTO( + visier_api_administration.models.servicing/permission_dto.servicing.PermissionDTO( admin_capability_config = None, data_security_profiles = [ - visier_api_administration.models.servicing/publicapi/transfers/data_security_profile_dto.servicing.publicapi.transfers.DataSecurityProfileDTO( + visier_api_administration.models.servicing/data_security_profile_dto.servicing.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( + visier_api_administration.models.servicing/inherited_access_config_dto.servicing.InheritedAccessConfigDTO( analytic_object_id = '', member_filter_configs = [ - visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO( + visier_api_administration.models.servicing/member_filter_config_dto.servicing.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( + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( dimension_id = '', dimension_status = 'Unset', dynamic_property_mappings = [ - visier_api_administration.models.servicing/publicapi/transfers/dynamic_property_mapping_dto.servicing.publicapi.transfers.DynamicPropertyMappingDTO( + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( hierarchy_property_id = '', hierarchy_property_status = 'Unset', user_property = None, ) @@ -63,11 +63,11 @@ def make_instance(self, include_optional) -> AdminPermissionsListDTO: subject_reference_path = [ '' ], ), - static_dimension_filter = visier_api_administration.models.servicing/publicapi/transfers/static_dimension_filter_dto.servicing.publicapi.transfers.StaticDimensionFilterDTO( + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( dimension_id = '', dimension_status = 'Unset', member_selections = [ - visier_api_administration.models.servicing/publicapi/transfers/member_selection_dto.servicing.publicapi.transfers.MemberSelectionDTO( + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( dimension_member_status = 'Unset', excluded = True, name_path = [ @@ -80,7 +80,7 @@ def make_instance(self, include_optional) -> AdminPermissionsListDTO: ], inherited_reference_member_filter_config = None, member_filter_configs = [ - visier_api_administration.models.servicing/publicapi/transfers/member_filter_config_dto.servicing.publicapi.transfers.MemberFilterConfigDTO() + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO() ], property_set_config = None, ) ], diff --git a/src/visier_api_administration/test/test_admin_permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_permissions_to_user_group_for_tenant_dto.py new file mode 100644 index 0000000000..dc341d9e70 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_to_user_group_for_tenant_dto import AdminPermissionsToUserGroupForTenantDTO + +class TestAdminPermissionsToUserGroupForTenantDTO(unittest.TestCase): + """AdminPermissionsToUserGroupForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPermissionsToUserGroupForTenantDTO: + """Test AdminPermissionsToUserGroupForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPermissionsToUserGroupForTenantDTO( + message = '', + status = '', + tenant_code = '', + user_groups = [ + visier_api_administration.models.admin/user_group_get_api_response_dto.admin.UserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/permission_response_dto.admin.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '', ) + ] + ) + else: + return AdminPermissionsToUserGroupForTenantDTO( + ) + + def testAdminPermissionsToUserGroupForTenantDTO(self): + """Test AdminPermissionsToUserGroupForTenantDTO""" + def validate_instance(instance): + AdminPermissionsToUserGroupForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminPermissionsToUserGroupForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_to_user_group_request_dto.py b/src/visier_api_administration/test/test_admin_permissions_to_user_group_request_dto.py new file mode 100644 index 0000000000..6a6d729d1f --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_to_user_group_request_dto import AdminPermissionsToUserGroupRequestDTO + +class TestAdminPermissionsToUserGroupRequestDTO(unittest.TestCase): + """AdminPermissionsToUserGroupRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPermissionsToUserGroupRequestDTO: + """Test AdminPermissionsToUserGroupRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPermissionsToUserGroupRequestDTO( + permissions_ids = [ + '' + ], + user_group_id = '' + ) + else: + return AdminPermissionsToUserGroupRequestDTO( + ) + + def testAdminPermissionsToUserGroupRequestDTO(self): + """Test AdminPermissionsToUserGroupRequestDTO""" + def validate_instance(instance): + AdminPermissionsToUserGroupRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminPermissionsToUserGroupRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_admin_permissions_to_user_groups_request_dto.py new file mode 100644 index 0000000000..c416574bbc --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_to_user_groups_request_dto import AdminPermissionsToUserGroupsRequestDTO + +class TestAdminPermissionsToUserGroupsRequestDTO(unittest.TestCase): + """AdminPermissionsToUserGroupsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminPermissionsToUserGroupsRequestDTO: + """Test AdminPermissionsToUserGroupsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminPermissionsToUserGroupsRequestDTO( + user_groups = [ + visier_api_administration.models.admin/permissions_to_user_group_request_dto.admin.PermissionsToUserGroupRequestDTO( + permissions_ids = [ + '' + ], + user_group_id = '', ) + ] + ) + else: + return AdminPermissionsToUserGroupsRequestDTO( + ) + + def testAdminPermissionsToUserGroupsRequestDTO(self): + """Test AdminPermissionsToUserGroupsRequestDTO""" + def validate_instance(instance): + AdminPermissionsToUserGroupsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminPermissionsToUserGroupsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 deleted file mode 100644 index 8db32181fe..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 54b2d255f1..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e18d2be704..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a958676004..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 32625c3426..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 337e5bc5ad..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 1ff1f4b17b..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c01155c915..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 427da6e2b7..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0bdacf1fdf..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e1df2dc9cf..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7465e2e564..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e0d109b8ae..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a363eaaba6..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 8650f7f220..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 608ffd2530..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index f8a41b7edb..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e45a30d054..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 61126049a1..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 66ed42dfb6..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7ee65fe90b..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a914afaed0..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 51292a2c9c..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index f659d3c762..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7cd10d6610..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c6c3140c3d..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 1a582916e7..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a3a0a7746d..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index be721f3f52..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bb82b626be..0000000000 --- a/src/visier_api_administration/test/test_admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 index c84de21429..e3b5d7ff17 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_security_assignment_response_dto.py b/src/visier_api_administration/test/test_admin_security_assignment_response_dto.py new file mode 100644 index 0000000000..cfa1b8f9a1 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_security_assignment_response_dto import AdminSecurityAssignmentResponseDTO + +class TestAdminSecurityAssignmentResponseDTO(unittest.TestCase): + """AdminSecurityAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSecurityAssignmentResponseDTO: + """Test AdminSecurityAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSecurityAssignmentResponseDTO( + tenants = [ + visier_api_administration.models.admin/tenant_assignments_dto.admin.TenantAssignmentsDTO( + assignments = [ + visier_api_administration.models.admin/user_security_assignments_dto.admin.UserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/simple_user_dto.admin.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ], + message = '', + project_id = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminSecurityAssignmentResponseDTO( + ) + + def testAdminSecurityAssignmentResponseDTO(self): + """Test AdminSecurityAssignmentResponseDTO""" + def validate_instance(instance): + AdminSecurityAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminSecurityAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_simple_user_dto.py b/src/visier_api_administration/test/test_admin_simple_user_dto.py new file mode 100644 index 0000000000..240a67da73 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_simple_user_dto import AdminSimpleUserDTO + +class TestAdminSimpleUserDTO(unittest.TestCase): + """AdminSimpleUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSimpleUserDTO: + """Test AdminSimpleUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSimpleUserDTO( + user_id = '', + username = '' + ) + else: + return AdminSimpleUserDTO( + ) + + def testAdminSimpleUserDTO(self): + """Test AdminSimpleUserDTO""" + def validate_instance(instance): + AdminSimpleUserDTO.model_validate(inst_req_only) + instance_deserialized = AdminSimpleUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_target_project_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_target_project_for_tenant_dto.py new file mode 100644 index 0000000000..5a4ddc4ec1 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_target_project_for_tenant_dto import AdminTargetProjectForTenantDTO + +class TestAdminTargetProjectForTenantDTO(unittest.TestCase): + """AdminTargetProjectForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTargetProjectForTenantDTO: + """Test AdminTargetProjectForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTargetProjectForTenantDTO( + project_id = '', + tenant_code = '' + ) + else: + return AdminTargetProjectForTenantDTO( + ) + + def testAdminTargetProjectForTenantDTO(self): + """Test AdminTargetProjectForTenantDTO""" + def validate_instance(instance): + AdminTargetProjectForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminTargetProjectForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_target_project_for_tenants_list_dto.py b/src/visier_api_administration/test/test_admin_target_project_for_tenants_list_dto.py new file mode 100644 index 0000000000..7c6e8df1a5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_target_project_for_tenants_list_dto import AdminTargetProjectForTenantsListDTO + +class TestAdminTargetProjectForTenantsListDTO(unittest.TestCase): + """AdminTargetProjectForTenantsListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTargetProjectForTenantsListDTO: + """Test AdminTargetProjectForTenantsListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/target_project_for_tenant_dto.admin.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ] + ) + else: + return AdminTargetProjectForTenantsListDTO( + ) + + def testAdminTargetProjectForTenantsListDTO(self): + """Test AdminTargetProjectForTenantsListDTO""" + def validate_instance(instance): + AdminTargetProjectForTenantsListDTO.model_validate(inst_req_only) + instance_deserialized = AdminTargetProjectForTenantsListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assignments_dto.py b/src/visier_api_administration/test/test_admin_tenant_assignments_dto.py new file mode 100644 index 0000000000..f9174b2f79 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assignments_dto import AdminTenantAssignmentsDTO + +class TestAdminTenantAssignmentsDTO(unittest.TestCase): + """AdminTenantAssignmentsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantAssignmentsDTO: + """Test AdminTenantAssignmentsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantAssignmentsDTO( + assignments = [ + visier_api_administration.models.admin/user_security_assignments_dto.admin.UserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/simple_user_dto.admin.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ], + message = '', + project_id = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminTenantAssignmentsDTO( + ) + + def testAdminTenantAssignmentsDTO(self): + """Test AdminTenantAssignmentsDTO""" + def validate_instance(instance): + AdminTenantAssignmentsDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantAssignmentsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 index db215b9bca..f49963607e 100644 --- a/src/visier_api_administration/test/test_admin_tenant_code_body.py +++ b/src/visier_api_administration/test/test_admin_tenant_code_body.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_tenant_detail_apidto.py b/src/visier_api_administration/test/test_admin_tenant_detail_apidto.py new file mode 100644 index 0000000000..6914f8ee58 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_detail_apidto import AdminTenantDetailAPIDTO + +class TestAdminTenantDetailAPIDTO(unittest.TestCase): + """AdminTenantDetailAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantDetailAPIDTO: + """Test AdminTenantDetailAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantDetailAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + can_administer_other_tenants = True, + current_data_version = '', + custom_properties = [ + visier_api_administration.models.admin/custom_tenant_property_dto.admin.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + embeddable_domains = [ + '' + ], + industry_code = 56, + modules = [ + visier_api_administration.models.designer/tenant_module_dto.designer.TenantModuleDTO( + display_name = '', + module_settings = None, + symbol_name = '', ) + ], + provision_date = '', + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminTenantDetailAPIDTO( + ) + + def testAdminTenantDetailAPIDTO(self): + """Test AdminTenantDetailAPIDTO""" + def validate_instance(instance): + AdminTenantDetailAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantDetailAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_management_api_get_response_dto.py b/src/visier_api_administration/test/test_admin_tenant_management_api_get_response_dto.py new file mode 100644 index 0000000000..939622d4ab --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_management_api_get_response_dto import AdminTenantManagementAPIGetResponseDTO + +class TestAdminTenantManagementAPIGetResponseDTO(unittest.TestCase): + """AdminTenantManagementAPIGetResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantManagementAPIGetResponseDTO: + """Test AdminTenantManagementAPIGetResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantManagementAPIGetResponseDTO( + 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/custom_property_dto.admin.CustomPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/home_analysis_by_user_group_dto.admin.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/business_location_dto.admin.BusinessLocationDTO( + country_code = '', + postal_code = '', ), + provision_date = '', + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminTenantManagementAPIGetResponseDTO( + ) + + def testAdminTenantManagementAPIGetResponseDTO(self): + """Test AdminTenantManagementAPIGetResponseDTO""" + def validate_instance(instance): + AdminTenantManagementAPIGetResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantManagementAPIGetResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_management_api_list_response_dto.py b/src/visier_api_administration/test/test_admin_tenant_management_api_list_response_dto.py new file mode 100644 index 0000000000..539932a61e --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_management_api_list_response_dto import AdminTenantManagementAPIListResponseDTO + +class TestAdminTenantManagementAPIListResponseDTO(unittest.TestCase): + """AdminTenantManagementAPIListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantManagementAPIListResponseDTO: + """Test AdminTenantManagementAPIListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantManagementAPIListResponseDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/tenant_management_api_get_response_dto.admin.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/custom_property_dto.admin.CustomPropertyDTO( + key = '', + value = '', ) + ], + data_version_date = '', + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/home_analysis_by_user_group_dto.admin.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 AdminTenantManagementAPIListResponseDTO( + ) + + def testAdminTenantManagementAPIListResponseDTO(self): + """Test AdminTenantManagementAPIListResponseDTO""" + def validate_instance(instance): + AdminTenantManagementAPIListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantManagementAPIListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_management_api_update_request_dto.py b/src/visier_api_administration/test/test_admin_tenant_management_api_update_request_dto.py new file mode 100644 index 0000000000..7bcdff0cc2 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_management_api_update_request_dto import AdminTenantManagementAPIUpdateRequestDTO + +class TestAdminTenantManagementAPIUpdateRequestDTO(unittest.TestCase): + """AdminTenantManagementAPIUpdateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantManagementAPIUpdateRequestDTO: + """Test AdminTenantManagementAPIUpdateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantManagementAPIUpdateRequestDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + click_through_link = '', + custom_properties = [ + visier_api_administration.models.admin/custom_property_dto.admin.CustomPropertyDTO( + key = '', + value = '', ) + ], + default_currency = '', + embeddable_domains = [ + '' + ], + enabled = True, + home_analysis_by_user_group = [ + visier_api_administration.models.admin/home_analysis_by_user_group_dto.admin.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/business_location_dto.admin.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 AdminTenantManagementAPIUpdateRequestDTO( + ) + + def testAdminTenantManagementAPIUpdateRequestDTO(self): + """Test AdminTenantManagementAPIUpdateRequestDTO""" + def validate_instance(instance): + AdminTenantManagementAPIUpdateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantManagementAPIUpdateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_management_api_update_response_dto.py b/src/visier_api_administration/test/test_admin_tenant_management_api_update_response_dto.py new file mode 100644 index 0000000000..9ec402d7eb --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_management_api_update_response_dto import AdminTenantManagementAPIUpdateResponseDTO + +class TestAdminTenantManagementAPIUpdateResponseDTO(unittest.TestCase): + """AdminTenantManagementAPIUpdateResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantManagementAPIUpdateResponseDTO: + """Test AdminTenantManagementAPIUpdateResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantManagementAPIUpdateResponseDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + click_through_link = '', + custom_properties = [ + visier_api_administration.models.admin/custom_property_dto.admin.CustomPropertyDTO( + key = '', + value = '', ) + ], + default_currency = '', + embeddable_domains = [ + '' + ], + home_analysis_by_user_group = [ + visier_api_administration.models.admin/home_analysis_by_user_group_dto.admin.HomeAnalysisByUserGroupDTO( + home_analysis_id = '', + user_group_id = '', ) + ], + home_analysis_id = '', + industry_code = 56, + primary_business_location = visier_api_administration.models.admin/business_location_dto.admin.BusinessLocationDTO( + country_code = '', + postal_code = '', ), + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + status = '', + tenant_code = '', + tenant_display_name = '', + vanity_url_name = '' + ) + else: + return AdminTenantManagementAPIUpdateResponseDTO( + ) + + def testAdminTenantManagementAPIUpdateResponseDTO(self): + """Test AdminTenantManagementAPIUpdateResponseDTO""" + def validate_instance(instance): + AdminTenantManagementAPIUpdateResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantManagementAPIUpdateResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_provision_apidto.py b/src/visier_api_administration/test/test_admin_tenant_provision_apidto.py new file mode 100644 index 0000000000..d00608a2fe --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_provision_apidto import AdminTenantProvisionAPIDTO + +class TestAdminTenantProvisionAPIDTO(unittest.TestCase): + """AdminTenantProvisionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantProvisionAPIDTO: + """Test AdminTenantProvisionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantProvisionAPIDTO( + allowed_o_auth_idp_url_domains = [ + '' + ], + custom_properties = [ + visier_api_administration.models.admin/custom_tenant_property_dto.admin.CustomTenantPropertyDTO( + key = '', + value = '', ) + ], + embeddable_domains = [ + '' + ], + industry_code = 56, + purchased_modules = [ + '' + ], + sso_instance_issuers = [ + '' + ], + tenant_code = '', + tenant_display_name = '' + ) + else: + return AdminTenantProvisionAPIDTO( + ) + + def testAdminTenantProvisionAPIDTO(self): + """Test AdminTenantProvisionAPIDTO""" + def validate_instance(instance): + AdminTenantProvisionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantProvisionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_status_apidto.py b/src/visier_api_administration/test/test_admin_tenant_status_apidto.py new file mode 100644 index 0000000000..c6340dfae5 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_status_apidto import AdminTenantStatusAPIDTO + +class TestAdminTenantStatusAPIDTO(unittest.TestCase): + """AdminTenantStatusAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantStatusAPIDTO: + """Test AdminTenantStatusAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantStatusAPIDTO( + can_administer_other_tenants = True, + status = '', + tenant_code = '', + tenant_display_name = '' + ) + else: + return AdminTenantStatusAPIDTO( + ) + + def testAdminTenantStatusAPIDTO(self): + """Test AdminTenantStatusAPIDTO""" + def validate_instance(instance): + AdminTenantStatusAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantStatusAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 deleted file mode 100644 index 0f3fdf50d3..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 67b59b6892..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2c1acc46d3..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7c010ec75f..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 65f3c9e36d..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 37e49c69dc..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 5289309266..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index cbb378666a..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 02ae50bac5..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 67dabbd626..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e32f75a9f2..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e70717f23b..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 73449e3f42..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2a332c4ff4..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 682cc02238..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 764e29ff2c..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 366ff1f2a2..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3a4a0f9dcc..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d8d97600df..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index b124cc19f4..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 28170f0cab..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2eff6a6243..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index ed3de8687b..0000000000 --- a/src/visier_api_administration/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 index b50fd6e29d..948e00db2b 100644 --- a/src/visier_api_administration/test/test_admin_update_tenant_model.py +++ b/src/visier_api_administration/test/test_admin_update_tenant_model.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_admin_user_group_change_definition_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_definition_dto.py new file mode 100644 index 0000000000..60c2c02a9e --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_definition_dto import AdminUserGroupChangeDefinitionDTO + +class TestAdminUserGroupChangeDefinitionDTO(unittest.TestCase): + """AdminUserGroupChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeDefinitionDTO: + """Test AdminUserGroupChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeDefinitionDTO( + description = '', + display_name = '', + permission_ids = visier_api_administration.models.admin/element_ids_dto.admin.ElementIDsDTO( + ids = [ + '' + ], ), + project_id = '', + tenant_code = '', + user_group_id = '', + users = visier_api_administration.models.admin/user_group_change_users_dto.admin.UserGroupChangeUsersDTO( + dynamic_filter_definition = None, + include_all_users = True, + manually_excluded_ids = None, + manually_included_ids = None, ) + ) + else: + return AdminUserGroupChangeDefinitionDTO( + ) + + def testAdminUserGroupChangeDefinitionDTO(self): + """Test AdminUserGroupChangeDefinitionDTO""" + def validate_instance(instance): + AdminUserGroupChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_dimension_filter_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_dimension_filter_dto.py new file mode 100644 index 0000000000..90aa8ad255 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_dimension_filter_dto import AdminUserGroupChangeDimensionFilterDTO + +class TestAdminUserGroupChangeDimensionFilterDTO(unittest.TestCase): + """AdminUserGroupChangeDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeDimensionFilterDTO: + """Test AdminUserGroupChangeDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/user_group_change_member_selection_dto.admin.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = visier_api_administration.models.admin/element_ids_dto.admin.ElementIDsDTO( + ids = [ + '' + ], ) + ) + else: + return AdminUserGroupChangeDimensionFilterDTO( + ) + + def testAdminUserGroupChangeDimensionFilterDTO(self): + """Test AdminUserGroupChangeDimensionFilterDTO""" + def validate_instance(instance): + AdminUserGroupChangeDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_failure_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_failure_dto.py new file mode 100644 index 0000000000..70673af72a --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_failure_dto import AdminUserGroupChangeFailureDTO + +class TestAdminUserGroupChangeFailureDTO(unittest.TestCase): + """AdminUserGroupChangeFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeFailureDTO: + """Test AdminUserGroupChangeFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeFailureDTO( + display_name = '', + message = '', + project_id = '', + rci = '', + tenant_code = '' + ) + else: + return AdminUserGroupChangeFailureDTO( + ) + + def testAdminUserGroupChangeFailureDTO(self): + """Test AdminUserGroupChangeFailureDTO""" + def validate_instance(instance): + AdminUserGroupChangeFailureDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_filter_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_filter_dto.py new file mode 100644 index 0000000000..17bddfb4e9 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_filter_dto import AdminUserGroupChangeFilterDTO + +class TestAdminUserGroupChangeFilterDTO(unittest.TestCase): + """AdminUserGroupChangeFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeFilterDTO: + """Test AdminUserGroupChangeFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/user_group_change_dimension_filter_dto.admin.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/user_group_change_member_selection_dto.admin.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '' + ) + else: + return AdminUserGroupChangeFilterDTO( + ) + + def testAdminUserGroupChangeFilterDTO(self): + """Test AdminUserGroupChangeFilterDTO""" + def validate_instance(instance): + AdminUserGroupChangeFilterDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_member_selection_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_member_selection_dto.py new file mode 100644 index 0000000000..94bd49239a --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_member_selection_dto import AdminUserGroupChangeMemberSelectionDTO + +class TestAdminUserGroupChangeMemberSelectionDTO(unittest.TestCase): + """AdminUserGroupChangeMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeMemberSelectionDTO: + """Test AdminUserGroupChangeMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ] + ) + else: + return AdminUserGroupChangeMemberSelectionDTO( + ) + + def testAdminUserGroupChangeMemberSelectionDTO(self): + """Test AdminUserGroupChangeMemberSelectionDTO""" + def validate_instance(instance): + AdminUserGroupChangeMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_response_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_response_dto.py new file mode 100644 index 0000000000..38991de266 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_response_dto import AdminUserGroupChangeResponseDTO + +class TestAdminUserGroupChangeResponseDTO(unittest.TestCase): + """AdminUserGroupChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeResponseDTO: + """Test AdminUserGroupChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeResponseDTO( + failures = [ + visier_api_administration.models.admin/user_group_change_failure_dto.admin.UserGroupChangeFailureDTO( + display_name = '', + message = '', + project_id = '', + rci = '', + tenant_code = '', ) + ], + successes = [ + visier_api_administration.models.admin/user_group_change_success_dto.admin.UserGroupChangeSuccessDTO( + display_name = '', + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminUserGroupChangeResponseDTO( + ) + + def testAdminUserGroupChangeResponseDTO(self): + """Test AdminUserGroupChangeResponseDTO""" + def validate_instance(instance): + AdminUserGroupChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_success_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_success_dto.py new file mode 100644 index 0000000000..28fe0e1130 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_success_dto import AdminUserGroupChangeSuccessDTO + +class TestAdminUserGroupChangeSuccessDTO(unittest.TestCase): + """AdminUserGroupChangeSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeSuccessDTO: + """Test AdminUserGroupChangeSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeSuccessDTO( + display_name = '', + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminUserGroupChangeSuccessDTO( + ) + + def testAdminUserGroupChangeSuccessDTO(self): + """Test AdminUserGroupChangeSuccessDTO""" + def validate_instance(instance): + AdminUserGroupChangeSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_change_users_dto.py b/src/visier_api_administration/test/test_admin_user_group_change_users_dto.py new file mode 100644 index 0000000000..a6b2bee136 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_change_users_dto import AdminUserGroupChangeUsersDTO + +class TestAdminUserGroupChangeUsersDTO(unittest.TestCase): + """AdminUserGroupChangeUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupChangeUsersDTO: + """Test AdminUserGroupChangeUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupChangeUsersDTO( + dynamic_filter_definition = visier_api_administration.models.admin/user_group_filters_dto.admin.UserGroupFiltersDTO( + filters = [ + visier_api_administration.models.admin/user_group_change_filter_dto.admin.UserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/user_group_change_dimension_filter_dto.admin.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/user_group_change_member_selection_dto.admin.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '', ) + ], ), + include_all_users = True, + manually_excluded_ids = visier_api_administration.models.admin/element_ids_dto.admin.ElementIDsDTO( + ids = [ + '' + ], ), + manually_included_ids = visier_api_administration.models.admin/element_ids_dto.admin.ElementIDsDTO( + ids = [ + '' + ], ) + ) + else: + return AdminUserGroupChangeUsersDTO( + ) + + def testAdminUserGroupChangeUsersDTO(self): + """Test AdminUserGroupChangeUsersDTO""" + def validate_instance(instance): + AdminUserGroupChangeUsersDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupChangeUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_delete_dto.py b/src/visier_api_administration/test/test_admin_user_group_delete_dto.py new file mode 100644 index 0000000000..01b12e6ecc --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_delete_dto import AdminUserGroupDeleteDTO + +class TestAdminUserGroupDeleteDTO(unittest.TestCase): + """AdminUserGroupDeleteDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupDeleteDTO: + """Test AdminUserGroupDeleteDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupDeleteDTO( + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminUserGroupDeleteDTO( + ) + + def testAdminUserGroupDeleteDTO(self): + """Test AdminUserGroupDeleteDTO""" + def validate_instance(instance): + AdminUserGroupDeleteDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupDeleteDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_delete_failure_dto.py b/src/visier_api_administration/test/test_admin_user_group_delete_failure_dto.py new file mode 100644 index 0000000000..a46d4753be --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_delete_failure_dto import AdminUserGroupDeleteFailureDTO + +class TestAdminUserGroupDeleteFailureDTO(unittest.TestCase): + """AdminUserGroupDeleteFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupDeleteFailureDTO: + """Test AdminUserGroupDeleteFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminUserGroupDeleteFailureDTO( + ) + + def testAdminUserGroupDeleteFailureDTO(self): + """Test AdminUserGroupDeleteFailureDTO""" + def validate_instance(instance): + AdminUserGroupDeleteFailureDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupDeleteFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_delete_response_dto.py b/src/visier_api_administration/test/test_admin_user_group_delete_response_dto.py new file mode 100644 index 0000000000..53cbf3f357 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_delete_response_dto import AdminUserGroupDeleteResponseDTO + +class TestAdminUserGroupDeleteResponseDTO(unittest.TestCase): + """AdminUserGroupDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupDeleteResponseDTO: + """Test AdminUserGroupDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupDeleteResponseDTO( + failures = [ + visier_api_administration.models.admin/user_group_delete_failure_dto.admin.UserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '', ) + ], + successes = [ + visier_api_administration.models.admin/user_group_delete_success_dto.admin.UserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminUserGroupDeleteResponseDTO( + ) + + def testAdminUserGroupDeleteResponseDTO(self): + """Test AdminUserGroupDeleteResponseDTO""" + def validate_instance(instance): + AdminUserGroupDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_delete_success_dto.py b/src/visier_api_administration/test/test_admin_user_group_delete_success_dto.py new file mode 100644 index 0000000000..7f3a2d5dbf --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_delete_success_dto import AdminUserGroupDeleteSuccessDTO + +class TestAdminUserGroupDeleteSuccessDTO(unittest.TestCase): + """AdminUserGroupDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupDeleteSuccessDTO: + """Test AdminUserGroupDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '' + ) + else: + return AdminUserGroupDeleteSuccessDTO( + ) + + def testAdminUserGroupDeleteSuccessDTO(self): + """Test AdminUserGroupDeleteSuccessDTO""" + def validate_instance(instance): + AdminUserGroupDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_filters_dto.py b/src/visier_api_administration/test/test_admin_user_group_filters_dto.py new file mode 100644 index 0000000000..7610fc2a7c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_filters_dto import AdminUserGroupFiltersDTO + +class TestAdminUserGroupFiltersDTO(unittest.TestCase): + """AdminUserGroupFiltersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupFiltersDTO: + """Test AdminUserGroupFiltersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupFiltersDTO( + filters = [ + visier_api_administration.models.admin/user_group_change_filter_dto.admin.UserGroupChangeFilterDTO( + analytic_object_id = '', + dimension_filters = [ + visier_api_administration.models.admin/user_group_change_dimension_filter_dto.admin.UserGroupChangeDimensionFilterDTO( + dimension_id = '', + member_selections = [ + visier_api_administration.models.admin/user_group_change_member_selection_dto.admin.UserGroupChangeMemberSelectionDTO( + is_excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = None, ) + ], + filter_id = '', ) + ] + ) + else: + return AdminUserGroupFiltersDTO( + ) + + def testAdminUserGroupFiltersDTO(self): + """Test AdminUserGroupFiltersDTO""" + def validate_instance(instance): + AdminUserGroupFiltersDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupFiltersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_get_api_response_dto.py b/src/visier_api_administration/test/test_admin_user_group_get_api_response_dto.py new file mode 100644 index 0000000000..8539b36b62 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_get_api_response_dto import AdminUserGroupGetAPIResponseDTO + +class TestAdminUserGroupGetAPIResponseDTO(unittest.TestCase): + """AdminUserGroupGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupGetAPIResponseDTO: + """Test AdminUserGroupGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/permission_response_dto.admin.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '' + ) + else: + return AdminUserGroupGetAPIResponseDTO( + ) + + def testAdminUserGroupGetAPIResponseDTO(self): + """Test AdminUserGroupGetAPIResponseDTO""" + def validate_instance(instance): + AdminUserGroupGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_single_delete_response_dto.py b/src/visier_api_administration/test/test_admin_user_group_single_delete_response_dto.py new file mode 100644 index 0000000000..4df008a10f --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_single_delete_response_dto import AdminUserGroupSingleDeleteResponseDTO + +class TestAdminUserGroupSingleDeleteResponseDTO(unittest.TestCase): + """AdminUserGroupSingleDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupSingleDeleteResponseDTO: + """Test AdminUserGroupSingleDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupSingleDeleteResponseDTO( + failure = visier_api_administration.models.admin/user_group_delete_failure_dto.admin.UserGroupDeleteFailureDTO( + message = '', + project_id = '', + rci = '', + tenant_code = '', + user_group_id = '', ), + success = visier_api_administration.models.admin/user_group_delete_success_dto.admin.UserGroupDeleteSuccessDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ) + else: + return AdminUserGroupSingleDeleteResponseDTO( + ) + + def testAdminUserGroupSingleDeleteResponseDTO(self): + """Test AdminUserGroupSingleDeleteResponseDTO""" + def validate_instance(instance): + AdminUserGroupSingleDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupSingleDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_groups_change_dto.py b/src/visier_api_administration/test/test_admin_user_groups_change_dto.py new file mode 100644 index 0000000000..adc16559ae --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_groups_change_dto import AdminUserGroupsChangeDTO + +class TestAdminUserGroupsChangeDTO(unittest.TestCase): + """AdminUserGroupsChangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupsChangeDTO: + """Test AdminUserGroupsChangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupsChangeDTO( + user_groups = [ + visier_api_administration.models.admin/user_group_change_definition_dto.admin.UserGroupChangeDefinitionDTO( + description = '', + display_name = '', + permission_ids = None, + project_id = '', + tenant_code = '', + user_group_id = '', + users = None, ) + ] + ) + else: + return AdminUserGroupsChangeDTO( + ) + + def testAdminUserGroupsChangeDTO(self): + """Test AdminUserGroupsChangeDTO""" + def validate_instance(instance): + AdminUserGroupsChangeDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupsChangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_groups_delete_request_dto.py b/src/visier_api_administration/test/test_admin_user_groups_delete_request_dto.py new file mode 100644 index 0000000000..b030b5d27d --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_groups_delete_request_dto import AdminUserGroupsDeleteRequestDTO + +class TestAdminUserGroupsDeleteRequestDTO(unittest.TestCase): + """AdminUserGroupsDeleteRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupsDeleteRequestDTO: + """Test AdminUserGroupsDeleteRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupsDeleteRequestDTO( + user_groups = [ + visier_api_administration.models.admin/user_group_delete_dto.admin.UserGroupDeleteDTO( + project_id = '', + tenant_code = '', + user_group_id = '', ) + ] + ) + else: + return AdminUserGroupsDeleteRequestDTO( + ) + + def testAdminUserGroupsDeleteRequestDTO(self): + """Test AdminUserGroupsDeleteRequestDTO""" + def validate_instance(instance): + AdminUserGroupsDeleteRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupsDeleteRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_groups_get_api_response_dto.py b/src/visier_api_administration/test/test_admin_user_groups_get_api_response_dto.py new file mode 100644 index 0000000000..16863aa517 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_groups_get_api_response_dto import AdminUserGroupsGetAPIResponseDTO + +class TestAdminUserGroupsGetAPIResponseDTO(unittest.TestCase): + """AdminUserGroupsGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupsGetAPIResponseDTO: + """Test AdminUserGroupsGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupsGetAPIResponseDTO( + limit = 56, + start = 56, + user_groups = [ + visier_api_administration.models.admin/user_group_get_api_response_dto.admin.UserGroupGetAPIResponseDTO( + display_name = '', + permissions = [ + visier_api_administration.models.admin/permission_response_dto.admin.PermissionResponseDTO( + display_name = '', + permission_id = '', ) + ], + user_group_id = '', ) + ] + ) + else: + return AdminUserGroupsGetAPIResponseDTO( + ) + + def testAdminUserGroupsGetAPIResponseDTO(self): + """Test AdminUserGroupsGetAPIResponseDTO""" + def validate_instance(instance): + AdminUserGroupsGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupsGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_groups_users_dto.py b/src/visier_api_administration/test/test_admin_user_groups_users_dto.py new file mode 100644 index 0000000000..dccf9ac825 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_groups_users_dto import AdminUserGroupsUsersDTO + +class TestAdminUserGroupsUsersDTO(unittest.TestCase): + """AdminUserGroupsUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupsUsersDTO: + """Test AdminUserGroupsUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupsUsersDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.admin/user_groups_users_for_tenant_dto.admin.UserGroupsUsersForTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.admin/simple_user_dto.admin.SimpleUserDTO( + user_id = '', + username = '', ) + ], ) + ] + ) + else: + return AdminUserGroupsUsersDTO( + ) + + def testAdminUserGroupsUsersDTO(self): + """Test AdminUserGroupsUsersDTO""" + def validate_instance(instance): + AdminUserGroupsUsersDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupsUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_groups_users_for_tenant_dto.py b/src/visier_api_administration/test/test_admin_user_groups_users_for_tenant_dto.py new file mode 100644 index 0000000000..3ec5f0c595 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_groups_users_for_tenant_dto import AdminUserGroupsUsersForTenantDTO + +class TestAdminUserGroupsUsersForTenantDTO(unittest.TestCase): + """AdminUserGroupsUsersForTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserGroupsUsersForTenantDTO: + """Test AdminUserGroupsUsersForTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserGroupsUsersForTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.admin/simple_user_dto.admin.SimpleUserDTO( + user_id = '', + username = '', ) + ] + ) + else: + return AdminUserGroupsUsersForTenantDTO( + ) + + def testAdminUserGroupsUsersForTenantDTO(self): + """Test AdminUserGroupsUsersForTenantDTO""" + def validate_instance(instance): + AdminUserGroupsUsersForTenantDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserGroupsUsersForTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_security_assignments_dto.py b/src/visier_api_administration/test/test_admin_user_security_assignments_dto.py new file mode 100644 index 0000000000..f39b9098e0 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_security_assignments_dto import AdminUserSecurityAssignmentsDTO + +class TestAdminUserSecurityAssignmentsDTO(unittest.TestCase): + """AdminUserSecurityAssignmentsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUserSecurityAssignmentsDTO: + """Test AdminUserSecurityAssignmentsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUserSecurityAssignmentsDTO( + id = '', + name = '', + users = [ + visier_api_administration.models.admin/simple_user_dto.admin.SimpleUserDTO( + user_id = '', + username = '', ) + ] + ) + else: + return AdminUserSecurityAssignmentsDTO( + ) + + def testAdminUserSecurityAssignmentsDTO(self): + """Test AdminUserSecurityAssignmentsDTO""" + def validate_instance(instance): + AdminUserSecurityAssignmentsDTO.model_validate(inst_req_only) + instance_deserialized = AdminUserSecurityAssignmentsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_to_user_group_request_dto.py b/src/visier_api_administration/test/test_admin_users_to_user_group_request_dto.py new file mode 100644 index 0000000000..f30792ea98 --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_to_user_group_request_dto import AdminUsersToUserGroupRequestDTO + +class TestAdminUsersToUserGroupRequestDTO(unittest.TestCase): + """AdminUsersToUserGroupRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUsersToUserGroupRequestDTO: + """Test AdminUsersToUserGroupRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUsersToUserGroupRequestDTO( + user_group_id = '', + user_ids = [ + '' + ] + ) + else: + return AdminUsersToUserGroupRequestDTO( + ) + + def testAdminUsersToUserGroupRequestDTO(self): + """Test AdminUsersToUserGroupRequestDTO""" + def validate_instance(instance): + AdminUsersToUserGroupRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminUsersToUserGroupRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_to_user_groups_request_dto.py b/src/visier_api_administration/test/test_admin_users_to_user_groups_request_dto.py new file mode 100644 index 0000000000..ab18f6fa6c --- /dev/null +++ b/src/visier_api_administration/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_to_user_groups_request_dto import AdminUsersToUserGroupsRequestDTO + +class TestAdminUsersToUserGroupsRequestDTO(unittest.TestCase): + """AdminUsersToUserGroupsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminUsersToUserGroupsRequestDTO: + """Test AdminUsersToUserGroupsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminUsersToUserGroupsRequestDTO( + target_project_for_tenants_list = visier_api_administration.models.admin/target_project_for_tenants_list_dto.admin.TargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/target_project_for_tenant_dto.admin.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ], ), + user_groups = [ + visier_api_administration.models.admin/users_to_user_group_request_dto.admin.UsersToUserGroupRequestDTO( + user_group_id = '', + user_ids = [ + '' + ], ) + ] + ) + else: + return AdminUsersToUserGroupsRequestDTO( + ) + + def testAdminUsersToUserGroupsRequestDTO(self): + """Test AdminUsersToUserGroupsRequestDTO""" + def validate_instance(instance): + AdminUsersToUserGroupsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminUsersToUserGroupsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 0f0468cf32..afe94a8b3b 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f6c4962c93..0b08fc4050 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 63a00274e5..f28a45fc9f 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index c379092607..bda1f07bf2 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_designer_module_settings_dto.py b/src/visier_api_administration/test/test_designer_module_settings_dto.py new file mode 100644 index 0000000000..dccc13d745 --- /dev/null +++ b/src/visier_api_administration/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_module_settings_dto import DesignerModuleSettingsDTO + +class TestDesignerModuleSettingsDTO(unittest.TestCase): + """DesignerModuleSettingsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerModuleSettingsDTO: + """Test DesignerModuleSettingsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerModuleSettingsDTO( + locale = '', + special_handling_instruction = '', + unavailable_for_assignment = True + ) + else: + return DesignerModuleSettingsDTO( + ) + + def testDesignerModuleSettingsDTO(self): + """Test DesignerModuleSettingsDTO""" + def validate_instance(instance): + DesignerModuleSettingsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerModuleSettingsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_tenant_module_dto.py b/src/visier_api_administration/test/test_designer_tenant_module_dto.py new file mode 100644 index 0000000000..d875d1d222 --- /dev/null +++ b/src/visier_api_administration/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_tenant_module_dto import DesignerTenantModuleDTO + +class TestDesignerTenantModuleDTO(unittest.TestCase): + """DesignerTenantModuleDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerTenantModuleDTO: + """Test DesignerTenantModuleDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerTenantModuleDTO( + display_name = '', + module_settings = visier_api_administration.models.designer/module_settings_dto.designer.ModuleSettingsDTO( + locale = '', + special_handling_instruction = '', + unavailable_for_assignment = True, ), + symbol_name = '' + ) + else: + return DesignerTenantModuleDTO( + ) + + def testDesignerTenantModuleDTO(self): + """Test DesignerTenantModuleDTO""" + def validate_instance(instance): + DesignerTenantModuleDTO.model_validate(inst_req_only) + instance_deserialized = DesignerTenantModuleDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 deleted file mode 100644 index b96868d86b..0000000000 --- a/src/visier_api_administration/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 437edbf8fa..0000000000 --- a/src/visier_api_administration/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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_dp_automation_metric_validation_summary_dto.py b/src/visier_api_administration/test/test_dp_automation_metric_validation_summary_dto.py new file mode 100644 index 0000000000..6fdfe4a403 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_metric_validation_summary_dto import DpAutomationMetricValidationSummaryDTO + +class TestDpAutomationMetricValidationSummaryDTO(unittest.TestCase): + """DpAutomationMetricValidationSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationMetricValidationSummaryDTO: + """Test DpAutomationMetricValidationSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationMetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337 + ) + else: + return DpAutomationMetricValidationSummaryDTO( + ) + + def testDpAutomationMetricValidationSummaryDTO(self): + """Test DpAutomationMetricValidationSummaryDTO""" + def validate_instance(instance): + DpAutomationMetricValidationSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationMetricValidationSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_tenant_preview_entries_summary_dto.py b/src/visier_api_administration/test/test_dp_automation_tenant_preview_entries_summary_dto.py new file mode 100644 index 0000000000..664a933c95 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_tenant_preview_entries_summary_dto import DpAutomationTenantPreviewEntriesSummaryDTO + +class TestDpAutomationTenantPreviewEntriesSummaryDTO(unittest.TestCase): + """DpAutomationTenantPreviewEntriesSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationTenantPreviewEntriesSummaryDTO: + """Test DpAutomationTenantPreviewEntriesSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationTenantPreviewEntriesSummaryDTO( + data_version = '', + data_version_date = '', + metrics = [ + visier_api_administration.models.dp_automation/metric_validation_summary_dto.dp_automation.MetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337, ) + ], + tenant_code = '' + ) + else: + return DpAutomationTenantPreviewEntriesSummaryDTO( + ) + + def testDpAutomationTenantPreviewEntriesSummaryDTO(self): + """Test DpAutomationTenantPreviewEntriesSummaryDTO""" + def validate_instance(instance): + DpAutomationTenantPreviewEntriesSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationTenantPreviewEntriesSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/test/test_dp_automation_tenant_preview_entries_summary_list_dto.py new file mode 100644 index 0000000000..f50bc05675 --- /dev/null +++ b/src/visier_api_administration/test/test_dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_tenant_preview_entries_summary_list_dto import DpAutomationTenantPreviewEntriesSummaryListDTO + +class TestDpAutomationTenantPreviewEntriesSummaryListDTO(unittest.TestCase): + """DpAutomationTenantPreviewEntriesSummaryListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpAutomationTenantPreviewEntriesSummaryListDTO: + """Test DpAutomationTenantPreviewEntriesSummaryListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpAutomationTenantPreviewEntriesSummaryListDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.dp_automation/tenant_preview_entries_summary_dto.dp_automation.TenantPreviewEntriesSummaryDTO( + data_version = '', + data_version_date = '', + metrics = [ + visier_api_administration.models.dp_automation/metric_validation_summary_dto.dp_automation.MetricValidationSummaryDTO( + display_name = '', + symbol_name = '', + value = 1.337, ) + ], + tenant_code = '', ) + ] + ) + else: + return DpAutomationTenantPreviewEntriesSummaryListDTO( + ) + + def testDpAutomationTenantPreviewEntriesSummaryListDTO(self): + """Test DpAutomationTenantPreviewEntriesSummaryListDTO""" + def validate_instance(instance): + DpAutomationTenantPreviewEntriesSummaryListDTO.model_validate(inst_req_only) + instance_deserialized = DpAutomationTenantPreviewEntriesSummaryListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 deleted file mode 100644 index 401c8ce474..0000000000 --- a/src/visier_api_administration/test/test_dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c6696f4b79..0000000000 --- a/src/visier_api_administration/test/test_dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index db971f66a4..0000000000 --- a/src/visier_api_administration/test/test_dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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_email_domains_api.py b/src/visier_api_administration/test/test_email_domains_api.py index 2ac2f6ed5b..70a6260cf2 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 e829586aef..d2e5c7fa36 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_network_subnets_api.py b/src/visier_api_administration/test/test_network_subnets_api.py new file mode 100644 index 0000000000..23f9e770d1 --- /dev/null +++ b/src/visier_api_administration/test/test_network_subnets_api.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +from visier_api_administration.api.network_subnets_api import NetworkSubnetsApi + + +class TestNetworkSubnetsApi(unittest.TestCase): + """NetworkSubnetsApi unit test stubs""" + + def setUp(self) -> None: + self.api = NetworkSubnetsApi() + + def tearDown(self) -> None: + pass + + def test_add_api_subnets(self) -> None: + """Test case for add_api_subnets + + Add API network subnets + """ + pass + + def test_delete_api_subnets(self) -> None: + """Test case for delete_api_subnets + + Delete API network subnets + """ + pass + + def test_get_api_subnets(self) -> None: + """Test case for get_api_subnets + + Retrieve a list of API network subnets + """ + pass + + def test_set_api_subnets(self) -> None: + """Test case for set_api_subnets + + Update API network subnets + """ + pass + + +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 a95d257561..47c23254e2 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.py b/src/visier_api_administration/test/test_production_versions_api.py index a6b14b5618..81acaa0081 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_profiles_api.py b/src/visier_api_administration/test/test_profiles_api.py index 9137a76753..2700013e14 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_projects_api.py b/src/visier_api_administration/test/test_projects_api.py index 0ddba54398..f1ffc50f61 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_servicing_accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_servicing_accessible_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..fc59b25558 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_accessible_tenant_profile_assignment_request_dto import ServicingAccessibleTenantProfileAssignmentRequestDTO + +class TestServicingAccessibleTenantProfileAssignmentRequestDTO(unittest.TestCase): + """ServicingAccessibleTenantProfileAssignmentRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAccessibleTenantProfileAssignmentRequestDTO: + """Test ServicingAccessibleTenantProfileAssignmentRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAccessibleTenantProfileAssignmentRequestDTO( + target_tenant_codes = [ + visier_api_administration.models.servicing/target_tenant_code_dto.servicing.TargetTenantCodeDTO( + for_all_children = True, + tenant_code = '', ) + ], + target_user_ids = [ + '' + ], + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingAccessibleTenantProfileAssignmentRequestDTO( + ) + + def testServicingAccessibleTenantProfileAssignmentRequestDTO(self): + """Test ServicingAccessibleTenantProfileAssignmentRequestDTO""" + def validate_instance(instance): + ServicingAccessibleTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAccessibleTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_servicing_accessible_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..ec96fb1974 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_accessible_tenant_profile_assignment_response_dto import ServicingAccessibleTenantProfileAssignmentResponseDTO + +class TestServicingAccessibleTenantProfileAssignmentResponseDTO(unittest.TestCase): + """ServicingAccessibleTenantProfileAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAccessibleTenantProfileAssignmentResponseDTO: + """Test ServicingAccessibleTenantProfileAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAccessibleTenantProfileAssignmentResponseDTO( + bad_tenant_codes = [ + visier_api_administration.models.servicing/tenant_code_error_dto.servicing.TenantCodeErrorDTO( + error = None, + for_all_children = True, + tenant_code = '', ) + ], + bad_user_ids = [ + visier_api_administration.models.servicing/user_id_error_dto.servicing.UserIdErrorDTO( + error = None, + user_id = '', ) + ], + errors = True, + failed_assignments = [ + visier_api_administration.models.servicing/failed_accessible_tenant_profile_assignment_dto.servicing.FailedAccessibleTenantProfileAssignmentDTO( + error = None, + for_all_children = True, + tenant_code = '', + user_id = '', ) + ], + successful_assignments = [ + visier_api_administration.models.servicing/successful_accessible_tenant_profile_assignment_dto.servicing.SuccessfulAccessibleTenantProfileAssignmentDTO( + for_all_children = True, + tenant_code = '', + user_id = '', ) + ] + ) + else: + return ServicingAccessibleTenantProfileAssignmentResponseDTO( + ) + + def testServicingAccessibleTenantProfileAssignmentResponseDTO(self): + """Test ServicingAccessibleTenantProfileAssignmentResponseDTO""" + def validate_instance(instance): + ServicingAccessibleTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAccessibleTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_servicing_accessible_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..445b798433 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_accessible_tenant_profile_revoke_request_dto import ServicingAccessibleTenantProfileRevokeRequestDTO + +class TestServicingAccessibleTenantProfileRevokeRequestDTO(unittest.TestCase): + """ServicingAccessibleTenantProfileRevokeRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAccessibleTenantProfileRevokeRequestDTO: + """Test ServicingAccessibleTenantProfileRevokeRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAccessibleTenantProfileRevokeRequestDTO( + target_tenant_codes = [ + visier_api_administration.models.servicing/target_tenant_code_dto.servicing.TargetTenantCodeDTO( + for_all_children = True, + tenant_code = '', ) + ], + target_user_ids = [ + '' + ] + ) + else: + return ServicingAccessibleTenantProfileRevokeRequestDTO( + ) + + def testServicingAccessibleTenantProfileRevokeRequestDTO(self): + """Test ServicingAccessibleTenantProfileRevokeRequestDTO""" + def validate_instance(instance): + ServicingAccessibleTenantProfileRevokeRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAccessibleTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_servicing_accessible_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..876374736f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_accessible_tenant_profile_revoke_response_dto import ServicingAccessibleTenantProfileRevokeResponseDTO + +class TestServicingAccessibleTenantProfileRevokeResponseDTO(unittest.TestCase): + """ServicingAccessibleTenantProfileRevokeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAccessibleTenantProfileRevokeResponseDTO: + """Test ServicingAccessibleTenantProfileRevokeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAccessibleTenantProfileRevokeResponseDTO( + bad_tenant_codes = [ + visier_api_administration.models.servicing/reduced_tenant_code_error_dto.servicing.ReducedTenantCodeErrorDTO( + error = None, + for_all_children = True, + tenant_code = '', ) + ], + bad_user_ids = [ + visier_api_administration.models.servicing/reduced_user_id_error_dto.servicing.ReducedUserIdErrorDTO( + error = None, + user_id = '', ) + ], + succeeded = [ + visier_api_administration.models.servicing/successful_local_tenant_profile_assignment_dto.servicing.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ], + unaffected_users = [ + visier_api_administration.models.servicing/successful_local_tenant_profile_assignment_dto.servicing.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingAccessibleTenantProfileRevokeResponseDTO( + ) + + def testServicingAccessibleTenantProfileRevokeResponseDTO(self): + """Test ServicingAccessibleTenantProfileRevokeResponseDTO""" + def validate_instance(instance): + ServicingAccessibleTenantProfileRevokeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAccessibleTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_additional_capabilities_dto.py b/src/visier_api_administration/test/test_servicing_additional_capabilities_dto.py new file mode 100644 index 0000000000..af99cb4bf7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_additional_capabilities_dto import ServicingAdditionalCapabilitiesDTO + +class TestServicingAdditionalCapabilitiesDTO(unittest.TestCase): + """ServicingAdditionalCapabilitiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAdditionalCapabilitiesDTO: + """Test ServicingAdditionalCapabilitiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAdditionalCapabilitiesDTO( + additional_capabilities = [ + '' + ] + ) + else: + return ServicingAdditionalCapabilitiesDTO( + ) + + def testServicingAdditionalCapabilitiesDTO(self): + """Test ServicingAdditionalCapabilitiesDTO""" + def validate_instance(instance): + ServicingAdditionalCapabilitiesDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAdditionalCapabilitiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_admin_capability_config_dto.py b/src/visier_api_administration/test/test_servicing_admin_capability_config_dto.py new file mode 100644 index 0000000000..1984e7582b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_admin_capability_config_dto import ServicingAdminCapabilityConfigDTO + +class TestServicingAdminCapabilityConfigDTO(unittest.TestCase): + """ServicingAdminCapabilityConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAdminCapabilityConfigDTO: + """Test ServicingAdminCapabilityConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAdminCapabilityConfigDTO( + all_capabilities_access = True, + capabilities = [ + '' + ] + ) + else: + return ServicingAdminCapabilityConfigDTO( + ) + + def testServicingAdminCapabilityConfigDTO(self): + """Test ServicingAdminCapabilityConfigDTO""" + def validate_instance(instance): + ServicingAdminCapabilityConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAdminCapabilityConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_all_permissions_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..e5e74d4aef --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_permissions_assigned_for_local_tenant_dto import ServicingAllPermissionsAssignedForLocalTenantDTO + +class TestServicingAllPermissionsAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingAllPermissionsAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAllPermissionsAssignedForLocalTenantDTO: + """Test ServicingAllPermissionsAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAllPermissionsAssignedForLocalTenantDTO( + assigned_permissions = [ + visier_api_administration.models.servicing/permission_assigned_for_local_tenant_dto.servicing.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ) + ] + ) + else: + return ServicingAllPermissionsAssignedForLocalTenantDTO( + ) + + def testServicingAllPermissionsAssignedForLocalTenantDTO(self): + """Test ServicingAllPermissionsAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingAllPermissionsAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAllPermissionsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_servicing_all_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..4497689bbc --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_profile_assigned_for_accessible_tenant_dto import ServicingAllProfileAssignedForAccessibleTenantDTO + +class TestServicingAllProfileAssignedForAccessibleTenantDTO(unittest.TestCase): + """ServicingAllProfileAssignedForAccessibleTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAllProfileAssignedForAccessibleTenantDTO: + """Test ServicingAllProfileAssignedForAccessibleTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAllProfileAssignedForAccessibleTenantDTO( + assigned_profiles_for_accessible_tenant = [ + visier_api_administration.models.servicing/profile_assigned_for_accessible_tenant_dto.servicing.ProfileAssignedForAccessibleTenantDTO( + display_name = '', + for_all_children = True, + profile_id = '', + tenant_code = '', + validity_end_time = '', + validity_start_time = '', ) + ] + ) + else: + return ServicingAllProfileAssignedForAccessibleTenantDTO( + ) + + def testServicingAllProfileAssignedForAccessibleTenantDTO(self): + """Test ServicingAllProfileAssignedForAccessibleTenantDTO""" + def validate_instance(instance): + ServicingAllProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAllProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_all_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..53683a3764 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_profile_assigned_for_local_tenant_dto import ServicingAllProfileAssignedForLocalTenantDTO + +class TestServicingAllProfileAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingAllProfileAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAllProfileAssignedForLocalTenantDTO: + """Test ServicingAllProfileAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAllProfileAssignedForLocalTenantDTO( + assigned_profiles = [ + visier_api_administration.models.servicing/profile_assigned_for_local_tenant_dto.servicing.ProfileAssignedForLocalTenantDTO( + additional_capabilities = None, + capabilities = [ + visier_api_administration.models.servicing/capabilities_dto.servicing.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '', ) + ] + ) + else: + return ServicingAllProfileAssignedForLocalTenantDTO( + ) + + def testServicingAllProfileAssignedForLocalTenantDTO(self): + """Test ServicingAllProfileAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingAllProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAllProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_all_user_groups_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..f56957b0ab --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_user_groups_assigned_for_local_tenant_dto import ServicingAllUserGroupsAssignedForLocalTenantDTO + +class TestServicingAllUserGroupsAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingAllUserGroupsAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAllUserGroupsAssignedForLocalTenantDTO: + """Test ServicingAllUserGroupsAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAllUserGroupsAssignedForLocalTenantDTO( + assigned_user_groups = [ + visier_api_administration.models.servicing/user_group_assigned_for_local_tenant_dto.servicing.UserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '', ) + ] + ) + else: + return ServicingAllUserGroupsAssignedForLocalTenantDTO( + ) + + def testServicingAllUserGroupsAssignedForLocalTenantDTO(self): + """Test ServicingAllUserGroupsAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingAllUserGroupsAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAllUserGroupsAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_all_users_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_all_users_get_api_response_dto.py new file mode 100644 index 0000000000..ae6233b1fe --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_all_users_get_api_response_dto import ServicingAllUsersGetAPIResponseDTO + +class TestServicingAllUsersGetAPIResponseDTO(unittest.TestCase): + """ServicingAllUsersGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAllUsersGetAPIResponseDTO: + """Test ServicingAllUsersGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAllUsersGetAPIResponseDTO( + limit = 56, + start = 56, + users = [ + visier_api_administration.models.servicing/user_get_api_response_dto.servicing.UserGetAPIResponseDTO( + account_enabled = True, + display_name = '', + email = '', + employee_id = '', + last_login = None, + permissions = None, + profiles = None, + user_groups = None, + user_id = '', + username = '', ) + ] + ) + else: + return ServicingAllUsersGetAPIResponseDTO( + ) + + def testServicingAllUsersGetAPIResponseDTO(self): + """Test ServicingAllUsersGetAPIResponseDTO""" + def validate_instance(instance): + ServicingAllUsersGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAllUsersGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_analytic_object_dto.py b/src/visier_api_administration/test/test_servicing_analytic_object_dto.py new file mode 100644 index 0000000000..307ca8fd27 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_analytic_object_dto import ServicingAnalyticObjectDTO + +class TestServicingAnalyticObjectDTO(unittest.TestCase): + """ServicingAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAnalyticObjectDTO: + """Test ServicingAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', + object_type = 'Event', + related_objects = [ + visier_api_administration.models.servicing/related_analytic_object_dto.servicing.RelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', ) + ], + securable_dimensions = [ + visier_api_administration.models.servicing/securable_dimension_dto.servicing.SecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/hierarchy_property_dto.servicing.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ], ) + ], + securable_properties = [ + visier_api_administration.models.servicing/securable_property_dto.servicing.SecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '', ) + ] + ) + else: + return ServicingAnalyticObjectDTO( + ) + + def testServicingAnalyticObjectDTO(self): + """Test ServicingAnalyticObjectDTO""" + def validate_instance(instance): + ServicingAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permission_by_permission_dto.py new file mode 100644 index 0000000000..9befbe0834 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permission_by_permission_dto import ServicingAssignRevokePermissionByPermissionDTO + +class TestServicingAssignRevokePermissionByPermissionDTO(unittest.TestCase): + """ServicingAssignRevokePermissionByPermissionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionByPermissionDTO: + """Test ServicingAssignRevokePermissionByPermissionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/permission_assigned_for_local_tenant_dto.servicing.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_user_dto.servicing.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingAssignRevokePermissionByPermissionDTO( + ) + + def testServicingAssignRevokePermissionByPermissionDTO(self): + """Test ServicingAssignRevokePermissionByPermissionDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionByPermissionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionByPermissionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permission_by_tenant_dto.py new file mode 100644 index 0000000000..f6b7c083be --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permission_by_tenant_dto import ServicingAssignRevokePermissionByTenantDTO + +class TestServicingAssignRevokePermissionByTenantDTO(unittest.TestCase): + """ServicingAssignRevokePermissionByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionByTenantDTO: + """Test ServicingAssignRevokePermissionByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionByTenantDTO( + message = '', + permissions = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_permission_dto.servicing.AssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/permission_assigned_for_local_tenant_dto.servicing.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_user_dto.servicing.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ], ) + ], + project_id = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return ServicingAssignRevokePermissionByTenantDTO( + ) + + def testServicingAssignRevokePermissionByTenantDTO(self): + """Test ServicingAssignRevokePermissionByTenantDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permission_by_user_dto.py new file mode 100644 index 0000000000..29624d7954 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permission_by_user_dto import ServicingAssignRevokePermissionByUserDTO + +class TestServicingAssignRevokePermissionByUserDTO(unittest.TestCase): + """ServicingAssignRevokePermissionByUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionByUserDTO: + """Test ServicingAssignRevokePermissionByUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '' + ) + else: + return ServicingAssignRevokePermissionByUserDTO( + ) + + def testServicingAssignRevokePermissionByUserDTO(self): + """Test ServicingAssignRevokePermissionByUserDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionByUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionByUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permission_request_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permission_request_dto.py new file mode 100644 index 0000000000..716ca5c226 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permission_request_dto import ServicingAssignRevokePermissionRequestDTO + +class TestServicingAssignRevokePermissionRequestDTO(unittest.TestCase): + """ServicingAssignRevokePermissionRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionRequestDTO: + """Test ServicingAssignRevokePermissionRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionRequestDTO( + permission_id = '', + user_ids = [ + '' + ] + ) + else: + return ServicingAssignRevokePermissionRequestDTO( + ) + + def testServicingAssignRevokePermissionRequestDTO(self): + """Test ServicingAssignRevokePermissionRequestDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permissions_request_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permissions_request_dto.py new file mode 100644 index 0000000000..ae66eb14f6 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permissions_request_dto import ServicingAssignRevokePermissionsRequestDTO + +class TestServicingAssignRevokePermissionsRequestDTO(unittest.TestCase): + """ServicingAssignRevokePermissionsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionsRequestDTO: + """Test ServicingAssignRevokePermissionsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionsRequestDTO( + permissions = [ + visier_api_administration.models.servicing/assign_revoke_permission_request_dto.servicing.AssignRevokePermissionRequestDTO( + permission_id = '', + user_ids = [ + '' + ], ) + ], + target_project_for_tenants_list = visier_api_administration.models.admin/target_project_for_tenants_list_dto.admin.TargetProjectForTenantsListDTO( + target_project_for_tenants = [ + visier_api_administration.models.admin/target_project_for_tenant_dto.admin.TargetProjectForTenantDTO( + project_id = '', + tenant_code = '', ) + ], ) + ) + else: + return ServicingAssignRevokePermissionsRequestDTO( + ) + + def testServicingAssignRevokePermissionsRequestDTO(self): + """Test ServicingAssignRevokePermissionsRequestDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionsRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_assign_revoke_permissions_response_dto.py b/src/visier_api_administration/test/test_servicing_assign_revoke_permissions_response_dto.py new file mode 100644 index 0000000000..ad9fa6ded3 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_assign_revoke_permissions_response_dto import ServicingAssignRevokePermissionsResponseDTO + +class TestServicingAssignRevokePermissionsResponseDTO(unittest.TestCase): + """ServicingAssignRevokePermissionsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingAssignRevokePermissionsResponseDTO: + """Test ServicingAssignRevokePermissionsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingAssignRevokePermissionsResponseDTO( + tenants = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_tenant_dto.servicing.AssignRevokePermissionByTenantDTO( + message = '', + permissions = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_permission_dto.servicing.AssignRevokePermissionByPermissionDTO( + permission = visier_api_administration.models.servicing/permission_assigned_for_local_tenant_dto.servicing.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ), + users = [ + visier_api_administration.models.servicing/assign_revoke_permission_by_user_dto.servicing.AssignRevokePermissionByUserDTO( + message = '', + user_id = '', + username = '', ) + ], ) + ], + project_id = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return ServicingAssignRevokePermissionsResponseDTO( + ) + + def testServicingAssignRevokePermissionsResponseDTO(self): + """Test ServicingAssignRevokePermissionsResponseDTO""" + def validate_instance(instance): + ServicingAssignRevokePermissionsResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingAssignRevokePermissionsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_bulk_data_access_set_response_dto.py b/src/visier_api_administration/test/test_servicing_bulk_data_access_set_response_dto.py new file mode 100644 index 0000000000..62110b9579 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_bulk_data_access_set_response_dto import ServicingBulkDataAccessSetResponseDTO + +class TestServicingBulkDataAccessSetResponseDTO(unittest.TestCase): + """ServicingBulkDataAccessSetResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingBulkDataAccessSetResponseDTO: + """Test ServicingBulkDataAccessSetResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingBulkDataAccessSetResponseDTO( + failures = [ + visier_api_administration.models.servicing/data_access_set_failure_dto.servicing.DataAccessSetFailureDTO( + data_access_set_id = '', + display_name = '', + error = None, ) + ], + successes = [ + visier_api_administration.models.servicing/data_access_set_success_dto.servicing.DataAccessSetSuccessDTO( + data_access_set_id = '', + display_name = '', ) + ] + ) + else: + return ServicingBulkDataAccessSetResponseDTO( + ) + + def testServicingBulkDataAccessSetResponseDTO(self): + """Test ServicingBulkDataAccessSetResponseDTO""" + def validate_instance(instance): + ServicingBulkDataAccessSetResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingBulkDataAccessSetResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_capabilities_dto.py b/src/visier_api_administration/test/test_servicing_capabilities_dto.py new file mode 100644 index 0000000000..184b3803df --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_capabilities_dto import ServicingCapabilitiesDTO + +class TestServicingCapabilitiesDTO(unittest.TestCase): + """ServicingCapabilitiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingCapabilitiesDTO: + """Test ServicingCapabilitiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingCapabilitiesDTO( + access_level = '', + capability = '', + view_level = '' + ) + else: + return ServicingCapabilitiesDTO( + ) + + def testServicingCapabilitiesDTO(self): + """Test ServicingCapabilitiesDTO""" + def validate_instance(instance): + ServicingCapabilitiesDTO.model_validate(inst_req_only) + instance_deserialized = ServicingCapabilitiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_capability_dto.py b/src/visier_api_administration/test/test_servicing_capability_dto.py new file mode 100644 index 0000000000..fc7a28835e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_capability_dto import ServicingCapabilityDTO + +class TestServicingCapabilityDTO(unittest.TestCase): + """ServicingCapabilityDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingCapabilityDTO: + """Test ServicingCapabilityDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingCapabilityDTO( + description = '', + display_name = '', + name = '' + ) + else: + return ServicingCapabilityDTO( + ) + + def testServicingCapabilityDTO(self): + """Test ServicingCapabilityDTO""" + def validate_instance(instance): + ServicingCapabilityDTO.model_validate(inst_req_only) + instance_deserialized = ServicingCapabilityDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_commit_and_publish_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_commit_and_publish_operation_response_dto.py new file mode 100644 index 0000000000..94e20f2774 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_commit_and_publish_operation_response_dto import ServicingCommitAndPublishOperationResponseDTO + +class TestServicingCommitAndPublishOperationResponseDTO(unittest.TestCase): + """ServicingCommitAndPublishOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingCommitAndPublishOperationResponseDTO: + """Test ServicingCommitAndPublishOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingCommitAndPublishOperationResponseDTO( + published_version = visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ) + else: + return ServicingCommitAndPublishOperationResponseDTO( + ) + + def testServicingCommitAndPublishOperationResponseDTO(self): + """Test ServicingCommitAndPublishOperationResponseDTO""" + def validate_instance(instance): + ServicingCommitAndPublishOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingCommitAndPublishOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_commit_dto.py b/src/visier_api_administration/test/test_servicing_commit_dto.py new file mode 100644 index 0000000000..ce00313f5c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_commit_dto import ServicingCommitDTO + +class TestServicingCommitDTO(unittest.TestCase): + """ServicingCommitDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingCommitDTO: + """Test ServicingCommitDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingCommitDTO( + description = '', + id = '', + name = '' + ) + else: + return ServicingCommitDTO( + ) + + def testServicingCommitDTO(self): + """Test ServicingCommitDTO""" + def validate_instance(instance): + ServicingCommitDTO.model_validate(inst_req_only) + instance_deserialized = ServicingCommitDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_content_package_dto.py b/src/visier_api_administration/test/test_servicing_content_package_dto.py new file mode 100644 index 0000000000..40d427c320 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_content_package_dto import ServicingContentPackageDTO + +class TestServicingContentPackageDTO(unittest.TestCase): + """ServicingContentPackageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingContentPackageDTO: + """Test ServicingContentPackageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingContentPackageDTO( + content_package_id = '', + description = '', + display_name = '' + ) + else: + return ServicingContentPackageDTO( + ) + + def testServicingContentPackageDTO(self): + """Test ServicingContentPackageDTO""" + def validate_instance(instance): + ServicingContentPackageDTO.model_validate(inst_req_only) + instance_deserialized = ServicingContentPackageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_create_data_access_set_request_dto.py b/src/visier_api_administration/test/test_servicing_create_data_access_set_request_dto.py new file mode 100644 index 0000000000..31321c86b7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_create_data_access_set_request_dto import ServicingCreateDataAccessSetRequestDTO + +class TestServicingCreateDataAccessSetRequestDTO(unittest.TestCase): + """ServicingCreateDataAccessSetRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingCreateDataAccessSetRequestDTO: + """Test ServicingCreateDataAccessSetRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingCreateDataAccessSetRequestDTO( + shareable_property_access_configs = [ + visier_api_administration.models.servicing/data_access_set_dto.servicing.DataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/property_access_config_dto.servicing.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], ) + ] + ) + else: + return ServicingCreateDataAccessSetRequestDTO( + ) + + def testServicingCreateDataAccessSetRequestDTO(self): + """Test ServicingCreateDataAccessSetRequestDTO""" + def validate_instance(instance): + ServicingCreateDataAccessSetRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingCreateDataAccessSetRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_data_access_set_dto.py b/src/visier_api_administration/test/test_servicing_data_access_set_dto.py new file mode 100644 index 0000000000..ed01d4fd16 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_data_access_set_dto import ServicingDataAccessSetDTO + +class TestServicingDataAccessSetDTO(unittest.TestCase): + """ServicingDataAccessSetDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataAccessSetDTO: + """Test ServicingDataAccessSetDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/property_access_config_dto.servicing.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ] + ) + else: + return ServicingDataAccessSetDTO( + ) + + def testServicingDataAccessSetDTO(self): + """Test ServicingDataAccessSetDTO""" + def validate_instance(instance): + ServicingDataAccessSetDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataAccessSetDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_data_access_set_error_dto.py b/src/visier_api_administration/test/test_servicing_data_access_set_error_dto.py new file mode 100644 index 0000000000..40710f28b5 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_data_access_set_error_dto import ServicingDataAccessSetErrorDTO + +class TestServicingDataAccessSetErrorDTO(unittest.TestCase): + """ServicingDataAccessSetErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataAccessSetErrorDTO: + """Test ServicingDataAccessSetErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataAccessSetErrorDTO( + message = '', + rci = '' + ) + else: + return ServicingDataAccessSetErrorDTO( + ) + + def testServicingDataAccessSetErrorDTO(self): + """Test ServicingDataAccessSetErrorDTO""" + def validate_instance(instance): + ServicingDataAccessSetErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataAccessSetErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_data_access_set_failure_dto.py b/src/visier_api_administration/test/test_servicing_data_access_set_failure_dto.py new file mode 100644 index 0000000000..f55ee39152 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_data_access_set_failure_dto import ServicingDataAccessSetFailureDTO + +class TestServicingDataAccessSetFailureDTO(unittest.TestCase): + """ServicingDataAccessSetFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataAccessSetFailureDTO: + """Test ServicingDataAccessSetFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataAccessSetFailureDTO( + data_access_set_id = '', + display_name = '', + error = visier_api_administration.models.servicing/data_access_set_error_dto.servicing.DataAccessSetErrorDTO( + message = '', + rci = '', ) + ) + else: + return ServicingDataAccessSetFailureDTO( + ) + + def testServicingDataAccessSetFailureDTO(self): + """Test ServicingDataAccessSetFailureDTO""" + def validate_instance(instance): + ServicingDataAccessSetFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataAccessSetFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_data_access_set_success_dto.py b/src/visier_api_administration/test/test_servicing_data_access_set_success_dto.py new file mode 100644 index 0000000000..0659905cf7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_data_access_set_success_dto import ServicingDataAccessSetSuccessDTO + +class TestServicingDataAccessSetSuccessDTO(unittest.TestCase): + """ServicingDataAccessSetSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataAccessSetSuccessDTO: + """Test ServicingDataAccessSetSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataAccessSetSuccessDTO( + data_access_set_id = '', + display_name = '' + ) + else: + return ServicingDataAccessSetSuccessDTO( + ) + + def testServicingDataAccessSetSuccessDTO(self): + """Test ServicingDataAccessSetSuccessDTO""" + def validate_instance(instance): + ServicingDataAccessSetSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataAccessSetSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_data_security_profile_dto.py b/src/visier_api_administration/test/test_servicing_data_security_profile_dto.py new file mode 100644 index 0000000000..059e5b869e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_data_security_profile_dto import ServicingDataSecurityProfileDTO + +class TestServicingDataSecurityProfileDTO(unittest.TestCase): + """ServicingDataSecurityProfileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataSecurityProfileDTO: + """Test ServicingDataSecurityProfileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/inherited_access_config_dto.servicing.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True, ) + ], + inherited_reference_member_filter_config = visier_api_administration.models.servicing/inherited_reference_member_filter_config_dto.servicing.InheritedReferenceMemberFilterConfigDTO( + analytic_object_reference = '', + target_analytic_object_id = '', ), + member_filter_configs = [ + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + property_set_config = visier_api_administration.models.servicing/property_set_config_dto.servicing.PropertySetConfigDTO( + property_access_configs = [ + visier_api_administration.models.servicing/property_access_config_dto.servicing.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], + shareable_data_access_set = None, ) + ) + else: + return ServicingDataSecurityProfileDTO( + ) + + def testServicingDataSecurityProfileDTO(self): + """Test ServicingDataSecurityProfileDTO""" + def validate_instance(instance): + ServicingDataSecurityProfileDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataSecurityProfileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_delete_permissions_request_dto.py b/src/visier_api_administration/test/test_servicing_delete_permissions_request_dto.py new file mode 100644 index 0000000000..49dab7200a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_delete_permissions_request_dto import ServicingDeletePermissionsRequestDTO + +class TestServicingDeletePermissionsRequestDTO(unittest.TestCase): + """ServicingDeletePermissionsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDeletePermissionsRequestDTO: + """Test ServicingDeletePermissionsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDeletePermissionsRequestDTO( + permission_ids = [ + '' + ] + ) + else: + return ServicingDeletePermissionsRequestDTO( + ) + + def testServicingDeletePermissionsRequestDTO(self): + """Test ServicingDeletePermissionsRequestDTO""" + def validate_instance(instance): + ServicingDeletePermissionsRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDeletePermissionsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_dimension_filter_dto.py new file mode 100644 index 0000000000..88a5663001 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_dimension_filter_dto import ServicingDimensionFilterDTO + +class TestServicingDimensionFilterDTO(unittest.TestCase): + """ServicingDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDimensionFilterDTO: + """Test ServicingDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = [ + '' + ], ) + ) + else: + return ServicingDimensionFilterDTO( + ) + + def testServicingDimensionFilterDTO(self): + """Test ServicingDimensionFilterDTO""" + def validate_instance(instance): + ServicingDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_dynamic_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_dynamic_dimension_filter_dto.py new file mode 100644 index 0000000000..33df06b0d8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_dynamic_dimension_filter_dto import ServicingDynamicDimensionFilterDTO + +class TestServicingDynamicDimensionFilterDTO(unittest.TestCase): + """ServicingDynamicDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDynamicDimensionFilterDTO: + """Test ServicingDynamicDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ] + ) + else: + return ServicingDynamicDimensionFilterDTO( + ) + + def testServicingDynamicDimensionFilterDTO(self): + """Test ServicingDynamicDimensionFilterDTO""" + def validate_instance(instance): + ServicingDynamicDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDynamicDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_dynamic_property_mapping_dto.py b/src/visier_api_administration/test/test_servicing_dynamic_property_mapping_dto.py new file mode 100644 index 0000000000..284d953c05 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_dynamic_property_mapping_dto import ServicingDynamicPropertyMappingDTO + +class TestServicingDynamicPropertyMappingDTO(unittest.TestCase): + """ServicingDynamicPropertyMappingDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDynamicPropertyMappingDTO: + """Test ServicingDynamicPropertyMappingDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = visier_api_administration.models.servicing/user_property_dto.servicing.UserPropertyDTO( + name = '', ) + ) + else: + return ServicingDynamicPropertyMappingDTO( + ) + + def testServicingDynamicPropertyMappingDTO(self): + """Test ServicingDynamicPropertyMappingDTO""" + def validate_instance(instance): + ServicingDynamicPropertyMappingDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDynamicPropertyMappingDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_error_dto.py b/src/visier_api_administration/test/test_servicing_error_dto.py new file mode 100644 index 0000000000..ccbce0db6b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_error_dto import ServicingErrorDTO + +class TestServicingErrorDTO(unittest.TestCase): + """ServicingErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingErrorDTO: + """Test ServicingErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '' + ) + else: + return ServicingErrorDTO( + ) + + def testServicingErrorDTO(self): + """Test ServicingErrorDTO""" + def validate_instance(instance): + ServicingErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/test/test_servicing_export_production_versions_api_operation_parameters_dto.py new file mode 100644 index 0000000000..bae1bfa875 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_export_production_versions_api_operation_parameters_dto import ServicingExportProductionVersionsAPIOperationParametersDTO + +class TestServicingExportProductionVersionsAPIOperationParametersDTO(unittest.TestCase): + """ServicingExportProductionVersionsAPIOperationParametersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingExportProductionVersionsAPIOperationParametersDTO: + """Test ServicingExportProductionVersionsAPIOperationParametersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingExportProductionVersionsAPIOperationParametersDTO( + end_version = '', + excluded_versions = [ + '' + ], + start_version = '' + ) + else: + return ServicingExportProductionVersionsAPIOperationParametersDTO( + ) + + def testServicingExportProductionVersionsAPIOperationParametersDTO(self): + """Test ServicingExportProductionVersionsAPIOperationParametersDTO""" + def validate_instance(instance): + ServicingExportProductionVersionsAPIOperationParametersDTO.model_validate(inst_req_only) + instance_deserialized = ServicingExportProductionVersionsAPIOperationParametersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_failed_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..33b6455671 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_failed_accessible_tenant_profile_assignment_dto import ServicingFailedAccessibleTenantProfileAssignmentDTO + +class TestServicingFailedAccessibleTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingFailedAccessibleTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingFailedAccessibleTenantProfileAssignmentDTO: + """Test ServicingFailedAccessibleTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingFailedAccessibleTenantProfileAssignmentDTO( + error = visier_api_administration.models.servicing/error_dto.servicing.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + for_all_children = True, + tenant_code = '', + user_id = '' + ) + else: + return ServicingFailedAccessibleTenantProfileAssignmentDTO( + ) + + def testServicingFailedAccessibleTenantProfileAssignmentDTO(self): + """Test ServicingFailedAccessibleTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingFailedAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingFailedAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_failed_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..7aaea739d3 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_failed_local_tenant_profile_assignment_dto import ServicingFailedLocalTenantProfileAssignmentDTO + +class TestServicingFailedLocalTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingFailedLocalTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingFailedLocalTenantProfileAssignmentDTO: + """Test ServicingFailedLocalTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingFailedLocalTenantProfileAssignmentDTO( + error = visier_api_administration.models.servicing/error_dto.servicing.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + user_id = '' + ) + else: + return ServicingFailedLocalTenantProfileAssignmentDTO( + ) + + def testServicingFailedLocalTenantProfileAssignmentDTO(self): + """Test ServicingFailedLocalTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingFailedLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingFailedLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/test/test_servicing_failed_local_tenant_profile_revoke_dto.py new file mode 100644 index 0000000000..2f6c52a29f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_failed_local_tenant_profile_revoke_dto import ServicingFailedLocalTenantProfileRevokeDTO + +class TestServicingFailedLocalTenantProfileRevokeDTO(unittest.TestCase): + """ServicingFailedLocalTenantProfileRevokeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingFailedLocalTenantProfileRevokeDTO: + """Test ServicingFailedLocalTenantProfileRevokeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingFailedLocalTenantProfileRevokeDTO( + message = '', + user_id = '' + ) + else: + return ServicingFailedLocalTenantProfileRevokeDTO( + ) + + def testServicingFailedLocalTenantProfileRevokeDTO(self): + """Test ServicingFailedLocalTenantProfileRevokeDTO""" + def validate_instance(instance): + ServicingFailedLocalTenantProfileRevokeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingFailedLocalTenantProfileRevokeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_capabilities_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_capabilities_api_response_dto.py new file mode 100644 index 0000000000..90d28ed660 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_capabilities_api_response_dto import ServicingGetCapabilitiesAPIResponseDTO + +class TestServicingGetCapabilitiesAPIResponseDTO(unittest.TestCase): + """ServicingGetCapabilitiesAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetCapabilitiesAPIResponseDTO: + """Test ServicingGetCapabilitiesAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetCapabilitiesAPIResponseDTO( + capabilities = [ + visier_api_administration.models.servicing/capability_dto.servicing.CapabilityDTO( + description = '', + display_name = '', + name = '', ) + ] + ) + else: + return ServicingGetCapabilitiesAPIResponseDTO( + ) + + def testServicingGetCapabilitiesAPIResponseDTO(self): + """Test ServicingGetCapabilitiesAPIResponseDTO""" + def validate_instance(instance): + ServicingGetCapabilitiesAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetCapabilitiesAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_content_packages_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_content_packages_api_response_dto.py new file mode 100644 index 0000000000..4425cbb1b4 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_content_packages_api_response_dto import ServicingGetContentPackagesAPIResponseDTO + +class TestServicingGetContentPackagesAPIResponseDTO(unittest.TestCase): + """ServicingGetContentPackagesAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetContentPackagesAPIResponseDTO: + """Test ServicingGetContentPackagesAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetContentPackagesAPIResponseDTO( + content_packages = [ + visier_api_administration.models.servicing/content_package_dto.servicing.ContentPackageDTO( + content_package_id = '', + description = '', + display_name = '', ) + ] + ) + else: + return ServicingGetContentPackagesAPIResponseDTO( + ) + + def testServicingGetContentPackagesAPIResponseDTO(self): + """Test ServicingGetContentPackagesAPIResponseDTO""" + def validate_instance(instance): + ServicingGetContentPackagesAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetContentPackagesAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_data_access_sets_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_data_access_sets_api_response_dto.py new file mode 100644 index 0000000000..6e9eff79f2 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_data_access_sets_api_response_dto import ServicingGetDataAccessSetsAPIResponseDTO + +class TestServicingGetDataAccessSetsAPIResponseDTO(unittest.TestCase): + """ServicingGetDataAccessSetsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetDataAccessSetsAPIResponseDTO: + """Test ServicingGetDataAccessSetsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetDataAccessSetsAPIResponseDTO( + data_access_sets = [ + visier_api_administration.models.servicing/data_access_set_dto.servicing.DataAccessSetDTO( + analytic_object_id = '', + description = '', + display_name = '', + id = '', + property_access_configs = [ + visier_api_administration.models.servicing/property_access_config_dto.servicing.PropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset', ) + ], ) + ] + ) + else: + return ServicingGetDataAccessSetsAPIResponseDTO( + ) + + def testServicingGetDataAccessSetsAPIResponseDTO(self): + """Test ServicingGetDataAccessSetsAPIResponseDTO""" + def validate_instance(instance): + ServicingGetDataAccessSetsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetDataAccessSetsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_data_security_objects_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_data_security_objects_api_response_dto.py new file mode 100644 index 0000000000..f0e49059f1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_data_security_objects_api_response_dto import ServicingGetDataSecurityObjectsAPIResponseDTO + +class TestServicingGetDataSecurityObjectsAPIResponseDTO(unittest.TestCase): + """ServicingGetDataSecurityObjectsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetDataSecurityObjectsAPIResponseDTO: + """Test ServicingGetDataSecurityObjectsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetDataSecurityObjectsAPIResponseDTO( + analytic_objects = [ + visier_api_administration.models.servicing/analytic_object_dto.servicing.AnalyticObjectDTO( + analytic_object_id = '', + display_name = '', + object_type = 'Event', + related_objects = [ + visier_api_administration.models.servicing/related_analytic_object_dto.servicing.RelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '', ) + ], + securable_dimensions = [ + visier_api_administration.models.servicing/securable_dimension_dto.servicing.SecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/hierarchy_property_dto.servicing.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ], ) + ], + securable_properties = [ + visier_api_administration.models.servicing/securable_property_dto.servicing.SecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '', ) + ], ) + ] + ) + else: + return ServicingGetDataSecurityObjectsAPIResponseDTO( + ) + + def testServicingGetDataSecurityObjectsAPIResponseDTO(self): + """Test ServicingGetDataSecurityObjectsAPIResponseDTO""" + def validate_instance(instance): + ServicingGetDataSecurityObjectsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetDataSecurityObjectsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_permissions_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_permissions_api_response_dto.py new file mode 100644 index 0000000000..95ca32357c --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_permissions_api_response_dto import ServicingGetPermissionsAPIResponseDTO + +class TestServicingGetPermissionsAPIResponseDTO(unittest.TestCase): + """ServicingGetPermissionsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetPermissionsAPIResponseDTO: + """Test ServicingGetPermissionsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetPermissionsAPIResponseDTO( + permissions = [ + visier_api_administration.models.servicing/permission_dto.servicing.PermissionDTO( + admin_capability_config = None, + data_security_profiles = [ + visier_api_administration.models.servicing/data_security_profile_dto.servicing.DataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/inherited_access_config_dto.servicing.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.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/member_filter_config_dto.servicing.MemberFilterConfigDTO() + ], + property_set_config = None, ) + ], + description = '', + display_name = '', + permission_id = '', + role_modules_config = None, ) + ] + ) + else: + return ServicingGetPermissionsAPIResponseDTO( + ) + + def testServicingGetPermissionsAPIResponseDTO(self): + """Test ServicingGetPermissionsAPIResponseDTO""" + def validate_instance(instance): + ServicingGetPermissionsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetPermissionsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_production_versions_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_production_versions_api_response_dto.py new file mode 100644 index 0000000000..f641b5eb82 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_production_versions_api_response_dto import ServicingGetProductionVersionsAPIResponseDTO + +class TestServicingGetProductionVersionsAPIResponseDTO(unittest.TestCase): + """ServicingGetProductionVersionsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetProductionVersionsAPIResponseDTO: + """Test ServicingGetProductionVersionsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetProductionVersionsAPIResponseDTO( + published_versions = [ + visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ] + ) + else: + return ServicingGetProductionVersionsAPIResponseDTO( + ) + + def testServicingGetProductionVersionsAPIResponseDTO(self): + """Test ServicingGetProductionVersionsAPIResponseDTO""" + def validate_instance(instance): + ServicingGetProductionVersionsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetProductionVersionsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_get_projects_api_response_dto.py b/src/visier_api_administration/test/test_servicing_get_projects_api_response_dto.py new file mode 100644 index 0000000000..064b5aa142 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_get_projects_api_response_dto import ServicingGetProjectsAPIResponseDTO + +class TestServicingGetProjectsAPIResponseDTO(unittest.TestCase): + """ServicingGetProjectsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingGetProjectsAPIResponseDTO: + """Test ServicingGetProjectsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingGetProjectsAPIResponseDTO( + approval_projects = [ + visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + archived_projects = [ + visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + open_projects = [ + visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ], + rejected_projects = [ + visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ] + ) + else: + return ServicingGetProjectsAPIResponseDTO( + ) + + def testServicingGetProjectsAPIResponseDTO(self): + """Test ServicingGetProjectsAPIResponseDTO""" + def validate_instance(instance): + ServicingGetProjectsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingGetProjectsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_hierarchy_property_dto.py b/src/visier_api_administration/test/test_servicing_hierarchy_property_dto.py new file mode 100644 index 0000000000..dfcf5c39f8 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_hierarchy_property_dto import ServicingHierarchyPropertyDTO + +class TestServicingHierarchyPropertyDTO(unittest.TestCase): + """ServicingHierarchyPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingHierarchyPropertyDTO: + """Test ServicingHierarchyPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingHierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '' + ) + else: + return ServicingHierarchyPropertyDTO( + ) + + def testServicingHierarchyPropertyDTO(self): + """Test ServicingHierarchyPropertyDTO""" + def validate_instance(instance): + ServicingHierarchyPropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingHierarchyPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_inherited_access_config_dto.py b/src/visier_api_administration/test/test_servicing_inherited_access_config_dto.py new file mode 100644 index 0000000000..fd3e2490de --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_inherited_access_config_dto import ServicingInheritedAccessConfigDTO + +class TestServicingInheritedAccessConfigDTO(unittest.TestCase): + """ServicingInheritedAccessConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingInheritedAccessConfigDTO: + """Test ServicingInheritedAccessConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingInheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ], ) + ], + remove_access = True + ) + else: + return ServicingInheritedAccessConfigDTO( + ) + + def testServicingInheritedAccessConfigDTO(self): + """Test ServicingInheritedAccessConfigDTO""" + def validate_instance(instance): + ServicingInheritedAccessConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingInheritedAccessConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/test/test_servicing_inherited_reference_member_filter_config_dto.py new file mode 100644 index 0000000000..ee9a842d7e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_inherited_reference_member_filter_config_dto import ServicingInheritedReferenceMemberFilterConfigDTO + +class TestServicingInheritedReferenceMemberFilterConfigDTO(unittest.TestCase): + """ServicingInheritedReferenceMemberFilterConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingInheritedReferenceMemberFilterConfigDTO: + """Test ServicingInheritedReferenceMemberFilterConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingInheritedReferenceMemberFilterConfigDTO( + analytic_object_reference = '', + target_analytic_object_id = '' + ) + else: + return ServicingInheritedReferenceMemberFilterConfigDTO( + ) + + def testServicingInheritedReferenceMemberFilterConfigDTO(self): + """Test ServicingInheritedReferenceMemberFilterConfigDTO""" + def validate_instance(instance): + ServicingInheritedReferenceMemberFilterConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingInheritedReferenceMemberFilterConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_last_login_dto.py b/src/visier_api_administration/test/test_servicing_last_login_dto.py new file mode 100644 index 0000000000..f8f6df2ea5 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_last_login_dto import ServicingLastLoginDTO + +class TestServicingLastLoginDTO(unittest.TestCase): + """ServicingLastLoginDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingLastLoginDTO: + """Test ServicingLastLoginDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingLastLoginDTO( + timestamp = '' + ) + else: + return ServicingLastLoginDTO( + ) + + def testServicingLastLoginDTO(self): + """Test ServicingLastLoginDTO""" + def validate_instance(instance): + ServicingLastLoginDTO.model_validate(inst_req_only) + instance_deserialized = ServicingLastLoginDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/test/test_servicing_local_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..e9dfd04de2 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_local_tenant_profile_assignment_request_dto import ServicingLocalTenantProfileAssignmentRequestDTO + +class TestServicingLocalTenantProfileAssignmentRequestDTO(unittest.TestCase): + """ServicingLocalTenantProfileAssignmentRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingLocalTenantProfileAssignmentRequestDTO: + """Test ServicingLocalTenantProfileAssignmentRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingLocalTenantProfileAssignmentRequestDTO( + target_user_ids = [ + '' + ], + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingLocalTenantProfileAssignmentRequestDTO( + ) + + def testServicingLocalTenantProfileAssignmentRequestDTO(self): + """Test ServicingLocalTenantProfileAssignmentRequestDTO""" + def validate_instance(instance): + ServicingLocalTenantProfileAssignmentRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingLocalTenantProfileAssignmentRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/test/test_servicing_local_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..381429a34b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_local_tenant_profile_assignment_response_dto import ServicingLocalTenantProfileAssignmentResponseDTO + +class TestServicingLocalTenantProfileAssignmentResponseDTO(unittest.TestCase): + """ServicingLocalTenantProfileAssignmentResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingLocalTenantProfileAssignmentResponseDTO: + """Test ServicingLocalTenantProfileAssignmentResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingLocalTenantProfileAssignmentResponseDTO( + bad_user_ids = [ + visier_api_administration.models.servicing/user_id_error_dto.servicing.UserIdErrorDTO( + error = None, + user_id = '', ) + ], + errors = True, + failed_assignments = [ + visier_api_administration.models.servicing/failed_local_tenant_profile_assignment_dto.servicing.FailedLocalTenantProfileAssignmentDTO( + error = None, + user_id = '', ) + ], + successful_assignments = [ + visier_api_administration.models.servicing/successful_local_tenant_profile_assignment_dto.servicing.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingLocalTenantProfileAssignmentResponseDTO( + ) + + def testServicingLocalTenantProfileAssignmentResponseDTO(self): + """Test ServicingLocalTenantProfileAssignmentResponseDTO""" + def validate_instance(instance): + ServicingLocalTenantProfileAssignmentResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingLocalTenantProfileAssignmentResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/test/test_servicing_local_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..5cb0a14bbb --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_local_tenant_profile_revoke_request_dto import ServicingLocalTenantProfileRevokeRequestDTO + +class TestServicingLocalTenantProfileRevokeRequestDTO(unittest.TestCase): + """ServicingLocalTenantProfileRevokeRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingLocalTenantProfileRevokeRequestDTO: + """Test ServicingLocalTenantProfileRevokeRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingLocalTenantProfileRevokeRequestDTO( + target_user_ids = [ + '' + ] + ) + else: + return ServicingLocalTenantProfileRevokeRequestDTO( + ) + + def testServicingLocalTenantProfileRevokeRequestDTO(self): + """Test ServicingLocalTenantProfileRevokeRequestDTO""" + def validate_instance(instance): + ServicingLocalTenantProfileRevokeRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingLocalTenantProfileRevokeRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/test/test_servicing_local_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..6a2cb3f070 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_local_tenant_profile_revoke_response_dto import ServicingLocalTenantProfileRevokeResponseDTO + +class TestServicingLocalTenantProfileRevokeResponseDTO(unittest.TestCase): + """ServicingLocalTenantProfileRevokeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingLocalTenantProfileRevokeResponseDTO: + """Test ServicingLocalTenantProfileRevokeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingLocalTenantProfileRevokeResponseDTO( + failed = [ + visier_api_administration.models.servicing/failed_local_tenant_profile_revoke_dto.servicing.FailedLocalTenantProfileRevokeDTO( + message = '', + user_id = '', ) + ], + succeeded = [ + visier_api_administration.models.servicing/successful_local_tenant_profile_assignment_dto.servicing.SuccessfulLocalTenantProfileAssignmentDTO( + user_id = '', ) + ] + ) + else: + return ServicingLocalTenantProfileRevokeResponseDTO( + ) + + def testServicingLocalTenantProfileRevokeResponseDTO(self): + """Test ServicingLocalTenantProfileRevokeResponseDTO""" + def validate_instance(instance): + ServicingLocalTenantProfileRevokeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingLocalTenantProfileRevokeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_member_filter_config_dto.py b/src/visier_api_administration/test/test_servicing_member_filter_config_dto.py new file mode 100644 index 0000000000..74bd7f680a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_member_filter_config_dto import ServicingMemberFilterConfigDTO + +class TestServicingMemberFilterConfigDTO(unittest.TestCase): + """ServicingMemberFilterConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingMemberFilterConfigDTO: + """Test ServicingMemberFilterConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingMemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], ), ) + ] + ) + else: + return ServicingMemberFilterConfigDTO( + ) + + def testServicingMemberFilterConfigDTO(self): + """Test ServicingMemberFilterConfigDTO""" + def validate_instance(instance): + ServicingMemberFilterConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingMemberFilterConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_member_selection_dto.py b/src/visier_api_administration/test/test_servicing_member_selection_dto.py new file mode 100644 index 0000000000..e11c56a1ea --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_member_selection_dto import ServicingMemberSelectionDTO + +class TestServicingMemberSelectionDTO(unittest.TestCase): + """ServicingMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingMemberSelectionDTO: + """Test ServicingMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingMemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ] + ) + else: + return ServicingMemberSelectionDTO( + ) + + def testServicingMemberSelectionDTO(self): + """Test ServicingMemberSelectionDTO""" + def validate_instance(instance): + ServicingMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_assigned_by_tenant_dto.py b/src/visier_api_administration/test/test_servicing_permission_assigned_by_tenant_dto.py new file mode 100644 index 0000000000..9bde7de507 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_assigned_by_tenant_dto import ServicingPermissionAssignedByTenantDTO + +class TestServicingPermissionAssignedByTenantDTO(unittest.TestCase): + """ServicingPermissionAssignedByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionAssignedByTenantDTO: + """Test ServicingPermissionAssignedByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionAssignedByTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.servicing/permission_assigned_user_dto.servicing.PermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingPermissionAssignedByTenantDTO( + ) + + def testServicingPermissionAssignedByTenantDTO(self): + """Test ServicingPermissionAssignedByTenantDTO""" + def validate_instance(instance): + ServicingPermissionAssignedByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionAssignedByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_permission_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..55651ee6bb --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_assigned_for_local_tenant_dto import ServicingPermissionAssignedForLocalTenantDTO + +class TestServicingPermissionAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingPermissionAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionAssignedForLocalTenantDTO: + """Test ServicingPermissionAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '' + ) + else: + return ServicingPermissionAssignedForLocalTenantDTO( + ) + + def testServicingPermissionAssignedForLocalTenantDTO(self): + """Test ServicingPermissionAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingPermissionAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_assigned_user_dto.py b/src/visier_api_administration/test/test_servicing_permission_assigned_user_dto.py new file mode 100644 index 0000000000..1357a9e1f7 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_assigned_user_dto import ServicingPermissionAssignedUserDTO + +class TestServicingPermissionAssignedUserDTO(unittest.TestCase): + """ServicingPermissionAssignedUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionAssignedUserDTO: + """Test ServicingPermissionAssignedUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '' + ) + else: + return ServicingPermissionAssignedUserDTO( + ) + + def testServicingPermissionAssignedUserDTO(self): + """Test ServicingPermissionAssignedUserDTO""" + def validate_instance(instance): + ServicingPermissionAssignedUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionAssignedUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_assigned_users_dto.py b/src/visier_api_administration/test/test_servicing_permission_assigned_users_dto.py new file mode 100644 index 0000000000..c4fb872350 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_assigned_users_dto import ServicingPermissionAssignedUsersDTO + +class TestServicingPermissionAssignedUsersDTO(unittest.TestCase): + """ServicingPermissionAssignedUsersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionAssignedUsersDTO: + """Test ServicingPermissionAssignedUsersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionAssignedUsersDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_administration.models.servicing/permission_assigned_by_tenant_dto.servicing.PermissionAssignedByTenantDTO( + tenant_code = '', + users = [ + visier_api_administration.models.servicing/permission_assigned_user_dto.servicing.PermissionAssignedUserDTO( + permission_from = '', + user_id = '', + username = '', ) + ], ) + ] + ) + else: + return ServicingPermissionAssignedUsersDTO( + ) + + def testServicingPermissionAssignedUsersDTO(self): + """Test ServicingPermissionAssignedUsersDTO""" + def validate_instance(instance): + ServicingPermissionAssignedUsersDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionAssignedUsersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_bulk_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_permission_bulk_operation_response_dto.py new file mode 100644 index 0000000000..8da1ab5c58 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_bulk_operation_response_dto import ServicingPermissionBulkOperationResponseDTO + +class TestServicingPermissionBulkOperationResponseDTO(unittest.TestCase): + """ServicingPermissionBulkOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionBulkOperationResponseDTO: + """Test ServicingPermissionBulkOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionBulkOperationResponseDTO( + failures = [ + visier_api_administration.models.servicing/permission_failure_dto.servicing.PermissionFailureDTO( + display_name = '', + error = None, + permission_id = '', ) + ], + successes = [ + visier_api_administration.models.servicing/permission_success_dto.servicing.PermissionSuccessDTO( + display_name = '', + permission_id = '', ) + ] + ) + else: + return ServicingPermissionBulkOperationResponseDTO( + ) + + def testServicingPermissionBulkOperationResponseDTO(self): + """Test ServicingPermissionBulkOperationResponseDTO""" + def validate_instance(instance): + ServicingPermissionBulkOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionBulkOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_dto.py b/src/visier_api_administration/test/test_servicing_permission_dto.py new file mode 100644 index 0000000000..875e479122 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_dto import ServicingPermissionDTO + +class TestServicingPermissionDTO(unittest.TestCase): + """ServicingPermissionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionDTO: + """Test ServicingPermissionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionDTO( + admin_capability_config = visier_api_administration.models.servicing/admin_capability_config_dto.servicing.AdminCapabilityConfigDTO( + all_capabilities_access = True, + capabilities = [ + '' + ], ), + data_security_profiles = [ + visier_api_administration.models.servicing/data_security_profile_dto.servicing.DataSecurityProfileDTO( + all_data_point_access = True, + analytic_object_id = '', + analytic_object_status = 'Unset', + inherited_access_configs = [ + visier_api_administration.models.servicing/inherited_access_config_dto.servicing.InheritedAccessConfigDTO( + analytic_object_id = '', + member_filter_configs = [ + visier_api_administration.models.servicing/member_filter_config_dto.servicing.MemberFilterConfigDTO( + dimension_filters = [ + visier_api_administration.models.servicing/dimension_filter_dto.servicing.DimensionFilterDTO( + dynamic_dimension_filter = visier_api_administration.models.servicing/dynamic_dimension_filter_dto.servicing.DynamicDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + dynamic_property_mappings = [ + visier_api_administration.models.servicing/dynamic_property_mapping_dto.servicing.DynamicPropertyMappingDTO( + hierarchy_property_id = '', + hierarchy_property_status = 'Unset', + user_property = None, ) + ], + subject_reference_path = [ + '' + ], ), + static_dimension_filter = visier_api_administration.models.servicing/static_dimension_filter_dto.servicing.StaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.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/member_filter_config_dto.servicing.MemberFilterConfigDTO() + ], + property_set_config = None, ) + ], + description = '', + display_name = '', + permission_id = '', + role_modules_config = visier_api_administration.models.servicing/role_modules_config_dto.servicing.RoleModulesConfigDTO( + content_package_ids = [ + '' + ], ) + ) + else: + return ServicingPermissionDTO( + ) + + def testServicingPermissionDTO(self): + """Test ServicingPermissionDTO""" + def validate_instance(instance): + ServicingPermissionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_error_dto.py b/src/visier_api_administration/test/test_servicing_permission_error_dto.py new file mode 100644 index 0000000000..e1a13e9079 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_error_dto import ServicingPermissionErrorDTO + +class TestServicingPermissionErrorDTO(unittest.TestCase): + """ServicingPermissionErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionErrorDTO: + """Test ServicingPermissionErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionErrorDTO( + message = '', + rci = '' + ) + else: + return ServicingPermissionErrorDTO( + ) + + def testServicingPermissionErrorDTO(self): + """Test ServicingPermissionErrorDTO""" + def validate_instance(instance): + ServicingPermissionErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_failure_dto.py b/src/visier_api_administration/test/test_servicing_permission_failure_dto.py new file mode 100644 index 0000000000..3c13d29158 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_failure_dto import ServicingPermissionFailureDTO + +class TestServicingPermissionFailureDTO(unittest.TestCase): + """ServicingPermissionFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionFailureDTO: + """Test ServicingPermissionFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionFailureDTO( + display_name = '', + error = visier_api_administration.models.servicing/permission_error_dto.servicing.PermissionErrorDTO( + message = '', + rci = '', ), + permission_id = '' + ) + else: + return ServicingPermissionFailureDTO( + ) + + def testServicingPermissionFailureDTO(self): + """Test ServicingPermissionFailureDTO""" + def validate_instance(instance): + ServicingPermissionFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_permission_success_dto.py b/src/visier_api_administration/test/test_servicing_permission_success_dto.py new file mode 100644 index 0000000000..90da2fdee0 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_permission_success_dto import ServicingPermissionSuccessDTO + +class TestServicingPermissionSuccessDTO(unittest.TestCase): + """ServicingPermissionSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPermissionSuccessDTO: + """Test ServicingPermissionSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPermissionSuccessDTO( + display_name = '', + permission_id = '' + ) + else: + return ServicingPermissionSuccessDTO( + ) + + def testServicingPermissionSuccessDTO(self): + """Test ServicingPermissionSuccessDTO""" + def validate_instance(instance): + ServicingPermissionSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPermissionSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_production_version_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_production_version_api_operation_request_dto.py new file mode 100644 index 0000000000..f2331fab04 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_production_version_api_operation_request_dto import ServicingProductionVersionAPIOperationRequestDTO + +class TestServicingProductionVersionAPIOperationRequestDTO(unittest.TestCase): + """ServicingProductionVersionAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProductionVersionAPIOperationRequestDTO: + """Test ServicingProductionVersionAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProductionVersionAPIOperationRequestDTO( + operation = 'unknownProductionVersionAPIOperation' + ) + else: + return ServicingProductionVersionAPIOperationRequestDTO( + ) + + def testServicingProductionVersionAPIOperationRequestDTO(self): + """Test ServicingProductionVersionAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingProductionVersionAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProductionVersionAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_production_version_api_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_production_version_api_operation_response_dto.py new file mode 100644 index 0000000000..3159cfd76a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_production_version_api_operation_response_dto import ServicingProductionVersionAPIOperationResponseDTO + +class TestServicingProductionVersionAPIOperationResponseDTO(unittest.TestCase): + """ServicingProductionVersionAPIOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProductionVersionAPIOperationResponseDTO: + """Test ServicingProductionVersionAPIOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProductionVersionAPIOperationResponseDTO( + roll_back_to = visier_api_administration.models.servicing/project_dto.servicing.ProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56, ) + ) + else: + return ServicingProductionVersionAPIOperationResponseDTO( + ) + + def testServicingProductionVersionAPIOperationResponseDTO(self): + """Test ServicingProductionVersionAPIOperationResponseDTO""" + def validate_instance(instance): + ServicingProductionVersionAPIOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProductionVersionAPIOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_production_versions_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_production_versions_api_operation_request_dto.py new file mode 100644 index 0000000000..24db5c24c9 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_production_versions_api_operation_request_dto import ServicingProductionVersionsAPIOperationRequestDTO + +class TestServicingProductionVersionsAPIOperationRequestDTO(unittest.TestCase): + """ServicingProductionVersionsAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProductionVersionsAPIOperationRequestDTO: + """Test ServicingProductionVersionsAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProductionVersionsAPIOperationRequestDTO( + export_parameters = visier_api_administration.models.servicing/export_production_versions_api_operation_parameters_dto.servicing.ExportProductionVersionsAPIOperationParametersDTO( + end_version = '', + excluded_versions = [ + '' + ], + start_version = '', ), + operation = 'unknownProductionVersionsAPIOperation' + ) + else: + return ServicingProductionVersionsAPIOperationRequestDTO( + ) + + def testServicingProductionVersionsAPIOperationRequestDTO(self): + """Test ServicingProductionVersionsAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingProductionVersionsAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProductionVersionsAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_production_versions_api_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_production_versions_api_operation_response_dto.py new file mode 100644 index 0000000000..06334194fb --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_production_versions_api_operation_response_dto import ServicingProductionVersionsAPIOperationResponseDTO + +class TestServicingProductionVersionsAPIOperationResponseDTO(unittest.TestCase): + """ServicingProductionVersionsAPIOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProductionVersionsAPIOperationResponseDTO: + """Test ServicingProductionVersionsAPIOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProductionVersionsAPIOperationResponseDTO( + export = None + ) + else: + return ServicingProductionVersionsAPIOperationResponseDTO( + ) + + def testServicingProductionVersionsAPIOperationResponseDTO(self): + """Test ServicingProductionVersionsAPIOperationResponseDTO""" + def validate_instance(instance): + ServicingProductionVersionsAPIOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProductionVersionsAPIOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/test/test_servicing_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..1750ecda79 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_profile_assigned_for_accessible_tenant_dto import ServicingProfileAssignedForAccessibleTenantDTO + +class TestServicingProfileAssignedForAccessibleTenantDTO(unittest.TestCase): + """ServicingProfileAssignedForAccessibleTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProfileAssignedForAccessibleTenantDTO: + """Test ServicingProfileAssignedForAccessibleTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProfileAssignedForAccessibleTenantDTO( + display_name = '', + for_all_children = True, + profile_id = '', + tenant_code = '', + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingProfileAssignedForAccessibleTenantDTO( + ) + + def testServicingProfileAssignedForAccessibleTenantDTO(self): + """Test ServicingProfileAssignedForAccessibleTenantDTO""" + def validate_instance(instance): + ServicingProfileAssignedForAccessibleTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProfileAssignedForAccessibleTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..365e931c36 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_profile_assigned_for_local_tenant_dto import ServicingProfileAssignedForLocalTenantDTO + +class TestServicingProfileAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingProfileAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProfileAssignedForLocalTenantDTO: + """Test ServicingProfileAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProfileAssignedForLocalTenantDTO( + additional_capabilities = visier_api_administration.models.servicing/additional_capabilities_dto.servicing.AdditionalCapabilitiesDTO( + additional_capabilities = [ + '' + ], ), + capabilities = [ + visier_api_administration.models.servicing/capabilities_dto.servicing.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '' + ) + else: + return ServicingProfileAssignedForLocalTenantDTO( + ) + + def testServicingProfileAssignedForLocalTenantDTO(self): + """Test ServicingProfileAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingProfileAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProfileAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_profile_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_profile_get_api_response_dto.py new file mode 100644 index 0000000000..a7f2df1235 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_profile_get_api_response_dto import ServicingProfileGetAPIResponseDTO + +class TestServicingProfileGetAPIResponseDTO(unittest.TestCase): + """ServicingProfileGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProfileGetAPIResponseDTO: + """Test ServicingProfileGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProfileGetAPIResponseDTO( + additional_capabilities = [ + '' + ], + capabilities = [ + visier_api_administration.models.servicing/capabilities_dto.servicing.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '' + ) + else: + return ServicingProfileGetAPIResponseDTO( + ) + + def testServicingProfileGetAPIResponseDTO(self): + """Test ServicingProfileGetAPIResponseDTO""" + def validate_instance(instance): + ServicingProfileGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProfileGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_profiles_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_profiles_get_api_response_dto.py new file mode 100644 index 0000000000..22b079dd42 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_profiles_get_api_response_dto import ServicingProfilesGetAPIResponseDTO + +class TestServicingProfilesGetAPIResponseDTO(unittest.TestCase): + """ServicingProfilesGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProfilesGetAPIResponseDTO: + """Test ServicingProfilesGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProfilesGetAPIResponseDTO( + profiles = [ + visier_api_administration.models.servicing/profile_get_api_response_dto.servicing.ProfileGetAPIResponseDTO( + additional_capabilities = [ + '' + ], + capabilities = [ + visier_api_administration.models.servicing/capabilities_dto.servicing.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', ) + ] + ) + else: + return ServicingProfilesGetAPIResponseDTO( + ) + + def testServicingProfilesGetAPIResponseDTO(self): + """Test ServicingProfilesGetAPIResponseDTO""" + def validate_instance(instance): + ServicingProfilesGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProfilesGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_project_commits_api_response_dto.py b/src/visier_api_administration/test/test_servicing_project_commits_api_response_dto.py new file mode 100644 index 0000000000..6afc61844a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_project_commits_api_response_dto import ServicingProjectCommitsAPIResponseDTO + +class TestServicingProjectCommitsAPIResponseDTO(unittest.TestCase): + """ServicingProjectCommitsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProjectCommitsAPIResponseDTO: + """Test ServicingProjectCommitsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProjectCommitsAPIResponseDTO( + commits = [ + visier_api_administration.models.servicing/commit_dto.servicing.CommitDTO( + description = '', + id = '', + name = '', ) + ] + ) + else: + return ServicingProjectCommitsAPIResponseDTO( + ) + + def testServicingProjectCommitsAPIResponseDTO(self): + """Test ServicingProjectCommitsAPIResponseDTO""" + def validate_instance(instance): + ServicingProjectCommitsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProjectCommitsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_project_dto.py b/src/visier_api_administration/test/test_servicing_project_dto.py new file mode 100644 index 0000000000..7b28fe5730 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_project_dto import ServicingProjectDTO + +class TestServicingProjectDTO(unittest.TestCase): + """ServicingProjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProjectDTO: + """Test ServicingProjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProjectDTO( + capabilities = [ + 'canRead' + ], + description = '', + id = '', + name = '', + release_version = '', + ticket_number = '', + version_number = 56 + ) + else: + return ServicingProjectDTO( + ) + + def testServicingProjectDTO(self): + """Test ServicingProjectDTO""" + def validate_instance(instance): + ServicingProjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_project_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_project_operation_request_dto.py new file mode 100644 index 0000000000..fa7bee1013 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_project_operation_request_dto import ServicingProjectOperationRequestDTO + +class TestServicingProjectOperationRequestDTO(unittest.TestCase): + """ServicingProjectOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProjectOperationRequestDTO: + """Test ServicingProjectOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProjectOperationRequestDTO( + operation = 'unknown' + ) + else: + return ServicingProjectOperationRequestDTO( + ) + + def testServicingProjectOperationRequestDTO(self): + """Test ServicingProjectOperationRequestDTO""" + def validate_instance(instance): + ServicingProjectOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProjectOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_project_operation_response_dto.py b/src/visier_api_administration/test/test_servicing_project_operation_response_dto.py new file mode 100644 index 0000000000..0887767c3e --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_project_operation_response_dto import ServicingProjectOperationResponseDTO + +class TestServicingProjectOperationResponseDTO(unittest.TestCase): + """ServicingProjectOperationResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingProjectOperationResponseDTO: + """Test ServicingProjectOperationResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingProjectOperationResponseDTO( + commit_and_publish = visier_api_administration.models.servicing/commit_and_publish_operation_response_dto.servicing.CommitAndPublishOperationResponseDTO( + published_version = None, ) + ) + else: + return ServicingProjectOperationResponseDTO( + ) + + def testServicingProjectOperationResponseDTO(self): + """Test ServicingProjectOperationResponseDTO""" + def validate_instance(instance): + ServicingProjectOperationResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingProjectOperationResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_property_access_config_dto.py b/src/visier_api_administration/test/test_servicing_property_access_config_dto.py new file mode 100644 index 0000000000..dd8daf5a87 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_property_access_config_dto import ServicingPropertyAccessConfigDTO + +class TestServicingPropertyAccessConfigDTO(unittest.TestCase): + """ServicingPropertyAccessConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPropertyAccessConfigDTO: + """Test ServicingPropertyAccessConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPropertyAccessConfigDTO( + access_level = 'None', + analytic_object_id = '', + analytic_object_reference_paths = [ + '' + ], + property_id = '', + property_status = 'Unset' + ) + else: + return ServicingPropertyAccessConfigDTO( + ) + + def testServicingPropertyAccessConfigDTO(self): + """Test ServicingPropertyAccessConfigDTO""" + def validate_instance(instance): + ServicingPropertyAccessConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPropertyAccessConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_property_set_config_dto.py b/src/visier_api_administration/test/test_servicing_property_set_config_dto.py new file mode 100644 index 0000000000..2b4bd8f131 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_property_set_config_dto import ServicingPropertySetConfigDTO + +class TestServicingPropertySetConfigDTO(unittest.TestCase): + """ServicingPropertySetConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingPropertySetConfigDTO: + """Test ServicingPropertySetConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingPropertySetConfigDTO( + property_access_configs = [ + visier_api_administration.models.servicing/property_access_config_dto.servicing.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/shareable_data_access_set.servicing.ShareableDataAccessSet( + data_access_set_id = '', ) + ) + else: + return ServicingPropertySetConfigDTO( + ) + + def testServicingPropertySetConfigDTO(self): + """Test ServicingPropertySetConfigDTO""" + def validate_instance(instance): + ServicingPropertySetConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingPropertySetConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 deleted file mode 100644 index 3b8457a423..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 8b9265cdb9..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2a36696dc0..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 62dee5cb4a..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 5997835c1c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 219ab2f283..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d7124b08a7..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bc7bcd9095..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 1c6d7454b6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 111e677a48..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a977503f3b..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a8b8b074cd..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index cda3ea03f8..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 03d98191c1..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d01270e971..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 5f1a3311a1..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7a5aa1f66c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 69d608ee84..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d689eb236f..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 418a94d50a..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0e06b5b6ad..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index df4301c47b..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c23d8213dd..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c8aa430b7a..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 5d088b603e..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 369c478c2f..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e4eed93a03..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 488c872d03..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 5b8f2dfdeb..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d9f16f082b..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2425735ebd..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index d3469954fc..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 953b11e2b6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 8533a725ca..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 16ee3ebc45..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3f062b2a19..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 097c5a586c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 13b120d587..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index c4a1d9a8f9..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 92a39004f5..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index b81ebff749..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 30eb391678..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 39ab9bd9aa..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bc1eeceed4..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3ec2c8482c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 23ae5ba4fc..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 6df0e31314..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3d0bc7f7aa..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 539e9f8adc..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index f0ec9651d8..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0dfd2f6c2d..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7352fd6a0c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 70dd1a5478..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index db8f0d3fe2..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index edddaf7599..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index b8c3e65687..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 59c1caaf29..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 39036a22c2..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bfdcfc9eed..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bf342181d7..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 56879919fa..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index ba85600895..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 378c982b32..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0adb2bed68..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0cabded1b1..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index e155ca7869..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 90175bd91c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 33446bbffa..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 4f60140734..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 90b8afdc3d..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index b00e3ef6e6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2288045d95..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 0df0755524..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 618785fdc1..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index f37ae967f9..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 546550acfe..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3af6f2d6d7..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3765575d03..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3301ac6726..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 38412ae7ee..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 801dc2ad9a..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 34c4996bf7..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 740a11d0d8..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index b39a4eb258..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 6e8fe634a6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index ba93f5b17f..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a33a253ca8..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 39765e0b60..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 2d3ea291af..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 524f3c442d..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3d5ab9e550..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 7ada161ada..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index ea51a20ec7..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 89a490902c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bb4a722a5e..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 1478f68ca6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 3b1fbf959c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a8c88920f6..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 9b8bebbfad..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 958c001a8c..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index bfebe85635..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index df210c7ecb..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index eab1511f41..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 26a11f50bf..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 894a26a7be..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index a11c9b3b78..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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 deleted file mode 100644 index 92b08080e0..0000000000 --- a/src/visier_api_administration/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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_servicing_reduced_error_dto.py b/src/visier_api_administration/test/test_servicing_reduced_error_dto.py new file mode 100644 index 0000000000..20b80ce820 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_reduced_error_dto import ServicingReducedErrorDTO + +class TestServicingReducedErrorDTO(unittest.TestCase): + """ServicingReducedErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingReducedErrorDTO: + """Test ServicingReducedErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingReducedErrorDTO( + error_message = '' + ) + else: + return ServicingReducedErrorDTO( + ) + + def testServicingReducedErrorDTO(self): + """Test ServicingReducedErrorDTO""" + def validate_instance(instance): + ServicingReducedErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingReducedErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_reduced_tenant_code_error_dto.py b/src/visier_api_administration/test/test_servicing_reduced_tenant_code_error_dto.py new file mode 100644 index 0000000000..9a8b9fed1f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_reduced_tenant_code_error_dto import ServicingReducedTenantCodeErrorDTO + +class TestServicingReducedTenantCodeErrorDTO(unittest.TestCase): + """ServicingReducedTenantCodeErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingReducedTenantCodeErrorDTO: + """Test ServicingReducedTenantCodeErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingReducedTenantCodeErrorDTO( + error = visier_api_administration.models.servicing/reduced_error_dto.servicing.ReducedErrorDTO( + error_message = '', ), + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingReducedTenantCodeErrorDTO( + ) + + def testServicingReducedTenantCodeErrorDTO(self): + """Test ServicingReducedTenantCodeErrorDTO""" + def validate_instance(instance): + ServicingReducedTenantCodeErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingReducedTenantCodeErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_reduced_user_id_error_dto.py b/src/visier_api_administration/test/test_servicing_reduced_user_id_error_dto.py new file mode 100644 index 0000000000..3d9feb0428 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_reduced_user_id_error_dto import ServicingReducedUserIdErrorDTO + +class TestServicingReducedUserIdErrorDTO(unittest.TestCase): + """ServicingReducedUserIdErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingReducedUserIdErrorDTO: + """Test ServicingReducedUserIdErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingReducedUserIdErrorDTO( + error = visier_api_administration.models.servicing/reduced_error_dto.servicing.ReducedErrorDTO( + error_message = '', ), + user_id = '' + ) + else: + return ServicingReducedUserIdErrorDTO( + ) + + def testServicingReducedUserIdErrorDTO(self): + """Test ServicingReducedUserIdErrorDTO""" + def validate_instance(instance): + ServicingReducedUserIdErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingReducedUserIdErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_related_analytic_object_dto.py b/src/visier_api_administration/test/test_servicing_related_analytic_object_dto.py new file mode 100644 index 0000000000..feab8deddf --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_related_analytic_object_dto import ServicingRelatedAnalyticObjectDTO + +class TestServicingRelatedAnalyticObjectDTO(unittest.TestCase): + """ServicingRelatedAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingRelatedAnalyticObjectDTO: + """Test ServicingRelatedAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingRelatedAnalyticObjectDTO( + analytic_object_id = '', + display_name = '' + ) + else: + return ServicingRelatedAnalyticObjectDTO( + ) + + def testServicingRelatedAnalyticObjectDTO(self): + """Test ServicingRelatedAnalyticObjectDTO""" + def validate_instance(instance): + ServicingRelatedAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = ServicingRelatedAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_role_modules_config_dto.py b/src/visier_api_administration/test/test_servicing_role_modules_config_dto.py new file mode 100644 index 0000000000..baff4b3351 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_role_modules_config_dto import ServicingRoleModulesConfigDTO + +class TestServicingRoleModulesConfigDTO(unittest.TestCase): + """ServicingRoleModulesConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingRoleModulesConfigDTO: + """Test ServicingRoleModulesConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingRoleModulesConfigDTO( + content_package_ids = [ + '' + ] + ) + else: + return ServicingRoleModulesConfigDTO( + ) + + def testServicingRoleModulesConfigDTO(self): + """Test ServicingRoleModulesConfigDTO""" + def validate_instance(instance): + ServicingRoleModulesConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingRoleModulesConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_securable_dimension_dto.py b/src/visier_api_administration/test/test_servicing_securable_dimension_dto.py new file mode 100644 index 0000000000..648ad0416b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_securable_dimension_dto import ServicingSecurableDimensionDTO + +class TestServicingSecurableDimensionDTO(unittest.TestCase): + """ServicingSecurableDimensionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSecurableDimensionDTO: + """Test ServicingSecurableDimensionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSecurableDimensionDTO( + analytic_object_ids = [ + '' + ], + dimension_id = '', + display_name = '', + hierarchy_properties = [ + visier_api_administration.models.servicing/hierarchy_property_dto.servicing.HierarchyPropertyDTO( + display_name = '', + hierarchy_property_id = '', ) + ] + ) + else: + return ServicingSecurableDimensionDTO( + ) + + def testServicingSecurableDimensionDTO(self): + """Test ServicingSecurableDimensionDTO""" + def validate_instance(instance): + ServicingSecurableDimensionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSecurableDimensionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_securable_property_dto.py b/src/visier_api_administration/test/test_servicing_securable_property_dto.py new file mode 100644 index 0000000000..d213d5866f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_securable_property_dto import ServicingSecurablePropertyDTO + +class TestServicingSecurablePropertyDTO(unittest.TestCase): + """ServicingSecurablePropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSecurablePropertyDTO: + """Test ServicingSecurablePropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSecurablePropertyDTO( + analytic_object_id = '', + display_name = '', + is_primary_key = True, + property_id = '', + reference_symbol_name = '' + ) + else: + return ServicingSecurablePropertyDTO( + ) + + def testServicingSecurablePropertyDTO(self): + """Test ServicingSecurablePropertyDTO""" + def validate_instance(instance): + ServicingSecurablePropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSecurablePropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_shareable_data_access_set.py b/src/visier_api_administration/test/test_servicing_shareable_data_access_set.py new file mode 100644 index 0000000000..d9e106540f --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_shareable_data_access_set import ServicingShareableDataAccessSet + +class TestServicingShareableDataAccessSet(unittest.TestCase): + """ServicingShareableDataAccessSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingShareableDataAccessSet: + """Test ServicingShareableDataAccessSet + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingShareableDataAccessSet( + data_access_set_id = '' + ) + else: + return ServicingShareableDataAccessSet( + ) + + def testServicingShareableDataAccessSet(self): + """Test ServicingShareableDataAccessSet""" + def validate_instance(instance): + ServicingShareableDataAccessSet.model_validate(inst_req_only) + instance_deserialized = ServicingShareableDataAccessSet.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_sources_api_operation_request_dto.py b/src/visier_api_administration/test/test_servicing_sources_api_operation_request_dto.py new file mode 100644 index 0000000000..05f138e74b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_sources_api_operation_request_dto import ServicingSourcesAPIOperationRequestDTO + +class TestServicingSourcesAPIOperationRequestDTO(unittest.TestCase): + """ServicingSourcesAPIOperationRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSourcesAPIOperationRequestDTO: + """Test ServicingSourcesAPIOperationRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSourcesAPIOperationRequestDTO( + operation = 'unknownSourcesAPIOperation' + ) + else: + return ServicingSourcesAPIOperationRequestDTO( + ) + + def testServicingSourcesAPIOperationRequestDTO(self): + """Test ServicingSourcesAPIOperationRequestDTO""" + def validate_instance(instance): + ServicingSourcesAPIOperationRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSourcesAPIOperationRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_static_dimension_filter_dto.py b/src/visier_api_administration/test/test_servicing_static_dimension_filter_dto.py new file mode 100644 index 0000000000..9eaec9e025 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_static_dimension_filter_dto import ServicingStaticDimensionFilterDTO + +class TestServicingStaticDimensionFilterDTO(unittest.TestCase): + """ServicingStaticDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingStaticDimensionFilterDTO: + """Test ServicingStaticDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingStaticDimensionFilterDTO( + dimension_id = '', + dimension_status = 'Unset', + member_selections = [ + visier_api_administration.models.servicing/member_selection_dto.servicing.MemberSelectionDTO( + dimension_member_status = 'Unset', + excluded = True, + name_path = [ + '' + ], ) + ], + subject_reference_path = [ + '' + ] + ) + else: + return ServicingStaticDimensionFilterDTO( + ) + + def testServicingStaticDimensionFilterDTO(self): + """Test ServicingStaticDimensionFilterDTO""" + def validate_instance(instance): + ServicingStaticDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = ServicingStaticDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_successful_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..3e75251696 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_successful_accessible_tenant_profile_assignment_dto import ServicingSuccessfulAccessibleTenantProfileAssignmentDTO + +class TestServicingSuccessfulAccessibleTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingSuccessfulAccessibleTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSuccessfulAccessibleTenantProfileAssignmentDTO: + """Test ServicingSuccessfulAccessibleTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSuccessfulAccessibleTenantProfileAssignmentDTO( + for_all_children = True, + tenant_code = '', + user_id = '' + ) + else: + return ServicingSuccessfulAccessibleTenantProfileAssignmentDTO( + ) + + def testServicingSuccessfulAccessibleTenantProfileAssignmentDTO(self): + """Test ServicingSuccessfulAccessibleTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingSuccessfulAccessibleTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSuccessfulAccessibleTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/test/test_servicing_successful_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..2d37ecd915 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO + +class TestServicingSuccessfulLocalTenantProfileAssignmentDTO(unittest.TestCase): + """ServicingSuccessfulLocalTenantProfileAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSuccessfulLocalTenantProfileAssignmentDTO: + """Test ServicingSuccessfulLocalTenantProfileAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSuccessfulLocalTenantProfileAssignmentDTO( + user_id = '' + ) + else: + return ServicingSuccessfulLocalTenantProfileAssignmentDTO( + ) + + def testServicingSuccessfulLocalTenantProfileAssignmentDTO(self): + """Test ServicingSuccessfulLocalTenantProfileAssignmentDTO""" + def validate_instance(instance): + ServicingSuccessfulLocalTenantProfileAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSuccessfulLocalTenantProfileAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_target_tenant_code_dto.py b/src/visier_api_administration/test/test_servicing_target_tenant_code_dto.py new file mode 100644 index 0000000000..47d9685dc4 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_target_tenant_code_dto import ServicingTargetTenantCodeDTO + +class TestServicingTargetTenantCodeDTO(unittest.TestCase): + """ServicingTargetTenantCodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTargetTenantCodeDTO: + """Test ServicingTargetTenantCodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTargetTenantCodeDTO( + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingTargetTenantCodeDTO( + ) + + def testServicingTargetTenantCodeDTO(self): + """Test ServicingTargetTenantCodeDTO""" + def validate_instance(instance): + ServicingTargetTenantCodeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTargetTenantCodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_tenant_code_error_dto.py b/src/visier_api_administration/test/test_servicing_tenant_code_error_dto.py new file mode 100644 index 0000000000..d136846cdd --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_tenant_code_error_dto import ServicingTenantCodeErrorDTO + +class TestServicingTenantCodeErrorDTO(unittest.TestCase): + """ServicingTenantCodeErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantCodeErrorDTO: + """Test ServicingTenantCodeErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantCodeErrorDTO( + error = visier_api_administration.models.servicing/error_dto.servicing.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + for_all_children = True, + tenant_code = '' + ) + else: + return ServicingTenantCodeErrorDTO( + ) + + def testServicingTenantCodeErrorDTO(self): + """Test ServicingTenantCodeErrorDTO""" + def validate_instance(instance): + ServicingTenantCodeErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantCodeErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_creation_api_request_dto.py b/src/visier_api_administration/test/test_servicing_user_creation_api_request_dto.py new file mode 100644 index 0000000000..b36399da17 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_creation_api_request_dto import ServicingUserCreationAPIRequestDTO + +class TestServicingUserCreationAPIRequestDTO(unittest.TestCase): + """ServicingUserCreationAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserCreationAPIRequestDTO: + """Test ServicingUserCreationAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserCreationAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + username = '' + ) + else: + return ServicingUserCreationAPIRequestDTO( + ) + + def testServicingUserCreationAPIRequestDTO(self): + """Test ServicingUserCreationAPIRequestDTO""" + def validate_instance(instance): + ServicingUserCreationAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserCreationAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_get_api_response_dto.py b/src/visier_api_administration/test/test_servicing_user_get_api_response_dto.py new file mode 100644 index 0000000000..46e6211e3b --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_get_api_response_dto import ServicingUserGetAPIResponseDTO + +class TestServicingUserGetAPIResponseDTO(unittest.TestCase): + """ServicingUserGetAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserGetAPIResponseDTO: + """Test ServicingUserGetAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserGetAPIResponseDTO( + account_enabled = True, + display_name = '', + email = '', + employee_id = '', + last_login = visier_api_administration.models.servicing/last_login_dto.servicing.LastLoginDTO( + timestamp = '', ), + permissions = visier_api_administration.models.servicing/all_permissions_assigned_for_local_tenant_dto.servicing.AllPermissionsAssignedForLocalTenantDTO( + assigned_permissions = [ + visier_api_administration.models.servicing/permission_assigned_for_local_tenant_dto.servicing.PermissionAssignedForLocalTenantDTO( + description = '', + display_name = '', + permission_id = '', ) + ], ), + profiles = visier_api_administration.models.servicing/all_profile_assigned_for_local_tenant_dto.servicing.AllProfileAssignedForLocalTenantDTO( + assigned_profiles = [ + visier_api_administration.models.servicing/profile_assigned_for_local_tenant_dto.servicing.ProfileAssignedForLocalTenantDTO( + additional_capabilities = None, + capabilities = [ + visier_api_administration.models.servicing/capabilities_dto.servicing.CapabilitiesDTO( + access_level = '', + capability = '', + view_level = '', ) + ], + display_name = '', + profile_id = '', + validity_end_time = '', + validity_start_time = '', ) + ], ), + user_groups = visier_api_administration.models.servicing/all_user_groups_assigned_for_local_tenant_dto.servicing.AllUserGroupsAssignedForLocalTenantDTO( + assigned_user_groups = [ + visier_api_administration.models.servicing/user_group_assigned_for_local_tenant_dto.servicing.UserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '', ) + ], ), + user_id = '', + username = '' + ) + else: + return ServicingUserGetAPIResponseDTO( + ) + + def testServicingUserGetAPIResponseDTO(self): + """Test ServicingUserGetAPIResponseDTO""" + def validate_instance(instance): + ServicingUserGetAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserGetAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/test/test_servicing_user_group_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..769d55ae54 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_group_assigned_for_local_tenant_dto import ServicingUserGroupAssignedForLocalTenantDTO + +class TestServicingUserGroupAssignedForLocalTenantDTO(unittest.TestCase): + """ServicingUserGroupAssignedForLocalTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserGroupAssignedForLocalTenantDTO: + """Test ServicingUserGroupAssignedForLocalTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserGroupAssignedForLocalTenantDTO( + display_name = '', + user_group_id = '' + ) + else: + return ServicingUserGroupAssignedForLocalTenantDTO( + ) + + def testServicingUserGroupAssignedForLocalTenantDTO(self): + """Test ServicingUserGroupAssignedForLocalTenantDTO""" + def validate_instance(instance): + ServicingUserGroupAssignedForLocalTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserGroupAssignedForLocalTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_id_error_dto.py b/src/visier_api_administration/test/test_servicing_user_id_error_dto.py new file mode 100644 index 0000000000..85a802cf3a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_id_error_dto import ServicingUserIdErrorDTO + +class TestServicingUserIdErrorDTO(unittest.TestCase): + """ServicingUserIdErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserIdErrorDTO: + """Test ServicingUserIdErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserIdErrorDTO( + error = visier_api_administration.models.servicing/error_dto.servicing.ErrorDTO( + error_code = '', + error_message = '', + root_cause_id = '', ), + user_id = '' + ) + else: + return ServicingUserIdErrorDTO( + ) + + def testServicingUserIdErrorDTO(self): + """Test ServicingUserIdErrorDTO""" + def validate_instance(instance): + ServicingUserIdErrorDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserIdErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_property_dto.py b/src/visier_api_administration/test/test_servicing_user_property_dto.py new file mode 100644 index 0000000000..a8a61c4d40 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_property_dto import ServicingUserPropertyDTO + +class TestServicingUserPropertyDTO(unittest.TestCase): + """ServicingUserPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserPropertyDTO: + """Test ServicingUserPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserPropertyDTO( + name = '' + ) + else: + return ServicingUserPropertyDTO( + ) + + def testServicingUserPropertyDTO(self): + """Test ServicingUserPropertyDTO""" + def validate_instance(instance): + ServicingUserPropertyDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_user_update_api_request_dto.py b/src/visier_api_administration/test/test_servicing_user_update_api_request_dto.py new file mode 100644 index 0000000000..b3955da983 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_user_update_api_request_dto import ServicingUserUpdateAPIRequestDTO + +class TestServicingUserUpdateAPIRequestDTO(unittest.TestCase): + """ServicingUserUpdateAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserUpdateAPIRequestDTO: + """Test ServicingUserUpdateAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserUpdateAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '' + ) + else: + return ServicingUserUpdateAPIRequestDTO( + ) + + def testServicingUserUpdateAPIRequestDTO(self): + """Test ServicingUserUpdateAPIRequestDTO""" + def validate_instance(instance): + ServicingUserUpdateAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserUpdateAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_api_error_message_dto.py b/src/visier_api_administration/test/test_servicing_users_api_error_message_dto.py new file mode 100644 index 0000000000..2115fe4e13 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_api_error_message_dto import ServicingUsersAPIErrorMessageDTO + +class TestServicingUsersAPIErrorMessageDTO(unittest.TestCase): + """ServicingUsersAPIErrorMessageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersAPIErrorMessageDTO: + """Test ServicingUsersAPIErrorMessageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersAPIErrorMessageDTO( + message = '', + rci = '' + ) + else: + return ServicingUsersAPIErrorMessageDTO( + ) + + def testServicingUsersAPIErrorMessageDTO(self): + """Test ServicingUsersAPIErrorMessageDTO""" + def validate_instance(instance): + ServicingUsersAPIErrorMessageDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersAPIErrorMessageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_api_failure_dto.py b/src/visier_api_administration/test/test_servicing_users_api_failure_dto.py new file mode 100644 index 0000000000..517a4c095a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_api_failure_dto import ServicingUsersAPIFailureDTO + +class TestServicingUsersAPIFailureDTO(unittest.TestCase): + """ServicingUsersAPIFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersAPIFailureDTO: + """Test ServicingUsersAPIFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersAPIFailureDTO( + display_name = '', + error = visier_api_administration.models.servicing/users_api_error_message_dto.servicing.UsersAPIErrorMessageDTO( + message = '', + rci = '', ), + user_id = '', + user_name = '' + ) + else: + return ServicingUsersAPIFailureDTO( + ) + + def testServicingUsersAPIFailureDTO(self): + """Test ServicingUsersAPIFailureDTO""" + def validate_instance(instance): + ServicingUsersAPIFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersAPIFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_api_response_dto.py b/src/visier_api_administration/test/test_servicing_users_api_response_dto.py new file mode 100644 index 0000000000..9f6dea4f76 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_api_response_dto import ServicingUsersAPIResponseDTO + +class TestServicingUsersAPIResponseDTO(unittest.TestCase): + """ServicingUsersAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersAPIResponseDTO: + """Test ServicingUsersAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersAPIResponseDTO( + failures = [ + visier_api_administration.models.servicing/users_api_failure_dto.servicing.UsersAPIFailureDTO( + display_name = '', + error = None, + user_id = '', + user_name = '', ) + ], + successes = [ + visier_api_administration.models.servicing/users_api_success_dto.servicing.UsersAPISuccessDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', + username = '', ) + ] + ) + else: + return ServicingUsersAPIResponseDTO( + ) + + def testServicingUsersAPIResponseDTO(self): + """Test ServicingUsersAPIResponseDTO""" + def validate_instance(instance): + ServicingUsersAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_api_success_dto.py b/src/visier_api_administration/test/test_servicing_users_api_success_dto.py new file mode 100644 index 0000000000..19407c2b4d --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_api_success_dto import ServicingUsersAPISuccessDTO + +class TestServicingUsersAPISuccessDTO(unittest.TestCase): + """ServicingUsersAPISuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersAPISuccessDTO: + """Test ServicingUsersAPISuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersAPISuccessDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', + username = '' + ) + else: + return ServicingUsersAPISuccessDTO( + ) + + def testServicingUsersAPISuccessDTO(self): + """Test ServicingUsersAPISuccessDTO""" + def validate_instance(instance): + ServicingUsersAPISuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersAPISuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_creation_api_request_dto.py b/src/visier_api_administration/test/test_servicing_users_creation_api_request_dto.py new file mode 100644 index 0000000000..2b5c4adaea --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_creation_api_request_dto import ServicingUsersCreationAPIRequestDTO + +class TestServicingUsersCreationAPIRequestDTO(unittest.TestCase): + """ServicingUsersCreationAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersCreationAPIRequestDTO: + """Test ServicingUsersCreationAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersCreationAPIRequestDTO( + users = [ + visier_api_administration.models.servicing/user_creation_api_request_dto.servicing.UserCreationAPIRequestDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + username = '', ) + ] + ) + else: + return ServicingUsersCreationAPIRequestDTO( + ) + + def testServicingUsersCreationAPIRequestDTO(self): + """Test ServicingUsersCreationAPIRequestDTO""" + def validate_instance(instance): + ServicingUsersCreationAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersCreationAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_delete_api_request_dto.py b/src/visier_api_administration/test/test_servicing_users_delete_api_request_dto.py new file mode 100644 index 0000000000..d7cdb64ecf --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_delete_api_request_dto import ServicingUsersDeleteAPIRequestDTO + +class TestServicingUsersDeleteAPIRequestDTO(unittest.TestCase): + """ServicingUsersDeleteAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersDeleteAPIRequestDTO: + """Test ServicingUsersDeleteAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersDeleteAPIRequestDTO( + user_ids = [ + '' + ] + ) + else: + return ServicingUsersDeleteAPIRequestDTO( + ) + + def testServicingUsersDeleteAPIRequestDTO(self): + """Test ServicingUsersDeleteAPIRequestDTO""" + def validate_instance(instance): + ServicingUsersDeleteAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersDeleteAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_update_api_request_dto.py b/src/visier_api_administration/test/test_servicing_users_update_api_request_dto.py new file mode 100644 index 0000000000..0ee6a1f13a --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_update_api_request_dto import ServicingUsersUpdateAPIRequestDTO + +class TestServicingUsersUpdateAPIRequestDTO(unittest.TestCase): + """ServicingUsersUpdateAPIRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersUpdateAPIRequestDTO: + """Test ServicingUsersUpdateAPIRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersUpdateAPIRequestDTO( + users = [ + visier_api_administration.models.servicing/users_update_api_user_dto.servicing.UsersUpdateAPIUserDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '', ) + ] + ) + else: + return ServicingUsersUpdateAPIRequestDTO( + ) + + def testServicingUsersUpdateAPIRequestDTO(self): + """Test ServicingUsersUpdateAPIRequestDTO""" + def validate_instance(instance): + ServicingUsersUpdateAPIRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersUpdateAPIRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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_users_update_api_user_dto.py b/src/visier_api_administration/test/test_servicing_users_update_api_user_dto.py new file mode 100644 index 0000000000..88cf3c24e1 --- /dev/null +++ b/src/visier_api_administration/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_users_update_api_user_dto import ServicingUsersUpdateAPIUserDTO + +class TestServicingUsersUpdateAPIUserDTO(unittest.TestCase): + """ServicingUsersUpdateAPIUserDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUsersUpdateAPIUserDTO: + """Test ServicingUsersUpdateAPIUserDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUsersUpdateAPIUserDTO( + account_enabled = '', + display_name = '', + email = '', + employee_id = '', + user_id = '' + ) + else: + return ServicingUsersUpdateAPIUserDTO( + ) + + def testServicingUsersUpdateAPIUserDTO(self): + """Test ServicingUsersUpdateAPIUserDTO""" + def validate_instance(instance): + ServicingUsersUpdateAPIUserDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUsersUpdateAPIUserDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 cb74cf7e69..c5209c952d 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 093da6adf7..c1198d990e 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 8a2592fc30..cbf636b0ef 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/test/test_status.py b/src/visier_api_administration/test/test_status.py index e9136d8aad..1420cf2589 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 d9009b929e..262e8699d5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 deleted file mode 100644 index 24f2dbd550..0000000000 --- a/src/visier_api_administration/test/test_systemstatus_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to 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_systemstatus_system_status_dto.py b/src/visier_api_administration/test/test_systemstatus_system_status_dto.py new file mode 100644 index 0000000000..b037c4c8e3 --- /dev/null +++ b/src/visier_api_administration/test/test_systemstatus_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to 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_system_status_dto import SystemstatusSystemStatusDTO + +class TestSystemstatusSystemStatusDTO(unittest.TestCase): + """SystemstatusSystemStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SystemstatusSystemStatusDTO: + """Test SystemstatusSystemStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return SystemstatusSystemStatusDTO( + overall = '' + ) + else: + return SystemstatusSystemStatusDTO( + ) + + def testSystemstatusSystemStatusDTO(self): + """Test SystemstatusSystemStatusDTO""" + def validate_instance(instance): + SystemstatusSystemStatusDTO.model_validate(inst_req_only) + instance_deserialized = SystemstatusSystemStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_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 617a9661f6..efd4a695fa 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 1aade55523..76b6b5e596 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 52147de298..b4333a06f8 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 3e598d7413..4ea7f01d74 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 da07c6f60a..8d487f9ff5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 d3b4dc0ea3..e4ee0b9129 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 140097079c..6a17bfd4dd 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,12 +16,13 @@ """ # noqa: E501 -__version__ = "0.99201.1793" +__version__ = "0.99201.1830" # import apis into sdk package from visier_api_administration.api.consolidated_analytics_api import ConsolidatedAnalyticsApi from visier_api_administration.api.email_domains_api import EmailDomainsApi from visier_api_administration.api.encryption_keys_api import EncryptionKeysApi +from visier_api_administration.api.network_subnets_api import NetworkSubnetsApi from visier_api_administration.api.permissions_api import PermissionsApi from visier_api_administration.api.production_versions_api import ProductionVersionsApi from visier_api_administration.api.profiles_api import ProfilesApi @@ -36,184 +37,186 @@ # import models into sdk package +from visier_api_administration.models.admin_all_tenants_status_apidto import AdminAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_batch_tenant_provision_apidto import AdminBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_business_location_dto import AdminBusinessLocationDTO +from visier_api_administration.models.admin_consolidated_analytics_api_excluded_source_list_dto import AdminConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_source_tenant_list_dto import AdminConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_create_request_dto import AdminConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_list_response_dto import AdminConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_with_details import AdminConsolidatedAnalyticsAPITenantWithDetails +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO +from visier_api_administration.models.admin_custom_property_dto import AdminCustomPropertyDTO +from visier_api_administration.models.admin_custom_tenant_property_dto import AdminCustomTenantPropertyDTO from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request +from visier_api_administration.models.admin_element_ids_dto import AdminElementIDsDTO +from visier_api_administration.models.admin_email_domains_dto import AdminEmailDomainsDTO from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody +from visier_api_administration.models.admin_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO 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_network_subnets_message_request import AdminNetworkSubnetsMessageRequest +from visier_api_administration.models.admin_network_subnets_message_response import AdminNetworkSubnetsMessageResponse +from visier_api_administration.models.admin_permission_response_dto import AdminPermissionResponseDTO 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_permissions_to_user_group_for_tenant_dto import AdminPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_permissions_to_user_group_request_dto import AdminPermissionsToUserGroupRequestDTO +from visier_api_administration.models.admin_permissions_to_user_groups_request_dto import AdminPermissionsToUserGroupsRequestDTO from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest +from visier_api_administration.models.admin_security_assignment_response_dto import AdminSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_simple_user_dto import AdminSimpleUserDTO +from visier_api_administration.models.admin_target_project_for_tenant_dto import AdminTargetProjectForTenantDTO +from visier_api_administration.models.admin_target_project_for_tenants_list_dto import AdminTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_tenant_assignments_dto import AdminTenantAssignmentsDTO 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_tenant_detail_apidto import AdminTenantDetailAPIDTO +from visier_api_administration.models.admin_tenant_management_api_get_response_dto import AdminTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_tenant_management_api_list_response_dto import AdminTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_tenant_management_api_update_request_dto import AdminTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_tenant_management_api_update_response_dto import AdminTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_tenant_provision_apidto import AdminTenantProvisionAPIDTO +from visier_api_administration.models.admin_tenant_status_apidto import AdminTenantStatusAPIDTO from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel +from visier_api_administration.models.admin_user_group_change_definition_dto import AdminUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_user_group_change_dimension_filter_dto import AdminUserGroupChangeDimensionFilterDTO +from visier_api_administration.models.admin_user_group_change_failure_dto import AdminUserGroupChangeFailureDTO +from visier_api_administration.models.admin_user_group_change_filter_dto import AdminUserGroupChangeFilterDTO +from visier_api_administration.models.admin_user_group_change_member_selection_dto import AdminUserGroupChangeMemberSelectionDTO +from visier_api_administration.models.admin_user_group_change_response_dto import AdminUserGroupChangeResponseDTO +from visier_api_administration.models.admin_user_group_change_success_dto import AdminUserGroupChangeSuccessDTO +from visier_api_administration.models.admin_user_group_change_users_dto import AdminUserGroupChangeUsersDTO +from visier_api_administration.models.admin_user_group_delete_dto import AdminUserGroupDeleteDTO +from visier_api_administration.models.admin_user_group_delete_failure_dto import AdminUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_user_group_delete_response_dto import AdminUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_user_group_delete_success_dto import AdminUserGroupDeleteSuccessDTO +from visier_api_administration.models.admin_user_group_filters_dto import AdminUserGroupFiltersDTO +from visier_api_administration.models.admin_user_group_get_api_response_dto import AdminUserGroupGetAPIResponseDTO +from visier_api_administration.models.admin_user_group_single_delete_response_dto import AdminUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_user_groups_change_dto import AdminUserGroupsChangeDTO +from visier_api_administration.models.admin_user_groups_delete_request_dto import AdminUserGroupsDeleteRequestDTO +from visier_api_administration.models.admin_user_groups_get_api_response_dto import AdminUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_user_groups_users_dto import AdminUserGroupsUsersDTO +from visier_api_administration.models.admin_user_groups_users_for_tenant_dto import AdminUserGroupsUsersForTenantDTO +from visier_api_administration.models.admin_user_security_assignments_dto import AdminUserSecurityAssignmentsDTO +from visier_api_administration.models.admin_users_to_user_group_request_dto import AdminUsersToUserGroupRequestDTO +from visier_api_administration.models.admin_users_to_user_groups_request_dto import AdminUsersToUserGroupsRequestDTO 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.designer_module_settings_dto import DesignerModuleSettingsDTO +from visier_api_administration.models.designer_tenant_module_dto import DesignerTenantModuleDTO +from visier_api_administration.models.dp_automation_metric_validation_summary_dto import DpAutomationMetricValidationSummaryDTO +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_dto import DpAutomationTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_list_dto import DpAutomationTenantPreviewEntriesSummaryListDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_request_dto import ServicingAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_response_dto import ServicingAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_request_dto import ServicingAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_response_dto import ServicingAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_additional_capabilities_dto import ServicingAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_admin_capability_config_dto import ServicingAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_all_permissions_assigned_for_local_tenant_dto import ServicingAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_accessible_tenant_dto import ServicingAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_local_tenant_dto import ServicingAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_user_groups_assigned_for_local_tenant_dto import ServicingAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_users_get_api_response_dto import ServicingAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_analytic_object_dto import ServicingAnalyticObjectDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_permission_dto import ServicingAssignRevokePermissionByPermissionDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_tenant_dto import ServicingAssignRevokePermissionByTenantDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_user_dto import ServicingAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_assign_revoke_permission_request_dto import ServicingAssignRevokePermissionRequestDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_request_dto import ServicingAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_response_dto import ServicingAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_bulk_data_access_set_response_dto import ServicingBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_capabilities_dto import ServicingCapabilitiesDTO +from visier_api_administration.models.servicing_capability_dto import ServicingCapabilityDTO +from visier_api_administration.models.servicing_commit_and_publish_operation_response_dto import ServicingCommitAndPublishOperationResponseDTO +from visier_api_administration.models.servicing_commit_dto import ServicingCommitDTO +from visier_api_administration.models.servicing_content_package_dto import ServicingContentPackageDTO +from visier_api_administration.models.servicing_create_data_access_set_request_dto import ServicingCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_data_access_set_dto import ServicingDataAccessSetDTO +from visier_api_administration.models.servicing_data_access_set_error_dto import ServicingDataAccessSetErrorDTO +from visier_api_administration.models.servicing_data_access_set_failure_dto import ServicingDataAccessSetFailureDTO +from visier_api_administration.models.servicing_data_access_set_success_dto import ServicingDataAccessSetSuccessDTO +from visier_api_administration.models.servicing_data_security_profile_dto import ServicingDataSecurityProfileDTO +from visier_api_administration.models.servicing_delete_permissions_request_dto import ServicingDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_dimension_filter_dto import ServicingDimensionFilterDTO +from visier_api_administration.models.servicing_dynamic_dimension_filter_dto import ServicingDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_dynamic_property_mapping_dto import ServicingDynamicPropertyMappingDTO +from visier_api_administration.models.servicing_error_dto import ServicingErrorDTO +from visier_api_administration.models.servicing_export_production_versions_api_operation_parameters_dto import ServicingExportProductionVersionsAPIOperationParametersDTO +from visier_api_administration.models.servicing_failed_accessible_tenant_profile_assignment_dto import ServicingFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_failed_local_tenant_profile_assignment_dto import ServicingFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_failed_local_tenant_profile_revoke_dto import ServicingFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_get_capabilities_api_response_dto import ServicingGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_get_content_packages_api_response_dto import ServicingGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_get_data_access_sets_api_response_dto import ServicingGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_get_data_security_objects_api_response_dto import ServicingGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_get_permissions_api_response_dto import ServicingGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_get_production_versions_api_response_dto import ServicingGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_get_projects_api_response_dto import ServicingGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_hierarchy_property_dto import ServicingHierarchyPropertyDTO +from visier_api_administration.models.servicing_inherited_access_config_dto import ServicingInheritedAccessConfigDTO +from visier_api_administration.models.servicing_inherited_reference_member_filter_config_dto import ServicingInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_last_login_dto import ServicingLastLoginDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_request_dto import ServicingLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_response_dto import ServicingLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_request_dto import ServicingLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_response_dto import ServicingLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_member_filter_config_dto import ServicingMemberFilterConfigDTO +from visier_api_administration.models.servicing_member_selection_dto import ServicingMemberSelectionDTO +from visier_api_administration.models.servicing_permission_assigned_by_tenant_dto import ServicingPermissionAssignedByTenantDTO +from visier_api_administration.models.servicing_permission_assigned_for_local_tenant_dto import ServicingPermissionAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_permission_assigned_user_dto import ServicingPermissionAssignedUserDTO +from visier_api_administration.models.servicing_permission_assigned_users_dto import ServicingPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_permission_bulk_operation_response_dto import ServicingPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_permission_dto import ServicingPermissionDTO +from visier_api_administration.models.servicing_permission_error_dto import ServicingPermissionErrorDTO +from visier_api_administration.models.servicing_permission_failure_dto import ServicingPermissionFailureDTO +from visier_api_administration.models.servicing_permission_success_dto import ServicingPermissionSuccessDTO +from visier_api_administration.models.servicing_production_version_api_operation_request_dto import ServicingProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_version_api_operation_response_dto import ServicingProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_production_versions_api_operation_request_dto import ServicingProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_versions_api_operation_response_dto import ServicingProductionVersionsAPIOperationResponseDTO +from visier_api_administration.models.servicing_profile_assigned_for_accessible_tenant_dto import ServicingProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_profile_assigned_for_local_tenant_dto import ServicingProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_profile_get_api_response_dto import ServicingProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_profiles_get_api_response_dto import ServicingProfilesGetAPIResponseDTO +from visier_api_administration.models.servicing_project_commits_api_response_dto import ServicingProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_project_dto import ServicingProjectDTO +from visier_api_administration.models.servicing_project_operation_request_dto import ServicingProjectOperationRequestDTO +from visier_api_administration.models.servicing_project_operation_response_dto import ServicingProjectOperationResponseDTO +from visier_api_administration.models.servicing_property_access_config_dto import ServicingPropertyAccessConfigDTO +from visier_api_administration.models.servicing_property_set_config_dto import ServicingPropertySetConfigDTO +from visier_api_administration.models.servicing_reduced_error_dto import ServicingReducedErrorDTO +from visier_api_administration.models.servicing_reduced_tenant_code_error_dto import ServicingReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_reduced_user_id_error_dto import ServicingReducedUserIdErrorDTO +from visier_api_administration.models.servicing_related_analytic_object_dto import ServicingRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_role_modules_config_dto import ServicingRoleModulesConfigDTO +from visier_api_administration.models.servicing_securable_dimension_dto import ServicingSecurableDimensionDTO +from visier_api_administration.models.servicing_securable_property_dto import ServicingSecurablePropertyDTO +from visier_api_administration.models.servicing_shareable_data_access_set import ServicingShareableDataAccessSet +from visier_api_administration.models.servicing_sources_api_operation_request_dto import ServicingSourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_static_dimension_filter_dto import ServicingStaticDimensionFilterDTO +from visier_api_administration.models.servicing_successful_accessible_tenant_profile_assignment_dto import ServicingSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_target_tenant_code_dto import ServicingTargetTenantCodeDTO +from visier_api_administration.models.servicing_tenant_code_error_dto import ServicingTenantCodeErrorDTO +from visier_api_administration.models.servicing_user_creation_api_request_dto import ServicingUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_user_get_api_response_dto import ServicingUserGetAPIResponseDTO +from visier_api_administration.models.servicing_user_group_assigned_for_local_tenant_dto import ServicingUserGroupAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_user_id_error_dto import ServicingUserIdErrorDTO +from visier_api_administration.models.servicing_user_property_dto import ServicingUserPropertyDTO +from visier_api_administration.models.servicing_user_update_api_request_dto import ServicingUserUpdateAPIRequestDTO +from visier_api_administration.models.servicing_users_api_error_message_dto import ServicingUsersAPIErrorMessageDTO +from visier_api_administration.models.servicing_users_api_failure_dto import ServicingUsersAPIFailureDTO +from visier_api_administration.models.servicing_users_api_response_dto import ServicingUsersAPIResponseDTO +from visier_api_administration.models.servicing_users_api_success_dto import ServicingUsersAPISuccessDTO +from visier_api_administration.models.servicing_users_creation_api_request_dto import ServicingUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_users_delete_api_request_dto import ServicingUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_users_update_api_request_dto import ServicingUsersUpdateAPIRequestDTO +from visier_api_administration.models.servicing_users_update_api_user_dto import ServicingUsersUpdateAPIUserDTO from visier_api_administration.models.source_import_result_summary_dto import SourceImportResultSummaryDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO from visier_api_administration.models.status import Status -from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO +from visier_api_administration.models.systemstatus_system_status_dto import SystemstatusSystemStatusDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO diff --git a/src/visier_api_administration/visier_api_administration/api/__init__.py b/src/visier_api_administration/visier_api_administration/api/__init__.py index b1054f6dfc..f82cddf63b 100644 --- a/src/visier_api_administration/visier_api_administration/api/__init__.py +++ b/src/visier_api_administration/visier_api_administration/api/__init__.py @@ -4,6 +4,7 @@ from visier_api_administration.api.consolidated_analytics_api import ConsolidatedAnalyticsApi from visier_api_administration.api.email_domains_api import EmailDomainsApi from visier_api_administration.api.encryption_keys_api import EncryptionKeysApi +from visier_api_administration.api.network_subnets_api import NetworkSubnetsApi from visier_api_administration.api.permissions_api import PermissionsApi from visier_api_administration.api.production_versions_api import ProductionVersionsApi from visier_api_administration.api.profiles_api import ProfilesApi 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 179137c43e..747e0bec68 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.admin_consolidated_analytics_api_excluded_source_list_dto import AdminConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_source_tenant_list_dto import AdminConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_create_request_dto import AdminConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_list_response_dto import AdminConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO 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 @@ -62,7 +62,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminConsolidatedAnalyticsAPIExcludedSourceListDTO: """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). @@ -103,7 +103,7 @@ def add_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -134,7 +134,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPIExcludedSourceListDTO]: """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). @@ -175,7 +175,7 @@ def add_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -247,7 +247,7 @@ def add_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -356,7 +356,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminConsolidatedAnalyticsAPISourceTenantListDTO: """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). @@ -400,7 +400,7 @@ def add_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -432,7 +432,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPISourceTenantListDTO]: """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). @@ -476,7 +476,7 @@ def add_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -552,7 +552,7 @@ def add_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -651,7 +651,7 @@ def _add_source_tenants_serialize( @validate_call def create_tenant( self, - admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -664,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, - ) -> AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO: + ) -> AdminConsolidatedAnalyticsAPITenantCreateRequestDTO: """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 admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) - :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO :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 @@ -694,7 +694,7 @@ def create_tenant( """ # noqa: E501 _param = self._create_tenant_serialize( - admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, + admin_consolidated_analytics_api_tenant_create_request_dto=admin_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -702,7 +702,7 @@ def create_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -719,7 +719,7 @@ def create_tenant( @validate_call def create_tenant_with_http_info( self, - admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -732,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[AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPITenantCreateRequestDTO]: """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 admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) - :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO :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 @@ -762,7 +762,7 @@ def create_tenant_with_http_info( """ # noqa: E501 _param = self._create_tenant_serialize( - admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, + admin_consolidated_analytics_api_tenant_create_request_dto=admin_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -770,7 +770,7 @@ def create_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -787,7 +787,7 @@ def create_tenant_with_http_info( @validate_call def create_tenant_without_preload_content( self, - admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO, + admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -805,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 admin_transfers_consolidated_analytics_api_tenant_create_request_dto: (required) - :type admin_transfers_consolidated_analytics_api_tenant_create_request_dto: AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO + :param admin_consolidated_analytics_api_tenant_create_request_dto: (required) + :type admin_consolidated_analytics_api_tenant_create_request_dto: AdminConsolidatedAnalyticsAPITenantCreateRequestDTO :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 @@ -830,7 +830,7 @@ def create_tenant_without_preload_content( """ # noqa: E501 _param = self._create_tenant_serialize( - admin_transfers_consolidated_analytics_api_tenant_create_request_dto=admin_transfers_consolidated_analytics_api_tenant_create_request_dto, + admin_consolidated_analytics_api_tenant_create_request_dto=admin_consolidated_analytics_api_tenant_create_request_dto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -838,7 +838,7 @@ def create_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantCreateRequestDTO", + '200': "AdminConsolidatedAnalyticsAPITenantCreateRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -849,7 +849,7 @@ def create_tenant_without_preload_content( def _create_tenant_serialize( self, - admin_transfers_consolidated_analytics_api_tenant_create_request_dto, + admin_consolidated_analytics_api_tenant_create_request_dto, _request_auth, _content_type, _headers, @@ -873,8 +873,8 @@ def _create_tenant_serialize( # process the header parameters # process the form parameters # process the body parameter - if admin_transfers_consolidated_analytics_api_tenant_create_request_dto is not None: - _body_params = admin_transfers_consolidated_analytics_api_tenant_create_request_dto + if admin_consolidated_analytics_api_tenant_create_request_dto is not None: + _body_params = admin_consolidated_analytics_api_tenant_create_request_dto # set the HTTP header `Accept` @@ -942,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, - ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminConsolidatedAnalyticsAPIExcludedSourceListDTO: """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). @@ -980,7 +980,7 @@ def list_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -1010,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[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPIExcludedSourceListDTO]: """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). @@ -1048,7 +1048,7 @@ def list_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -1116,7 +1116,7 @@ def list_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -1209,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, - ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminConsolidatedAnalyticsAPISourceTenantListDTO: """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). @@ -1253,7 +1253,7 @@ def list_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1285,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[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPISourceTenantListDTO]: """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). @@ -1329,7 +1329,7 @@ def list_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1405,7 +1405,7 @@ def list_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -1507,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, - ) -> AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO: + ) -> AdminConsolidatedAnalyticsAPITenantListResponseDTO: """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). @@ -1548,7 +1548,7 @@ def list_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1579,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[AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPITenantListResponseDTO]: """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). @@ -1620,7 +1620,7 @@ def list_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1692,7 +1692,7 @@ def list_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1791,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, - ) -> AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: + ) -> AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO: """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). @@ -1832,7 +1832,7 @@ def list_tenants_with_details( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1863,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[AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO]: """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). @@ -1904,7 +1904,7 @@ def list_tenants_with_details_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1976,7 +1976,7 @@ def list_tenants_with_details_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", + '200': "AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2075,7 +2075,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminConsolidatedAnalyticsAPIExcludedSourceListDTO: """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). @@ -2116,7 +2116,7 @@ def remove_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2147,7 +2147,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPIExcludedSourceListDTO]: """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). @@ -2188,7 +2188,7 @@ def remove_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2260,7 +2260,7 @@ def remove_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2369,7 +2369,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminConsolidatedAnalyticsAPISourceTenantListDTO: """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). @@ -2413,7 +2413,7 @@ def remove_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2445,7 +2445,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPISourceTenantListDTO]: """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). @@ -2489,7 +2489,7 @@ def remove_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2565,7 +2565,7 @@ def remove_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -2678,7 +2678,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO: + ) -> AdminConsolidatedAnalyticsAPIExcludedSourceListDTO: """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). @@ -2719,7 +2719,7 @@ def set_excluded_sources( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2750,7 +2750,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPIExcludedSourceListDTO]: """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). @@ -2791,7 +2791,7 @@ def set_excluded_sources_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2863,7 +2863,7 @@ def set_excluded_sources_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPIExcludedSourceListDTO", + '200': "AdminConsolidatedAnalyticsAPIExcludedSourceListDTO", } response_data = self.api_client.call_api( *_param, @@ -2972,7 +2972,7 @@ 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, - ) -> AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO: + ) -> AdminConsolidatedAnalyticsAPISourceTenantListDTO: """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). @@ -3016,7 +3016,7 @@ def set_source_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -3048,7 +3048,7 @@ 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[AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO]: + ) -> ApiResponse[AdminConsolidatedAnalyticsAPISourceTenantListDTO]: """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). @@ -3092,7 +3092,7 @@ def set_source_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, @@ -3168,7 +3168,7 @@ def set_source_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersConsolidatedAnalyticsAPISourceTenantListDTO", + '200': "AdminConsolidatedAnalyticsAPISourceTenantListDTO", } response_data = self.api_client.call_api( *_param, 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 b1f84b7128..502dc83df4 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.admin_transfers_email_domains_dto import AdminTransfersEmailDomainsDTO +from visier_api_administration.models.admin_email_domains_dto import AdminEmailDomainsDTO 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, - ) -> AdminTransfersEmailDomainsDTO: + ) -> AdminEmailDomainsDTO: """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': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } 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[AdminTransfersEmailDomainsDTO]: + ) -> ApiResponse[AdminEmailDomainsDTO]: """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': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } 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': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -351,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, - ) -> AdminTransfersEmailDomainsDTO: + ) -> AdminEmailDomainsDTO: """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). @@ -392,7 +392,7 @@ def delete_allowed_email_domains( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -423,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[AdminTransfersEmailDomainsDTO]: + ) -> ApiResponse[AdminEmailDomainsDTO]: """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). @@ -464,7 +464,7 @@ def delete_allowed_email_domains_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -536,7 +536,7 @@ def delete_allowed_email_domains_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -644,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, - ) -> AdminTransfersEmailDomainsDTO: + ) -> AdminEmailDomainsDTO: """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). @@ -679,7 +679,7 @@ def list_allowed_email_domains( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -708,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[AdminTransfersEmailDomainsDTO]: + ) -> ApiResponse[AdminEmailDomainsDTO]: """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). @@ -743,7 +743,7 @@ def list_allowed_email_domains_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, @@ -807,7 +807,7 @@ def list_allowed_email_domains_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersEmailDomainsDTO", + '200': "AdminEmailDomainsDTO", } response_data = self.api_client.call_api( *_param, 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 0c37d0224c..47542011f5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -60,7 +60,7 @@ def delete_encryption_keys( ) -> 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). + Delete a specific encryption key.
**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 key_name: The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 3 and 36 characters long. (required) :type key_name: str @@ -128,7 +128,7 @@ def delete_encryption_keys_with_http_info( ) -> 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). + Delete a specific encryption key.
**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 key_name: The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 3 and 36 characters long. (required) :type key_name: str @@ -196,7 +196,7 @@ def delete_encryption_keys_without_preload_content( ) -> RESTResponseType: """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). + Delete a specific encryption key.
**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 key_name: The encryption key's display name. The name may only contain alphanumeric or dash (-) characters and must be between 3 and 36 characters long. (required) :type key_name: str @@ -325,7 +325,7 @@ def generate_encryption_keys( ) -> 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). + 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:** 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 designer_crypto_generate_key_request_dto: (required) :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO @@ -393,7 +393,7 @@ def generate_encryption_keys_with_http_info( ) -> 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). + 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:** 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 designer_crypto_generate_key_request_dto: (required) :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO @@ -461,7 +461,7 @@ def generate_encryption_keys_without_preload_content( ) -> RESTResponseType: """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). + 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:** 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 designer_crypto_generate_key_request_dto: (required) :type designer_crypto_generate_key_request_dto: DesignerCryptoGenerateKeyRequestDTO @@ -602,7 +602,7 @@ def list_all_encryption_keys_metadata( ) -> 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). + 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:** 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -666,7 +666,7 @@ def list_all_encryption_keys_metadata_with_http_info( ) -> 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). + 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:** 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -730,7 +730,7 @@ def list_all_encryption_keys_metadata_without_preload_content( ) -> RESTResponseType: """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). + 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:** 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request diff --git a/src/visier_api_administration/visier_api_administration/api/network_subnets_api.py b/src/visier_api_administration/visier_api_administration/api/network_subnets_api.py new file mode 100644 index 0000000000..597a914ac9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/api/network_subnets_api.py @@ -0,0 +1,1169 @@ +# coding: utf-8 + +""" + Visier Administration APIs + + Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.
**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from visier_api_core import ApiClient, ApiResponse, RequestSerialized, RESTResponseType + +from pydantic import Field, StrictStr +from typing import Optional +from typing_extensions import Annotated +from visier_api_administration.models.admin_network_subnets_message_request import AdminNetworkSubnetsMessageRequest +from visier_api_administration.models.admin_network_subnets_message_response import AdminNetworkSubnetsMessageResponse +import visier_api_administration.models + + +class NetworkSubnetsApi: + """ + This class provides methods to make requests to the Visier API. + It uses the ApiClient to handle the HTTP requests and responses. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def add_api_subnets( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AdminNetworkSubnetsMessageResponse: + """Add API network subnets + + Add IP addresses to the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def add_api_subnets_with_http_info( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AdminNetworkSubnetsMessageResponse]: + """Add API network subnets + + Add IP addresses to the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def add_api_subnets_without_preload_content( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Add API network subnets + + Add IP addresses to the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._add_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _add_api_subnets_serialize( + self, + admin_network_subnets_message_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if admin_network_subnets_message_request is not None: + _body_params = admin_network_subnets_message_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1alpha/admin/api-network-subnets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_api_subnets( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AdminNetworkSubnetsMessageResponse: + """Delete API network subnets + + Remove IP addresses from the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By deleting the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def delete_api_subnets_with_http_info( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AdminNetworkSubnetsMessageResponse]: + """Delete API network subnets + + Remove IP addresses from the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By deleting the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def delete_api_subnets_without_preload_content( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete API network subnets + + Remove IP addresses from the list of allowed network subnets that can call Visier APIs. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By deleting the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_api_subnets_serialize( + self, + admin_network_subnets_message_request, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + if admin_network_subnets_message_request is not None: + _body_params = admin_network_subnets_message_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1alpha/admin/api-network-subnets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_subnets( + self, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AdminNetworkSubnetsMessageResponse: + """Retrieve a list of API network subnets + + Retrieve a list of all IP addresses that can call Visier APIs.
**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 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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_subnets_serialize( + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def get_api_subnets_with_http_info( + self, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AdminNetworkSubnetsMessageResponse]: + """Retrieve a list of API network subnets + + Retrieve a list of all IP addresses that can call Visier APIs.
**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 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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_subnets_serialize( + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def get_api_subnets_without_preload_content( + self, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a list of API network subnets + + Retrieve a list of all IP addresses that can call Visier APIs.
**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 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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_subnets_serialize( + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_subnets_serialize( + self, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1alpha/admin/api-network-subnets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_api_subnets( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AdminNetworkSubnetsMessageResponse: + """Update API network subnets + + Overwrite the existing list of IP addresses that can call Visier APIs with a new list. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By updating the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def set_api_subnets_with_http_info( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AdminNetworkSubnetsMessageResponse]: + """Update API network subnets + + Overwrite the existing list of IP addresses that can call Visier APIs with a new list. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By updating the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_administration.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def set_api_subnets_without_preload_content( + self, + admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest, + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update API network subnets + + Overwrite the existing list of IP addresses that can call Visier APIs with a new list. IP addresses must use the Classless Inter-Domain Routing (CIDR) format: xxx.xxx.xxx.xxx/xx. When updating allowed network subnets, the definition in your API call replaces the prior definition. You must provide the entire definition in the PUT call. If you omit IP addresses from the update request, those IP addresses are removed from the allowlist We recommend that you retrieve the current list of allowed network subnets before you update the list. **Note**: By updating the allowed network subnets, you may remove your current IP address from the allowlist. If this happens, you will lock yourself out from making additional API calls. Visier does not allow lock outs unless you set `confirmLockout` to `true`. Default is `false`.
**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 admin_network_subnets_message_request: (required) + :type admin_network_subnets_message_request: AdminNetworkSubnetsMessageRequest + :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 + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_api_subnets_serialize( + admin_network_subnets_message_request=admin_network_subnets_message_request, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdminNetworkSubnetsMessageResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_api_subnets_serialize( + self, + admin_network_subnets_message_request, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + if admin_network_subnets_message_request is not None: + _body_params = admin_network_subnets_message_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1alpha/admin/api-network-subnets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + 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 7720fecc91..4ed23308fa 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,19 +24,19 @@ from typing import List, Optional from typing_extensions import Annotated 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 +from visier_api_administration.models.servicing_bulk_data_access_set_response_dto import ServicingBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_capability_dto import ServicingCapabilityDTO +from visier_api_administration.models.servicing_content_package_dto import ServicingContentPackageDTO +from visier_api_administration.models.servicing_create_data_access_set_request_dto import ServicingCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_data_access_set_dto import ServicingDataAccessSetDTO +from visier_api_administration.models.servicing_delete_permissions_request_dto import ServicingDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_get_capabilities_api_response_dto import ServicingGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_get_content_packages_api_response_dto import ServicingGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_get_data_access_sets_api_response_dto import ServicingGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_get_data_security_objects_api_response_dto import ServicingGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_get_permissions_api_response_dto import ServicingGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_permission_bulk_operation_response_dto import ServicingPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_permission_dto import ServicingPermissionDTO import visier_api_administration.models @@ -55,7 +55,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_data_access_sets( self, - servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, + servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO, 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, - ) -> ServicingPublicapiTransfersBulkDataAccessSetResponseDTO: + ) -> ServicingBulkDataAccessSetResponseDTO: """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 servicing_publicapi_transfers_create_data_access_set_request_dto: (required) - :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + :param servicing_create_data_access_set_request_dto: (required) + :type servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO :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( - servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, + servicing_create_data_access_set_request_dto=servicing_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': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", + '200': "ServicingBulkDataAccessSetResponseDTO", } 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, - servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, + servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO, 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[ServicingPublicapiTransfersBulkDataAccessSetResponseDTO]: + ) -> ApiResponse[ServicingBulkDataAccessSetResponseDTO]: """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 servicing_publicapi_transfers_create_data_access_set_request_dto: (required) - :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + :param servicing_create_data_access_set_request_dto: (required) + :type servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO :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( - servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, + servicing_create_data_access_set_request_dto=servicing_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': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", + '200': "ServicingBulkDataAccessSetResponseDTO", } 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, - servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO, + servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO, 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 servicing_publicapi_transfers_create_data_access_set_request_dto: (required) - :type servicing_publicapi_transfers_create_data_access_set_request_dto: ServicingPublicapiTransfersCreateDataAccessSetRequestDTO + :param servicing_create_data_access_set_request_dto: (required) + :type servicing_create_data_access_set_request_dto: ServicingCreateDataAccessSetRequestDTO :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( - servicing_publicapi_transfers_create_data_access_set_request_dto=servicing_publicapi_transfers_create_data_access_set_request_dto, + servicing_create_data_access_set_request_dto=servicing_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': "ServicingPublicapiTransfersBulkDataAccessSetResponseDTO", + '200': "ServicingBulkDataAccessSetResponseDTO", } 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, - servicing_publicapi_transfers_create_data_access_set_request_dto, + servicing_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 servicing_publicapi_transfers_create_data_access_set_request_dto is not None: - _body_params = servicing_publicapi_transfers_create_data_access_set_request_dto + if servicing_create_data_access_set_request_dto is not None: + _body_params = servicing_create_data_access_set_request_dto # set the HTTP header `Accept` @@ -395,7 +395,7 @@ def create_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: + ) -> ServicingPermissionBulkOperationResponseDTO: """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. @@ -445,7 +445,7 @@ def create_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -479,7 +479,7 @@ 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[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPermissionBulkOperationResponseDTO]: """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. @@ -529,7 +529,7 @@ def create_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -613,7 +613,7 @@ def create_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -718,7 +718,7 @@ def _create_permissions_serialize( @validate_call def delete_permissions( self, - servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, + servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO, 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, @@ -734,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, - ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: + ) -> ServicingPermissionBulkOperationResponseDTO: """Delete permissions Delete existing permissions. To specify the project in which to delete permissions, provide a project UUID in the `ProjectID` request header. - :param servicing_publicapi_transfers_delete_permissions_request_dto: (required) - :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO + :param servicing_delete_permissions_request_dto: (required) + :type servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO :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. @@ -770,7 +770,7 @@ def delete_permissions( """ # noqa: E501 _param = self._delete_permissions_serialize( - servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, + servicing_delete_permissions_request_dto=servicing_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -781,7 +781,7 @@ def delete_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -798,7 +798,7 @@ def delete_permissions( @validate_call def delete_permissions_with_http_info( self, - servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, + servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO, 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, @@ -814,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[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPermissionBulkOperationResponseDTO]: """Delete permissions Delete existing permissions. To specify the project in which to delete permissions, provide a project UUID in the `ProjectID` request header. - :param servicing_publicapi_transfers_delete_permissions_request_dto: (required) - :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO + :param servicing_delete_permissions_request_dto: (required) + :type servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO :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. @@ -850,7 +850,7 @@ def delete_permissions_with_http_info( """ # noqa: E501 _param = self._delete_permissions_serialize( - servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, + servicing_delete_permissions_request_dto=servicing_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -861,7 +861,7 @@ def delete_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -878,7 +878,7 @@ def delete_permissions_with_http_info( @validate_call def delete_permissions_without_preload_content( self, - servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO, + servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO, 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, @@ -899,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 servicing_publicapi_transfers_delete_permissions_request_dto: (required) - :type servicing_publicapi_transfers_delete_permissions_request_dto: ServicingPublicapiTransfersDeletePermissionsRequestDTO + :param servicing_delete_permissions_request_dto: (required) + :type servicing_delete_permissions_request_dto: ServicingDeletePermissionsRequestDTO :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. @@ -930,7 +930,7 @@ def delete_permissions_without_preload_content( """ # noqa: E501 _param = self._delete_permissions_serialize( - servicing_publicapi_transfers_delete_permissions_request_dto=servicing_publicapi_transfers_delete_permissions_request_dto, + servicing_delete_permissions_request_dto=servicing_delete_permissions_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, project_id=project_id, @@ -941,7 +941,7 @@ def delete_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -952,7 +952,7 @@ def delete_permissions_without_preload_content( def _delete_permissions_serialize( self, - servicing_publicapi_transfers_delete_permissions_request_dto, + servicing_delete_permissions_request_dto, tenant_code, target_tenant_id, project_id, @@ -987,8 +987,8 @@ def _delete_permissions_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_delete_permissions_request_dto is not None: - _body_params = servicing_publicapi_transfers_delete_permissions_request_dto + if servicing_delete_permissions_request_dto is not None: + _body_params = servicing_delete_permissions_request_dto # set the HTTP header `Accept` @@ -1058,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, - ) -> ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO: + ) -> ServicingGetCapabilitiesAPIResponseDTO: """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. @@ -1102,7 +1102,7 @@ def get_capabilities( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", + '200': "ServicingGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1134,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[ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO]: + ) -> ApiResponse[ServicingGetCapabilitiesAPIResponseDTO]: """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. @@ -1178,7 +1178,7 @@ def get_capabilities_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", + '200': "ServicingGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1254,7 +1254,7 @@ def get_capabilities_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetCapabilitiesAPIResponseDTO", + '200': "ServicingGetCapabilitiesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1356,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, - ) -> ServicingPublicapiTransfersCapabilityDTO: + ) -> ServicingCapabilityDTO: """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. @@ -1403,7 +1403,7 @@ def get_capability( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersCapabilityDTO", + '200': "ServicingCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1436,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[ServicingPublicapiTransfersCapabilityDTO]: + ) -> ApiResponse[ServicingCapabilityDTO]: """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. @@ -1483,7 +1483,7 @@ def get_capability_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersCapabilityDTO", + '200': "ServicingCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1563,7 +1563,7 @@ def get_capability_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersCapabilityDTO", + '200': "ServicingCapabilityDTO", } response_data = self.api_client.call_api( *_param, @@ -1668,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, - ) -> ServicingPublicapiTransfersContentPackageDTO: + ) -> ServicingContentPackageDTO: """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. @@ -1715,7 +1715,7 @@ def get_content_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersContentPackageDTO", + '200': "ServicingContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1748,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[ServicingPublicapiTransfersContentPackageDTO]: + ) -> ApiResponse[ServicingContentPackageDTO]: """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. @@ -1795,7 +1795,7 @@ def get_content_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersContentPackageDTO", + '200': "ServicingContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1875,7 +1875,7 @@ def get_content_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersContentPackageDTO", + '200': "ServicingContentPackageDTO", } response_data = self.api_client.call_api( *_param, @@ -1980,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, - ) -> ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO: + ) -> ServicingGetContentPackagesAPIResponseDTO: """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. @@ -2027,7 +2027,7 @@ def get_content_packages( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", + '200': "ServicingGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2060,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[ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO]: + ) -> ApiResponse[ServicingGetContentPackagesAPIResponseDTO]: """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. @@ -2107,7 +2107,7 @@ def get_content_packages_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", + '200': "ServicingGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2187,7 +2187,7 @@ def get_content_packages_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetContentPackagesAPIResponseDTO", + '200': "ServicingGetContentPackagesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2294,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, - ) -> ServicingPublicapiTransfersDataAccessSetDTO: + ) -> ServicingDataAccessSetDTO: """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. @@ -2341,7 +2341,7 @@ def get_data_access_set( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDataAccessSetDTO", + '200': "ServicingDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2374,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[ServicingPublicapiTransfersDataAccessSetDTO]: + ) -> ApiResponse[ServicingDataAccessSetDTO]: """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. @@ -2421,7 +2421,7 @@ def get_data_access_set_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDataAccessSetDTO", + '200': "ServicingDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2501,7 +2501,7 @@ def get_data_access_set_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDataAccessSetDTO", + '200': "ServicingDataAccessSetDTO", } response_data = self.api_client.call_api( *_param, @@ -2606,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, - ) -> ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO: + ) -> ServicingGetDataAccessSetsAPIResponseDTO: """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. @@ -2659,7 +2659,7 @@ def get_data_access_sets( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", + '200': "ServicingGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2694,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[ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO]: + ) -> ApiResponse[ServicingGetDataAccessSetsAPIResponseDTO]: """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. @@ -2747,7 +2747,7 @@ def get_data_access_sets_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", + '200': "ServicingGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2835,7 +2835,7 @@ def get_data_access_sets_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataAccessSetsAPIResponseDTO", + '200': "ServicingGetDataAccessSetsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2952,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, - ) -> ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO: + ) -> ServicingGetDataSecurityObjectsAPIResponseDTO: """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. @@ -3002,7 +3002,7 @@ def get_data_security_objects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3036,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[ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO]: + ) -> ApiResponse[ServicingGetDataSecurityObjectsAPIResponseDTO]: """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. @@ -3086,7 +3086,7 @@ def get_data_security_objects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3170,7 +3170,7 @@ def get_data_security_objects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetDataSecurityObjectsAPIResponseDTO", + '200': "ServicingGetDataSecurityObjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3285,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, - ) -> ServicingPublicapiTransfersPermissionDTO: + ) -> ServicingPermissionDTO: """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. @@ -3338,7 +3338,7 @@ def get_permission( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionDTO", + '200': "ServicingPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3373,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[ServicingPublicapiTransfersPermissionDTO]: + ) -> ApiResponse[ServicingPermissionDTO]: """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. @@ -3426,7 +3426,7 @@ def get_permission_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionDTO", + '200': "ServicingPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3514,7 +3514,7 @@ def get_permission_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionDTO", + '200': "ServicingPermissionDTO", } response_data = self.api_client.call_api( *_param, @@ -3629,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, - ) -> ServicingPublicapiTransfersGetPermissionsAPIResponseDTO: + ) -> ServicingGetPermissionsAPIResponseDTO: """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. @@ -3682,7 +3682,7 @@ def get_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", + '200': "ServicingGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3717,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[ServicingPublicapiTransfersGetPermissionsAPIResponseDTO]: + ) -> ApiResponse[ServicingGetPermissionsAPIResponseDTO]: """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. @@ -3770,7 +3770,7 @@ def get_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", + '200': "ServicingGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3858,7 +3858,7 @@ def get_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetPermissionsAPIResponseDTO", + '200': "ServicingGetPermissionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3974,7 +3974,7 @@ def update_permissions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiTransfersPermissionBulkOperationResponseDTO: + ) -> ServicingPermissionBulkOperationResponseDTO: """Update permissions Update existing permissions. To specify the project in which to update permissions, provide a project UUID in the `ProjectID` request header. @@ -4024,7 +4024,7 @@ def update_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4058,7 +4058,7 @@ 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[ServicingPublicapiTransfersPermissionBulkOperationResponseDTO]: + ) -> ApiResponse[ServicingPermissionBulkOperationResponseDTO]: """Update permissions Update existing permissions. To specify the project in which to update permissions, provide a project UUID in the `ProjectID` request header. @@ -4108,7 +4108,7 @@ def update_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4192,7 +4192,7 @@ def update_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionBulkOperationResponseDTO", + '200': "ServicingPermissionBulkOperationResponseDTO", } response_data = self.api_client.call_api( *_param, 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 0265ac4d79..d4d0da95df 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_administration.models.servicing_get_production_versions_api_response_dto import ServicingGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_production_version_api_operation_request_dto import ServicingProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_version_api_operation_response_dto import ServicingProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_production_versions_api_operation_request_dto import ServicingProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_versions_api_operation_response_dto import ServicingProductionVersionsAPIOperationResponseDTO import visier_api_administration.models @@ -61,10 +61,10 @@ 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, - ) -> ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO: + ) -> ServicingGetProductionVersionsAPIResponseDTO: """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). + Retrieve a list of all projects that were published to production, ordered from latest published to earliest published. :param limit: The maximum number of production versions to return. Default is 400. :type limit: int @@ -105,7 +105,7 @@ def get_production_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", + '200': "ServicingGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -137,10 +137,10 @@ 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[ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO]: + ) -> ApiResponse[ServicingGetProductionVersionsAPIResponseDTO]: """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). + Retrieve a list of all projects that were published to production, ordered from latest published to earliest published. :param limit: The maximum number of production versions to return. Default is 400. :type limit: int @@ -181,7 +181,7 @@ def get_production_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", + '200': "ServicingGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -216,7 +216,7 @@ def get_production_versions_without_preload_content( ) -> RESTResponseType: """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). + Retrieve a list of all projects that were published to production, ordered from latest published to earliest published. :param limit: The maximum number of production versions to return. Default is 400. :type limit: int @@ -257,7 +257,7 @@ def get_production_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProductionVersionsAPIResponseDTO", + '200': "ServicingGetProductionVersionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -326,7 +326,7 @@ def _get_production_versions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1beta/admin/production-versions', + resource_path='/v1/admin/production-versions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -346,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.")], - servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, + servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO, 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, @@ -360,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, - ) -> ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO: + ) -> ServicingProductionVersionAPIOperationResponseDTO: """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). + 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. :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 servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + :param servicing_production_version_api_operation_request_dto: (required) + :type servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO :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 @@ -395,7 +395,7 @@ def post_production_version( _param = self._post_production_version_serialize( production_version_id=production_version_id, - servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, + servicing_production_version_api_operation_request_dto=servicing_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -404,7 +404,7 @@ def post_production_version( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", + '200': "ServicingProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -422,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.")], - servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, + servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO, 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, @@ -436,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[ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO]: + ) -> ApiResponse[ServicingProductionVersionAPIOperationResponseDTO]: """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). + 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. :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 servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + :param servicing_production_version_api_operation_request_dto: (required) + :type servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO :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 +471,7 @@ def post_production_version_with_http_info( _param = self._post_production_version_serialize( production_version_id=production_version_id, - servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, + servicing_production_version_api_operation_request_dto=servicing_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -480,7 +480,7 @@ def post_production_version_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", + '200': "ServicingProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -498,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.")], - servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO, + servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO, 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,12 +515,12 @@ def post_production_version_without_preload_content( ) -> RESTResponseType: """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). + 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. :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 servicing_publicapi_transfers_production_version_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_version_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionAPIOperationRequestDTO + :param servicing_production_version_api_operation_request_dto: (required) + :type servicing_production_version_api_operation_request_dto: ServicingProductionVersionAPIOperationRequestDTO :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 @@ -547,7 +547,7 @@ def post_production_version_without_preload_content( _param = self._post_production_version_serialize( production_version_id=production_version_id, - servicing_publicapi_transfers_production_version_api_operation_request_dto=servicing_publicapi_transfers_production_version_api_operation_request_dto, + servicing_production_version_api_operation_request_dto=servicing_production_version_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -556,7 +556,7 @@ def post_production_version_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionAPIOperationResponseDTO", + '200': "ServicingProductionVersionAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -568,7 +568,7 @@ def post_production_version_without_preload_content( def _post_production_version_serialize( self, production_version_id, - servicing_publicapi_transfers_production_version_api_operation_request_dto, + servicing_production_version_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -597,8 +597,8 @@ def _post_production_version_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_production_version_api_operation_request_dto is not None: - _body_params = servicing_publicapi_transfers_production_version_api_operation_request_dto + if servicing_production_version_api_operation_request_dto is not None: + _body_params = servicing_production_version_api_operation_request_dto # set the HTTP header `Accept` @@ -634,7 +634,7 @@ def _post_production_version_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1beta/admin/production-versions/{productionVersionId}', + resource_path='/v1/admin/production-versions/{productionVersionId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -653,7 +653,7 @@ def _post_production_version_serialize( @validate_call def post_production_versions( self, - servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, + servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO, 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, @@ -667,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, - ) -> ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO: + ) -> ServicingProductionVersionsAPIOperationResponseDTO: """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). + 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. - :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + :param servicing_production_versions_api_operation_request_dto: (required) + :type servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO :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 @@ -699,7 +699,7 @@ def post_production_versions( """ # noqa: E501 _param = self._post_production_versions_serialize( - servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, + servicing_production_versions_api_operation_request_dto=servicing_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -708,7 +708,7 @@ def post_production_versions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", + '200': "ServicingProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -725,7 +725,7 @@ def post_production_versions( @validate_call def post_production_versions_with_http_info( self, - servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, + servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO, 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, @@ -739,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[ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO]: + ) -> ApiResponse[ServicingProductionVersionsAPIOperationResponseDTO]: """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). + 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. - :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + :param servicing_production_versions_api_operation_request_dto: (required) + :type servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO :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 @@ -771,7 +771,7 @@ def post_production_versions_with_http_info( """ # noqa: E501 _param = self._post_production_versions_serialize( - servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, + servicing_production_versions_api_operation_request_dto=servicing_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -780,7 +780,7 @@ def post_production_versions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", + '200': "ServicingProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -797,7 +797,7 @@ def post_production_versions_with_http_info( @validate_call def post_production_versions_without_preload_content( self, - servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO, + servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO, 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, @@ -814,10 +814,10 @@ def post_production_versions_without_preload_content( ) -> RESTResponseType: """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). + 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. - :param servicing_publicapi_transfers_production_versions_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_production_versions_api_operation_request_dto: ServicingPublicapiTransfersProductionVersionsAPIOperationRequestDTO + :param servicing_production_versions_api_operation_request_dto: (required) + :type servicing_production_versions_api_operation_request_dto: ServicingProductionVersionsAPIOperationRequestDTO :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 @@ -843,7 +843,7 @@ def post_production_versions_without_preload_content( """ # noqa: E501 _param = self._post_production_versions_serialize( - servicing_publicapi_transfers_production_versions_api_operation_request_dto=servicing_publicapi_transfers_production_versions_api_operation_request_dto, + servicing_production_versions_api_operation_request_dto=servicing_production_versions_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -852,7 +852,7 @@ def post_production_versions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProductionVersionsAPIOperationResponseDTO", + '200': "ServicingProductionVersionsAPIOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -863,7 +863,7 @@ def post_production_versions_without_preload_content( def _post_production_versions_serialize( self, - servicing_publicapi_transfers_production_versions_api_operation_request_dto, + servicing_production_versions_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -890,8 +890,8 @@ def _post_production_versions_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_production_versions_api_operation_request_dto is not None: - _body_params = servicing_publicapi_transfers_production_versions_api_operation_request_dto + if servicing_production_versions_api_operation_request_dto is not None: + _body_params = servicing_production_versions_api_operation_request_dto # set the HTTP header `Accept` @@ -927,7 +927,7 @@ def _post_production_versions_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1beta/admin/production-versions', + resource_path='/v1/admin/production-versions', path_params=_path_params, query_params=_query_params, header_params=_header_params, 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 475122228d..c52a968d55 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_request_dto import ServicingAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_response_dto import ServicingAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_request_dto import ServicingAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_response_dto import ServicingAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_accessible_tenant_dto import ServicingAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_local_tenant_dto import ServicingAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_request_dto import ServicingLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_response_dto import ServicingLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_request_dto import ServicingLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_response_dto import ServicingLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_profile_get_api_response_dto import ServicingProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_profiles_get_api_response_dto import ServicingProfilesGetAPIResponseDTO 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.")], - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, + servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO, _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, - ) -> ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO: + ) -> ServicingAccessibleTenantProfileAssignmentResponseDTO: """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 servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + :param servicing_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO :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, - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, + servicing_accessible_tenant_profile_assignment_request_dto=servicing_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': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingAccessibleTenantProfileAssignmentResponseDTO", } 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.")], - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, + servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO, _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[ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO]: + ) -> ApiResponse[ServicingAccessibleTenantProfileAssignmentResponseDTO]: """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 servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + :param servicing_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO :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, - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, + servicing_accessible_tenant_profile_assignment_request_dto=servicing_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': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingAccessibleTenantProfileAssignmentResponseDTO", } 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.")], - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO, + servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO, _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 servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileAssignmentRequestDTO + :param servicing_accessible_tenant_profile_assignment_request_dto: (required) + :type servicing_accessible_tenant_profile_assignment_request_dto: ServicingAccessibleTenantProfileAssignmentRequestDTO :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, - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, + servicing_accessible_tenant_profile_assignment_request_dto=servicing_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': "ServicingPublicapiTransfersAccessibleTenantProfileAssignmentResponseDTO", + '200': "ServicingAccessibleTenantProfileAssignmentResponseDTO", } 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, - servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto, + servicing_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 servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto is not None: - _body_params = servicing_publicapi_transfers_accessible_tenant_profile_assignment_request_dto + if servicing_accessible_tenant_profile_assignment_request_dto is not None: + _body_params = servicing_accessible_tenant_profile_assignment_request_dto # set the HTTP header `Accept` @@ -347,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.")], - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, + servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO, 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, @@ -361,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, - ) -> ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO: + ) -> ServicingLocalTenantProfileAssignmentResponseDTO: """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 servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + :param servicing_local_tenant_profile_assignment_request_dto: (required) + :type servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO :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 @@ -396,7 +396,7 @@ def assign_profile( _param = self._assign_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, + servicing_local_tenant_profile_assignment_request_dto=servicing_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -405,7 +405,7 @@ def assign_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", + '200': "ServicingLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -423,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.")], - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, + servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO, 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, @@ -437,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[ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO]: + ) -> ApiResponse[ServicingLocalTenantProfileAssignmentResponseDTO]: """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 servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + :param servicing_local_tenant_profile_assignment_request_dto: (required) + :type servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO :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 @@ -472,7 +472,7 @@ def assign_profile_with_http_info( _param = self._assign_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, + servicing_local_tenant_profile_assignment_request_dto=servicing_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -481,7 +481,7 @@ def assign_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", + '200': "ServicingLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -499,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.")], - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO, + servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO, 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, @@ -520,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 servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto: ServicingPublicapiTransfersLocalTenantProfileAssignmentRequestDTO + :param servicing_local_tenant_profile_assignment_request_dto: (required) + :type servicing_local_tenant_profile_assignment_request_dto: ServicingLocalTenantProfileAssignmentRequestDTO :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 @@ -548,7 +548,7 @@ def assign_profile_without_preload_content( _param = self._assign_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto=servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, + servicing_local_tenant_profile_assignment_request_dto=servicing_local_tenant_profile_assignment_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -557,7 +557,7 @@ def assign_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileAssignmentResponseDTO", + '200': "ServicingLocalTenantProfileAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -569,7 +569,7 @@ def assign_profile_without_preload_content( def _assign_profile_serialize( self, profile_id, - servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto, + servicing_local_tenant_profile_assignment_request_dto, target_tenant_id, _request_auth, _content_type, @@ -598,8 +598,8 @@ def _assign_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto is not None: - _body_params = servicing_publicapi_transfers_local_tenant_profile_assignment_request_dto + if servicing_local_tenant_profile_assignment_request_dto is not None: + _body_params = servicing_local_tenant_profile_assignment_request_dto # set the HTTP header `Accept` @@ -667,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, - ) -> ServicingPublicapiTransfersProfilesGetAPIResponseDTO: + ) -> ServicingProfilesGetAPIResponseDTO: """Retrieve a list of all profiles Get a list of all available profiles. For administrating tenants, this retrieves all administrating tenant profiles. @@ -705,7 +705,7 @@ def get_all_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -735,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[ServicingPublicapiTransfersProfilesGetAPIResponseDTO]: + ) -> ApiResponse[ServicingProfilesGetAPIResponseDTO]: """Retrieve a list of all profiles Get a list of all available profiles. For administrating tenants, this retrieves all administrating tenant profiles. @@ -773,7 +773,7 @@ def get_all_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -841,7 +841,7 @@ def get_all_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -932,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, - ) -> ServicingPublicapiTransfersProfileGetAPIResponseDTO: + ) -> ServicingProfileGetAPIResponseDTO: """Retrieve the details of an analytic tenant profile Get the details of an analytic tenant profile. **Note:** Administrating tenants only. @@ -970,7 +970,7 @@ def get_analytic_profile_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1000,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[ServicingPublicapiTransfersProfileGetAPIResponseDTO]: + ) -> ApiResponse[ServicingProfileGetAPIResponseDTO]: """Retrieve the details of an analytic tenant profile Get the details of an analytic tenant profile. **Note:** Administrating tenants only. @@ -1038,7 +1038,7 @@ def get_analytic_profile_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1106,7 +1106,7 @@ def get_analytic_profile_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1196,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, - ) -> ServicingPublicapiTransfersProfilesGetAPIResponseDTO: + ) -> ServicingProfilesGetAPIResponseDTO: """Retrieve a list of analytic tenant profiles Retrieve a list of profiles available for analytic tenants. **Note:** Administrating tenants only. @@ -1231,7 +1231,7 @@ def get_analytic_profiles( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1260,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[ServicingPublicapiTransfersProfilesGetAPIResponseDTO]: + ) -> ApiResponse[ServicingProfilesGetAPIResponseDTO]: """Retrieve a list of analytic tenant profiles Retrieve a list of profiles available for analytic tenants. **Note:** Administrating tenants only. @@ -1295,7 +1295,7 @@ def get_analytic_profiles_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1359,7 +1359,7 @@ def get_analytic_profiles_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfilesGetAPIResponseDTO", + '200': "ServicingProfilesGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1447,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, - ) -> ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO: + ) -> ServicingAllProfileAssignedForAccessibleTenantDTO: """Retrieve an administrating tenant user's analytic tenant profiles Retrieve a specified user's assigned profiles for analytic tenants. **Note:** Administrating tenants only. @@ -1485,7 +1485,7 @@ def get_analytic_user_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1515,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[ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO]: + ) -> ApiResponse[ServicingAllProfileAssignedForAccessibleTenantDTO]: """Retrieve an administrating tenant user's analytic tenant profiles Retrieve a specified user's assigned profiles for analytic tenants. **Note:** Administrating tenants only. @@ -1553,7 +1553,7 @@ def get_analytic_user_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1621,7 +1621,7 @@ def get_analytic_user_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForAccessibleTenantDTO", + '200': "ServicingAllProfileAssignedForAccessibleTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1713,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, - ) -> ServicingPublicapiTransfersProfileGetAPIResponseDTO: + ) -> ServicingProfileGetAPIResponseDTO: """Retrieve the details of a profile Get the details of a specific profile. For administrating tenants, this retrieves the details of administrating tenant profiles. @@ -1754,7 +1754,7 @@ def get_profile_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1785,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[ServicingPublicapiTransfersProfileGetAPIResponseDTO]: + ) -> ApiResponse[ServicingProfileGetAPIResponseDTO]: """Retrieve the details of a profile Get the details of a specific profile. For administrating tenants, this retrieves the details of administrating tenant profiles. @@ -1826,7 +1826,7 @@ def get_profile_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1898,7 +1898,7 @@ def get_profile_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProfileGetAPIResponseDTO", + '200': "ServicingProfileGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1993,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, - ) -> ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO: + ) -> ServicingAllProfileAssignedForLocalTenantDTO: """Retrieve a user's profiles Retrieve a specified user's assigned profiles. For administrating tenants, this retrieves a user's administrating tenant profiles. @@ -2034,7 +2034,7 @@ def get_user_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", + '200': "ServicingAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2065,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[ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO]: + ) -> ApiResponse[ServicingAllProfileAssignedForLocalTenantDTO]: """Retrieve a user's profiles Retrieve a specified user's assigned profiles. For administrating tenants, this retrieves a user's administrating tenant profiles. @@ -2106,7 +2106,7 @@ def get_user_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", + '200': "ServicingAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2178,7 +2178,7 @@ def get_user_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllProfileAssignedForLocalTenantDTO", + '200': "ServicingAllProfileAssignedForLocalTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -2260,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.")], - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, + servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO, 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, @@ -2274,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, - ) -> ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO: + ) -> ServicingAccessibleTenantProfileRevokeResponseDTO: """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 servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + :param servicing_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO :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 @@ -2309,7 +2309,7 @@ def remove_analytic_profile( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, + servicing_accessible_tenant_profile_revoke_request_dto=servicing_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2318,7 +2318,7 @@ def remove_analytic_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2336,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.")], - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, + servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO, 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, @@ -2350,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[ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO]: + ) -> ApiResponse[ServicingAccessibleTenantProfileRevokeResponseDTO]: """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 servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + :param servicing_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO :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 @@ -2385,7 +2385,7 @@ def remove_analytic_profile_with_http_info( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, + servicing_accessible_tenant_profile_revoke_request_dto=servicing_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2394,7 +2394,7 @@ def remove_analytic_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2412,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.")], - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO, + servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO, 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, @@ -2433,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 servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersAccessibleTenantProfileRevokeRequestDTO + :param servicing_accessible_tenant_profile_revoke_request_dto: (required) + :type servicing_accessible_tenant_profile_revoke_request_dto: ServicingAccessibleTenantProfileRevokeRequestDTO :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 @@ -2461,7 +2461,7 @@ def remove_analytic_profile_without_preload_content( _param = self._remove_analytic_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, + servicing_accessible_tenant_profile_revoke_request_dto=servicing_accessible_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2470,7 +2470,7 @@ def remove_analytic_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAccessibleTenantProfileRevokeResponseDTO", + '200': "ServicingAccessibleTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2482,7 +2482,7 @@ def remove_analytic_profile_without_preload_content( def _remove_analytic_profile_serialize( self, profile_id, - servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto, + servicing_accessible_tenant_profile_revoke_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2511,8 +2511,8 @@ def _remove_analytic_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto is not None: - _body_params = servicing_publicapi_transfers_accessible_tenant_profile_revoke_request_dto + if servicing_accessible_tenant_profile_revoke_request_dto is not None: + _body_params = servicing_accessible_tenant_profile_revoke_request_dto # set the HTTP header `Accept` @@ -2568,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.")], - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, + servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO, 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, @@ -2582,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, - ) -> ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO: + ) -> ServicingLocalTenantProfileRevokeResponseDTO: """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 servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + :param servicing_local_tenant_profile_revoke_request_dto: (required) + :type servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO :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 @@ -2617,7 +2617,7 @@ def remove_profile( _param = self._remove_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, + servicing_local_tenant_profile_revoke_request_dto=servicing_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2626,7 +2626,7 @@ def remove_profile( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", + '200': "ServicingLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2644,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.")], - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, + servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO, 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, @@ -2658,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[ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO]: + ) -> ApiResponse[ServicingLocalTenantProfileRevokeResponseDTO]: """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 servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + :param servicing_local_tenant_profile_revoke_request_dto: (required) + :type servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO :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 @@ -2693,7 +2693,7 @@ def remove_profile_with_http_info( _param = self._remove_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, + servicing_local_tenant_profile_revoke_request_dto=servicing_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2702,7 +2702,7 @@ def remove_profile_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", + '200': "ServicingLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2720,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.")], - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO, + servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO, 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, @@ -2741,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 servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: (required) - :type servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto: ServicingPublicapiTransfersLocalTenantProfileRevokeRequestDTO + :param servicing_local_tenant_profile_revoke_request_dto: (required) + :type servicing_local_tenant_profile_revoke_request_dto: ServicingLocalTenantProfileRevokeRequestDTO :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 @@ -2769,7 +2769,7 @@ def remove_profile_without_preload_content( _param = self._remove_profile_serialize( profile_id=profile_id, - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto=servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, + servicing_local_tenant_profile_revoke_request_dto=servicing_local_tenant_profile_revoke_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2778,7 +2778,7 @@ def remove_profile_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersLocalTenantProfileRevokeResponseDTO", + '200': "ServicingLocalTenantProfileRevokeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2790,7 +2790,7 @@ def remove_profile_without_preload_content( def _remove_profile_serialize( self, profile_id, - servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto, + servicing_local_tenant_profile_revoke_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2819,8 +2819,8 @@ def _remove_profile_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto is not None: - _body_params = servicing_publicapi_transfers_local_tenant_profile_revoke_request_dto + if servicing_local_tenant_profile_revoke_request_dto is not None: + _body_params = servicing_local_tenant_profile_revoke_request_dto # set the HTTP header `Accept` 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 9f4530ac3b..267b16bd3b 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,11 +24,11 @@ from typing import List, Optional from typing_extensions import Annotated 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 +from visier_api_administration.models.servicing_get_projects_api_response_dto import ServicingGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_project_commits_api_response_dto import ServicingProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_project_dto import ServicingProjectDTO +from visier_api_administration.models.servicing_project_operation_request_dto import ServicingProjectOperationRequestDTO +from visier_api_administration.models.servicing_project_operation_response_dto import ServicingProjectOperationResponseDTO import visier_api_administration.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_project( self, - servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, + servicing_project_dto: ServicingProjectDTO, 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, - ) -> ServicingPublicapiTransfersProjectDTO: + ) -> ServicingProjectDTO: """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). + Create a new draft project in the tenant. - :param servicing_publicapi_transfers_project_dto: (required) - :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO + :param servicing_project_dto: (required) + :type servicing_project_dto: ServicingProjectDTO :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( - servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, + servicing_project_dto=servicing_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': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def create_project( @validate_call def create_project_with_http_info( self, - servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, + servicing_project_dto: ServicingProjectDTO, 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[ServicingPublicapiTransfersProjectDTO]: + ) -> ApiResponse[ServicingProjectDTO]: """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). + Create a new draft project in the tenant. - :param servicing_publicapi_transfers_project_dto: (required) - :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO + :param servicing_project_dto: (required) + :type servicing_project_dto: ServicingProjectDTO :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( - servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, + servicing_project_dto=servicing_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': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } 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, - servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO, + servicing_project_dto: ServicingProjectDTO, 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,10 +208,10 @@ def create_project_without_preload_content( ) -> RESTResponseType: """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). + Create a new draft project in the tenant. - :param servicing_publicapi_transfers_project_dto: (required) - :type servicing_publicapi_transfers_project_dto: ServicingPublicapiTransfersProjectDTO + :param servicing_project_dto: (required) + :type servicing_project_dto: ServicingProjectDTO :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( - servicing_publicapi_transfers_project_dto=servicing_publicapi_transfers_project_dto, + servicing_project_dto=servicing_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': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def create_project_without_preload_content( def _create_project_serialize( self, - servicing_publicapi_transfers_project_dto, + servicing_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 servicing_publicapi_transfers_project_dto is not None: - _body_params = servicing_publicapi_transfers_project_dto + if servicing_project_dto is not None: + _body_params = servicing_project_dto # set the HTTP header `Accept` @@ -321,7 +321,7 @@ def _create_project_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1beta/admin/projects', + resource_path='/v1/admin/projects', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -354,10 +354,10 @@ def delete_project( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiTransfersProjectDTO: + ) -> ServicingProjectDTO: """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). + Delete a draft project in the tenant. The project will first be archived if applicable. :param project_id: The unique ID of the draft project to be deleted. (required) :type project_id: str @@ -395,7 +395,7 @@ def delete_project( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -426,10 +426,10 @@ 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[ServicingPublicapiTransfersProjectDTO]: + ) -> ApiResponse[ServicingProjectDTO]: """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). + Delete a draft project in the tenant. The project will first be archived if applicable. :param project_id: The unique ID of the draft project to be deleted. (required) :type project_id: str @@ -467,7 +467,7 @@ def delete_project_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -501,7 +501,7 @@ def delete_project_without_preload_content( ) -> RESTResponseType: """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). + Delete a draft project in the tenant. The project will first be archived if applicable. :param project_id: The unique ID of the draft project to be deleted. (required) :type project_id: str @@ -539,7 +539,7 @@ def delete_project_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -601,7 +601,7 @@ def _delete_project_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1beta/admin/projects/{projectId}', + resource_path='/v1/admin/projects/{projectId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -634,10 +634,10 @@ def get_project( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiTransfersProjectDTO: + ) -> ServicingProjectDTO: """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). + 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 /v1/admin/projects`. A project is accessible if it is owned by the user or shared to the user. :param project_id: The unique identifier of the draft project you want to retrieve. (required) :type project_id: str @@ -675,7 +675,7 @@ def get_project( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -706,10 +706,10 @@ 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[ServicingPublicapiTransfersProjectDTO]: + ) -> ApiResponse[ServicingProjectDTO]: """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). + 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 /v1/admin/projects`. A project is accessible if it is owned by the user or shared to the user. :param project_id: The unique identifier of the draft project you want to retrieve. (required) :type project_id: str @@ -747,7 +747,7 @@ def get_project_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -781,7 +781,7 @@ def get_project_without_preload_content( ) -> RESTResponseType: """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). + 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 /v1/admin/projects`. A project is accessible if it is owned by the user or shared to the user. :param project_id: The unique identifier of the draft project you want to retrieve. (required) :type project_id: str @@ -819,7 +819,7 @@ def get_project_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectDTO", + '200': "ServicingProjectDTO", } response_data = self.api_client.call_api( *_param, @@ -881,7 +881,7 @@ def _get_project_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1beta/admin/projects/{projectId}', + resource_path='/v1/admin/projects/{projectId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -916,10 +916,10 @@ 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, - ) -> ServicingPublicapiTransfersProjectCommitsAPIResponseDTO: + ) -> ServicingProjectCommitsAPIResponseDTO: """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). + Retrieve the full list of all committed changes in a project. :param project_id: The unique identifier of the draft project you want to retrieve the committed changes for. (required) :type project_id: str @@ -963,7 +963,7 @@ def get_project_commits( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -996,10 +996,10 @@ 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[ServicingPublicapiTransfersProjectCommitsAPIResponseDTO]: + ) -> ApiResponse[ServicingProjectCommitsAPIResponseDTO]: """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). + Retrieve the full list of all committed changes in a project. :param project_id: The unique identifier of the draft project you want to retrieve the committed changes for. (required) :type project_id: str @@ -1043,7 +1043,7 @@ def get_project_commits_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1079,7 +1079,7 @@ def get_project_commits_without_preload_content( ) -> RESTResponseType: """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). + Retrieve the full list of all committed changes in a project. :param project_id: The unique identifier of the draft project you want to retrieve the committed changes for. (required) :type project_id: str @@ -1123,7 +1123,7 @@ def get_project_commits_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1195,7 +1195,7 @@ def _get_project_commits_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1beta/admin/projects/{projectId}/commits', + resource_path='/v1/admin/projects/{projectId}/commits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1229,10 +1229,10 @@ def get_projects( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiTransfersGetProjectsAPIResponseDTO: + ) -> ServicingGetProjectsAPIResponseDTO: """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). + 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. :param var_with: The types of draft projects to include in the request response. * If empty, returns all the `Open` draft projects. * If `Open`, returns all Open draft projects. * If `Approval`, returns all draft projects in the approval stage. Changes cannot made in Approval projects. * If `Rejected`, returns all draft projects that have been rejected. Changes cannot be committed in Rejected projects. * If `Archived`, returns all draft projects that have been archived. Changes cannot be committed in Archived projects. :type var_with: List[str] @@ -1273,7 +1273,7 @@ def get_projects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", + '200': "ServicingGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1305,10 +1305,10 @@ 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[ServicingPublicapiTransfersGetProjectsAPIResponseDTO]: + ) -> ApiResponse[ServicingGetProjectsAPIResponseDTO]: """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). + 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. :param var_with: The types of draft projects to include in the request response. * If empty, returns all the `Open` draft projects. * If `Open`, returns all Open draft projects. * If `Approval`, returns all draft projects in the approval stage. Changes cannot made in Approval projects. * If `Rejected`, returns all draft projects that have been rejected. Changes cannot be committed in Rejected projects. * If `Archived`, returns all draft projects that have been archived. Changes cannot be committed in Archived projects. :type var_with: List[str] @@ -1349,7 +1349,7 @@ def get_projects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", + '200': "ServicingGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1384,7 +1384,7 @@ def get_projects_without_preload_content( ) -> RESTResponseType: """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). + 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. :param var_with: The types of draft projects to include in the request response. * If empty, returns all the `Open` draft projects. * If `Open`, returns all Open draft projects. * If `Approval`, returns all draft projects in the approval stage. Changes cannot made in Approval projects. * If `Rejected`, returns all draft projects that have been rejected. Changes cannot be committed in Rejected projects. * If `Archived`, returns all draft projects that have been archived. Changes cannot be committed in Archived projects. :type var_with: List[str] @@ -1425,7 +1425,7 @@ def get_projects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersGetProjectsAPIResponseDTO", + '200': "ServicingGetProjectsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1495,7 +1495,7 @@ def _get_projects_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1beta/admin/projects', + resource_path='/v1/admin/projects', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1529,10 +1529,10 @@ 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, - ) -> ServicingPublicapiTransfersProjectCommitsAPIResponseDTO: + ) -> ServicingProjectCommitsAPIResponseDTO: """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). + Import a ZIP file that contains a list of committed changes into a draft project. The file must be an export from `POST /v1/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. :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str @@ -1573,7 +1573,7 @@ def put_project_commits( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1605,10 +1605,10 @@ 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[ServicingPublicapiTransfersProjectCommitsAPIResponseDTO]: + ) -> ApiResponse[ServicingProjectCommitsAPIResponseDTO]: """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). + Import a ZIP file that contains a list of committed changes into a draft project. The file must be an export from `POST /v1/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. :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str @@ -1649,7 +1649,7 @@ def put_project_commits_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1684,7 +1684,7 @@ def put_project_commits_without_preload_content( ) -> RESTResponseType: """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). + Import a ZIP file that contains a list of committed changes into a draft project. The file must be an export from `POST /v1/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. :param project_id: The unique identifier of the draft project you want to import committed changes into. (required) :type project_id: str @@ -1725,7 +1725,7 @@ def put_project_commits_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectCommitsAPIResponseDTO", + '200': "ServicingProjectCommitsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1803,7 +1803,7 @@ def _put_project_commits_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1beta/admin/projects/{projectId}/commits', + resource_path='/v1/admin/projects/{projectId}/commits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1823,7 +1823,7 @@ def _put_project_commits_serialize( def run_project_operation( self, project_id: StrictStr, - servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, + servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO, 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, @@ -1837,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, - ) -> ServicingPublicapiTransfersProjectOperationResponseDTO: + ) -> ServicingProjectOperationResponseDTO: """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). + Perform operations on a draft project. The following operations are supported: * `commitAndPublish`: Commits project changes and publishes the project to production. :param project_id: (required) :type project_id: str - :param servicing_publicapi_transfers_project_operation_request_dto: (required) - :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO + :param servicing_project_operation_request_dto: (required) + :type servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO :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 @@ -1872,7 +1872,7 @@ def run_project_operation( _param = self._run_project_operation_serialize( project_id=project_id, - servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, + servicing_project_operation_request_dto=servicing_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1881,7 +1881,7 @@ def run_project_operation( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", + '200': "ServicingProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1899,7 +1899,7 @@ def run_project_operation( def run_project_operation_with_http_info( self, project_id: StrictStr, - servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, + servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO, 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, @@ -1913,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[ServicingPublicapiTransfersProjectOperationResponseDTO]: + ) -> ApiResponse[ServicingProjectOperationResponseDTO]: """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). + Perform operations on a draft project. The following operations are supported: * `commitAndPublish`: Commits project changes and publishes the project to production. :param project_id: (required) :type project_id: str - :param servicing_publicapi_transfers_project_operation_request_dto: (required) - :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO + :param servicing_project_operation_request_dto: (required) + :type servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO :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 @@ -1948,7 +1948,7 @@ def run_project_operation_with_http_info( _param = self._run_project_operation_serialize( project_id=project_id, - servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, + servicing_project_operation_request_dto=servicing_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1957,7 +1957,7 @@ def run_project_operation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", + '200': "ServicingProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1975,7 +1975,7 @@ def run_project_operation_with_http_info( def run_project_operation_without_preload_content( self, project_id: StrictStr, - servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO, + servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO, 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, @@ -1992,12 +1992,12 @@ def run_project_operation_without_preload_content( ) -> RESTResponseType: """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). + Perform operations on a draft project. The following operations are supported: * `commitAndPublish`: Commits project changes and publishes the project to production. :param project_id: (required) :type project_id: str - :param servicing_publicapi_transfers_project_operation_request_dto: (required) - :type servicing_publicapi_transfers_project_operation_request_dto: ServicingPublicapiTransfersProjectOperationRequestDTO + :param servicing_project_operation_request_dto: (required) + :type servicing_project_operation_request_dto: ServicingProjectOperationRequestDTO :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 @@ -2024,7 +2024,7 @@ def run_project_operation_without_preload_content( _param = self._run_project_operation_serialize( project_id=project_id, - servicing_publicapi_transfers_project_operation_request_dto=servicing_publicapi_transfers_project_operation_request_dto, + servicing_project_operation_request_dto=servicing_project_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2033,7 +2033,7 @@ def run_project_operation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersProjectOperationResponseDTO", + '200': "ServicingProjectOperationResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2045,7 +2045,7 @@ def run_project_operation_without_preload_content( def _run_project_operation_serialize( self, project_id, - servicing_publicapi_transfers_project_operation_request_dto, + servicing_project_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -2074,8 +2074,8 @@ def _run_project_operation_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_project_operation_request_dto is not None: - _body_params = servicing_publicapi_transfers_project_operation_request_dto + if servicing_project_operation_request_dto is not None: + _body_params = servicing_project_operation_request_dto # set the HTTP header `Accept` @@ -2111,7 +2111,7 @@ def _run_project_operation_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1beta/admin/projects/{projectId}', + resource_path='/v1/admin/projects/{projectId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, 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 2ddabc038a..01161fba6f 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.servicing_publicapi_transfers_sources_api_operation_request_dto import ServicingPublicapiTransfersSourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_sources_api_operation_request_dto import ServicingSourcesAPIOperationRequestDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO import visier_api_administration.models @@ -358,7 +358,7 @@ def _put_sources_serialize( @validate_call def run_sources_operation( self, - servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, + servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO, 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, @@ -377,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 servicing_publicapi_transfers_sources_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + :param servicing_sources_api_operation_request_dto: (required) + :type servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO :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 @@ -404,7 +404,7 @@ def run_sources_operation( """ # noqa: E501 _param = self._run_sources_operation_serialize( - servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, + servicing_sources_api_operation_request_dto=servicing_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -430,7 +430,7 @@ def run_sources_operation( @validate_call def run_sources_operation_with_http_info( self, - servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, + servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO, 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, @@ -449,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 servicing_publicapi_transfers_sources_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + :param servicing_sources_api_operation_request_dto: (required) + :type servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO :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 @@ -476,7 +476,7 @@ def run_sources_operation_with_http_info( """ # noqa: E501 _param = self._run_sources_operation_serialize( - servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, + servicing_sources_api_operation_request_dto=servicing_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -502,7 +502,7 @@ def run_sources_operation_with_http_info( @validate_call def run_sources_operation_without_preload_content( self, - servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO, + servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO, 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, @@ -521,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 servicing_publicapi_transfers_sources_api_operation_request_dto: (required) - :type servicing_publicapi_transfers_sources_api_operation_request_dto: ServicingPublicapiTransfersSourcesAPIOperationRequestDTO + :param servicing_sources_api_operation_request_dto: (required) + :type servicing_sources_api_operation_request_dto: ServicingSourcesAPIOperationRequestDTO :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 @@ -548,7 +548,7 @@ def run_sources_operation_without_preload_content( """ # noqa: E501 _param = self._run_sources_operation_serialize( - servicing_publicapi_transfers_sources_api_operation_request_dto=servicing_publicapi_transfers_sources_api_operation_request_dto, + servicing_sources_api_operation_request_dto=servicing_sources_api_operation_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -568,7 +568,7 @@ def run_sources_operation_without_preload_content( def _run_sources_operation_serialize( self, - servicing_publicapi_transfers_sources_api_operation_request_dto, + servicing_sources_api_operation_request_dto, target_tenant_id, _request_auth, _content_type, @@ -595,8 +595,8 @@ def _run_sources_operation_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_sources_api_operation_request_dto is not None: - _body_params = servicing_publicapi_transfers_sources_api_operation_request_dto + if servicing_sources_api_operation_request_dto is not None: + _body_params = servicing_sources_api_operation_request_dto # set the HTTP header `Accept` 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 18c3cc8682..f3e1e7aba0 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO +from visier_api_administration.models.systemstatus_system_status_dto import SystemstatusSystemStatusDTO 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, - ) -> SystemstatusPublicapiTransfersSystemStatusDTO: + ) -> SystemstatusSystemStatusDTO: """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': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } 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[SystemstatusPublicapiTransfersSystemStatusDTO]: + ) -> ApiResponse[SystemstatusSystemStatusDTO]: """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': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } 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': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -320,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, - ) -> SystemstatusPublicapiTransfersSystemStatusDTO: + ) -> SystemstatusSystemStatusDTO: """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. @@ -358,7 +358,7 @@ def system_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -388,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[SystemstatusPublicapiTransfersSystemStatusDTO]: + ) -> ApiResponse[SystemstatusSystemStatusDTO]: """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. @@ -426,7 +426,7 @@ def system_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } response_data = self.api_client.call_api( *_param, @@ -494,7 +494,7 @@ def system_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SystemstatusPublicapiTransfersSystemStatusDTO", + '200': "SystemstatusSystemStatusDTO", } response_data = self.api_client.call_api( *_param, 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 49f42ec42f..e7738a08ab 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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_all_tenants_status_apidto import AdminAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_batch_tenant_provision_apidto import AdminBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_tenant_detail_apidto import AdminTenantDetailAPIDTO +from visier_api_administration.models.admin_tenant_provision_apidto import AdminTenantProvisionAPIDTO +from visier_api_administration.models.admin_tenant_status_apidto import AdminTenantStatusAPIDTO 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 +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_dto import DpAutomationTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_list_dto import DpAutomationTenantPreviewEntriesSummaryListDTO import visier_api_administration.models @@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_tenant( self, - admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, + admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO, _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, - ) -> AdminPublicapiTransfersTenantProvisionAPIDTO: + ) -> AdminTenantProvisionAPIDTO: """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 admin_publicapi_transfers_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO + :param admin_tenant_provision_apidto: (required) + :type admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO :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( - admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, + admin_tenant_provision_apidto=admin_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': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -117,7 +117,7 @@ def add_tenant( @validate_call def add_tenant_with_http_info( self, - admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, + admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO, _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[AdminPublicapiTransfersTenantProvisionAPIDTO]: + ) -> ApiResponse[AdminTenantProvisionAPIDTO]: """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 admin_publicapi_transfers_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO + :param admin_tenant_provision_apidto: (required) + :type admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO :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( - admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, + admin_tenant_provision_apidto=admin_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': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } 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, - admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO, + admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO, _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 admin_publicapi_transfers_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_tenant_provision_apidto: AdminPublicapiTransfersTenantProvisionAPIDTO + :param admin_tenant_provision_apidto: (required) + :type admin_tenant_provision_apidto: AdminTenantProvisionAPIDTO :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( - admin_publicapi_transfers_tenant_provision_apidto=admin_publicapi_transfers_tenant_provision_apidto, + admin_tenant_provision_apidto=admin_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': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -247,7 +247,7 @@ def add_tenant_without_preload_content( def _add_tenant_serialize( self, - admin_publicapi_transfers_tenant_provision_apidto, + admin_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 admin_publicapi_transfers_tenant_provision_apidto is not None: - _body_params = admin_publicapi_transfers_tenant_provision_apidto + if admin_tenant_provision_apidto is not None: + _body_params = admin_tenant_provision_apidto # set the HTTP header `Accept` @@ -327,7 +327,7 @@ def _add_tenant_serialize( @validate_call def add_tenants( self, - admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, + admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -340,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, - ) -> AdminPublicapiTransfersBatchTenantProvisionAPIDTO: + ) -> AdminBatchTenantProvisionAPIDTO: """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 admin_publicapi_transfers_batch_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO + :param admin_batch_tenant_provision_apidto: (required) + :type admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO :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 @@ -370,7 +370,7 @@ def add_tenants( """ # noqa: E501 _param = self._add_tenants_serialize( - admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, + admin_batch_tenant_provision_apidto=admin_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -378,7 +378,7 @@ def add_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", + '200': "AdminBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -395,7 +395,7 @@ def add_tenants( @validate_call def add_tenants_with_http_info( self, - admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, + admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -408,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[AdminPublicapiTransfersBatchTenantProvisionAPIDTO]: + ) -> ApiResponse[AdminBatchTenantProvisionAPIDTO]: """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 admin_publicapi_transfers_batch_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO + :param admin_batch_tenant_provision_apidto: (required) + :type admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO :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 @@ -438,7 +438,7 @@ def add_tenants_with_http_info( """ # noqa: E501 _param = self._add_tenants_serialize( - admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, + admin_batch_tenant_provision_apidto=admin_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -446,7 +446,7 @@ def add_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", + '200': "AdminBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -463,7 +463,7 @@ def add_tenants_with_http_info( @validate_call def add_tenants_without_preload_content( self, - admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO, + admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -481,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 admin_publicapi_transfers_batch_tenant_provision_apidto: (required) - :type admin_publicapi_transfers_batch_tenant_provision_apidto: AdminPublicapiTransfersBatchTenantProvisionAPIDTO + :param admin_batch_tenant_provision_apidto: (required) + :type admin_batch_tenant_provision_apidto: AdminBatchTenantProvisionAPIDTO :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 @@ -506,7 +506,7 @@ def add_tenants_without_preload_content( """ # noqa: E501 _param = self._add_tenants_serialize( - admin_publicapi_transfers_batch_tenant_provision_apidto=admin_publicapi_transfers_batch_tenant_provision_apidto, + admin_batch_tenant_provision_apidto=admin_batch_tenant_provision_apidto, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -514,7 +514,7 @@ def add_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersBatchTenantProvisionAPIDTO", + '200': "AdminBatchTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -525,7 +525,7 @@ def add_tenants_without_preload_content( def _add_tenants_serialize( self, - admin_publicapi_transfers_batch_tenant_provision_apidto, + admin_batch_tenant_provision_apidto, _request_auth, _content_type, _headers, @@ -549,8 +549,8 @@ def _add_tenants_serialize( # process the header parameters # process the form parameters # process the body parameter - if admin_publicapi_transfers_batch_tenant_provision_apidto is not None: - _body_params = admin_publicapi_transfers_batch_tenant_provision_apidto + if admin_batch_tenant_provision_apidto is not None: + _body_params = admin_batch_tenant_provision_apidto # set the HTTP header `Accept` @@ -618,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, - ) -> AdminPublicapiTransfersTenantStatusAPIDTO: + ) -> AdminTenantStatusAPIDTO: """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. @@ -656,7 +656,7 @@ def delete_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -686,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[AdminPublicapiTransfersTenantStatusAPIDTO]: + ) -> ApiResponse[AdminTenantStatusAPIDTO]: """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. @@ -724,7 +724,7 @@ def delete_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -792,7 +792,7 @@ def delete_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -883,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, - ) -> AdminPublicapiTransfersTenantStatusAPIDTO: + ) -> AdminTenantStatusAPIDTO: """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. @@ -921,7 +921,7 @@ def disable_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -951,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[AdminPublicapiTransfersTenantStatusAPIDTO]: + ) -> ApiResponse[AdminTenantStatusAPIDTO]: """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. @@ -989,7 +989,7 @@ def disable_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1057,7 +1057,7 @@ def disable_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1148,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, - ) -> AdminPublicapiTransfersTenantStatusAPIDTO: + ) -> AdminTenantStatusAPIDTO: """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. @@ -1186,7 +1186,7 @@ def enable_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1216,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[AdminPublicapiTransfersTenantStatusAPIDTO]: + ) -> ApiResponse[AdminTenantStatusAPIDTO]: """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. @@ -1254,7 +1254,7 @@ def enable_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1322,7 +1322,7 @@ def enable_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1413,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, - ) -> AdminPublicapiTransfersTenantDetailAPIDTO: + ) -> AdminTenantDetailAPIDTO: """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. @@ -1451,7 +1451,7 @@ def get_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantDetailAPIDTO", + '200': "AdminTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1481,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[AdminPublicapiTransfersTenantDetailAPIDTO]: + ) -> ApiResponse[AdminTenantDetailAPIDTO]: """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. @@ -1519,7 +1519,7 @@ def get_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantDetailAPIDTO", + '200': "AdminTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1587,7 +1587,7 @@ def get_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantDetailAPIDTO", + '200': "AdminTenantDetailAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1680,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, - ) -> AdminPublicapiTransfersAllTenantsStatusAPIDTO: + ) -> AdminAllTenantsStatusAPIDTO: """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. @@ -1724,7 +1724,7 @@ def get_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", + '200': "AdminAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1756,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[AdminPublicapiTransfersAllTenantsStatusAPIDTO]: + ) -> ApiResponse[AdminAllTenantsStatusAPIDTO]: """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. @@ -1800,7 +1800,7 @@ def get_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", + '200': "AdminAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1876,7 +1876,7 @@ def get_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersAllTenantsStatusAPIDTO", + '200': "AdminAllTenantsStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -1980,7 +1980,7 @@ def update_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AdminPublicapiTransfersTenantProvisionAPIDTO: + ) -> AdminTenantProvisionAPIDTO: """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`. @@ -2021,7 +2021,7 @@ def update_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2052,7 +2052,7 @@ 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[AdminPublicapiTransfersTenantProvisionAPIDTO]: + ) -> ApiResponse[AdminTenantProvisionAPIDTO]: """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`. @@ -2093,7 +2093,7 @@ def update_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2165,7 +2165,7 @@ def update_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantProvisionAPIDTO", + '200': "AdminTenantProvisionAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -2273,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, - ) -> DpAutomationTransfersTenantPreviewEntriesSummaryDTO: + ) -> DpAutomationTenantPreviewEntriesSummaryDTO: """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. @@ -2314,7 +2314,7 @@ def validate_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2345,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[DpAutomationTransfersTenantPreviewEntriesSummaryDTO]: + ) -> ApiResponse[DpAutomationTenantPreviewEntriesSummaryDTO]: """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. @@ -2386,7 +2386,7 @@ def validate_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2458,7 +2458,7 @@ def validate_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryDTO", } response_data = self.api_client.call_api( *_param, @@ -2554,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, - ) -> DpAutomationTransfersTenantPreviewEntriesSummaryListDTO: + ) -> DpAutomationTenantPreviewEntriesSummaryListDTO: """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. @@ -2598,7 +2598,7 @@ def validate_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, @@ -2630,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[DpAutomationTransfersTenantPreviewEntriesSummaryListDTO]: + ) -> ApiResponse[DpAutomationTenantPreviewEntriesSummaryListDTO]: """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. @@ -2674,7 +2674,7 @@ def validate_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, @@ -2750,7 +2750,7 @@ def validate_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DpAutomationTransfersTenantPreviewEntriesSummaryListDTO", + '200': "DpAutomationTenantPreviewEntriesSummaryListDTO", } response_data = self.api_client.call_api( *_param, 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 f17aca483c..3752511602 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,11 +24,11 @@ from typing import Optional from typing_extensions import Annotated 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 +from visier_api_administration.models.admin_tenant_management_api_get_response_dto import AdminTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_tenant_management_api_list_response_dto import AdminTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_tenant_management_api_update_request_dto import AdminTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_tenant_management_api_update_response_dto import AdminTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_tenant_status_apidto import AdminTenantStatusAPIDTO import visier_api_administration.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_tenant( self, - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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, - ) -> AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO: + ) -> AdminTenantManagementAPIUpdateResponseDTO: """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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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( - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_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': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def create_tenant( @validate_call def create_tenant_with_http_info( self, - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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[AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO]: + ) -> ApiResponse[AdminTenantManagementAPIUpdateResponseDTO]: """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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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( - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_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': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } 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, - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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( - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_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': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def create_tenant_without_preload_content( def _create_tenant_serialize( self, - admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_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 admin_publicapi_transfers_tenant_management_api_update_request_dto is not None: - _body_params = admin_publicapi_transfers_tenant_management_api_update_request_dto + if admin_tenant_management_api_update_request_dto is not None: + _body_params = admin_tenant_management_api_update_request_dto # set the HTTP header `Accept` @@ -354,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, - ) -> AdminPublicapiTransfersTenantStatusAPIDTO: + ) -> AdminTenantStatusAPIDTO: """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. @@ -395,7 +395,7 @@ def delete_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -426,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[AdminPublicapiTransfersTenantStatusAPIDTO]: + ) -> ApiResponse[AdminTenantStatusAPIDTO]: """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. @@ -467,7 +467,7 @@ def delete_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -539,7 +539,7 @@ def delete_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantStatusAPIDTO", + '200': "AdminTenantStatusAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -637,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, - ) -> AdminPublicapiTransfersTenantManagementAPIListResponseDTO: + ) -> AdminTenantManagementAPIListResponseDTO: """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. @@ -687,7 +687,7 @@ def list_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", + '200': "AdminTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -721,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[AdminPublicapiTransfersTenantManagementAPIListResponseDTO]: + ) -> ApiResponse[AdminTenantManagementAPIListResponseDTO]: """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. @@ -771,7 +771,7 @@ def list_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", + '200': "AdminTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -855,7 +855,7 @@ def list_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIListResponseDTO", + '200': "AdminTenantManagementAPIListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -980,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, - ) -> AdminPublicapiTransfersTenantManagementAPIGetResponseDTO: + ) -> AdminTenantManagementAPIGetResponseDTO: """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. @@ -1027,7 +1027,7 @@ def tenant_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", + '200': "AdminTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1060,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[AdminPublicapiTransfersTenantManagementAPIGetResponseDTO]: + ) -> ApiResponse[AdminTenantManagementAPIGetResponseDTO]: """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. @@ -1107,7 +1107,7 @@ def tenant_info_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", + '200': "AdminTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1187,7 +1187,7 @@ def tenant_info_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIGetResponseDTO", + '200': "AdminTenantManagementAPIGetResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1290,7 +1290,7 @@ def _tenant_info_serialize( def update_tenant( self, tenant_id: Annotated[StrictStr, Field(description="The ID of the tenant to update.")], - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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, @@ -1304,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, - ) -> AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO: + ) -> AdminTenantManagementAPIUpdateResponseDTO: """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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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 @@ -1339,7 +1339,7 @@ def update_tenant( _param = self._update_tenant_serialize( tenant_id=tenant_id, - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1348,7 +1348,7 @@ def update_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1366,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.")], - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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, @@ -1380,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[AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO]: + ) -> ApiResponse[AdminTenantManagementAPIUpdateResponseDTO]: """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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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 @@ -1415,7 +1415,7 @@ def update_tenant_with_http_info( _param = self._update_tenant_serialize( tenant_id=tenant_id, - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1424,7 +1424,7 @@ def update_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1442,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.")], - admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO, + admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO, 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, @@ -1463,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 admin_publicapi_transfers_tenant_management_api_update_request_dto: (required) - :type admin_publicapi_transfers_tenant_management_api_update_request_dto: AdminPublicapiTransfersTenantManagementAPIUpdateRequestDTO + :param admin_tenant_management_api_update_request_dto: (required) + :type admin_tenant_management_api_update_request_dto: AdminTenantManagementAPIUpdateRequestDTO :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 @@ -1491,7 +1491,7 @@ def update_tenant_without_preload_content( _param = self._update_tenant_serialize( tenant_id=tenant_id, - admin_publicapi_transfers_tenant_management_api_update_request_dto=admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto=admin_tenant_management_api_update_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1500,7 +1500,7 @@ def update_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersTenantManagementAPIUpdateResponseDTO", + '200': "AdminTenantManagementAPIUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1512,7 +1512,7 @@ def update_tenant_without_preload_content( def _update_tenant_serialize( self, tenant_id, - admin_publicapi_transfers_tenant_management_api_update_request_dto, + admin_tenant_management_api_update_request_dto, target_tenant_id, _request_auth, _content_type, @@ -1541,8 +1541,8 @@ def _update_tenant_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if admin_publicapi_transfers_tenant_management_api_update_request_dto is not None: - _body_params = admin_publicapi_transfers_tenant_management_api_update_request_dto + if admin_tenant_management_api_update_request_dto is not None: + _body_params = admin_tenant_management_api_update_request_dto # set the HTTP header `Accept` 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 5789b98a42..1694749497 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,12 +24,12 @@ from typing import Optional from typing_extensions import Annotated 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 +from visier_api_administration.models.admin_user_group_change_definition_dto import AdminUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_user_group_change_response_dto import AdminUserGroupChangeResponseDTO +from visier_api_administration.models.admin_user_group_delete_response_dto import AdminUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_user_group_single_delete_response_dto import AdminUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_user_groups_change_dto import AdminUserGroupsChangeDTO +from visier_api_administration.models.admin_user_groups_delete_request_dto import AdminUserGroupsDeleteRequestDTO import visier_api_administration.models @@ -48,7 +48,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_user_groups( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, - ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: + ) -> AdminUserGroupChangeResponseDTO: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_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': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } 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, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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[AdminPublicapiTransfersUserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminUserGroupChangeResponseDTO]: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_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': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } 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, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_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': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } 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, - admin_publicapi_transfers_user_groups_change_dto, + admin_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 admin_publicapi_transfers_user_groups_change_dto is not None: - _body_params = admin_publicapi_transfers_user_groups_change_dto + if admin_user_groups_change_dto is not None: + _body_params = admin_user_groups_change_dto # set the HTTP header `Accept` @@ -388,7 +388,7 @@ 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, - ) -> AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO: + ) -> AdminUserGroupSingleDeleteResponseDTO: """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. @@ -438,7 +438,7 @@ def delete_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", + '200': "AdminUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -472,7 +472,7 @@ 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[AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO]: + ) -> ApiResponse[AdminUserGroupSingleDeleteResponseDTO]: """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. @@ -522,7 +522,7 @@ def delete_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", + '200': "AdminUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -606,7 +606,7 @@ def delete_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupSingleDeleteResponseDTO", + '200': "AdminUserGroupSingleDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -709,7 +709,7 @@ def _delete_user_group_serialize( @validate_call def delete_user_groups( self, - admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, + admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO, 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, @@ -725,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, - ) -> AdminPublicapiTransfersUserGroupDeleteResponseDTO: + ) -> AdminUserGroupDeleteResponseDTO: """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 admin_publicapi_transfers_user_groups_delete_request_dto: (required) - :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO + :param admin_user_groups_delete_request_dto: (required) + :type admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO :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. @@ -761,7 +761,7 @@ def delete_user_groups( """ # noqa: E501 _param = self._delete_user_groups_serialize( - admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, + admin_user_groups_delete_request_dto=admin_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -772,7 +772,7 @@ def delete_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", + '200': "AdminUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -789,7 +789,7 @@ def delete_user_groups( @validate_call def delete_user_groups_with_http_info( self, - admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, + admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO, 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, @@ -805,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[AdminPublicapiTransfersUserGroupDeleteResponseDTO]: + ) -> ApiResponse[AdminUserGroupDeleteResponseDTO]: """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 admin_publicapi_transfers_user_groups_delete_request_dto: (required) - :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO + :param admin_user_groups_delete_request_dto: (required) + :type admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO :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. @@ -841,7 +841,7 @@ def delete_user_groups_with_http_info( """ # noqa: E501 _param = self._delete_user_groups_serialize( - admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, + admin_user_groups_delete_request_dto=admin_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -852,7 +852,7 @@ def delete_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", + '200': "AdminUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -869,7 +869,7 @@ def delete_user_groups_with_http_info( @validate_call def delete_user_groups_without_preload_content( self, - admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO, + admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO, 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, @@ -890,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 admin_publicapi_transfers_user_groups_delete_request_dto: (required) - :type admin_publicapi_transfers_user_groups_delete_request_dto: AdminPublicapiTransfersUserGroupsDeleteRequestDTO + :param admin_user_groups_delete_request_dto: (required) + :type admin_user_groups_delete_request_dto: AdminUserGroupsDeleteRequestDTO :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. @@ -921,7 +921,7 @@ def delete_user_groups_without_preload_content( """ # noqa: E501 _param = self._delete_user_groups_serialize( - admin_publicapi_transfers_user_groups_delete_request_dto=admin_publicapi_transfers_user_groups_delete_request_dto, + admin_user_groups_delete_request_dto=admin_user_groups_delete_request_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -932,7 +932,7 @@ def delete_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupDeleteResponseDTO", + '200': "AdminUserGroupDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -943,7 +943,7 @@ def delete_user_groups_without_preload_content( def _delete_user_groups_serialize( self, - admin_publicapi_transfers_user_groups_delete_request_dto, + admin_user_groups_delete_request_dto, target_tenant_id, project_id, non_versioned, @@ -976,8 +976,8 @@ def _delete_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if admin_publicapi_transfers_user_groups_delete_request_dto is not None: - _body_params = admin_publicapi_transfers_user_groups_delete_request_dto + if admin_user_groups_delete_request_dto is not None: + _body_params = admin_user_groups_delete_request_dto # set the HTTP header `Accept` @@ -1049,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, - ) -> AdminPublicapiTransfersUserGroupChangeDefinitionDTO: + ) -> AdminUserGroupChangeDefinitionDTO: """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. @@ -1099,7 +1099,7 @@ def get_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", + '200': "AdminUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1133,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[AdminPublicapiTransfersUserGroupChangeDefinitionDTO]: + ) -> ApiResponse[AdminUserGroupChangeDefinitionDTO]: """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. @@ -1183,7 +1183,7 @@ def get_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", + '200': "AdminUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1267,7 +1267,7 @@ def get_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeDefinitionDTO", + '200': "AdminUserGroupChangeDefinitionDTO", } response_data = self.api_client.call_api( *_param, @@ -1376,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, - ) -> AdminPublicapiTransfersUserGroupsChangeDTO: + ) -> AdminUserGroupsChangeDTO: """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. @@ -1426,7 +1426,7 @@ def get_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupsChangeDTO", + '200': "AdminUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1460,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[AdminPublicapiTransfersUserGroupsChangeDTO]: + ) -> ApiResponse[AdminUserGroupsChangeDTO]: """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. @@ -1510,7 +1510,7 @@ def get_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupsChangeDTO", + '200': "AdminUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1594,7 +1594,7 @@ def get_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupsChangeDTO", + '200': "AdminUserGroupsChangeDTO", } response_data = self.api_client.call_api( *_param, @@ -1688,7 +1688,7 @@ def _get_user_groups_serialize( @validate_call def patch_user_groups( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -1704,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, - ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: + ) -> AdminUserGroupChangeResponseDTO: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -1740,7 +1740,7 @@ def patch_user_groups( """ # noqa: E501 _param = self._patch_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1751,7 +1751,7 @@ def patch_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1768,7 +1768,7 @@ def patch_user_groups( @validate_call def patch_user_groups_with_http_info( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -1784,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[AdminPublicapiTransfersUserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminUserGroupChangeResponseDTO]: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -1820,7 +1820,7 @@ def patch_user_groups_with_http_info( """ # noqa: E501 _param = self._patch_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1831,7 +1831,7 @@ def patch_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1848,7 +1848,7 @@ def patch_user_groups_with_http_info( @validate_call def patch_user_groups_without_preload_content( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -1869,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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -1900,7 +1900,7 @@ def patch_user_groups_without_preload_content( """ # noqa: E501 _param = self._patch_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -1911,7 +1911,7 @@ def patch_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1922,7 +1922,7 @@ def patch_user_groups_without_preload_content( def _patch_user_groups_serialize( self, - admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto, target_tenant_id, project_id, non_versioned, @@ -1955,8 +1955,8 @@ def _patch_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if admin_publicapi_transfers_user_groups_change_dto is not None: - _body_params = admin_publicapi_transfers_user_groups_change_dto + if admin_user_groups_change_dto is not None: + _body_params = admin_user_groups_change_dto # set the HTTP header `Accept` @@ -2011,7 +2011,7 @@ def _patch_user_groups_serialize( @validate_call def put_user_groups( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -2027,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, - ) -> AdminPublicapiTransfersUserGroupChangeResponseDTO: + ) -> AdminUserGroupChangeResponseDTO: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -2063,7 +2063,7 @@ def put_user_groups( """ # noqa: E501 _param = self._put_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2074,7 +2074,7 @@ def put_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2091,7 +2091,7 @@ def put_user_groups( @validate_call def put_user_groups_with_http_info( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -2107,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[AdminPublicapiTransfersUserGroupChangeResponseDTO]: + ) -> ApiResponse[AdminUserGroupChangeResponseDTO]: """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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -2143,7 +2143,7 @@ def put_user_groups_with_http_info( """ # noqa: E501 _param = self._put_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2154,7 +2154,7 @@ def put_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2171,7 +2171,7 @@ def put_user_groups_with_http_info( @validate_call def put_user_groups_without_preload_content( self, - admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO, + admin_user_groups_change_dto: AdminUserGroupsChangeDTO, 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, @@ -2192,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 admin_publicapi_transfers_user_groups_change_dto: (required) - :type admin_publicapi_transfers_user_groups_change_dto: AdminPublicapiTransfersUserGroupsChangeDTO + :param admin_user_groups_change_dto: (required) + :type admin_user_groups_change_dto: AdminUserGroupsChangeDTO :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. @@ -2223,7 +2223,7 @@ def put_user_groups_without_preload_content( """ # noqa: E501 _param = self._put_user_groups_serialize( - admin_publicapi_transfers_user_groups_change_dto=admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto=admin_user_groups_change_dto, target_tenant_id=target_tenant_id, project_id=project_id, non_versioned=non_versioned, @@ -2234,7 +2234,7 @@ def put_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminPublicapiTransfersUserGroupChangeResponseDTO", + '200': "AdminUserGroupChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2245,7 +2245,7 @@ def put_user_groups_without_preload_content( def _put_user_groups_serialize( self, - admin_publicapi_transfers_user_groups_change_dto, + admin_user_groups_change_dto, target_tenant_id, project_id, non_versioned, @@ -2278,8 +2278,8 @@ def _put_user_groups_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if admin_publicapi_transfers_user_groups_change_dto is not None: - _body_params = admin_publicapi_transfers_user_groups_change_dto + if admin_user_groups_change_dto is not None: + _body_params = admin_user_groups_change_dto # set the HTTP header `Accept` 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 0eb15c29a9..14085a7e15 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,19 +23,19 @@ 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.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.admin_permissions_to_user_group_for_tenant_dto import AdminPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_permissions_to_user_groups_request_dto import AdminPermissionsToUserGroupsRequestDTO +from visier_api_administration.models.admin_security_assignment_response_dto import AdminSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_user_groups_get_api_response_dto import AdminUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_user_groups_users_dto import AdminUserGroupsUsersDTO +from visier_api_administration.models.admin_users_to_user_groups_request_dto import AdminUsersToUserGroupsRequestDTO +from visier_api_administration.models.servicing_all_users_get_api_response_dto import ServicingAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_request_dto import ServicingAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_response_dto import ServicingAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_permission_assigned_users_dto import ServicingPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_user_creation_api_request_dto import ServicingUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_user_get_api_response_dto import ServicingUserGetAPIResponseDTO +from visier_api_administration.models.servicing_user_update_api_request_dto import ServicingUserUpdateAPIRequestDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO import visier_api_administration.models @@ -55,7 +55,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_user( self, - servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, + servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO, 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 servicing_publicapi_transfers_user_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO + :param servicing_user_creation_api_request_dto: (required) + :type servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO :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( - servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, + servicing_user_creation_api_request_dto=servicing_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, - servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, + servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO, 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 servicing_publicapi_transfers_user_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO + :param servicing_user_creation_api_request_dto: (required) + :type servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO :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( - servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, + servicing_user_creation_api_request_dto=servicing_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, - servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO, + servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO, 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 servicing_publicapi_transfers_user_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_user_creation_api_request_dto: ServicingPublicapiTransfersUserCreationAPIRequestDTO + :param servicing_user_creation_api_request_dto: (required) + :type servicing_user_creation_api_request_dto: ServicingUserCreationAPIRequestDTO :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( - servicing_publicapi_transfers_user_creation_api_request_dto=servicing_publicapi_transfers_user_creation_api_request_dto, + servicing_user_creation_api_request_dto=servicing_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, - servicing_publicapi_transfers_user_creation_api_request_dto, + servicing_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 servicing_publicapi_transfers_user_creation_api_request_dto is not None: - _body_params = servicing_publicapi_transfers_user_creation_api_request_dto + if servicing_user_creation_api_request_dto is not None: + _body_params = servicing_user_creation_api_request_dto # set the HTTP header `Accept` @@ -365,7 +365,7 @@ def _add_user_serialize( @validate_call def add_users_to_user_group( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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, @@ -381,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, - ) -> AdminTransfersSecurityAssignmentResponseDTO: + ) -> AdminSecurityAssignmentResponseDTO: """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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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. @@ -417,7 +417,7 @@ def add_users_to_user_group( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -428,7 +428,7 @@ def add_users_to_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -445,7 +445,7 @@ def add_users_to_user_group( @validate_call def add_users_to_user_group_with_http_info( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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, @@ -461,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[AdminTransfersSecurityAssignmentResponseDTO]: + ) -> ApiResponse[AdminSecurityAssignmentResponseDTO]: """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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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. @@ -497,7 +497,7 @@ def add_users_to_user_group_with_http_info( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -508,7 +508,7 @@ def add_users_to_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -525,7 +525,7 @@ def add_users_to_user_group_with_http_info( @validate_call def add_users_to_user_group_without_preload_content( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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, @@ -546,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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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. @@ -577,7 +577,7 @@ def add_users_to_user_group_without_preload_content( """ # noqa: E501 _param = self._add_users_to_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -588,7 +588,7 @@ def add_users_to_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -599,7 +599,7 @@ def add_users_to_user_group_without_preload_content( def _add_users_to_user_group_serialize( self, - admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto, project_id, target_tenant_id, non_versioned, @@ -632,8 +632,8 @@ def _add_users_to_user_group_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if admin_transfers_users_to_user_groups_request_dto is not None: - _body_params = admin_transfers_users_to_user_groups_request_dto + if admin_users_to_user_groups_request_dto is not None: + _body_params = admin_users_to_user_groups_request_dto # set the HTTP header `Accept` @@ -688,7 +688,7 @@ def _add_users_to_user_group_serialize( @validate_call def assign_permissions( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -704,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, - ) -> ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO: + ) -> ServicingAssignRevokePermissionsResponseDTO: """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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -740,7 +740,7 @@ def assign_permissions( """ # noqa: E501 _param = self._assign_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -751,7 +751,7 @@ def assign_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -768,7 +768,7 @@ def assign_permissions( @validate_call def assign_permissions_with_http_info( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -784,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[ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO]: + ) -> ApiResponse[ServicingAssignRevokePermissionsResponseDTO]: """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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -820,7 +820,7 @@ def assign_permissions_with_http_info( """ # noqa: E501 _param = self._assign_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -831,7 +831,7 @@ def assign_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -848,7 +848,7 @@ def assign_permissions_with_http_info( @validate_call def assign_permissions_without_preload_content( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -869,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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -900,7 +900,7 @@ def assign_permissions_without_preload_content( """ # noqa: E501 _param = self._assign_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -911,7 +911,7 @@ def assign_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -922,7 +922,7 @@ def assign_permissions_without_preload_content( def _assign_permissions_serialize( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto, project_id, target_tenant_id, non_versioned, @@ -955,8 +955,8 @@ def _assign_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if servicing_publicapi_transfers_assign_revoke_permissions_request_dto is not None: - _body_params = servicing_publicapi_transfers_assign_revoke_permissions_request_dto + if servicing_assign_revoke_permissions_request_dto is not None: + _body_params = servicing_assign_revoke_permissions_request_dto # set the HTTP header `Accept` @@ -1011,7 +1011,7 @@ def _assign_permissions_serialize( @validate_call def assign_permissions_to_user_groups( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -1026,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, - ) -> AdminTransfersPermissionsToUserGroupForTenantDTO: + ) -> AdminPermissionsToUserGroupForTenantDTO: """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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -1060,7 +1060,7 @@ def assign_permissions_to_user_groups( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1070,7 +1070,7 @@ def assign_permissions_to_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1087,7 +1087,7 @@ def assign_permissions_to_user_groups( @validate_call def assign_permissions_to_user_groups_with_http_info( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -1102,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[AdminTransfersPermissionsToUserGroupForTenantDTO]: + ) -> ApiResponse[AdminPermissionsToUserGroupForTenantDTO]: """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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -1136,7 +1136,7 @@ def assign_permissions_to_user_groups_with_http_info( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1146,7 +1146,7 @@ def assign_permissions_to_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1163,7 +1163,7 @@ def assign_permissions_to_user_groups_with_http_info( @validate_call def assign_permissions_to_user_groups_without_preload_content( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -1183,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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -1212,7 +1212,7 @@ def assign_permissions_to_user_groups_without_preload_content( """ # noqa: E501 _param = self._assign_permissions_to_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -1222,7 +1222,7 @@ def assign_permissions_to_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -1233,7 +1233,7 @@ def assign_permissions_to_user_groups_without_preload_content( def _assign_permissions_to_user_groups_serialize( self, - admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto, project_id, target_tenant_id, _request_auth, @@ -1263,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 admin_transfers_permissions_to_user_groups_request_dto is not None: - _body_params = admin_transfers_permissions_to_user_groups_request_dto + if admin_permissions_to_user_groups_request_dto is not None: + _body_params = admin_permissions_to_user_groups_request_dto # set the HTTP header `Accept` @@ -1916,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, - ) -> AdminTransfersUserGroupsGetAPIResponseDTO: + ) -> AdminUserGroupsGetAPIResponseDTO: """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. @@ -1966,7 +1966,7 @@ def get_all_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsGetAPIResponseDTO", + '200': "AdminUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2000,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[AdminTransfersUserGroupsGetAPIResponseDTO]: + ) -> ApiResponse[AdminUserGroupsGetAPIResponseDTO]: """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. @@ -2050,7 +2050,7 @@ def get_all_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsGetAPIResponseDTO", + '200': "AdminUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2134,7 +2134,7 @@ def get_all_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsGetAPIResponseDTO", + '200': "AdminUserGroupsGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2250,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, - ) -> ServicingPublicapiTransfersAllUsersGetAPIResponseDTO: + ) -> ServicingAllUsersGetAPIResponseDTO: """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. @@ -2309,7 +2309,7 @@ def get_all_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", + '200': "ServicingAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2346,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[ServicingPublicapiTransfersAllUsersGetAPIResponseDTO]: + ) -> ApiResponse[ServicingAllUsersGetAPIResponseDTO]: """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. @@ -2405,7 +2405,7 @@ def get_all_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", + '200': "ServicingAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2501,7 +2501,7 @@ def get_all_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAllUsersGetAPIResponseDTO", + '200': "ServicingAllUsersGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2631,7 +2631,7 @@ def get_application_logs_xlsx( ) -> bytearray: """Retrieve the Application Logs - This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. + This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Application logs are retained in the system for 180 days. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. :param start_time: An inclusive date-time to start retrieving Application Logs from. :type start_time: str @@ -2711,7 +2711,7 @@ def get_application_logs_xlsx_with_http_info( ) -> ApiResponse[bytearray]: """Retrieve the Application Logs - This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. + This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Application logs are retained in the system for 180 days. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. :param start_time: An inclusive date-time to start retrieving Application Logs from. :type start_time: str @@ -2791,7 +2791,7 @@ def get_application_logs_xlsx_without_preload_content( ) -> RESTResponseType: """Retrieve the Application Logs - This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. + This API allows you to export the Application Logs for a tenant. The Application Logs track information about your users and how they are using the application. Performing regular audits will help you identify potential security issues and keep your data safe. As part of user management, download the Application Logs to monitor user activity and logon events to ensure your users are performing authorized activities. Application logs are retained in the system for 180 days. Administrating tenant users can export application logs for the administrating tenant and the analytic tenants those users belong to. :param start_time: An inclusive date-time to start retrieving Application Logs from. :type start_time: str @@ -3247,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, - ) -> ServicingPublicapiTransfersPermissionAssignedUsersDTO: + ) -> ServicingPermissionAssignedUsersDTO: """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. @@ -3306,7 +3306,7 @@ def get_permission_assigned_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", + '200': "ServicingPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3343,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[ServicingPublicapiTransfersPermissionAssignedUsersDTO]: + ) -> ApiResponse[ServicingPermissionAssignedUsersDTO]: """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. @@ -3402,7 +3402,7 @@ def get_permission_assigned_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", + '200': "ServicingPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3498,7 +3498,7 @@ def get_permission_assigned_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersPermissionAssignedUsersDTO", + '200': "ServicingPermissionAssignedUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -3907,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, - ) -> ServicingPublicapiTransfersUserGetAPIResponseDTO: + ) -> ServicingUserGetAPIResponseDTO: """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. @@ -3963,7 +3963,7 @@ def get_user_detail( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", + '200': "ServicingUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3999,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[ServicingPublicapiTransfersUserGetAPIResponseDTO]: + ) -> ApiResponse[ServicingUserGetAPIResponseDTO]: """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. @@ -4055,7 +4055,7 @@ def get_user_detail_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", + '200': "ServicingUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4147,7 +4147,7 @@ def get_user_detail_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserGetAPIResponseDTO", + '200': "ServicingUserGetAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4269,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, - ) -> AdminTransfersUserGroupsUsersDTO: + ) -> AdminUserGroupsUsersDTO: """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. @@ -4322,7 +4322,7 @@ def get_user_group_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsUsersDTO", + '200': "AdminUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4357,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[AdminTransfersUserGroupsUsersDTO]: + ) -> ApiResponse[AdminUserGroupsUsersDTO]: """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. @@ -4410,7 +4410,7 @@ def get_user_group_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsUsersDTO", + '200': "AdminUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4498,7 +4498,7 @@ def get_user_group_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersUserGroupsUsersDTO", + '200': "AdminUserGroupsUsersDTO", } response_data = self.api_client.call_api( *_param, @@ -4880,7 +4880,7 @@ def _get_user_permissions_xlsx_serialize( @validate_call def remove_permissions( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -4896,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, - ) -> ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO: + ) -> ServicingAssignRevokePermissionsResponseDTO: """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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -4932,7 +4932,7 @@ def remove_permissions( """ # noqa: E501 _param = self._remove_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -4943,7 +4943,7 @@ def remove_permissions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4960,7 +4960,7 @@ def remove_permissions( @validate_call def remove_permissions_with_http_info( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -4976,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[ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO]: + ) -> ApiResponse[ServicingAssignRevokePermissionsResponseDTO]: """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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -5012,7 +5012,7 @@ def remove_permissions_with_http_info( """ # noqa: E501 _param = self._remove_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5023,7 +5023,7 @@ def remove_permissions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5040,7 +5040,7 @@ def remove_permissions_with_http_info( @validate_call def remove_permissions_without_preload_content( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO, + servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO, 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, @@ -5061,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 servicing_publicapi_transfers_assign_revoke_permissions_request_dto: (required) - :type servicing_publicapi_transfers_assign_revoke_permissions_request_dto: ServicingPublicapiTransfersAssignRevokePermissionsRequestDTO + :param servicing_assign_revoke_permissions_request_dto: (required) + :type servicing_assign_revoke_permissions_request_dto: ServicingAssignRevokePermissionsRequestDTO :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. @@ -5092,7 +5092,7 @@ def remove_permissions_without_preload_content( """ # noqa: E501 _param = self._remove_permissions_serialize( - servicing_publicapi_transfers_assign_revoke_permissions_request_dto=servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto=servicing_assign_revoke_permissions_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5103,7 +5103,7 @@ def remove_permissions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersAssignRevokePermissionsResponseDTO", + '200': "ServicingAssignRevokePermissionsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5114,7 +5114,7 @@ def remove_permissions_without_preload_content( def _remove_permissions_serialize( self, - servicing_publicapi_transfers_assign_revoke_permissions_request_dto, + servicing_assign_revoke_permissions_request_dto, project_id, target_tenant_id, non_versioned, @@ -5147,8 +5147,8 @@ def _remove_permissions_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if servicing_publicapi_transfers_assign_revoke_permissions_request_dto is not None: - _body_params = servicing_publicapi_transfers_assign_revoke_permissions_request_dto + if servicing_assign_revoke_permissions_request_dto is not None: + _body_params = servicing_assign_revoke_permissions_request_dto # set the HTTP header `Accept` @@ -5203,7 +5203,7 @@ def _remove_permissions_serialize( @validate_call def remove_users_from_user_group( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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 +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, - ) -> AdminTransfersSecurityAssignmentResponseDTO: + ) -> AdminSecurityAssignmentResponseDTO: """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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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 +5255,7 @@ def remove_users_from_user_group( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5266,7 +5266,7 @@ def remove_users_from_user_group( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5283,7 +5283,7 @@ def remove_users_from_user_group( @validate_call def remove_users_from_user_group_with_http_info( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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, @@ -5299,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[AdminTransfersSecurityAssignmentResponseDTO]: + ) -> ApiResponse[AdminSecurityAssignmentResponseDTO]: """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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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 +5335,7 @@ def remove_users_from_user_group_with_http_info( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5346,7 +5346,7 @@ def remove_users_from_user_group_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5363,7 +5363,7 @@ def remove_users_from_user_group_with_http_info( @validate_call def remove_users_from_user_group_without_preload_content( self, - admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO, + admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO, 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, @@ -5384,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 admin_transfers_users_to_user_groups_request_dto: (required) - :type admin_transfers_users_to_user_groups_request_dto: AdminTransfersUsersToUserGroupsRequestDTO + :param admin_users_to_user_groups_request_dto: (required) + :type admin_users_to_user_groups_request_dto: AdminUsersToUserGroupsRequestDTO :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. @@ -5415,7 +5415,7 @@ def remove_users_from_user_group_without_preload_content( """ # noqa: E501 _param = self._remove_users_from_user_group_serialize( - admin_transfers_users_to_user_groups_request_dto=admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto=admin_users_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, non_versioned=non_versioned, @@ -5426,7 +5426,7 @@ def remove_users_from_user_group_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersSecurityAssignmentResponseDTO", + '200': "AdminSecurityAssignmentResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5437,7 +5437,7 @@ def remove_users_from_user_group_without_preload_content( def _remove_users_from_user_group_serialize( self, - admin_transfers_users_to_user_groups_request_dto, + admin_users_to_user_groups_request_dto, project_id, target_tenant_id, non_versioned, @@ -5470,8 +5470,8 @@ def _remove_users_from_user_group_serialize( _header_params['NonVersioned'] = non_versioned # process the form parameters # process the body parameter - if admin_transfers_users_to_user_groups_request_dto is not None: - _body_params = admin_transfers_users_to_user_groups_request_dto + if admin_users_to_user_groups_request_dto is not None: + _body_params = admin_users_to_user_groups_request_dto # set the HTTP header `Accept` @@ -5526,7 +5526,7 @@ def _remove_users_from_user_group_serialize( @validate_call def revoke_permissions_from_user_groups( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -5541,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, - ) -> AdminTransfersPermissionsToUserGroupForTenantDTO: + ) -> AdminPermissionsToUserGroupForTenantDTO: """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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -5575,7 +5575,7 @@ def revoke_permissions_from_user_groups( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5585,7 +5585,7 @@ def revoke_permissions_from_user_groups( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5602,7 +5602,7 @@ def revoke_permissions_from_user_groups( @validate_call def revoke_permissions_from_user_groups_with_http_info( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -5617,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[AdminTransfersPermissionsToUserGroupForTenantDTO]: + ) -> ApiResponse[AdminPermissionsToUserGroupForTenantDTO]: """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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -5651,7 +5651,7 @@ def revoke_permissions_from_user_groups_with_http_info( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5661,7 +5661,7 @@ def revoke_permissions_from_user_groups_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5678,7 +5678,7 @@ def revoke_permissions_from_user_groups_with_http_info( @validate_call def revoke_permissions_from_user_groups_without_preload_content( self, - admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO, + admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO, 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[ @@ -5698,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 admin_transfers_permissions_to_user_groups_request_dto: (required) - :type admin_transfers_permissions_to_user_groups_request_dto: AdminTransfersPermissionsToUserGroupsRequestDTO + :param admin_permissions_to_user_groups_request_dto: (required) + :type admin_permissions_to_user_groups_request_dto: AdminPermissionsToUserGroupsRequestDTO :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. @@ -5727,7 +5727,7 @@ def revoke_permissions_from_user_groups_without_preload_content( """ # noqa: E501 _param = self._revoke_permissions_from_user_groups_serialize( - admin_transfers_permissions_to_user_groups_request_dto=admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto=admin_permissions_to_user_groups_request_dto, project_id=project_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5737,7 +5737,7 @@ def revoke_permissions_from_user_groups_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersPermissionsToUserGroupForTenantDTO", + '200': "AdminPermissionsToUserGroupForTenantDTO", } response_data = self.api_client.call_api( *_param, @@ -5748,7 +5748,7 @@ def revoke_permissions_from_user_groups_without_preload_content( def _revoke_permissions_from_user_groups_serialize( self, - admin_transfers_permissions_to_user_groups_request_dto, + admin_permissions_to_user_groups_request_dto, project_id, target_tenant_id, _request_auth, @@ -5778,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 admin_transfers_permissions_to_user_groups_request_dto is not None: - _body_params = admin_transfers_permissions_to_user_groups_request_dto + if admin_permissions_to_user_groups_request_dto is not None: + _body_params = admin_permissions_to_user_groups_request_dto # set the HTTP header `Accept` @@ -5835,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.")], - servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, + servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO, 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[ @@ -5850,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, - ) -> ServicingPublicapiTransfersUserUpdateAPIRequestDTO: + ) -> ServicingUserUpdateAPIRequestDTO: """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 servicing_publicapi_transfers_user_update_api_request_dto: (required) - :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO + :param servicing_user_update_api_request_dto: (required) + :type servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO :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. @@ -5887,7 +5887,7 @@ def update_user( _param = self._update_user_serialize( user_id=user_id, - servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, + servicing_user_update_api_request_dto=servicing_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5897,7 +5897,7 @@ def update_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", + '200': "ServicingUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -5915,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.")], - servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, + servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO, 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[ @@ -5930,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[ServicingPublicapiTransfersUserUpdateAPIRequestDTO]: + ) -> ApiResponse[ServicingUserUpdateAPIRequestDTO]: """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 servicing_publicapi_transfers_user_update_api_request_dto: (required) - :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO + :param servicing_user_update_api_request_dto: (required) + :type servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO :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. @@ -5967,7 +5967,7 @@ def update_user_with_http_info( _param = self._update_user_serialize( user_id=user_id, - servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, + servicing_user_update_api_request_dto=servicing_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -5977,7 +5977,7 @@ def update_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", + '200': "ServicingUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -5995,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.")], - servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO, + servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO, 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[ @@ -6017,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 servicing_publicapi_transfers_user_update_api_request_dto: (required) - :type servicing_publicapi_transfers_user_update_api_request_dto: ServicingPublicapiTransfersUserUpdateAPIRequestDTO + :param servicing_user_update_api_request_dto: (required) + :type servicing_user_update_api_request_dto: ServicingUserUpdateAPIRequestDTO :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. @@ -6047,7 +6047,7 @@ def update_user_without_preload_content( _param = self._update_user_serialize( user_id=user_id, - servicing_publicapi_transfers_user_update_api_request_dto=servicing_publicapi_transfers_user_update_api_request_dto, + servicing_user_update_api_request_dto=servicing_user_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -6057,7 +6057,7 @@ def update_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUserUpdateAPIRequestDTO", + '200': "ServicingUserUpdateAPIRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -6069,7 +6069,7 @@ def update_user_without_preload_content( def _update_user_serialize( self, user_id, - servicing_publicapi_transfers_user_update_api_request_dto, + servicing_user_update_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -6103,8 +6103,8 @@ def _update_user_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_user_update_api_request_dto is not None: - _body_params = servicing_publicapi_transfers_user_update_api_request_dto + if servicing_user_update_api_request_dto is not None: + _body_params = servicing_user_update_api_request_dto # set the HTTP header `Accept` 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 4e2a8c1e28..39641cff2b 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_administration.models.servicing_users_api_response_dto import ServicingUsersAPIResponseDTO +from visier_api_administration.models.servicing_users_creation_api_request_dto import ServicingUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_users_delete_api_request_dto import ServicingUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_users_update_api_request_dto import ServicingUsersUpdateAPIRequestDTO import visier_api_administration.models @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def add_users( self, - servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, + servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO, 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, - ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: + ) -> ServicingUsersAPIResponseDTO: """Add users Create new users. Administrating tenant users can specify the tenant in which to add these users. - :param servicing_publicapi_transfers_users_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO + :param servicing_users_creation_api_request_dto: (required) + :type servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO :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( - servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, + servicing_users_creation_api_request_dto=servicing_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': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -121,7 +121,7 @@ def add_users( @validate_call def add_users_with_http_info( self, - servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, + servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO, 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[ServicingPublicapiTransfersUsersAPIResponseDTO]: + ) -> ApiResponse[ServicingUsersAPIResponseDTO]: """Add users Create new users. Administrating tenant users can specify the tenant in which to add these users. - :param servicing_publicapi_transfers_users_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO + :param servicing_users_creation_api_request_dto: (required) + :type servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO :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( - servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, + servicing_users_creation_api_request_dto=servicing_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': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } 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, - servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO, + servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO, 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 servicing_publicapi_transfers_users_creation_api_request_dto: (required) - :type servicing_publicapi_transfers_users_creation_api_request_dto: ServicingPublicapiTransfersUsersCreationAPIRequestDTO + :param servicing_users_creation_api_request_dto: (required) + :type servicing_users_creation_api_request_dto: ServicingUsersCreationAPIRequestDTO :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( - servicing_publicapi_transfers_users_creation_api_request_dto=servicing_publicapi_transfers_users_creation_api_request_dto, + servicing_users_creation_api_request_dto=servicing_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': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -267,7 +267,7 @@ def add_users_without_preload_content( def _add_users_serialize( self, - servicing_publicapi_transfers_users_creation_api_request_dto, + servicing_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 servicing_publicapi_transfers_users_creation_api_request_dto is not None: - _body_params = servicing_publicapi_transfers_users_creation_api_request_dto + if servicing_users_creation_api_request_dto is not None: + _body_params = servicing_users_creation_api_request_dto # set the HTTP header `Accept` @@ -355,7 +355,7 @@ def _add_users_serialize( @validate_call def delete_users( self, - servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, + servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO, 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[ @@ -370,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, - ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: + ) -> ServicingUsersAPIResponseDTO: """Delete users Delete an existing user. Administrating tenant users can specify the tenant from which to delete a user. - :param servicing_publicapi_transfers_users_delete_api_request_dto: (required) - :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + :param servicing_users_delete_api_request_dto: (required) + :type servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO :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. @@ -404,7 +404,7 @@ def delete_users( """ # noqa: E501 _param = self._delete_users_serialize( - servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, + servicing_users_delete_api_request_dto=servicing_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -414,7 +414,7 @@ def delete_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -431,7 +431,7 @@ def delete_users( @validate_call def delete_users_with_http_info( self, - servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, + servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO, 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[ @@ -446,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[ServicingPublicapiTransfersUsersAPIResponseDTO]: + ) -> ApiResponse[ServicingUsersAPIResponseDTO]: """Delete users Delete an existing user. Administrating tenant users can specify the tenant from which to delete a user. - :param servicing_publicapi_transfers_users_delete_api_request_dto: (required) - :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + :param servicing_users_delete_api_request_dto: (required) + :type servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO :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. @@ -480,7 +480,7 @@ def delete_users_with_http_info( """ # noqa: E501 _param = self._delete_users_serialize( - servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, + servicing_users_delete_api_request_dto=servicing_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -490,7 +490,7 @@ def delete_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -507,7 +507,7 @@ def delete_users_with_http_info( @validate_call def delete_users_without_preload_content( self, - servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO, + servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO, 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[ @@ -527,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 servicing_publicapi_transfers_users_delete_api_request_dto: (required) - :type servicing_publicapi_transfers_users_delete_api_request_dto: ServicingPublicapiTransfersUsersDeleteAPIRequestDTO + :param servicing_users_delete_api_request_dto: (required) + :type servicing_users_delete_api_request_dto: ServicingUsersDeleteAPIRequestDTO :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. @@ -556,7 +556,7 @@ def delete_users_without_preload_content( """ # noqa: E501 _param = self._delete_users_serialize( - servicing_publicapi_transfers_users_delete_api_request_dto=servicing_publicapi_transfers_users_delete_api_request_dto, + servicing_users_delete_api_request_dto=servicing_users_delete_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -566,7 +566,7 @@ def delete_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -577,7 +577,7 @@ def delete_users_without_preload_content( def _delete_users_serialize( self, - servicing_publicapi_transfers_users_delete_api_request_dto, + servicing_users_delete_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -609,8 +609,8 @@ def _delete_users_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_users_delete_api_request_dto is not None: - _body_params = servicing_publicapi_transfers_users_delete_api_request_dto + if servicing_users_delete_api_request_dto is not None: + _body_params = servicing_users_delete_api_request_dto # set the HTTP header `Accept` @@ -665,7 +665,7 @@ def _delete_users_serialize( @validate_call def update_users( self, - servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, + servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO, 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[ @@ -680,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, - ) -> ServicingPublicapiTransfersUsersAPIResponseDTO: + ) -> ServicingUsersAPIResponseDTO: """Update users Update an existing user's information, such as their display name or if the user is enabled in Visier. - :param servicing_publicapi_transfers_users_update_api_request_dto: (required) - :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + :param servicing_users_update_api_request_dto: (required) + :type servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO :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. @@ -714,7 +714,7 @@ def update_users( """ # noqa: E501 _param = self._update_users_serialize( - servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, + servicing_users_update_api_request_dto=servicing_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -724,7 +724,7 @@ def update_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -741,7 +741,7 @@ def update_users( @validate_call def update_users_with_http_info( self, - servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, + servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO, 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[ @@ -756,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[ServicingPublicapiTransfersUsersAPIResponseDTO]: + ) -> ApiResponse[ServicingUsersAPIResponseDTO]: """Update users Update an existing user's information, such as their display name or if the user is enabled in Visier. - :param servicing_publicapi_transfers_users_update_api_request_dto: (required) - :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + :param servicing_users_update_api_request_dto: (required) + :type servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO :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. @@ -790,7 +790,7 @@ def update_users_with_http_info( """ # noqa: E501 _param = self._update_users_serialize( - servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, + servicing_users_update_api_request_dto=servicing_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -800,7 +800,7 @@ def update_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -817,7 +817,7 @@ def update_users_with_http_info( @validate_call def update_users_without_preload_content( self, - servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO, + servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO, 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[ @@ -837,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 servicing_publicapi_transfers_users_update_api_request_dto: (required) - :type servicing_publicapi_transfers_users_update_api_request_dto: ServicingPublicapiTransfersUsersUpdateAPIRequestDTO + :param servicing_users_update_api_request_dto: (required) + :type servicing_users_update_api_request_dto: ServicingUsersUpdateAPIRequestDTO :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. @@ -866,7 +866,7 @@ def update_users_without_preload_content( """ # noqa: E501 _param = self._update_users_serialize( - servicing_publicapi_transfers_users_update_api_request_dto=servicing_publicapi_transfers_users_update_api_request_dto, + servicing_users_update_api_request_dto=servicing_users_update_api_request_dto, tenant_code=tenant_code, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -876,7 +876,7 @@ def update_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersUsersAPIResponseDTO", + '200': "ServicingUsersAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -887,7 +887,7 @@ def update_users_without_preload_content( def _update_users_serialize( self, - servicing_publicapi_transfers_users_update_api_request_dto, + servicing_users_update_api_request_dto, tenant_code, target_tenant_id, _request_auth, @@ -919,8 +919,8 @@ def _update_users_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_users_update_api_request_dto is not None: - _body_params = servicing_publicapi_transfers_users_update_api_request_dto + if servicing_users_update_api_request_dto is not None: + _body_params = servicing_users_update_api_request_dto # set the HTTP header `Accept` 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 d10cb77c00..57e046226d 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,184 +16,186 @@ # import models into model package +from visier_api_administration.models.admin_all_tenants_status_apidto import AdminAllTenantsStatusAPIDTO +from visier_api_administration.models.admin_batch_tenant_provision_apidto import AdminBatchTenantProvisionAPIDTO +from visier_api_administration.models.admin_business_location_dto import AdminBusinessLocationDTO +from visier_api_administration.models.admin_consolidated_analytics_api_excluded_source_list_dto import AdminConsolidatedAnalyticsAPIExcludedSourceListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_source_tenant_list_dto import AdminConsolidatedAnalyticsAPISourceTenantListDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_create_request_dto import AdminConsolidatedAnalyticsAPITenantCreateRequestDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_list_response_dto import AdminConsolidatedAnalyticsAPITenantListResponseDTO +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_with_details import AdminConsolidatedAnalyticsAPITenantWithDetails +from visier_api_administration.models.admin_consolidated_analytics_api_tenant_with_details_list_response_dto import AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO +from visier_api_administration.models.admin_custom_property_dto import AdminCustomPropertyDTO +from visier_api_administration.models.admin_custom_tenant_property_dto import AdminCustomTenantPropertyDTO from visier_api_administration.models.admin_delete_user_group_v2_request import AdminDeleteUserGroupV2Request +from visier_api_administration.models.admin_element_ids_dto import AdminElementIDsDTO +from visier_api_administration.models.admin_email_domains_dto import AdminEmailDomainsDTO from visier_api_administration.models.admin_excluded_sources_body import AdminExcludedSourcesBody +from visier_api_administration.models.admin_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO 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_network_subnets_message_request import AdminNetworkSubnetsMessageRequest +from visier_api_administration.models.admin_network_subnets_message_response import AdminNetworkSubnetsMessageResponse +from visier_api_administration.models.admin_permission_response_dto import AdminPermissionResponseDTO 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_permissions_to_user_group_for_tenant_dto import AdminPermissionsToUserGroupForTenantDTO +from visier_api_administration.models.admin_permissions_to_user_group_request_dto import AdminPermissionsToUserGroupRequestDTO +from visier_api_administration.models.admin_permissions_to_user_groups_request_dto import AdminPermissionsToUserGroupsRequestDTO from visier_api_administration.models.admin_put_project_commits_request import AdminPutProjectCommitsRequest +from visier_api_administration.models.admin_security_assignment_response_dto import AdminSecurityAssignmentResponseDTO +from visier_api_administration.models.admin_simple_user_dto import AdminSimpleUserDTO +from visier_api_administration.models.admin_target_project_for_tenant_dto import AdminTargetProjectForTenantDTO +from visier_api_administration.models.admin_target_project_for_tenants_list_dto import AdminTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_tenant_assignments_dto import AdminTenantAssignmentsDTO 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_tenant_detail_apidto import AdminTenantDetailAPIDTO +from visier_api_administration.models.admin_tenant_management_api_get_response_dto import AdminTenantManagementAPIGetResponseDTO +from visier_api_administration.models.admin_tenant_management_api_list_response_dto import AdminTenantManagementAPIListResponseDTO +from visier_api_administration.models.admin_tenant_management_api_update_request_dto import AdminTenantManagementAPIUpdateRequestDTO +from visier_api_administration.models.admin_tenant_management_api_update_response_dto import AdminTenantManagementAPIUpdateResponseDTO +from visier_api_administration.models.admin_tenant_provision_apidto import AdminTenantProvisionAPIDTO +from visier_api_administration.models.admin_tenant_status_apidto import AdminTenantStatusAPIDTO from visier_api_administration.models.admin_update_tenant_model import AdminUpdateTenantModel +from visier_api_administration.models.admin_user_group_change_definition_dto import AdminUserGroupChangeDefinitionDTO +from visier_api_administration.models.admin_user_group_change_dimension_filter_dto import AdminUserGroupChangeDimensionFilterDTO +from visier_api_administration.models.admin_user_group_change_failure_dto import AdminUserGroupChangeFailureDTO +from visier_api_administration.models.admin_user_group_change_filter_dto import AdminUserGroupChangeFilterDTO +from visier_api_administration.models.admin_user_group_change_member_selection_dto import AdminUserGroupChangeMemberSelectionDTO +from visier_api_administration.models.admin_user_group_change_response_dto import AdminUserGroupChangeResponseDTO +from visier_api_administration.models.admin_user_group_change_success_dto import AdminUserGroupChangeSuccessDTO +from visier_api_administration.models.admin_user_group_change_users_dto import AdminUserGroupChangeUsersDTO +from visier_api_administration.models.admin_user_group_delete_dto import AdminUserGroupDeleteDTO +from visier_api_administration.models.admin_user_group_delete_failure_dto import AdminUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_user_group_delete_response_dto import AdminUserGroupDeleteResponseDTO +from visier_api_administration.models.admin_user_group_delete_success_dto import AdminUserGroupDeleteSuccessDTO +from visier_api_administration.models.admin_user_group_filters_dto import AdminUserGroupFiltersDTO +from visier_api_administration.models.admin_user_group_get_api_response_dto import AdminUserGroupGetAPIResponseDTO +from visier_api_administration.models.admin_user_group_single_delete_response_dto import AdminUserGroupSingleDeleteResponseDTO +from visier_api_administration.models.admin_user_groups_change_dto import AdminUserGroupsChangeDTO +from visier_api_administration.models.admin_user_groups_delete_request_dto import AdminUserGroupsDeleteRequestDTO +from visier_api_administration.models.admin_user_groups_get_api_response_dto import AdminUserGroupsGetAPIResponseDTO +from visier_api_administration.models.admin_user_groups_users_dto import AdminUserGroupsUsersDTO +from visier_api_administration.models.admin_user_groups_users_for_tenant_dto import AdminUserGroupsUsersForTenantDTO +from visier_api_administration.models.admin_user_security_assignments_dto import AdminUserSecurityAssignmentsDTO +from visier_api_administration.models.admin_users_to_user_group_request_dto import AdminUsersToUserGroupRequestDTO +from visier_api_administration.models.admin_users_to_user_groups_request_dto import AdminUsersToUserGroupsRequestDTO 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.designer_module_settings_dto import DesignerModuleSettingsDTO +from visier_api_administration.models.designer_tenant_module_dto import DesignerTenantModuleDTO +from visier_api_administration.models.dp_automation_metric_validation_summary_dto import DpAutomationMetricValidationSummaryDTO +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_dto import DpAutomationTenantPreviewEntriesSummaryDTO +from visier_api_administration.models.dp_automation_tenant_preview_entries_summary_list_dto import DpAutomationTenantPreviewEntriesSummaryListDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_request_dto import ServicingAccessibleTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_assignment_response_dto import ServicingAccessibleTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_request_dto import ServicingAccessibleTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_accessible_tenant_profile_revoke_response_dto import ServicingAccessibleTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_additional_capabilities_dto import ServicingAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_admin_capability_config_dto import ServicingAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_all_permissions_assigned_for_local_tenant_dto import ServicingAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_accessible_tenant_dto import ServicingAllProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_local_tenant_dto import ServicingAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_user_groups_assigned_for_local_tenant_dto import ServicingAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_users_get_api_response_dto import ServicingAllUsersGetAPIResponseDTO +from visier_api_administration.models.servicing_analytic_object_dto import ServicingAnalyticObjectDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_permission_dto import ServicingAssignRevokePermissionByPermissionDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_tenant_dto import ServicingAssignRevokePermissionByTenantDTO +from visier_api_administration.models.servicing_assign_revoke_permission_by_user_dto import ServicingAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_assign_revoke_permission_request_dto import ServicingAssignRevokePermissionRequestDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_request_dto import ServicingAssignRevokePermissionsRequestDTO +from visier_api_administration.models.servicing_assign_revoke_permissions_response_dto import ServicingAssignRevokePermissionsResponseDTO +from visier_api_administration.models.servicing_bulk_data_access_set_response_dto import ServicingBulkDataAccessSetResponseDTO +from visier_api_administration.models.servicing_capabilities_dto import ServicingCapabilitiesDTO +from visier_api_administration.models.servicing_capability_dto import ServicingCapabilityDTO +from visier_api_administration.models.servicing_commit_and_publish_operation_response_dto import ServicingCommitAndPublishOperationResponseDTO +from visier_api_administration.models.servicing_commit_dto import ServicingCommitDTO +from visier_api_administration.models.servicing_content_package_dto import ServicingContentPackageDTO +from visier_api_administration.models.servicing_create_data_access_set_request_dto import ServicingCreateDataAccessSetRequestDTO +from visier_api_administration.models.servicing_data_access_set_dto import ServicingDataAccessSetDTO +from visier_api_administration.models.servicing_data_access_set_error_dto import ServicingDataAccessSetErrorDTO +from visier_api_administration.models.servicing_data_access_set_failure_dto import ServicingDataAccessSetFailureDTO +from visier_api_administration.models.servicing_data_access_set_success_dto import ServicingDataAccessSetSuccessDTO +from visier_api_administration.models.servicing_data_security_profile_dto import ServicingDataSecurityProfileDTO +from visier_api_administration.models.servicing_delete_permissions_request_dto import ServicingDeletePermissionsRequestDTO +from visier_api_administration.models.servicing_dimension_filter_dto import ServicingDimensionFilterDTO +from visier_api_administration.models.servicing_dynamic_dimension_filter_dto import ServicingDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_dynamic_property_mapping_dto import ServicingDynamicPropertyMappingDTO +from visier_api_administration.models.servicing_error_dto import ServicingErrorDTO +from visier_api_administration.models.servicing_export_production_versions_api_operation_parameters_dto import ServicingExportProductionVersionsAPIOperationParametersDTO +from visier_api_administration.models.servicing_failed_accessible_tenant_profile_assignment_dto import ServicingFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_failed_local_tenant_profile_assignment_dto import ServicingFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_failed_local_tenant_profile_revoke_dto import ServicingFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_get_capabilities_api_response_dto import ServicingGetCapabilitiesAPIResponseDTO +from visier_api_administration.models.servicing_get_content_packages_api_response_dto import ServicingGetContentPackagesAPIResponseDTO +from visier_api_administration.models.servicing_get_data_access_sets_api_response_dto import ServicingGetDataAccessSetsAPIResponseDTO +from visier_api_administration.models.servicing_get_data_security_objects_api_response_dto import ServicingGetDataSecurityObjectsAPIResponseDTO +from visier_api_administration.models.servicing_get_permissions_api_response_dto import ServicingGetPermissionsAPIResponseDTO +from visier_api_administration.models.servicing_get_production_versions_api_response_dto import ServicingGetProductionVersionsAPIResponseDTO +from visier_api_administration.models.servicing_get_projects_api_response_dto import ServicingGetProjectsAPIResponseDTO +from visier_api_administration.models.servicing_hierarchy_property_dto import ServicingHierarchyPropertyDTO +from visier_api_administration.models.servicing_inherited_access_config_dto import ServicingInheritedAccessConfigDTO +from visier_api_administration.models.servicing_inherited_reference_member_filter_config_dto import ServicingInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_last_login_dto import ServicingLastLoginDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_request_dto import ServicingLocalTenantProfileAssignmentRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_assignment_response_dto import ServicingLocalTenantProfileAssignmentResponseDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_request_dto import ServicingLocalTenantProfileRevokeRequestDTO +from visier_api_administration.models.servicing_local_tenant_profile_revoke_response_dto import ServicingLocalTenantProfileRevokeResponseDTO +from visier_api_administration.models.servicing_member_filter_config_dto import ServicingMemberFilterConfigDTO +from visier_api_administration.models.servicing_member_selection_dto import ServicingMemberSelectionDTO +from visier_api_administration.models.servicing_permission_assigned_by_tenant_dto import ServicingPermissionAssignedByTenantDTO +from visier_api_administration.models.servicing_permission_assigned_for_local_tenant_dto import ServicingPermissionAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_permission_assigned_user_dto import ServicingPermissionAssignedUserDTO +from visier_api_administration.models.servicing_permission_assigned_users_dto import ServicingPermissionAssignedUsersDTO +from visier_api_administration.models.servicing_permission_bulk_operation_response_dto import ServicingPermissionBulkOperationResponseDTO +from visier_api_administration.models.servicing_permission_dto import ServicingPermissionDTO +from visier_api_administration.models.servicing_permission_error_dto import ServicingPermissionErrorDTO +from visier_api_administration.models.servicing_permission_failure_dto import ServicingPermissionFailureDTO +from visier_api_administration.models.servicing_permission_success_dto import ServicingPermissionSuccessDTO +from visier_api_administration.models.servicing_production_version_api_operation_request_dto import ServicingProductionVersionAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_version_api_operation_response_dto import ServicingProductionVersionAPIOperationResponseDTO +from visier_api_administration.models.servicing_production_versions_api_operation_request_dto import ServicingProductionVersionsAPIOperationRequestDTO +from visier_api_administration.models.servicing_production_versions_api_operation_response_dto import ServicingProductionVersionsAPIOperationResponseDTO +from visier_api_administration.models.servicing_profile_assigned_for_accessible_tenant_dto import ServicingProfileAssignedForAccessibleTenantDTO +from visier_api_administration.models.servicing_profile_assigned_for_local_tenant_dto import ServicingProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_profile_get_api_response_dto import ServicingProfileGetAPIResponseDTO +from visier_api_administration.models.servicing_profiles_get_api_response_dto import ServicingProfilesGetAPIResponseDTO +from visier_api_administration.models.servicing_project_commits_api_response_dto import ServicingProjectCommitsAPIResponseDTO +from visier_api_administration.models.servicing_project_dto import ServicingProjectDTO +from visier_api_administration.models.servicing_project_operation_request_dto import ServicingProjectOperationRequestDTO +from visier_api_administration.models.servicing_project_operation_response_dto import ServicingProjectOperationResponseDTO +from visier_api_administration.models.servicing_property_access_config_dto import ServicingPropertyAccessConfigDTO +from visier_api_administration.models.servicing_property_set_config_dto import ServicingPropertySetConfigDTO +from visier_api_administration.models.servicing_reduced_error_dto import ServicingReducedErrorDTO +from visier_api_administration.models.servicing_reduced_tenant_code_error_dto import ServicingReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_reduced_user_id_error_dto import ServicingReducedUserIdErrorDTO +from visier_api_administration.models.servicing_related_analytic_object_dto import ServicingRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_role_modules_config_dto import ServicingRoleModulesConfigDTO +from visier_api_administration.models.servicing_securable_dimension_dto import ServicingSecurableDimensionDTO +from visier_api_administration.models.servicing_securable_property_dto import ServicingSecurablePropertyDTO +from visier_api_administration.models.servicing_shareable_data_access_set import ServicingShareableDataAccessSet +from visier_api_administration.models.servicing_sources_api_operation_request_dto import ServicingSourcesAPIOperationRequestDTO +from visier_api_administration.models.servicing_static_dimension_filter_dto import ServicingStaticDimensionFilterDTO +from visier_api_administration.models.servicing_successful_accessible_tenant_profile_assignment_dto import ServicingSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_target_tenant_code_dto import ServicingTargetTenantCodeDTO +from visier_api_administration.models.servicing_tenant_code_error_dto import ServicingTenantCodeErrorDTO +from visier_api_administration.models.servicing_user_creation_api_request_dto import ServicingUserCreationAPIRequestDTO +from visier_api_administration.models.servicing_user_get_api_response_dto import ServicingUserGetAPIResponseDTO +from visier_api_administration.models.servicing_user_group_assigned_for_local_tenant_dto import ServicingUserGroupAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_user_id_error_dto import ServicingUserIdErrorDTO +from visier_api_administration.models.servicing_user_property_dto import ServicingUserPropertyDTO +from visier_api_administration.models.servicing_user_update_api_request_dto import ServicingUserUpdateAPIRequestDTO +from visier_api_administration.models.servicing_users_api_error_message_dto import ServicingUsersAPIErrorMessageDTO +from visier_api_administration.models.servicing_users_api_failure_dto import ServicingUsersAPIFailureDTO +from visier_api_administration.models.servicing_users_api_response_dto import ServicingUsersAPIResponseDTO +from visier_api_administration.models.servicing_users_api_success_dto import ServicingUsersAPISuccessDTO +from visier_api_administration.models.servicing_users_creation_api_request_dto import ServicingUsersCreationAPIRequestDTO +from visier_api_administration.models.servicing_users_delete_api_request_dto import ServicingUsersDeleteAPIRequestDTO +from visier_api_administration.models.servicing_users_update_api_request_dto import ServicingUsersUpdateAPIRequestDTO +from visier_api_administration.models.servicing_users_update_api_user_dto import ServicingUsersUpdateAPIUserDTO from visier_api_administration.models.source_import_result_summary_dto import SourceImportResultSummaryDTO from visier_api_administration.models.sources_api_put_response_dto import SourcesAPIPutResponseDTO from visier_api_administration.models.status import Status -from visier_api_administration.models.systemstatus_publicapi_transfers_system_status_dto import SystemstatusPublicapiTransfersSystemStatusDTO +from visier_api_administration.models.systemstatus_system_status_dto import SystemstatusSystemStatusDTO from visier_api_administration.models.user_creation_api_response_dto import UserCreationAPIResponseDTO diff --git a/src/visier_api_administration/visier_api_administration/models/admin_all_tenants_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_all_tenants_status_apidto.py new file mode 100644 index 0000000000..e06c9dfe29 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_detail_apidto import AdminTenantDetailAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminAllTenantsStatusAPIDTO(BaseModel): + """ + AdminAllTenantsStatusAPIDTO + """ # 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[AdminTenantDetailAPIDTO]] = 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 AdminAllTenantsStatusAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminAllTenantsStatusAPIDTO 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": [AdminTenantDetailAPIDTO.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_batch_tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_batch_tenant_provision_apidto.py new file mode 100644 index 0000000000..a59fb2b9e5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_provision_apidto import AdminTenantProvisionAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminBatchTenantProvisionAPIDTO(BaseModel): + """ + AdminBatchTenantProvisionAPIDTO + """ # noqa: E501 + tenants: Optional[List[AdminTenantProvisionAPIDTO]] = 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 AdminBatchTenantProvisionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminBatchTenantProvisionAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTenantProvisionAPIDTO.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_business_location_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_business_location_dto.py new file mode 100644 index 0000000000..c18a1b9304 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminBusinessLocationDTO(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 AdminBusinessLocationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminBusinessLocationDTO 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_consolidated_analytics_api_excluded_source_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_excluded_source_list_dto.py new file mode 100644 index 0000000000..fa82fba8fd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPIExcludedSourceListDTO(BaseModel): + """ + AdminConsolidatedAnalyticsAPIExcludedSourceListDTO + """ # 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 AdminConsolidatedAnalyticsAPIExcludedSourceListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConsolidatedAnalyticsAPIExcludedSourceListDTO 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_consolidated_analytics_api_source_tenant_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_source_tenant_list_dto.py new file mode 100644 index 0000000000..13747703b4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPISourceTenantListDTO(BaseModel): + """ + AdminConsolidatedAnalyticsAPISourceTenantListDTO + """ # 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 AdminConsolidatedAnalyticsAPISourceTenantListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConsolidatedAnalyticsAPISourceTenantListDTO 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_consolidated_analytics_api_tenant_create_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_tenant_create_request_dto.py new file mode 100644 index 0000000000..9b20742e26 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPITenantCreateRequestDTO(BaseModel): + """ + AdminConsolidatedAnalyticsAPITenantCreateRequestDTO + """ # 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 AdminConsolidatedAnalyticsAPITenantCreateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConsolidatedAnalyticsAPITenantCreateRequestDTO 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_consolidated_analytics_api_tenant_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_tenant_list_response_dto.py new file mode 100644 index 0000000000..cf38c2ced4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPITenantListResponseDTO(BaseModel): + """ + AdminConsolidatedAnalyticsAPITenantListResponseDTO + """ # 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 AdminConsolidatedAnalyticsAPITenantListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConsolidatedAnalyticsAPITenantListResponseDTO 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_consolidated_analytics_api_tenant_with_details.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_tenant_with_details.py new file mode 100644 index 0000000000..a5a5f14fb1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPITenantWithDetails(BaseModel): + """ + AdminConsolidatedAnalyticsAPITenantWithDetails + """ # 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 AdminConsolidatedAnalyticsAPITenantWithDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConsolidatedAnalyticsAPITenantWithDetails 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_consolidated_analytics_api_tenant_with_details_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_consolidated_analytics_api_tenant_with_details_list_response_dto.py new file mode 100644 index 0000000000..f475ae57f4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_consolidated_analytics_api_tenant_with_details import AdminConsolidatedAnalyticsAPITenantWithDetails +from typing import Optional, Set +from typing_extensions import Self + +class AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO(BaseModel): + """ + AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminConsolidatedAnalyticsAPITenantWithDetails]] = 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 AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminConsolidatedAnalyticsAPITenantWithDetailsListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminConsolidatedAnalyticsAPITenantWithDetails.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_custom_property_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_custom_property_dto.py new file mode 100644 index 0000000000..79a4e966a4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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 AdminCustomPropertyDTO(BaseModel): + """ + AdminCustomPropertyDTO + """ # 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 AdminCustomPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminCustomPropertyDTO 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_custom_tenant_property_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_custom_tenant_property_dto.py new file mode 100644 index 0000000000..3f1faadd6c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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 AdminCustomTenantPropertyDTO(BaseModel): + """ + AdminCustomTenantPropertyDTO + """ # 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 AdminCustomTenantPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminCustomTenantPropertyDTO 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_delete_user_group_v2_request.py b/src/visier_api_administration/visier_api_administration/models/admin_delete_user_group_v2_request.py index 7dc937bdf2..194badcaf4 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_element_ids_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_element_ids_dto.py new file mode 100644 index 0000000000..e771df081a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminElementIDsDTO(BaseModel): + """ + AdminElementIDsDTO + """ # 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 AdminElementIDsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminElementIDsDTO 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_email_domains_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_email_domains_dto.py new file mode 100644 index 0000000000..ef2e3a5fdd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AdminEmailDomainsDTO(BaseModel): + """ + AdminEmailDomainsDTO + """ # 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 AdminEmailDomainsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminEmailDomainsDTO 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_excluded_sources_body.py b/src/visier_api_administration/visier_api_administration/models/admin_excluded_sources_body.py index 073aaf9bb3..a25c0d3414 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_home_analysis_by_user_group_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_home_analysis_by_user_group_dto.py new file mode 100644 index 0000000000..081ad92352 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminHomeAnalysisByUserGroupDTO(BaseModel): + """ + AdminHomeAnalysisByUserGroupDTO + """ # 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 AdminHomeAnalysisByUserGroupDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminHomeAnalysisByUserGroupDTO 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_key_name.py b/src/visier_api_administration/visier_api_administration/models/admin_key_name.py index 3412524ad3..abaed50fc6 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 098e68d2ca..b75ab36b00 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_request.py b/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_request.py new file mode 100644 index 0000000000..4e8f8f42fd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_request.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AdminNetworkSubnetsMessageRequest(BaseModel): + """ + The IP addresses to modify in the API network subnet allowlist. + """ # noqa: E501 + confirm_lockout: Optional[StrictBool] = Field(default=None, description="If `true`, you acknowledge that the API call removes your IP address from the list of allowed network subnets and you will not be able to call Visier APIs from your current IP address. Default is `false`. To avoid this, add your current IP address to the allowed network subnets list.", alias="confirmLockout") + network_subnets_for_api: Optional[List[StrictStr]] = Field(default=None, description="The IP addresses in the request.", alias="networkSubnetsForApi") + __properties: ClassVar[List[str]] = ["confirmLockout", "networkSubnetsForApi"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminNetworkSubnetsMessageRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminNetworkSubnetsMessageRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "confirmLockout": obj.get("confirmLockout"), + "networkSubnetsForApi": obj.get("networkSubnetsForApi") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_response.py b/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_response.py new file mode 100644 index 0000000000..156532cfee --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_network_subnets_message_response.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminNetworkSubnetsMessageResponse(BaseModel): + """ + The list of IP addresses that are allowed to call Visier APIs. + """ # noqa: E501 + network_subnets_for_api: Optional[List[StrictStr]] = Field(default=None, description="The IP addresses that are allowed to call Visier APIs.", alias="networkSubnetsForApi") + __properties: ClassVar[List[str]] = ["networkSubnetsForApi"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdminNetworkSubnetsMessageResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminNetworkSubnetsMessageResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "networkSubnetsForApi": obj.get("networkSubnetsForApi") + }) + return _obj + + diff --git a/src/visier_api_administration/visier_api_administration/models/admin_permission_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permission_response_dto.py new file mode 100644 index 0000000000..e623f014bc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPermissionResponseDTO(BaseModel): + """ + AdminPermissionResponseDTO + """ # 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 AdminPermissionResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPermissionResponseDTO 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_permissions_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permissions_list_dto.py index 2b68c3615f..ac8468718e 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -21,7 +21,7 @@ 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 visier_api_administration.models.servicing_permission_dto import ServicingPermissionDTO from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class AdminPermissionsListDTO(BaseModel): """ AdminPermissionsListDTO """ # noqa: E501 - permissions: Optional[List[ServicingPublicapiTransfersPermissionDTO]] = Field(default=None, description="The list of permissions that will be created or updated") + permissions: Optional[List[ServicingPermissionDTO]] = Field(default=None, description="The list of permissions that will be created or updated") __properties: ClassVar[List[str]] = ["permissions"] model_config = ConfigDict( @@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "permissions": [ServicingPermissionDTO.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_permissions_to_user_group_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permissions_to_user_group_for_tenant_dto.py new file mode 100644 index 0000000000..00a47928a3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_user_group_get_api_response_dto import AdminUserGroupGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPermissionsToUserGroupForTenantDTO(BaseModel): + """ + AdminPermissionsToUserGroupForTenantDTO + """ # 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[AdminUserGroupGetAPIResponseDTO]] = 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 AdminPermissionsToUserGroupForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminPermissionsToUserGroupForTenantDTO 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": [AdminUserGroupGetAPIResponseDTO.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_permissions_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permissions_to_user_group_request_dto.py new file mode 100644 index 0000000000..d8a333cdc5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminPermissionsToUserGroupRequestDTO(BaseModel): + """ + AdminPermissionsToUserGroupRequestDTO + """ # 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 AdminPermissionsToUserGroupRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminPermissionsToUserGroupRequestDTO 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_permissions_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_permissions_to_user_groups_request_dto.py new file mode 100644 index 0000000000..6bff0e3faf --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_permissions_to_user_group_request_dto import AdminPermissionsToUserGroupRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminPermissionsToUserGroupsRequestDTO(BaseModel): + """ + AdminPermissionsToUserGroupsRequestDTO + """ # noqa: E501 + user_groups: Optional[List[AdminPermissionsToUserGroupRequestDTO]] = 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 AdminPermissionsToUserGroupsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminPermissionsToUserGroupsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminPermissionsToUserGroupRequestDTO.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_all_tenants_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_all_tenants_status_apidto.py deleted file mode 100644 index b2ba829313..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 50e68ad2c1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 76177e14a0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2c61bda1fa..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index f0d4ea76e6..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 5924d6ad59..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2b813760f7..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 8f29515f8a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index e6857b98ea..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 3659e69e4a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 28c78eabeb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 86b02c69a9..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5a6bac4e8c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d9590363df..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index fe3f346969..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 9303de4d34..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index e1ed356bc0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 789b8fa10c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index e6e86c6b49..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1dc71f4d36..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index f377cc554f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index dd776b622c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 742cb57dc0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 88a6c68e73..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 9c8c656093..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 86c46bd3e5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 49373eec27..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 8f64c3ae11..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index f201f309ab..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 8beee532b1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 index 4e2e4658bb..699463fc14 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_security_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_security_assignment_response_dto.py new file mode 100644 index 0000000000..d4efb8e8f9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_assignments_dto import AdminTenantAssignmentsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminSecurityAssignmentResponseDTO(BaseModel): + """ + AdminSecurityAssignmentResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminTenantAssignmentsDTO]] = 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 AdminSecurityAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminSecurityAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminTenantAssignmentsDTO.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_simple_user_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_simple_user_dto.py new file mode 100644 index 0000000000..c9f036e6ab --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminSimpleUserDTO(BaseModel): + """ + AdminSimpleUserDTO + """ # 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 AdminSimpleUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminSimpleUserDTO 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_target_project_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_target_project_for_tenant_dto.py new file mode 100644 index 0000000000..514ba5cb51 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminTargetProjectForTenantDTO(BaseModel): + """ + AdminTargetProjectForTenantDTO + """ # 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 AdminTargetProjectForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTargetProjectForTenantDTO 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_target_project_for_tenants_list_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_target_project_for_tenants_list_dto.py new file mode 100644 index 0000000000..4a06dcffe2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_target_project_for_tenant_dto import AdminTargetProjectForTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTargetProjectForTenantsListDTO(BaseModel): + """ + AdminTargetProjectForTenantsListDTO + """ # noqa: E501 + target_project_for_tenants: Optional[List[AdminTargetProjectForTenantDTO]] = 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 AdminTargetProjectForTenantsListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTargetProjectForTenantsListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetProjectForTenants": [AdminTargetProjectForTenantDTO.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_tenant_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_assignments_dto.py new file mode 100644 index 0000000000..251217ca3b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_user_security_assignments_dto import AdminUserSecurityAssignmentsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantAssignmentsDTO(BaseModel): + """ + AdminTenantAssignmentsDTO + """ # noqa: E501 + assignments: Optional[List[AdminUserSecurityAssignmentsDTO]] = 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 AdminTenantAssignmentsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantAssignmentsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignments": [AdminUserSecurityAssignmentsDTO.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_tenant_code_body.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_code_body.py index 0c0b3a95a2..0224c23139 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_tenant_detail_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_detail_apidto.py new file mode 100644 index 0000000000..26ef8f2371 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_custom_tenant_property_dto import AdminCustomTenantPropertyDTO +from visier_api_administration.models.designer_tenant_module_dto import DesignerTenantModuleDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantDetailAPIDTO(BaseModel): + """ + AdminTenantDetailAPIDTO + """ # 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[AdminCustomTenantPropertyDTO]] = 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[DesignerTenantModuleDTO]] = 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 AdminTenantDetailAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantDetailAPIDTO 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": [AdminCustomTenantPropertyDTO.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": [DesignerTenantModuleDTO.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_tenant_management_api_get_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_management_api_get_response_dto.py new file mode 100644 index 0000000000..c204113618 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_business_location_dto import AdminBusinessLocationDTO +from visier_api_administration.models.admin_custom_property_dto import AdminCustomPropertyDTO +from visier_api_administration.models.admin_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantManagementAPIGetResponseDTO(BaseModel): + """ + AdminTenantManagementAPIGetResponseDTO + """ # 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[AdminCustomPropertyDTO]] = 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[AdminHomeAnalysisByUserGroupDTO]] = 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[AdminBusinessLocationDTO] = 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 AdminTenantManagementAPIGetResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantManagementAPIGetResponseDTO 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": [AdminCustomPropertyDTO.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": [AdminHomeAnalysisByUserGroupDTO.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": AdminBusinessLocationDTO.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_tenant_management_api_list_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_management_api_list_response_dto.py new file mode 100644 index 0000000000..76739537ae --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_management_api_get_response_dto import AdminTenantManagementAPIGetResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantManagementAPIListResponseDTO(BaseModel): + """ + AdminTenantManagementAPIListResponseDTO + """ # 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[AdminTenantManagementAPIGetResponseDTO]] = 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 AdminTenantManagementAPIListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantManagementAPIListResponseDTO 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": [AdminTenantManagementAPIGetResponseDTO.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_tenant_management_api_update_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_management_api_update_request_dto.py new file mode 100644 index 0000000000..a6d5df9359 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_business_location_dto import AdminBusinessLocationDTO +from visier_api_administration.models.admin_custom_property_dto import AdminCustomPropertyDTO +from visier_api_administration.models.admin_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantManagementAPIUpdateRequestDTO(BaseModel): + """ + AdminTenantManagementAPIUpdateRequestDTO + """ # 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[AdminCustomPropertyDTO]] = 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[AdminHomeAnalysisByUserGroupDTO]] = 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[AdminBusinessLocationDTO] = 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 AdminTenantManagementAPIUpdateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantManagementAPIUpdateRequestDTO 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": [AdminCustomPropertyDTO.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": [AdminHomeAnalysisByUserGroupDTO.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": AdminBusinessLocationDTO.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_tenant_management_api_update_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_management_api_update_response_dto.py new file mode 100644 index 0000000000..195a4de5c9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_business_location_dto import AdminBusinessLocationDTO +from visier_api_administration.models.admin_custom_property_dto import AdminCustomPropertyDTO +from visier_api_administration.models.admin_home_analysis_by_user_group_dto import AdminHomeAnalysisByUserGroupDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantManagementAPIUpdateResponseDTO(BaseModel): + """ + AdminTenantManagementAPIUpdateResponseDTO + """ # 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[AdminCustomPropertyDTO]] = 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[AdminHomeAnalysisByUserGroupDTO]] = 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[AdminBusinessLocationDTO] = 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 AdminTenantManagementAPIUpdateResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantManagementAPIUpdateResponseDTO 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": [AdminCustomPropertyDTO.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": [AdminHomeAnalysisByUserGroupDTO.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": AdminBusinessLocationDTO.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_tenant_provision_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_provision_apidto.py new file mode 100644 index 0000000000..3d2499a536 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_custom_tenant_property_dto import AdminCustomTenantPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantProvisionAPIDTO(BaseModel): + """ + AdminTenantProvisionAPIDTO + """ # 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[AdminCustomTenantPropertyDTO]] = 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 AdminTenantProvisionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantProvisionAPIDTO 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": [AdminCustomTenantPropertyDTO.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_tenant_status_apidto.py b/src/visier_api_administration/visier_api_administration/models/admin_tenant_status_apidto.py new file mode 100644 index 0000000000..790cd6564a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AdminTenantStatusAPIDTO(BaseModel): + """ + AdminTenantStatusAPIDTO + """ # 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 AdminTenantStatusAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminTenantStatusAPIDTO 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_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 deleted file mode 100644 index 440781f8b4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0f6af20046..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f3f5f554bd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 5d59a12225..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 11238045ba..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index c501270e50..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1ff2b21c04..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b6f8db7a3a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index e30e3e9366..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 673f9bbcdd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 694467066f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 78fac8625b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ca69921840..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index e8533d20b4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2053666e89..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 533cbef564..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 8950f8aedb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index bcb8e14800..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 132e655e76..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 83ec9f3928..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ca6538cb5b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 1afd53d335..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index bfd9c99745..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 index cd4ab145aa..7397d957df 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_definition_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_definition_dto.py new file mode 100644 index 0000000000..0e992e7ffa --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_element_ids_dto import AdminElementIDsDTO +from visier_api_administration.models.admin_user_group_change_users_dto import AdminUserGroupChangeUsersDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeDefinitionDTO(BaseModel): + """ + AdminUserGroupChangeDefinitionDTO + """ # 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[AdminElementIDsDTO] = 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[AdminUserGroupChangeUsersDTO] = 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 AdminUserGroupChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminUserGroupChangeDefinitionDTO 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": AdminElementIDsDTO.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": AdminUserGroupChangeUsersDTO.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_user_group_change_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_dimension_filter_dto.py new file mode 100644 index 0000000000..0763ee765b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_element_ids_dto import AdminElementIDsDTO +from visier_api_administration.models.admin_user_group_change_member_selection_dto import AdminUserGroupChangeMemberSelectionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeDimensionFilterDTO(BaseModel): + """ + AdminUserGroupChangeDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The object name of the dimension.", alias="dimensionId") + member_selections: Optional[List[AdminUserGroupChangeMemberSelectionDTO]] = Field(default=None, description="The dimension members to select in the dynamic filter.", alias="memberSelections") + subject_reference_path: Optional[AdminElementIDsDTO] = 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 AdminUserGroupChangeDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupChangeDimensionFilterDTO 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": [AdminUserGroupChangeMemberSelectionDTO.from_dict(_item) for _item in obj["memberSelections"]] if obj.get("memberSelections") is not None else None, + "subjectReferencePath": AdminElementIDsDTO.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_user_group_change_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_failure_dto.py new file mode 100644 index 0000000000..a46505223e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeFailureDTO(BaseModel): + """ + AdminUserGroupChangeFailureDTO + """ # 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 AdminUserGroupChangeFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupChangeFailureDTO 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_user_group_change_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_filter_dto.py new file mode 100644 index 0000000000..d50dd61e49 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_user_group_change_dimension_filter_dto import AdminUserGroupChangeDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeFilterDTO(BaseModel): + """ + AdminUserGroupChangeFilterDTO + """ # 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[AdminUserGroupChangeDimensionFilterDTO]] = 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 AdminUserGroupChangeFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupChangeFilterDTO 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": [AdminUserGroupChangeDimensionFilterDTO.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_user_group_change_member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_member_selection_dto.py new file mode 100644 index 0000000000..16fe31eb77 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AdminUserGroupChangeMemberSelectionDTO(BaseModel): + """ + AdminUserGroupChangeMemberSelectionDTO + """ # 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 AdminUserGroupChangeMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupChangeMemberSelectionDTO 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_user_group_change_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_response_dto.py new file mode 100644 index 0000000000..c2d187bf7e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_change_failure_dto import AdminUserGroupChangeFailureDTO +from visier_api_administration.models.admin_user_group_change_success_dto import AdminUserGroupChangeSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeResponseDTO(BaseModel): + """ + AdminUserGroupChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[AdminUserGroupChangeFailureDTO]] = Field(default=None, description="The user groups that were not created.") + successes: Optional[List[AdminUserGroupChangeSuccessDTO]] = 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 AdminUserGroupChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [AdminUserGroupChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [AdminUserGroupChangeSuccessDTO.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_user_group_change_success_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_success_dto.py new file mode 100644 index 0000000000..0437e4b6f7 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeSuccessDTO(BaseModel): + """ + AdminUserGroupChangeSuccessDTO + """ # 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 AdminUserGroupChangeSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupChangeSuccessDTO 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_user_group_change_users_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_change_users_dto.py new file mode 100644 index 0000000000..961bdae643 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_element_ids_dto import AdminElementIDsDTO +from visier_api_administration.models.admin_user_group_filters_dto import AdminUserGroupFiltersDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupChangeUsersDTO(BaseModel): + """ + AdminUserGroupChangeUsersDTO + """ # noqa: E501 + dynamic_filter_definition: Optional[AdminUserGroupFiltersDTO] = 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[AdminElementIDsDTO] = 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[AdminElementIDsDTO] = 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 AdminUserGroupChangeUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminUserGroupChangeUsersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dynamicFilterDefinition": AdminUserGroupFiltersDTO.from_dict(obj["dynamicFilterDefinition"]) if obj.get("dynamicFilterDefinition") is not None else None, + "includeAllUsers": obj.get("includeAllUsers"), + "manuallyExcludedIds": AdminElementIDsDTO.from_dict(obj["manuallyExcludedIds"]) if obj.get("manuallyExcludedIds") is not None else None, + "manuallyIncludedIds": AdminElementIDsDTO.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_user_group_delete_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_delete_dto.py new file mode 100644 index 0000000000..4629425fed --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupDeleteDTO(BaseModel): + """ + AdminUserGroupDeleteDTO + """ # 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 AdminUserGroupDeleteDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupDeleteDTO 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_user_group_delete_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_delete_failure_dto.py new file mode 100644 index 0000000000..7bf69cfad5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupDeleteFailureDTO(BaseModel): + """ + AdminUserGroupDeleteFailureDTO + """ # 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 AdminUserGroupDeleteFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupDeleteFailureDTO 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_user_group_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_delete_response_dto.py new file mode 100644 index 0000000000..66dea2a7a2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_delete_failure_dto import AdminUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_user_group_delete_success_dto import AdminUserGroupDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupDeleteResponseDTO(BaseModel): + """ + AdminUserGroupDeleteResponseDTO + """ # noqa: E501 + failures: Optional[List[AdminUserGroupDeleteFailureDTO]] = Field(default=None, description="The user groups that were not deleted successfully.") + successes: Optional[List[AdminUserGroupDeleteSuccessDTO]] = 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 AdminUserGroupDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [AdminUserGroupDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [AdminUserGroupDeleteSuccessDTO.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_user_group_delete_success_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_delete_success_dto.py new file mode 100644 index 0000000000..d73e615392 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupDeleteSuccessDTO(BaseModel): + """ + AdminUserGroupDeleteSuccessDTO + """ # 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 AdminUserGroupDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUserGroupDeleteSuccessDTO 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_user_group_filters_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_filters_dto.py new file mode 100644 index 0000000000..679b971390 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_change_filter_dto import AdminUserGroupChangeFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupFiltersDTO(BaseModel): + """ + AdminUserGroupFiltersDTO + """ # noqa: E501 + filters: Optional[List[AdminUserGroupChangeFilterDTO]] = 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 AdminUserGroupFiltersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupFiltersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "filters": [AdminUserGroupChangeFilterDTO.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_user_group_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_get_api_response_dto.py new file mode 100644 index 0000000000..0740f01e56 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_permission_response_dto import AdminPermissionResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupGetAPIResponseDTO(BaseModel): + """ + AdminUserGroupGetAPIResponseDTO + """ # 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[AdminPermissionResponseDTO]] = 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 AdminUserGroupGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupGetAPIResponseDTO 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": [AdminPermissionResponseDTO.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_user_group_single_delete_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_group_single_delete_response_dto.py new file mode 100644 index 0000000000..1359164d97 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_delete_failure_dto import AdminUserGroupDeleteFailureDTO +from visier_api_administration.models.admin_user_group_delete_success_dto import AdminUserGroupDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupSingleDeleteResponseDTO(BaseModel): + """ + AdminUserGroupSingleDeleteResponseDTO + """ # noqa: E501 + failure: Optional[AdminUserGroupDeleteFailureDTO] = Field(default=None, description="The user group was not successfully deleted.") + success: Optional[AdminUserGroupDeleteSuccessDTO] = 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 AdminUserGroupSingleDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminUserGroupSingleDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failure": AdminUserGroupDeleteFailureDTO.from_dict(obj["failure"]) if obj.get("failure") is not None else None, + "success": AdminUserGroupDeleteSuccessDTO.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_user_groups_change_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_groups_change_dto.py new file mode 100644 index 0000000000..0ab70311ed --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_change_definition_dto import AdminUserGroupChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupsChangeDTO(BaseModel): + """ + AdminUserGroupsChangeDTO + """ # noqa: E501 + user_groups: Optional[List[AdminUserGroupChangeDefinitionDTO]] = 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 AdminUserGroupsChangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupsChangeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminUserGroupChangeDefinitionDTO.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_user_groups_delete_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_groups_delete_request_dto.py new file mode 100644 index 0000000000..dfec1e035a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_delete_dto import AdminUserGroupDeleteDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupsDeleteRequestDTO(BaseModel): + """ + AdminUserGroupsDeleteRequestDTO + """ # noqa: E501 + user_groups: Optional[List[AdminUserGroupDeleteDTO]] = 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 AdminUserGroupsDeleteRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupsDeleteRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroups": [AdminUserGroupDeleteDTO.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_user_groups_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_groups_get_api_response_dto.py new file mode 100644 index 0000000000..c4bf6aecdf --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_get_api_response_dto import AdminUserGroupGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupsGetAPIResponseDTO(BaseModel): + """ + AdminUserGroupsGetAPIResponseDTO + """ # 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[AdminUserGroupGetAPIResponseDTO]] = 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 AdminUserGroupsGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupsGetAPIResponseDTO 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": [AdminUserGroupGetAPIResponseDTO.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_user_groups_users_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_groups_users_dto.py new file mode 100644 index 0000000000..c6bcfa0ace --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_groups_users_for_tenant_dto import AdminUserGroupsUsersForTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupsUsersDTO(BaseModel): + """ + AdminUserGroupsUsersDTO + """ # 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[AdminUserGroupsUsersForTenantDTO]] = 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 AdminUserGroupsUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupsUsersDTO 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": [AdminUserGroupsUsersForTenantDTO.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_user_groups_users_for_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_groups_users_for_tenant_dto.py new file mode 100644 index 0000000000..05b5011cd8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_simple_user_dto import AdminSimpleUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserGroupsUsersForTenantDTO(BaseModel): + """ + AdminUserGroupsUsersForTenantDTO + """ # noqa: E501 + tenant_code: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the tenant.", alias="tenantCode") + users: Optional[List[AdminSimpleUserDTO]] = 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 AdminUserGroupsUsersForTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserGroupsUsersForTenantDTO 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": [AdminSimpleUserDTO.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_user_security_assignments_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_user_security_assignments_dto.py new file mode 100644 index 0000000000..de9ada8d8e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_simple_user_dto import AdminSimpleUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUserSecurityAssignmentsDTO(BaseModel): + """ + AdminUserSecurityAssignmentsDTO + """ # 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[AdminSimpleUserDTO]] = 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 AdminUserSecurityAssignmentsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminUserSecurityAssignmentsDTO 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": [AdminSimpleUserDTO.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_users_to_user_group_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_users_to_user_group_request_dto.py new file mode 100644 index 0000000000..058cbd203f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminUsersToUserGroupRequestDTO(BaseModel): + """ + AdminUsersToUserGroupRequestDTO + """ # 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 AdminUsersToUserGroupRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminUsersToUserGroupRequestDTO 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_users_to_user_groups_request_dto.py b/src/visier_api_administration/visier_api_administration/models/admin_users_to_user_groups_request_dto.py new file mode 100644 index 0000000000..7cefc88518 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_target_project_for_tenants_list_dto import AdminTargetProjectForTenantsListDTO +from visier_api_administration.models.admin_users_to_user_group_request_dto import AdminUsersToUserGroupRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminUsersToUserGroupsRequestDTO(BaseModel): + """ + AdminUsersToUserGroupsRequestDTO + """ # noqa: E501 + target_project_for_tenants_list: Optional[AdminTargetProjectForTenantsListDTO] = 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[AdminUsersToUserGroupRequestDTO]] = 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 AdminUsersToUserGroupsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminUsersToUserGroupsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetProjectForTenantsList": AdminTargetProjectForTenantsListDTO.from_dict(obj["targetProjectForTenantsList"]) if obj.get("targetProjectForTenantsList") is not None else None, + "userGroups": [AdminUsersToUserGroupRequestDTO.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/designer_crypto_generate_key_request_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_crypto_generate_key_request_dto.py index 168a06a980..46d9b1ac90 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index ce25d80656..3f1857834a 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index bc3194e07d..22142cd95d 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_administration/visier_api_administration/models/designer_module_settings_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_module_settings_dto.py new file mode 100644 index 0000000000..a6276277d4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerModuleSettingsDTO(BaseModel): + """ + DesignerModuleSettingsDTO + """ # 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 DesignerModuleSettingsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerModuleSettingsDTO 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_tenant_module_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_tenant_module_dto.py new file mode 100644 index 0000000000..622e62fca8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_module_settings_dto import DesignerModuleSettingsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerTenantModuleDTO(BaseModel): + """ + DesignerTenantModuleDTO + """ # 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[DesignerModuleSettingsDTO] = 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 DesignerTenantModuleDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerTenantModuleDTO 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": DesignerModuleSettingsDTO.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/designer_transfers_module_settings_dto.py b/src/visier_api_administration/visier_api_administration/models/designer_transfers_module_settings_dto.py deleted file mode 100644 index 3fc5384299..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d61eaf38ef..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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/dp_automation_metric_validation_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_metric_validation_summary_dto.py new file mode 100644 index 0000000000..d19f270f59 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DpAutomationMetricValidationSummaryDTO(BaseModel): + """ + DpAutomationMetricValidationSummaryDTO + """ # 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 DpAutomationMetricValidationSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpAutomationMetricValidationSummaryDTO 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_tenant_preview_entries_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_tenant_preview_entries_summary_dto.py new file mode 100644 index 0000000000..1f1e8ece4a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_metric_validation_summary_dto import DpAutomationMetricValidationSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpAutomationTenantPreviewEntriesSummaryDTO(BaseModel): + """ + DpAutomationTenantPreviewEntriesSummaryDTO + """ # 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[DpAutomationMetricValidationSummaryDTO]] = 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 DpAutomationTenantPreviewEntriesSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DpAutomationTenantPreviewEntriesSummaryDTO 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": [DpAutomationMetricValidationSummaryDTO.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_tenant_preview_entries_summary_list_dto.py b/src/visier_api_administration/visier_api_administration/models/dp_automation_tenant_preview_entries_summary_list_dto.py new file mode 100644 index 0000000000..c28a6e4082 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/dp_automation_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_preview_entries_summary_dto import DpAutomationTenantPreviewEntriesSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpAutomationTenantPreviewEntriesSummaryListDTO(BaseModel): + """ + DpAutomationTenantPreviewEntriesSummaryListDTO + """ # 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[DpAutomationTenantPreviewEntriesSummaryDTO]] = 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 DpAutomationTenantPreviewEntriesSummaryListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DpAutomationTenantPreviewEntriesSummaryListDTO 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": [DpAutomationTenantPreviewEntriesSummaryDTO.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/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 deleted file mode 100644 index 9cdf2f0213..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a116d7a567..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ce00f24385..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/dp_automation_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/servicing_accessible_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_accessible_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..b4cafacde9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_target_tenant_code_dto import ServicingTargetTenantCodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAccessibleTenantProfileAssignmentRequestDTO(BaseModel): + """ + ServicingAccessibleTenantProfileAssignmentRequestDTO + """ # noqa: E501 + target_tenant_codes: Optional[List[ServicingTargetTenantCodeDTO]] = 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 ServicingAccessibleTenantProfileAssignmentRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAccessibleTenantProfileAssignmentRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetTenantCodes": [ServicingTargetTenantCodeDTO.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_accessible_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_accessible_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..b195e187bc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_failed_accessible_tenant_profile_assignment_dto import ServicingFailedAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_successful_accessible_tenant_profile_assignment_dto import ServicingSuccessfulAccessibleTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_tenant_code_error_dto import ServicingTenantCodeErrorDTO +from visier_api_administration.models.servicing_user_id_error_dto import ServicingUserIdErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAccessibleTenantProfileAssignmentResponseDTO(BaseModel): + """ + ServicingAccessibleTenantProfileAssignmentResponseDTO + """ # noqa: E501 + bad_tenant_codes: Optional[List[ServicingTenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") + bad_user_ids: Optional[List[ServicingUserIdErrorDTO]] = 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[ServicingFailedAccessibleTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors during the assignment operation.", alias="failedAssignments") + successful_assignments: Optional[List[ServicingSuccessfulAccessibleTenantProfileAssignmentDTO]] = 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 ServicingAccessibleTenantProfileAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAccessibleTenantProfileAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badTenantCodes": [ServicingTenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, + "badUserIds": [ServicingUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "errors": obj.get("errors"), + "failedAssignments": [ServicingFailedAccessibleTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, + "successfulAssignments": [ServicingSuccessfulAccessibleTenantProfileAssignmentDTO.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_accessible_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_accessible_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..9867c6565f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_target_tenant_code_dto import ServicingTargetTenantCodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAccessibleTenantProfileRevokeRequestDTO(BaseModel): + """ + ServicingAccessibleTenantProfileRevokeRequestDTO + """ # noqa: E501 + target_tenant_codes: Optional[List[ServicingTargetTenantCodeDTO]] = 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 ServicingAccessibleTenantProfileRevokeRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAccessibleTenantProfileRevokeRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "targetTenantCodes": [ServicingTargetTenantCodeDTO.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_accessible_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_accessible_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..747373484f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_reduced_tenant_code_error_dto import ServicingReducedTenantCodeErrorDTO +from visier_api_administration.models.servicing_reduced_user_id_error_dto import ServicingReducedUserIdErrorDTO +from visier_api_administration.models.servicing_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAccessibleTenantProfileRevokeResponseDTO(BaseModel): + """ + ServicingAccessibleTenantProfileRevokeResponseDTO + """ # noqa: E501 + bad_tenant_codes: Optional[List[ServicingReducedTenantCodeErrorDTO]] = Field(default=None, description="A list of objects representing any tenants that returned errors.", alias="badTenantCodes") + bad_user_ids: Optional[List[ServicingReducedUserIdErrorDTO]] = Field(default=None, description="A list of objects representing the user IDs that may not be valid.", alias="badUserIds") + succeeded: Optional[List[ServicingSuccessfulLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing the valid user IDs that succeeded.") + unaffected_users: Optional[List[ServicingSuccessfulLocalTenantProfileAssignmentDTO]] = 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 ServicingAccessibleTenantProfileRevokeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAccessibleTenantProfileRevokeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badTenantCodes": [ServicingReducedTenantCodeErrorDTO.from_dict(_item) for _item in obj["badTenantCodes"]] if obj.get("badTenantCodes") is not None else None, + "badUserIds": [ServicingReducedUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "succeeded": [ServicingSuccessfulLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["succeeded"]] if obj.get("succeeded") is not None else None, + "unaffectedUsers": [ServicingSuccessfulLocalTenantProfileAssignmentDTO.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_additional_capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_additional_capabilities_dto.py new file mode 100644 index 0000000000..31f9756ebf --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAdditionalCapabilitiesDTO(BaseModel): + """ + ServicingAdditionalCapabilitiesDTO + """ # 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 ServicingAdditionalCapabilitiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingAdditionalCapabilitiesDTO 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_admin_capability_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_admin_capability_config_dto.py new file mode 100644 index 0000000000..9040707c28 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingAdminCapabilityConfigDTO(BaseModel): + """ + ServicingAdminCapabilityConfigDTO + """ # 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 ServicingAdminCapabilityConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingAdminCapabilityConfigDTO 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_all_permissions_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_all_permissions_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..120f656405 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_permission_assigned_for_local_tenant_dto import ServicingPermissionAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAllPermissionsAssignedForLocalTenantDTO(BaseModel): + """ + ServicingAllPermissionsAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_permissions: Optional[List[ServicingPermissionAssignedForLocalTenantDTO]] = 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 ServicingAllPermissionsAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAllPermissionsAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedPermissions": [ServicingPermissionAssignedForLocalTenantDTO.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_all_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_all_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..6e20c1b02c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_profile_assigned_for_accessible_tenant_dto import ServicingProfileAssignedForAccessibleTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAllProfileAssignedForAccessibleTenantDTO(BaseModel): + """ + ServicingAllProfileAssignedForAccessibleTenantDTO + """ # noqa: E501 + assigned_profiles_for_accessible_tenant: Optional[List[ServicingProfileAssignedForAccessibleTenantDTO]] = 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 ServicingAllProfileAssignedForAccessibleTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAllProfileAssignedForAccessibleTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedProfilesForAccessibleTenant": [ServicingProfileAssignedForAccessibleTenantDTO.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_all_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_all_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..a20a67adb5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_profile_assigned_for_local_tenant_dto import ServicingProfileAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAllProfileAssignedForLocalTenantDTO(BaseModel): + """ + ServicingAllProfileAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_profiles: Optional[List[ServicingProfileAssignedForLocalTenantDTO]] = 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 ServicingAllProfileAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAllProfileAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedProfiles": [ServicingProfileAssignedForLocalTenantDTO.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_all_user_groups_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_all_user_groups_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..7401c2f64b --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_assigned_for_local_tenant_dto import ServicingUserGroupAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAllUserGroupsAssignedForLocalTenantDTO(BaseModel): + """ + ServicingAllUserGroupsAssignedForLocalTenantDTO + """ # noqa: E501 + assigned_user_groups: Optional[List[ServicingUserGroupAssignedForLocalTenantDTO]] = 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 ServicingAllUserGroupsAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAllUserGroupsAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "assignedUserGroups": [ServicingUserGroupAssignedForLocalTenantDTO.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_all_users_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_all_users_get_api_response_dto.py new file mode 100644 index 0000000000..f44b148e35 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_get_api_response_dto import ServicingUserGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAllUsersGetAPIResponseDTO(BaseModel): + """ + ServicingAllUsersGetAPIResponseDTO + """ # 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[ServicingUserGetAPIResponseDTO]] = 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 ServicingAllUsersGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAllUsersGetAPIResponseDTO 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": [ServicingUserGetAPIResponseDTO.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_analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_analytic_object_dto.py new file mode 100644 index 0000000000..5443d908dd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_related_analytic_object_dto import ServicingRelatedAnalyticObjectDTO +from visier_api_administration.models.servicing_securable_dimension_dto import ServicingSecurableDimensionDTO +from visier_api_administration.models.servicing_securable_property_dto import ServicingSecurablePropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAnalyticObjectDTO(BaseModel): + """ + ServicingAnalyticObjectDTO + """ # 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[ServicingRelatedAnalyticObjectDTO]] = Field(default=None, description="The analytic objects related to the data security object.", alias="relatedObjects") + securable_dimensions: Optional[List[ServicingSecurableDimensionDTO]] = 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[ServicingSecurablePropertyDTO]] = 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 ServicingAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAnalyticObjectDTO 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": [ServicingRelatedAnalyticObjectDTO.from_dict(_item) for _item in obj["relatedObjects"]] if obj.get("relatedObjects") is not None else None, + "securableDimensions": [ServicingSecurableDimensionDTO.from_dict(_item) for _item in obj["securableDimensions"]] if obj.get("securableDimensions") is not None else None, + "securableProperties": [ServicingSecurablePropertyDTO.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_assign_revoke_permission_by_permission_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permission_by_permission_dto.py new file mode 100644 index 0000000000..cd3edbae46 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_assign_revoke_permission_by_user_dto import ServicingAssignRevokePermissionByUserDTO +from visier_api_administration.models.servicing_permission_assigned_for_local_tenant_dto import ServicingPermissionAssignedForLocalTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionByPermissionDTO(BaseModel): + """ + The results of the permission assignment or removal. + """ # noqa: E501 + permission: Optional[ServicingPermissionAssignedForLocalTenantDTO] = None + users: Optional[List[ServicingAssignRevokePermissionByUserDTO]] = 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 ServicingAssignRevokePermissionByPermissionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingAssignRevokePermissionByPermissionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permission": ServicingPermissionAssignedForLocalTenantDTO.from_dict(obj["permission"]) if obj.get("permission") is not None else None, + "users": [ServicingAssignRevokePermissionByUserDTO.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_assign_revoke_permission_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permission_by_tenant_dto.py new file mode 100644 index 0000000000..8f083bc5b2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_assign_revoke_permission_by_permission_dto import ServicingAssignRevokePermissionByPermissionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionByTenantDTO(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[ServicingAssignRevokePermissionByPermissionDTO]] = 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 ServicingAssignRevokePermissionByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAssignRevokePermissionByTenantDTO 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": [ServicingAssignRevokePermissionByPermissionDTO.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_assign_revoke_permission_by_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permission_by_user_dto.py new file mode 100644 index 0000000000..f855ddb605 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionByUserDTO(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 ServicingAssignRevokePermissionByUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingAssignRevokePermissionByUserDTO 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_assign_revoke_permission_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permission_request_dto.py new file mode 100644 index 0000000000..19fce5c0fa --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionRequestDTO(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 ServicingAssignRevokePermissionRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingAssignRevokePermissionRequestDTO 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_assign_revoke_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permissions_request_dto.py new file mode 100644 index 0000000000..01222919da --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_target_project_for_tenants_list_dto import AdminTargetProjectForTenantsListDTO +from visier_api_administration.models.servicing_assign_revoke_permission_request_dto import ServicingAssignRevokePermissionRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionsRequestDTO(BaseModel): + """ + Set permissions request List of permissionId with assign to user Ids + """ # noqa: E501 + permissions: Optional[List[ServicingAssignRevokePermissionRequestDTO]] = Field(default=None, description="A list of objects representing the permissions to assign to or remove from users.") + target_project_for_tenants_list: Optional[AdminTargetProjectForTenantsListDTO] = 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 ServicingAssignRevokePermissionsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAssignRevokePermissionsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [ServicingAssignRevokePermissionRequestDTO.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, + "targetProjectForTenantsList": AdminTargetProjectForTenantsListDTO.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_assign_revoke_permissions_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_assign_revoke_permissions_response_dto.py new file mode 100644 index 0000000000..0b07efa65a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_assign_revoke_permission_by_tenant_dto import ServicingAssignRevokePermissionByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingAssignRevokePermissionsResponseDTO(BaseModel): + """ + The results of the permission assignment or removal. + """ # noqa: E501 + tenants: Optional[List[ServicingAssignRevokePermissionByTenantDTO]] = 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 ServicingAssignRevokePermissionsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingAssignRevokePermissionsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [ServicingAssignRevokePermissionByTenantDTO.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_bulk_data_access_set_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_bulk_data_access_set_response_dto.py new file mode 100644 index 0000000000..31d328364a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_access_set_failure_dto import ServicingDataAccessSetFailureDTO +from visier_api_administration.models.servicing_data_access_set_success_dto import ServicingDataAccessSetSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingBulkDataAccessSetResponseDTO(BaseModel): + """ + ServicingBulkDataAccessSetResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingDataAccessSetFailureDTO]] = Field(default=None, description="The data access sets that failed to be created and any relevant error information.") + successes: Optional[List[ServicingDataAccessSetSuccessDTO]] = 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 ServicingBulkDataAccessSetResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingBulkDataAccessSetResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingDataAccessSetFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingDataAccessSetSuccessDTO.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_capabilities_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_capabilities_dto.py new file mode 100644 index 0000000000..3490b84778 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingCapabilitiesDTO(BaseModel): + """ + ServicingCapabilitiesDTO + """ # 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 ServicingCapabilitiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingCapabilitiesDTO 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_capability_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_capability_dto.py new file mode 100644 index 0000000000..c655349beb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingCapabilityDTO(BaseModel): + """ + ServicingCapabilityDTO + """ # 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 ServicingCapabilityDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingCapabilityDTO 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_commit_and_publish_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_commit_and_publish_operation_response_dto.py new file mode 100644 index 0000000000..4965bd7aa1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_project_dto import ServicingProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingCommitAndPublishOperationResponseDTO(BaseModel): + """ + ServicingCommitAndPublishOperationResponseDTO + """ # noqa: E501 + published_version: Optional[ServicingProjectDTO] = 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 ServicingCommitAndPublishOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingCommitAndPublishOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishedVersion": ServicingProjectDTO.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_commit_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_commit_dto.py new file mode 100644 index 0000000000..9a9956c02a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingCommitDTO(BaseModel): + """ + ServicingCommitDTO + """ # 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 ServicingCommitDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingCommitDTO 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_content_package_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_content_package_dto.py new file mode 100644 index 0000000000..8c47170ace --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingContentPackageDTO(BaseModel): + """ + ServicingContentPackageDTO + """ # 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 ServicingContentPackageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingContentPackageDTO 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_create_data_access_set_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_create_data_access_set_request_dto.py new file mode 100644 index 0000000000..7003eeb9d4 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_access_set_dto import ServicingDataAccessSetDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingCreateDataAccessSetRequestDTO(BaseModel): + """ + ServicingCreateDataAccessSetRequestDTO + """ # noqa: E501 + shareable_property_access_configs: Optional[List[ServicingDataAccessSetDTO]] = 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 ServicingCreateDataAccessSetRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingCreateDataAccessSetRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shareablePropertyAccessConfigs": [ServicingDataAccessSetDTO.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_data_access_set_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_data_access_set_dto.py new file mode 100644 index 0000000000..40f6c192b6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_property_access_config_dto import ServicingPropertyAccessConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataAccessSetDTO(BaseModel): + """ + ServicingDataAccessSetDTO + """ # 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[ServicingPropertyAccessConfigDTO]] = 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 ServicingDataAccessSetDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingDataAccessSetDTO 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": [ServicingPropertyAccessConfigDTO.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_data_access_set_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_data_access_set_error_dto.py new file mode 100644 index 0000000000..5dd44cc2ef --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataAccessSetErrorDTO(BaseModel): + """ + ServicingDataAccessSetErrorDTO + """ # 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 ServicingDataAccessSetErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDataAccessSetErrorDTO 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_data_access_set_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_data_access_set_failure_dto.py new file mode 100644 index 0000000000..50401d324f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_data_access_set_error_dto import ServicingDataAccessSetErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataAccessSetFailureDTO(BaseModel): + """ + ServicingDataAccessSetFailureDTO + """ # 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[ServicingDataAccessSetErrorDTO] = 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 ServicingDataAccessSetFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingDataAccessSetFailureDTO 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": ServicingDataAccessSetErrorDTO.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_data_access_set_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_data_access_set_success_dto.py new file mode 100644 index 0000000000..26386b1d1c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataAccessSetSuccessDTO(BaseModel): + """ + ServicingDataAccessSetSuccessDTO + """ # 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 ServicingDataAccessSetSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDataAccessSetSuccessDTO 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_data_security_profile_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_data_security_profile_dto.py new file mode 100644 index 0000000000..f99eeb848d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_inherited_access_config_dto import ServicingInheritedAccessConfigDTO +from visier_api_administration.models.servicing_inherited_reference_member_filter_config_dto import ServicingInheritedReferenceMemberFilterConfigDTO +from visier_api_administration.models.servicing_member_filter_config_dto import ServicingMemberFilterConfigDTO +from visier_api_administration.models.servicing_property_set_config_dto import ServicingPropertySetConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataSecurityProfileDTO(BaseModel): + """ + ServicingDataSecurityProfileDTO + """ # 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[ServicingInheritedAccessConfigDTO]] = 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[ServicingInheritedReferenceMemberFilterConfigDTO] = 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[ServicingMemberFilterConfigDTO]] = Field(default=None, description="Custom filters that define population access for an item in the permission.", alias="memberFilterConfigs") + property_set_config: Optional[ServicingPropertySetConfigDTO] = 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 ServicingDataSecurityProfileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingDataSecurityProfileDTO 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": [ServicingInheritedAccessConfigDTO.from_dict(_item) for _item in obj["inheritedAccessConfigs"]] if obj.get("inheritedAccessConfigs") is not None else None, + "inheritedReferenceMemberFilterConfig": ServicingInheritedReferenceMemberFilterConfigDTO.from_dict(obj["inheritedReferenceMemberFilterConfig"]) if obj.get("inheritedReferenceMemberFilterConfig") is not None else None, + "memberFilterConfigs": [ServicingMemberFilterConfigDTO.from_dict(_item) for _item in obj["memberFilterConfigs"]] if obj.get("memberFilterConfigs") is not None else None, + "propertySetConfig": ServicingPropertySetConfigDTO.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_delete_permissions_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_delete_permissions_request_dto.py new file mode 100644 index 0000000000..37cd56eb58 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDeletePermissionsRequestDTO(BaseModel): + """ + ServicingDeletePermissionsRequestDTO + """ # 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 ServicingDeletePermissionsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDeletePermissionsRequestDTO 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_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_dimension_filter_dto.py new file mode 100644 index 0000000000..c57913eb50 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dynamic_dimension_filter_dto import ServicingDynamicDimensionFilterDTO +from visier_api_administration.models.servicing_static_dimension_filter_dto import ServicingStaticDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDimensionFilterDTO(BaseModel): + """ + ServicingDimensionFilterDTO + """ # noqa: E501 + dynamic_dimension_filter: Optional[ServicingDynamicDimensionFilterDTO] = Field(default=None, alias="dynamicDimensionFilter") + static_dimension_filter: Optional[ServicingStaticDimensionFilterDTO] = 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 ServicingDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingDimensionFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dynamicDimensionFilter": ServicingDynamicDimensionFilterDTO.from_dict(obj["dynamicDimensionFilter"]) if obj.get("dynamicDimensionFilter") is not None else None, + "staticDimensionFilter": ServicingStaticDimensionFilterDTO.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_dynamic_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_dynamic_dimension_filter_dto.py new file mode 100644 index 0000000000..f4136099af --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_dynamic_property_mapping_dto import ServicingDynamicPropertyMappingDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDynamicDimensionFilterDTO(BaseModel): + """ + ServicingDynamicDimensionFilterDTO + """ # 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[ServicingDynamicPropertyMappingDTO]] = 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 ServicingDynamicDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingDynamicDimensionFilterDTO 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": [ServicingDynamicPropertyMappingDTO.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_dynamic_property_mapping_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_dynamic_property_mapping_dto.py new file mode 100644 index 0000000000..44dee80ed9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_user_property_dto import ServicingUserPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDynamicPropertyMappingDTO(BaseModel): + """ + ServicingDynamicPropertyMappingDTO + """ # 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[ServicingUserPropertyDTO] = 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 ServicingDynamicPropertyMappingDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingDynamicPropertyMappingDTO 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": ServicingUserPropertyDTO.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_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_error_dto.py new file mode 100644 index 0000000000..780d6ad8a9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingErrorDTO(BaseModel): + """ + ServicingErrorDTO + """ # 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 ServicingErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingErrorDTO 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_export_production_versions_api_operation_parameters_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_export_production_versions_api_operation_parameters_dto.py new file mode 100644 index 0000000000..ed1a564e4c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingExportProductionVersionsAPIOperationParametersDTO(BaseModel): + """ + ServicingExportProductionVersionsAPIOperationParametersDTO + """ # 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 ServicingExportProductionVersionsAPIOperationParametersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingExportProductionVersionsAPIOperationParametersDTO 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_failed_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_failed_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..564e822e99 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_error_dto import ServicingErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingFailedAccessibleTenantProfileAssignmentDTO(BaseModel): + """ + ServicingFailedAccessibleTenantProfileAssignmentDTO + """ # noqa: E501 + error: Optional[ServicingErrorDTO] = 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 ServicingFailedAccessibleTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingFailedAccessibleTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingErrorDTO.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_failed_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_failed_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..73e9d38d57 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_error_dto import ServicingErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingFailedLocalTenantProfileAssignmentDTO(BaseModel): + """ + ServicingFailedLocalTenantProfileAssignmentDTO + """ # noqa: E501 + error: Optional[ServicingErrorDTO] = 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 ServicingFailedLocalTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingFailedLocalTenantProfileAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingErrorDTO.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_failed_local_tenant_profile_revoke_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_failed_local_tenant_profile_revoke_dto.py new file mode 100644 index 0000000000..abb4705022 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingFailedLocalTenantProfileRevokeDTO(BaseModel): + """ + ServicingFailedLocalTenantProfileRevokeDTO + """ # 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 ServicingFailedLocalTenantProfileRevokeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingFailedLocalTenantProfileRevokeDTO 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_get_capabilities_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_capabilities_api_response_dto.py new file mode 100644 index 0000000000..1d36cee21a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_capability_dto import ServicingCapabilityDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetCapabilitiesAPIResponseDTO(BaseModel): + """ + ServicingGetCapabilitiesAPIResponseDTO + """ # noqa: E501 + capabilities: Optional[List[ServicingCapabilityDTO]] = 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 ServicingGetCapabilitiesAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetCapabilitiesAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "capabilities": [ServicingCapabilityDTO.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_get_content_packages_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_content_packages_api_response_dto.py new file mode 100644 index 0000000000..8f56659ab3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_content_package_dto import ServicingContentPackageDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetContentPackagesAPIResponseDTO(BaseModel): + """ + ServicingGetContentPackagesAPIResponseDTO + """ # noqa: E501 + content_packages: Optional[List[ServicingContentPackageDTO]] = 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 ServicingGetContentPackagesAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetContentPackagesAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contentPackages": [ServicingContentPackageDTO.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_get_data_access_sets_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_data_access_sets_api_response_dto.py new file mode 100644 index 0000000000..3c49cb57f6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_access_set_dto import ServicingDataAccessSetDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetDataAccessSetsAPIResponseDTO(BaseModel): + """ + ServicingGetDataAccessSetsAPIResponseDTO + """ # noqa: E501 + data_access_sets: Optional[List[ServicingDataAccessSetDTO]] = 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 ServicingGetDataAccessSetsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetDataAccessSetsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataAccessSets": [ServicingDataAccessSetDTO.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_get_data_security_objects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_data_security_objects_api_response_dto.py new file mode 100644 index 0000000000..fb6a70cff2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_analytic_object_dto import ServicingAnalyticObjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetDataSecurityObjectsAPIResponseDTO(BaseModel): + """ + ServicingGetDataSecurityObjectsAPIResponseDTO + """ # noqa: E501 + analytic_objects: Optional[List[ServicingAnalyticObjectDTO]] = 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 ServicingGetDataSecurityObjectsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetDataSecurityObjectsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjects": [ServicingAnalyticObjectDTO.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_get_permissions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_permissions_api_response_dto.py new file mode 100644 index 0000000000..c079e2badb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_permission_dto import ServicingPermissionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetPermissionsAPIResponseDTO(BaseModel): + """ + List of available permissions + """ # noqa: E501 + permissions: Optional[List[ServicingPermissionDTO]] = 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 ServicingGetPermissionsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetPermissionsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "permissions": [ServicingPermissionDTO.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_get_production_versions_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_production_versions_api_response_dto.py new file mode 100644 index 0000000000..37aeb009ab --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_project_dto import ServicingProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetProductionVersionsAPIResponseDTO(BaseModel): + """ + ServicingGetProductionVersionsAPIResponseDTO + """ # noqa: E501 + published_versions: Optional[List[ServicingProjectDTO]] = 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 ServicingGetProductionVersionsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetProductionVersionsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "publishedVersions": [ServicingProjectDTO.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_get_projects_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_get_projects_api_response_dto.py new file mode 100644 index 0000000000..886910b774 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_project_dto import ServicingProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingGetProjectsAPIResponseDTO(BaseModel): + """ + ServicingGetProjectsAPIResponseDTO + """ # noqa: E501 + approval_projects: Optional[List[ServicingProjectDTO]] = Field(default=None, description="A list of objects representing the accessible approval projects for the user.", alias="approvalProjects") + archived_projects: Optional[List[ServicingProjectDTO]] = Field(default=None, description="A list of objects representing the accessible archived projects for the user.", alias="archivedProjects") + open_projects: Optional[List[ServicingProjectDTO]] = Field(default=None, description="A list of objects representing the accessible open projects for the user.", alias="openProjects") + rejected_projects: Optional[List[ServicingProjectDTO]] = 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 ServicingGetProjectsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingGetProjectsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approvalProjects": [ServicingProjectDTO.from_dict(_item) for _item in obj["approvalProjects"]] if obj.get("approvalProjects") is not None else None, + "archivedProjects": [ServicingProjectDTO.from_dict(_item) for _item in obj["archivedProjects"]] if obj.get("archivedProjects") is not None else None, + "openProjects": [ServicingProjectDTO.from_dict(_item) for _item in obj["openProjects"]] if obj.get("openProjects") is not None else None, + "rejectedProjects": [ServicingProjectDTO.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_hierarchy_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_hierarchy_property_dto.py new file mode 100644 index 0000000000..fc0e53cdf8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingHierarchyPropertyDTO(BaseModel): + """ + ServicingHierarchyPropertyDTO + """ # 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 ServicingHierarchyPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingHierarchyPropertyDTO 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_inherited_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_inherited_access_config_dto.py new file mode 100644 index 0000000000..fd3655370c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_member_filter_config_dto import ServicingMemberFilterConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingInheritedAccessConfigDTO(BaseModel): + """ + ServicingInheritedAccessConfigDTO + """ # 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[ServicingMemberFilterConfigDTO]] = 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 ServicingInheritedAccessConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingInheritedAccessConfigDTO 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": [ServicingMemberFilterConfigDTO.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_inherited_reference_member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_inherited_reference_member_filter_config_dto.py new file mode 100644 index 0000000000..8cbead6f7d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingInheritedReferenceMemberFilterConfigDTO(BaseModel): + """ + ServicingInheritedReferenceMemberFilterConfigDTO + """ # 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 ServicingInheritedReferenceMemberFilterConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingInheritedReferenceMemberFilterConfigDTO 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_last_login_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_last_login_dto.py new file mode 100644 index 0000000000..a502c1d4b6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingLastLoginDTO(BaseModel): + """ + ServicingLastLoginDTO + """ # 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 ServicingLastLoginDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingLastLoginDTO 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_local_tenant_profile_assignment_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_local_tenant_profile_assignment_request_dto.py new file mode 100644 index 0000000000..0cb7967312 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingLocalTenantProfileAssignmentRequestDTO(BaseModel): + """ + ServicingLocalTenantProfileAssignmentRequestDTO + """ # 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 ServicingLocalTenantProfileAssignmentRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingLocalTenantProfileAssignmentRequestDTO 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_local_tenant_profile_assignment_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_local_tenant_profile_assignment_response_dto.py new file mode 100644 index 0000000000..c3300e3197 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_failed_local_tenant_profile_assignment_dto import ServicingFailedLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO +from visier_api_administration.models.servicing_user_id_error_dto import ServicingUserIdErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingLocalTenantProfileAssignmentResponseDTO(BaseModel): + """ + ServicingLocalTenantProfileAssignmentResponseDTO + """ # noqa: E501 + bad_user_ids: Optional[List[ServicingUserIdErrorDTO]] = 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[ServicingFailedLocalTenantProfileAssignmentDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.", alias="failedAssignments") + successful_assignments: Optional[List[ServicingSuccessfulLocalTenantProfileAssignmentDTO]] = 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 ServicingLocalTenantProfileAssignmentResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingLocalTenantProfileAssignmentResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badUserIds": [ServicingUserIdErrorDTO.from_dict(_item) for _item in obj["badUserIds"]] if obj.get("badUserIds") is not None else None, + "errors": obj.get("errors"), + "failedAssignments": [ServicingFailedLocalTenantProfileAssignmentDTO.from_dict(_item) for _item in obj["failedAssignments"]] if obj.get("failedAssignments") is not None else None, + "successfulAssignments": [ServicingSuccessfulLocalTenantProfileAssignmentDTO.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_local_tenant_profile_revoke_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_local_tenant_profile_revoke_request_dto.py new file mode 100644 index 0000000000..e787bcbd8c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingLocalTenantProfileRevokeRequestDTO(BaseModel): + """ + ServicingLocalTenantProfileRevokeRequestDTO + """ # 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 ServicingLocalTenantProfileRevokeRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingLocalTenantProfileRevokeRequestDTO 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_local_tenant_profile_revoke_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_local_tenant_profile_revoke_response_dto.py new file mode 100644 index 0000000000..12a1965dc5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_failed_local_tenant_profile_revoke_dto import ServicingFailedLocalTenantProfileRevokeDTO +from visier_api_administration.models.servicing_successful_local_tenant_profile_assignment_dto import ServicingSuccessfulLocalTenantProfileAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingLocalTenantProfileRevokeResponseDTO(BaseModel): + """ + ServicingLocalTenantProfileRevokeResponseDTO + """ # noqa: E501 + failed: Optional[List[ServicingFailedLocalTenantProfileRevokeDTO]] = Field(default=None, description="A list of objects representing any errors that occurred during the assignment operation.") + succeeded: Optional[List[ServicingSuccessfulLocalTenantProfileAssignmentDTO]] = 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 ServicingLocalTenantProfileRevokeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingLocalTenantProfileRevokeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failed": [ServicingFailedLocalTenantProfileRevokeDTO.from_dict(_item) for _item in obj["failed"]] if obj.get("failed") is not None else None, + "succeeded": [ServicingSuccessfulLocalTenantProfileAssignmentDTO.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_member_filter_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_member_filter_config_dto.py new file mode 100644 index 0000000000..d5f8a07c1d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_filter_dto import ServicingDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingMemberFilterConfigDTO(BaseModel): + """ + ServicingMemberFilterConfigDTO + """ # noqa: E501 + dimension_filters: Optional[List[ServicingDimensionFilterDTO]] = 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 ServicingMemberFilterConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingMemberFilterConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionFilters": [ServicingDimensionFilterDTO.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_member_selection_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_member_selection_dto.py new file mode 100644 index 0000000000..3507b2a315 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingMemberSelectionDTO(BaseModel): + """ + ServicingMemberSelectionDTO + """ # 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 ServicingMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingMemberSelectionDTO 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_permission_assigned_by_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_assigned_by_tenant_dto.py new file mode 100644 index 0000000000..b85fc7e8a3 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_permission_assigned_user_dto import ServicingPermissionAssignedUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionAssignedByTenantDTO(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[ServicingPermissionAssignedUserDTO]] = 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 ServicingPermissionAssignedByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingPermissionAssignedByTenantDTO 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": [ServicingPermissionAssignedUserDTO.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_permission_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..456bf8d884 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionAssignedForLocalTenantDTO(BaseModel): + """ + ServicingPermissionAssignedForLocalTenantDTO + """ # 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 ServicingPermissionAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPermissionAssignedForLocalTenantDTO 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_permission_assigned_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_assigned_user_dto.py new file mode 100644 index 0000000000..069190b5ec --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionAssignedUserDTO(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 ServicingPermissionAssignedUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPermissionAssignedUserDTO 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_permission_assigned_users_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_assigned_users_dto.py new file mode 100644 index 0000000000..638dfeda7d --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_permission_assigned_by_tenant_dto import ServicingPermissionAssignedByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionAssignedUsersDTO(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[ServicingPermissionAssignedByTenantDTO]] = 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 ServicingPermissionAssignedUsersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingPermissionAssignedUsersDTO 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": [ServicingPermissionAssignedByTenantDTO.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_permission_bulk_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_bulk_operation_response_dto.py new file mode 100644 index 0000000000..4f88dfa823 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_permission_failure_dto import ServicingPermissionFailureDTO +from visier_api_administration.models.servicing_permission_success_dto import ServicingPermissionSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionBulkOperationResponseDTO(BaseModel): + """ + ServicingPermissionBulkOperationResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingPermissionFailureDTO]] = Field(default=None, description="The permissions that did not process and any relevant error information.") + successes: Optional[List[ServicingPermissionSuccessDTO]] = 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 ServicingPermissionBulkOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingPermissionBulkOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingPermissionFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingPermissionSuccessDTO.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_permission_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_dto.py new file mode 100644 index 0000000000..aa83af1d54 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_admin_capability_config_dto import ServicingAdminCapabilityConfigDTO +from visier_api_administration.models.servicing_data_security_profile_dto import ServicingDataSecurityProfileDTO +from visier_api_administration.models.servicing_role_modules_config_dto import ServicingRoleModulesConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionDTO(BaseModel): + """ + ServicingPermissionDTO + """ # noqa: E501 + admin_capability_config: Optional[ServicingAdminCapabilityConfigDTO] = Field(default=None, description="The capabilities assigned in the permission.", alias="adminCapabilityConfig") + data_security_profiles: Optional[List[ServicingDataSecurityProfileDTO]] = 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[ServicingRoleModulesConfigDTO] = 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 ServicingPermissionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingPermissionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminCapabilityConfig": ServicingAdminCapabilityConfigDTO.from_dict(obj["adminCapabilityConfig"]) if obj.get("adminCapabilityConfig") is not None else None, + "dataSecurityProfiles": [ServicingDataSecurityProfileDTO.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": ServicingRoleModulesConfigDTO.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_permission_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_error_dto.py new file mode 100644 index 0000000000..92a11baa72 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionErrorDTO(BaseModel): + """ + ServicingPermissionErrorDTO + """ # 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 ServicingPermissionErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPermissionErrorDTO 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_permission_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_failure_dto.py new file mode 100644 index 0000000000..d8a238f230 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_permission_error_dto import ServicingPermissionErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionFailureDTO(BaseModel): + """ + ServicingPermissionFailureDTO + """ # 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[ServicingPermissionErrorDTO] = 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 ServicingPermissionFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingPermissionFailureDTO 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": ServicingPermissionErrorDTO.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_permission_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_permission_success_dto.py new file mode 100644 index 0000000000..67fd8325e1 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPermissionSuccessDTO(BaseModel): + """ + ServicingPermissionSuccessDTO + """ # 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 ServicingPermissionSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPermissionSuccessDTO 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_production_version_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_production_version_api_operation_request_dto.py new file mode 100644 index 0000000000..eb6dcbaf53 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingProductionVersionAPIOperationRequestDTO(BaseModel): + """ + ServicingProductionVersionAPIOperationRequestDTO + """ # 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 ServicingProductionVersionAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingProductionVersionAPIOperationRequestDTO 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_production_version_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_production_version_api_operation_response_dto.py new file mode 100644 index 0000000000..f3e1c903b6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_project_dto import ServicingProjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProductionVersionAPIOperationResponseDTO(BaseModel): + """ + ServicingProductionVersionAPIOperationResponseDTO + """ # noqa: E501 + roll_back_to: Optional[ServicingProjectDTO] = 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 ServicingProductionVersionAPIOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingProductionVersionAPIOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rollBackTo": ServicingProjectDTO.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_production_versions_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_production_versions_api_operation_request_dto.py new file mode 100644 index 0000000000..0a14917bec --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_export_production_versions_api_operation_parameters_dto import ServicingExportProductionVersionsAPIOperationParametersDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProductionVersionsAPIOperationRequestDTO(BaseModel): + """ + ServicingProductionVersionsAPIOperationRequestDTO + """ # noqa: E501 + export_parameters: Optional[ServicingExportProductionVersionsAPIOperationParametersDTO] = 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 ServicingProductionVersionsAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingProductionVersionsAPIOperationRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "exportParameters": ServicingExportProductionVersionsAPIOperationParametersDTO.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_production_versions_api_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_production_versions_api_operation_response_dto.py new file mode 100644 index 0000000000..5cea4289f6 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingProductionVersionsAPIOperationResponseDTO(BaseModel): + """ + ServicingProductionVersionsAPIOperationResponseDTO + """ # 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 ServicingProductionVersionsAPIOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingProductionVersionsAPIOperationResponseDTO 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_profile_assigned_for_accessible_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_profile_assigned_for_accessible_tenant_dto.py new file mode 100644 index 0000000000..f1e572d8ba --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingProfileAssignedForAccessibleTenantDTO(BaseModel): + """ + ServicingProfileAssignedForAccessibleTenantDTO + """ # 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 ServicingProfileAssignedForAccessibleTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingProfileAssignedForAccessibleTenantDTO 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_profile_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_profile_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..82147dc1af --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_additional_capabilities_dto import ServicingAdditionalCapabilitiesDTO +from visier_api_administration.models.servicing_capabilities_dto import ServicingCapabilitiesDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProfileAssignedForLocalTenantDTO(BaseModel): + """ + ServicingProfileAssignedForLocalTenantDTO + """ # noqa: E501 + additional_capabilities: Optional[ServicingAdditionalCapabilitiesDTO] = Field(default=None, description="A list of the additional capabilities that are assigned to this profile.", alias="additionalCapabilities") + capabilities: Optional[List[ServicingCapabilitiesDTO]] = 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 ServicingProfileAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingProfileAssignedForLocalTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additionalCapabilities": ServicingAdditionalCapabilitiesDTO.from_dict(obj["additionalCapabilities"]) if obj.get("additionalCapabilities") is not None else None, + "capabilities": [ServicingCapabilitiesDTO.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_profile_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_profile_get_api_response_dto.py new file mode 100644 index 0000000000..9212cafab9 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_capabilities_dto import ServicingCapabilitiesDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProfileGetAPIResponseDTO(BaseModel): + """ + ServicingProfileGetAPIResponseDTO + """ # 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[ServicingCapabilitiesDTO]] = 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 ServicingProfileGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingProfileGetAPIResponseDTO 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": [ServicingCapabilitiesDTO.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_profiles_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_profiles_get_api_response_dto.py new file mode 100644 index 0000000000..c86d22de66 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_profile_get_api_response_dto import ServicingProfileGetAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProfilesGetAPIResponseDTO(BaseModel): + """ + ServicingProfilesGetAPIResponseDTO + """ # noqa: E501 + profiles: Optional[List[ServicingProfileGetAPIResponseDTO]] = 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 ServicingProfilesGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingProfilesGetAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profiles": [ServicingProfileGetAPIResponseDTO.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_project_commits_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_project_commits_api_response_dto.py new file mode 100644 index 0000000000..d458e4edaa --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_commit_dto import ServicingCommitDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProjectCommitsAPIResponseDTO(BaseModel): + """ + ServicingProjectCommitsAPIResponseDTO + """ # noqa: E501 + commits: Optional[List[ServicingCommitDTO]] = 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 ServicingProjectCommitsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingProjectCommitsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commits": [ServicingCommitDTO.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_project_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_project_dto.py new file mode 100644 index 0000000000..eb80d7f183 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingProjectDTO(BaseModel): + """ + ServicingProjectDTO + """ # 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 ServicingProjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingProjectDTO 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_project_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_project_operation_request_dto.py new file mode 100644 index 0000000000..6c20403600 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingProjectOperationRequestDTO(BaseModel): + """ + ServicingProjectOperationRequestDTO + """ # 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 ServicingProjectOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingProjectOperationRequestDTO 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_project_operation_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_project_operation_response_dto.py new file mode 100644 index 0000000000..2f71bae8c2 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_commit_and_publish_operation_response_dto import ServicingCommitAndPublishOperationResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingProjectOperationResponseDTO(BaseModel): + """ + ServicingProjectOperationResponseDTO + """ # noqa: E501 + commit_and_publish: Optional[ServicingCommitAndPublishOperationResponseDTO] = 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 ServicingProjectOperationResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingProjectOperationResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commitAndPublish": ServicingCommitAndPublishOperationResponseDTO.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_property_access_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_property_access_config_dto.py new file mode 100644 index 0000000000..0f6967682e --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingPropertyAccessConfigDTO(BaseModel): + """ + ServicingPropertyAccessConfigDTO + """ # 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 ServicingPropertyAccessConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingPropertyAccessConfigDTO 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_property_set_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_property_set_config_dto.py new file mode 100644 index 0000000000..ab2688ecdc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_property_access_config_dto import ServicingPropertyAccessConfigDTO +from visier_api_administration.models.servicing_shareable_data_access_set import ServicingShareableDataAccessSet +from typing import Optional, Set +from typing_extensions import Self + +class ServicingPropertySetConfigDTO(BaseModel): + """ + ServicingPropertySetConfigDTO + """ # noqa: E501 + property_access_configs: Optional[List[ServicingPropertyAccessConfigDTO]] = Field(default=None, description="The data access for a property.", alias="propertyAccessConfigs") + shareable_data_access_set: Optional[ServicingShareableDataAccessSet] = 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 ServicingPropertySetConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingPropertySetConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyAccessConfigs": [ServicingPropertyAccessConfigDTO.from_dict(_item) for _item in obj["propertyAccessConfigs"]] if obj.get("propertyAccessConfigs") is not None else None, + "shareableDataAccessSet": ServicingShareableDataAccessSet.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_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 deleted file mode 100644 index fc67bcd101..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index a398aa2e2a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 28dfba5c30..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index f336b73754..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 055fa68d4d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0926ff3485..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 563b848124..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 28c7b9f4e6..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ad6eae29d6..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ed14a07217..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 9ec0762571..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6231bf55d9..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 25041c4767..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c7822809f6..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 2adcada7fd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2b6c779c3b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 5a5b9adaf3..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 8c057c4d1e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index eb9ca4559e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 96531560ad..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0a6facd136..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 56fd3d5839..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index defe4c3a4c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index d07ef55ac3..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index de1fca26c2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 358676f7d1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c9c0c0b928..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index d4bffe1e98..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c33679d9fd..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 799b1901d2..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b2de6c0aa4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 26c40c598c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1f85ce6b0d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 5219afe51c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 7e28ae0b69..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index cb100a4e95..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6d9c558917..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 742a9b969c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 8e0997819e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 08f1df3ecf..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index e70328b886..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 37fdb9e420..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b365046556..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1b43d3642e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index baea784fa4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index bcf904508c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 3f2be7d496..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f941cc2d27..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 00fadbf4a0..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6cbc40d910..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ee48897801..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 39e13f2d6b..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 72a59cee54..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f28139721d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5c91861f27..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index dc8bd9fc87..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 89b7bfbb68..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 930540b3ed..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 710053bc33..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 3117d0b291..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 628952cb24..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 16c2a69bd8..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index e777dffee1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a58da5892d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 2dd9579a85..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index d4d10d8214..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 7653a4546f..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7d7eb70e01..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 2919a7c2c7..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c872665c14..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b2d4f2e664..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 4e266cab87..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index a24a41f420..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 058f8220e1..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7391e80833..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d8b6b942d4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 718ad81fec..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c00a520b29..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index aa5fa5b382..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 3f3f17e468..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 79fccf0cfe..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6ef9ab43bc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 229829c5e8..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f4ed4355a5..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6179ec7d3a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 7136055ff9..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b7d2bb5987..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ba9d3f6908..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index cc53dd1065..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 5f25f2cc11..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 9e96db3b84..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index babd55c382..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a578eadbfc..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ae6f0c9644..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2a7375f2bb..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 24e70c76e9..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index b84c95528a..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 8732971e8e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index c59151087d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 3765c13ab8..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 7bf76e7ca4..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 1c967e6d79..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 41e35b7502..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 87e5afba9e..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index acc0d2dd9c..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 1cd752a59d..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d3fb133525..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/servicing_reduced_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_reduced_error_dto.py new file mode 100644 index 0000000000..458070ce2c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingReducedErrorDTO(BaseModel): + """ + ServicingReducedErrorDTO + """ # 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 ServicingReducedErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingReducedErrorDTO 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_reduced_tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_reduced_tenant_code_error_dto.py new file mode 100644 index 0000000000..e23c756324 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_reduced_error_dto import ServicingReducedErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingReducedTenantCodeErrorDTO(BaseModel): + """ + ServicingReducedTenantCodeErrorDTO + """ # noqa: E501 + error: Optional[ServicingReducedErrorDTO] = 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 ServicingReducedTenantCodeErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingReducedTenantCodeErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingReducedErrorDTO.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_reduced_user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_reduced_user_id_error_dto.py new file mode 100644 index 0000000000..6cbcf987bf --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_reduced_error_dto import ServicingReducedErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingReducedUserIdErrorDTO(BaseModel): + """ + ServicingReducedUserIdErrorDTO + """ # noqa: E501 + error: Optional[ServicingReducedErrorDTO] = 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 ServicingReducedUserIdErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingReducedUserIdErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingReducedErrorDTO.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_related_analytic_object_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_related_analytic_object_dto.py new file mode 100644 index 0000000000..8c99b3b53f --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingRelatedAnalyticObjectDTO(BaseModel): + """ + ServicingRelatedAnalyticObjectDTO + """ # 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 ServicingRelatedAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingRelatedAnalyticObjectDTO 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_role_modules_config_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_role_modules_config_dto.py new file mode 100644 index 0000000000..c7e913fda0 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingRoleModulesConfigDTO(BaseModel): + """ + ServicingRoleModulesConfigDTO + """ # 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 ServicingRoleModulesConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingRoleModulesConfigDTO 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_securable_dimension_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_securable_dimension_dto.py new file mode 100644 index 0000000000..1b2171ee41 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_hierarchy_property_dto import ServicingHierarchyPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSecurableDimensionDTO(BaseModel): + """ + ServicingSecurableDimensionDTO + """ # 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[ServicingHierarchyPropertyDTO]] = 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 ServicingSecurableDimensionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingSecurableDimensionDTO 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": [ServicingHierarchyPropertyDTO.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_securable_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_securable_property_dto.py new file mode 100644 index 0000000000..072ffcea41 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingSecurablePropertyDTO(BaseModel): + """ + ServicingSecurablePropertyDTO + """ # 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 ServicingSecurablePropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingSecurablePropertyDTO 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_shareable_data_access_set.py b/src/visier_api_administration/visier_api_administration/models/servicing_shareable_data_access_set.py new file mode 100644 index 0000000000..e3c9c51a59 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingShareableDataAccessSet(BaseModel): + """ + ServicingShareableDataAccessSet + """ # 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 ServicingShareableDataAccessSet from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingShareableDataAccessSet 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_sources_api_operation_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_sources_api_operation_request_dto.py new file mode 100644 index 0000000000..88bbd7b737 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingSourcesAPIOperationRequestDTO(BaseModel): + """ + ServicingSourcesAPIOperationRequestDTO + """ # 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 ServicingSourcesAPIOperationRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingSourcesAPIOperationRequestDTO 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_static_dimension_filter_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_static_dimension_filter_dto.py new file mode 100644 index 0000000000..65323a25fc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_member_selection_dto import ServicingMemberSelectionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingStaticDimensionFilterDTO(BaseModel): + """ + ServicingStaticDimensionFilterDTO + """ # 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[ServicingMemberSelectionDTO]] = 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 ServicingStaticDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingStaticDimensionFilterDTO 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": [ServicingMemberSelectionDTO.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_successful_accessible_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_successful_accessible_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..64468652d5 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingSuccessfulAccessibleTenantProfileAssignmentDTO(BaseModel): + """ + ServicingSuccessfulAccessibleTenantProfileAssignmentDTO + """ # 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 ServicingSuccessfulAccessibleTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingSuccessfulAccessibleTenantProfileAssignmentDTO 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_successful_local_tenant_profile_assignment_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_successful_local_tenant_profile_assignment_dto.py new file mode 100644 index 0000000000..c2bb7bb166 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSuccessfulLocalTenantProfileAssignmentDTO(BaseModel): + """ + ServicingSuccessfulLocalTenantProfileAssignmentDTO + """ # 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 ServicingSuccessfulLocalTenantProfileAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingSuccessfulLocalTenantProfileAssignmentDTO 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_target_tenant_code_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_target_tenant_code_dto.py new file mode 100644 index 0000000000..33cd75a9bb --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingTargetTenantCodeDTO(BaseModel): + """ + ServicingTargetTenantCodeDTO + """ # 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 ServicingTargetTenantCodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingTargetTenantCodeDTO 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_tenant_code_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_tenant_code_error_dto.py new file mode 100644 index 0000000000..4db3d6a709 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_error_dto import ServicingErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingTenantCodeErrorDTO(BaseModel): + """ + ServicingTenantCodeErrorDTO + """ # noqa: E501 + error: Optional[ServicingErrorDTO] = 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 ServicingTenantCodeErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingTenantCodeErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingErrorDTO.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_user_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_creation_api_request_dto.py new file mode 100644 index 0000000000..0055596c86 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserCreationAPIRequestDTO(BaseModel): + """ + ServicingUserCreationAPIRequestDTO + """ # 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 ServicingUserCreationAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUserCreationAPIRequestDTO 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_user_get_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_get_api_response_dto.py new file mode 100644 index 0000000000..4a76be037c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_all_permissions_assigned_for_local_tenant_dto import ServicingAllPermissionsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_profile_assigned_for_local_tenant_dto import ServicingAllProfileAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_all_user_groups_assigned_for_local_tenant_dto import ServicingAllUserGroupsAssignedForLocalTenantDTO +from visier_api_administration.models.servicing_last_login_dto import ServicingLastLoginDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserGetAPIResponseDTO(BaseModel): + """ + ServicingUserGetAPIResponseDTO + """ # 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[ServicingLastLoginDTO] = Field(default=None, description="An object that represents the time that the user last logged into Visier.", alias="lastLogin") + permissions: Optional[ServicingAllPermissionsAssignedForLocalTenantDTO] = Field(default=None, description="A list of objects representing the user's permissions.") + profiles: Optional[ServicingAllProfileAssignedForLocalTenantDTO] = 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[ServicingAllUserGroupsAssignedForLocalTenantDTO] = 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 ServicingUserGetAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingUserGetAPIResponseDTO 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": ServicingLastLoginDTO.from_dict(obj["lastLogin"]) if obj.get("lastLogin") is not None else None, + "permissions": ServicingAllPermissionsAssignedForLocalTenantDTO.from_dict(obj["permissions"]) if obj.get("permissions") is not None else None, + "profiles": ServicingAllProfileAssignedForLocalTenantDTO.from_dict(obj["profiles"]) if obj.get("profiles") is not None else None, + "userGroups": ServicingAllUserGroupsAssignedForLocalTenantDTO.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_user_group_assigned_for_local_tenant_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_group_assigned_for_local_tenant_dto.py new file mode 100644 index 0000000000..6a69abcb7c --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserGroupAssignedForLocalTenantDTO(BaseModel): + """ + ServicingUserGroupAssignedForLocalTenantDTO + """ # 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 ServicingUserGroupAssignedForLocalTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUserGroupAssignedForLocalTenantDTO 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_user_id_error_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_id_error_dto.py new file mode 100644 index 0000000000..14eaef7ddc --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_error_dto import ServicingErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserIdErrorDTO(BaseModel): + """ + ServicingUserIdErrorDTO + """ # noqa: E501 + error: Optional[ServicingErrorDTO] = 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 ServicingUserIdErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingUserIdErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "error": ServicingErrorDTO.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_user_property_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_property_dto.py new file mode 100644 index 0000000000..cfe8e524da --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserPropertyDTO(BaseModel): + """ + ServicingUserPropertyDTO + """ # 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 ServicingUserPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUserPropertyDTO 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_user_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_user_update_api_request_dto.py new file mode 100644 index 0000000000..8f2fae4908 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserUpdateAPIRequestDTO(BaseModel): + """ + ServicingUserUpdateAPIRequestDTO + """ # 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 ServicingUserUpdateAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUserUpdateAPIRequestDTO 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_users_api_error_message_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_api_error_message_dto.py new file mode 100644 index 0000000000..8b95259906 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersAPIErrorMessageDTO(BaseModel): + """ + ServicingUsersAPIErrorMessageDTO + """ # 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 ServicingUsersAPIErrorMessageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUsersAPIErrorMessageDTO 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_users_api_failure_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_api_failure_dto.py new file mode 100644 index 0000000000..a8aa49c503 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_users_api_error_message_dto import ServicingUsersAPIErrorMessageDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersAPIFailureDTO(BaseModel): + """ + ServicingUsersAPIFailureDTO + """ # 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[ServicingUsersAPIErrorMessageDTO] = 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 ServicingUsersAPIFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingUsersAPIFailureDTO 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": ServicingUsersAPIErrorMessageDTO.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_users_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_api_response_dto.py new file mode 100644 index 0000000000..16a398ae23 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_users_api_failure_dto import ServicingUsersAPIFailureDTO +from visier_api_administration.models.servicing_users_api_success_dto import ServicingUsersAPISuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersAPIResponseDTO(BaseModel): + """ + ServicingUsersAPIResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingUsersAPIFailureDTO]] = Field(default=None, description="The users for which the request failed.") + successes: Optional[List[ServicingUsersAPISuccessDTO]] = 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 ServicingUsersAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingUsersAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingUsersAPIFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingUsersAPISuccessDTO.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_users_api_success_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_api_success_dto.py new file mode 100644 index 0000000000..bd2e4c5439 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersAPISuccessDTO(BaseModel): + """ + ServicingUsersAPISuccessDTO + """ # 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 ServicingUsersAPISuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUsersAPISuccessDTO 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_users_creation_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_creation_api_request_dto.py new file mode 100644 index 0000000000..b824454427 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_creation_api_request_dto import ServicingUserCreationAPIRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersCreationAPIRequestDTO(BaseModel): + """ + ServicingUsersCreationAPIRequestDTO + """ # noqa: E501 + users: Optional[List[ServicingUserCreationAPIRequestDTO]] = 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 ServicingUsersCreationAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingUsersCreationAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ServicingUserCreationAPIRequestDTO.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_users_delete_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_delete_api_request_dto.py new file mode 100644 index 0000000000..33a9cd420a --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersDeleteAPIRequestDTO(BaseModel): + """ + ServicingUsersDeleteAPIRequestDTO + """ # 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 ServicingUsersDeleteAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUsersDeleteAPIRequestDTO 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_users_update_api_request_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_update_api_request_dto.py new file mode 100644 index 0000000000..13836a89cd --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_users_update_api_user_dto import ServicingUsersUpdateAPIUserDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersUpdateAPIRequestDTO(BaseModel): + """ + ServicingUsersUpdateAPIRequestDTO + """ # noqa: E501 + users: Optional[List[ServicingUsersUpdateAPIUserDTO]] = 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 ServicingUsersUpdateAPIRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingUsersUpdateAPIRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ServicingUsersUpdateAPIUserDTO.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_users_update_api_user_dto.py b/src/visier_api_administration/visier_api_administration/models/servicing_users_update_api_user_dto.py new file mode 100644 index 0000000000..f09b3586f8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUsersUpdateAPIUserDTO(BaseModel): + """ + ServicingUsersUpdateAPIUserDTO + """ # 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 ServicingUsersUpdateAPIUserDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUsersUpdateAPIUserDTO 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/source_import_result_summary_dto.py b/src/visier_api_administration/visier_api_administration/models/source_import_result_summary_dto.py index cb580bc77e..595f456ff5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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_put_response_dto.py b/src/visier_api_administration/visier_api_administration/models/sources_api_put_response_dto.py index 0fd233f378..6985e12d70 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 f2cd1dc632..95f37f58d6 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 deleted file mode 100644 index 92fe119051..0000000000 --- a/src/visier_api_administration/visier_api_administration/models/systemstatus_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/systemstatus_system_status_dto.py b/src/visier_api_administration/visier_api_administration/models/systemstatus_system_status_dto.py new file mode 100644 index 0000000000..70e97d9eb8 --- /dev/null +++ b/src/visier_api_administration/visier_api_administration/models/systemstatus_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SystemstatusSystemStatusDTO(BaseModel): + """ + SystemstatusSystemStatusDTO + """ # 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 SystemstatusSystemStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SystemstatusSystemStatusDTO 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/user_creation_api_response_dto.py b/src/visier_api_administration/visier_api_administration/models/user_creation_api_response_dto.py index c1d46e4f3d..3df74579f6 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/.openapi-generator/FILES b/src/visier_api_analytic_model/.openapi-generator/FILES index 51f062ceaa..dedd652a67 100644 --- a/src/visier_api_analytic_model/.openapi-generator/FILES +++ b/src/visier_api_analytic_model/.openapi-generator/FILES @@ -4,188 +4,288 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_concepts_v2_api.py test/test_data_model_api.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_dataservices_datamodel_aggregation_type_option_dto.py +test/test_dataservices_datamodel_aggregation_type_parameter_dto.py +test/test_dataservices_datamodel_analytic_object_dto.py +test/test_dataservices_datamodel_analytic_objects_dto.py +test/test_dataservices_datamodel_currencies_dto.py +test/test_dataservices_datamodel_currency_dto.py +test/test_dataservices_datamodel_currency_rate_dto.py +test/test_dataservices_datamodel_currency_rates_dto.py +test/test_dataservices_datamodel_dimension_dto.py +test/test_dataservices_datamodel_dimension_mapping_validation_dto.py +test/test_dataservices_datamodel_dimension_mapping_validation_execution_dto.py +test/test_dataservices_datamodel_dimension_reference_dto.py +test/test_dataservices_datamodel_dimensions_dto.py +test/test_dataservices_datamodel_level_dto.py +test/test_dataservices_datamodel_member_dto.py +test/test_dataservices_datamodel_member_parameter_definition_dto.py +test/test_dataservices_datamodel_members_dto.py +test/test_dataservices_datamodel_metric_dto.py +test/test_dataservices_datamodel_metrics_dto.py +test/test_dataservices_datamodel_numeric_parameter_definition_dto.py +test/test_dataservices_datamodel_object_reference_dto.py +test/test_dataservices_datamodel_parameter_definition_dto.py +test/test_dataservices_datamodel_plan_parameter_definition_dto.py +test/test_dataservices_datamodel_planning_concept_filter_context_dto.py +test/test_dataservices_datamodel_planning_hierarchy_filter_context_dto.py +test/test_dataservices_datamodel_planning_model_dto.py +test/test_dataservices_datamodel_planning_models_dto.py +test/test_dataservices_datamodel_planning_plan_context_dto.py +test/test_dataservices_datamodel_planning_plan_dto.py +test/test_dataservices_datamodel_planning_plans_dto.py +test/test_dataservices_datamodel_population_configuration_dto.py +test/test_dataservices_datamodel_prediction_dto.py +test/test_dataservices_datamodel_predictions_dto.py +test/test_dataservices_datamodel_properties_dto.py +test/test_dataservices_datamodel_property_dto.py +test/test_dataservices_datamodel_property_reference_dto.py +test/test_dataservices_datamodel_scenario_or_snapshot_dto.py +test/test_dataservices_datamodel_selection_concept_dto.py +test/test_dataservices_datamodel_selection_concepts_dto.py +test/test_dataservices_datamodel_tag_map_element_dto.py +test/test_dataservices_datamodel_validity_range_dto.py +test/test_designer_api_analytic_object_filter_dto.py +test/test_designer_api_calculation_concept_configuration_dto.py +test/test_designer_api_calculation_concept_configuration_map_dto.py +test/test_designer_api_calculation_concept_dto.py +test/test_designer_api_calculation_concept_list_dto.py +test/test_designer_api_concept_configuration_result_dto.py +test/test_designer_api_dimension_filter_dto.py +test/test_designer_api_dimension_member_dto.py +test/test_designer_api_perspective_configuration_dto.py +test/test_designer_api_perspective_node_dto.py +test/test_designer_api_selection_concept_configuration_dto.py +test/test_designer_api_selection_concept_configuration_map_dto.py +test/test_designer_api_selection_concept_dto.py +test/test_designer_api_selection_concept_list_dto.py test/test_object_configuration_api.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_planning_get_plan_list_response_dto.py +test/test_planning_plan_data_load_error_dto.py +test/test_planning_plan_info_dto.py +test/test_planning_plan_item_dto.py +test/test_planning_plan_schema_dto.py +test/test_planning_plan_segment_level_dto.py +test/test_planning_plan_segment_level_member_dto.py +test/test_planning_plan_segment_level_member_list_dto.py +test/test_planning_plan_time_period_dto.py +test/test_planning_plan_with_schema_dto.py +test/test_planning_scenario_info_dto.py +test/test_servicing_objectconfiguration_calculated_property_type_dto.py +test/test_servicing_objectconfiguration_dependent_dto.py +test/test_servicing_objectconfiguration_dimension_change_definition_dto.py +test/test_servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto.py +test/test_servicing_objectconfiguration_dimensions_change_definitions_dto.py +test/test_servicing_objectconfiguration_object_change_failure_dto.py +test/test_servicing_objectconfiguration_object_change_success_dto.py +test/test_servicing_objectconfiguration_objects_bulk_change_response_dto.py +test/test_servicing_objectconfiguration_properties_change_definitions_dto.py +test/test_servicing_objectconfiguration_properties_delete_definitions_dto.py +test/test_servicing_objectconfiguration_property_bulk_delete_response_dto.py +test/test_servicing_objectconfiguration_property_change_definition_dto.py +test/test_servicing_objectconfiguration_property_change_definitions_by_tenant_dto.py +test/test_servicing_objectconfiguration_property_delete_definitions_by_tenant_dto.py +test/test_servicing_objectconfiguration_property_delete_failure_dto.py +test/test_servicing_objectconfiguration_property_delete_success_dto.py +test/test_servicing_objectconfiguration_property_type_dto.py +test/test_servicing_objectconfiguration_simple_property_type_dto.py +test/test_servicing_objectconfiguration_tags_dto.py +test/test_servicing_question_categories_api_response_dto.py +test/test_servicing_question_category_api_response_dto.py +test/test_servicing_sample_question_api_response_dto.py +test/test_servicing_sample_questions_api_response_dto.py +test/test_servicing_user_group_assignment_dto.py +test/test_servicing_v2_objectconfiguration_analytic_object_definition_dto.py +test/test_servicing_v2_objectconfiguration_analytic_object_request_dto.py +test/test_servicing_v2_objectconfiguration_analytic_object_with_context_dto.py +test/test_servicing_v2_objectconfiguration_basic_information_dto.py +test/test_servicing_v2_objectconfiguration_bulk_change_response_dto.py +test/test_servicing_v2_objectconfiguration_calculated_property_type_dto.py +test/test_servicing_v2_objectconfiguration_concept_definition_dto.py +test/test_servicing_v2_objectconfiguration_concept_delete_dto.py +test/test_servicing_v2_objectconfiguration_concept_delete_request_dto.py +test/test_servicing_v2_objectconfiguration_concept_delete_with_context_dto.py +test/test_servicing_v2_objectconfiguration_concept_request_dto.py +test/test_servicing_v2_objectconfiguration_concept_response_dto.py +test/test_servicing_v2_objectconfiguration_concept_type_details_dto.py +test/test_servicing_v2_objectconfiguration_concept_with_context_dto.py +test/test_servicing_v2_objectconfiguration_execution_context_dto.py +test/test_servicing_v2_objectconfiguration_failed_change_dto.py +test/test_servicing_v2_objectconfiguration_metric_definition_dto.py +test/test_servicing_v2_objectconfiguration_metric_type_details_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_definition_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_member_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_member_list_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_metric_definition_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_metric_list_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_outcome_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_outcome_list_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_property_list_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_property_type_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_stage_dto.py +test/test_servicing_v2_objectconfiguration_process_concept_stage_list_dto.py +test/test_servicing_v2_objectconfiguration_property_definition_dto.py +test/test_servicing_v2_objectconfiguration_property_type_details_dto.py +test/test_servicing_v2_objectconfiguration_simple_property_type_dto.py +test/test_servicing_v2_objectconfiguration_successful_change_dto.py +test/test_servicing_v2_objectconfiguration_synonym_list_dto.py +test/test_servicing_v2_objectconfiguration_tag_reference_dto.py +test/test_servicing_v2_objectconfiguration_tag_reference_list_dto.py +test/test_servicing_vee_question_change_definition_dto.py +test/test_servicing_vee_question_change_definitions_by_tenant_dto.py +test/test_servicing_vee_question_change_failure_dto.py +test/test_servicing_vee_question_change_success_dto.py +test/test_servicing_vee_question_delete_definitions_by_tenant_dto.py +test/test_servicing_vee_questions_bulk_change_response_dto.py +test/test_servicing_vee_questions_change_definitions_dto.py +test/test_servicing_vee_questions_delete_definitions_dto.py test/test_status.py tox.ini visier_api_analytic_model/__init__.py visier_api_analytic_model/api/__init__.py +visier_api_analytic_model/api/concepts_v2_api.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/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/dataservices_datamodel_aggregation_type_option_dto.py +visier_api_analytic_model/models/dataservices_datamodel_aggregation_type_parameter_dto.py +visier_api_analytic_model/models/dataservices_datamodel_analytic_object_dto.py +visier_api_analytic_model/models/dataservices_datamodel_analytic_objects_dto.py +visier_api_analytic_model/models/dataservices_datamodel_currencies_dto.py +visier_api_analytic_model/models/dataservices_datamodel_currency_dto.py +visier_api_analytic_model/models/dataservices_datamodel_currency_rate_dto.py +visier_api_analytic_model/models/dataservices_datamodel_currency_rates_dto.py +visier_api_analytic_model/models/dataservices_datamodel_dimension_dto.py +visier_api_analytic_model/models/dataservices_datamodel_dimension_mapping_validation_dto.py +visier_api_analytic_model/models/dataservices_datamodel_dimension_mapping_validation_execution_dto.py +visier_api_analytic_model/models/dataservices_datamodel_dimension_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_dimensions_dto.py +visier_api_analytic_model/models/dataservices_datamodel_level_dto.py +visier_api_analytic_model/models/dataservices_datamodel_member_dto.py +visier_api_analytic_model/models/dataservices_datamodel_member_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_members_dto.py +visier_api_analytic_model/models/dataservices_datamodel_metric_dto.py +visier_api_analytic_model/models/dataservices_datamodel_metrics_dto.py +visier_api_analytic_model/models/dataservices_datamodel_numeric_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_object_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_plan_parameter_definition_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_concept_filter_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_hierarchy_filter_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_model_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_models_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_plan_context_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_plan_dto.py +visier_api_analytic_model/models/dataservices_datamodel_planning_plans_dto.py +visier_api_analytic_model/models/dataservices_datamodel_population_configuration_dto.py +visier_api_analytic_model/models/dataservices_datamodel_prediction_dto.py +visier_api_analytic_model/models/dataservices_datamodel_predictions_dto.py +visier_api_analytic_model/models/dataservices_datamodel_properties_dto.py +visier_api_analytic_model/models/dataservices_datamodel_property_dto.py +visier_api_analytic_model/models/dataservices_datamodel_property_reference_dto.py +visier_api_analytic_model/models/dataservices_datamodel_scenario_or_snapshot_dto.py +visier_api_analytic_model/models/dataservices_datamodel_selection_concept_dto.py +visier_api_analytic_model/models/dataservices_datamodel_selection_concepts_dto.py +visier_api_analytic_model/models/dataservices_datamodel_tag_map_element_dto.py +visier_api_analytic_model/models/dataservices_datamodel_validity_range_dto.py +visier_api_analytic_model/models/designer_api_analytic_object_filter_dto.py +visier_api_analytic_model/models/designer_api_calculation_concept_configuration_dto.py +visier_api_analytic_model/models/designer_api_calculation_concept_configuration_map_dto.py +visier_api_analytic_model/models/designer_api_calculation_concept_dto.py +visier_api_analytic_model/models/designer_api_calculation_concept_list_dto.py +visier_api_analytic_model/models/designer_api_concept_configuration_result_dto.py +visier_api_analytic_model/models/designer_api_dimension_filter_dto.py +visier_api_analytic_model/models/designer_api_dimension_member_dto.py +visier_api_analytic_model/models/designer_api_perspective_configuration_dto.py +visier_api_analytic_model/models/designer_api_perspective_node_dto.py +visier_api_analytic_model/models/designer_api_selection_concept_configuration_dto.py +visier_api_analytic_model/models/designer_api_selection_concept_configuration_map_dto.py +visier_api_analytic_model/models/designer_api_selection_concept_dto.py +visier_api_analytic_model/models/designer_api_selection_concept_list_dto.py +visier_api_analytic_model/models/planning_get_plan_list_response_dto.py +visier_api_analytic_model/models/planning_plan_data_load_error_dto.py +visier_api_analytic_model/models/planning_plan_info_dto.py +visier_api_analytic_model/models/planning_plan_item_dto.py +visier_api_analytic_model/models/planning_plan_schema_dto.py +visier_api_analytic_model/models/planning_plan_segment_level_dto.py +visier_api_analytic_model/models/planning_plan_segment_level_member_dto.py +visier_api_analytic_model/models/planning_plan_segment_level_member_list_dto.py +visier_api_analytic_model/models/planning_plan_time_period_dto.py +visier_api_analytic_model/models/planning_plan_with_schema_dto.py +visier_api_analytic_model/models/planning_scenario_info_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_calculated_property_type_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_dependent_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_dimension_change_definition_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_dimensions_change_definitions_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_object_change_failure_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_object_change_success_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_objects_bulk_change_response_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_properties_change_definitions_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_properties_delete_definitions_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_bulk_delete_response_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_change_definition_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_change_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_failure_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_success_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_property_type_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_simple_property_type_dto.py +visier_api_analytic_model/models/servicing_objectconfiguration_tags_dto.py +visier_api_analytic_model/models/servicing_question_categories_api_response_dto.py +visier_api_analytic_model/models/servicing_question_category_api_response_dto.py +visier_api_analytic_model/models/servicing_sample_question_api_response_dto.py +visier_api_analytic_model/models/servicing_sample_questions_api_response_dto.py +visier_api_analytic_model/models/servicing_user_group_assignment_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_request_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_with_context_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_basic_information_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_bulk_change_response_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_calculated_property_type_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_request_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_with_context_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_request_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_response_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_type_details_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_with_context_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_execution_context_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_failed_change_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_type_details_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_type_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_definition_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_type_details_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_simple_property_type_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_successful_change_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_synonym_list_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_dto.py +visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_list_dto.py +visier_api_analytic_model/models/servicing_vee_question_change_definition_dto.py +visier_api_analytic_model/models/servicing_vee_question_change_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_vee_question_change_failure_dto.py +visier_api_analytic_model/models/servicing_vee_question_change_success_dto.py +visier_api_analytic_model/models/servicing_vee_question_delete_definitions_by_tenant_dto.py +visier_api_analytic_model/models/servicing_vee_questions_bulk_change_response_dto.py +visier_api_analytic_model/models/servicing_vee_questions_change_definitions_dto.py +visier_api_analytic_model/models/servicing_vee_questions_delete_definitions_dto.py visier_api_analytic_model/models/status.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 c6aa7efbb5..23aa38f512 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.1793" +version = "0.99201.1830" 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.1793" +visier-api-core = "~= 0.99201.1830" [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 ebf9a91559..3efff2d87e 100644 --- a/src/visier_api_analytic_model/requirements.txt +++ b/src/visier_api_analytic_model/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1793 \ No newline at end of file +visier-api-core ~= 0.99201.1830 \ 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 cedcaa04b5..0e49a2c4af 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793" +VERSION = "0.99201.1830" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1793", + "visier-api-core ~= 0.99201.1830", ] setup( diff --git a/src/visier_api_analytic_model/test/test_concepts_v2_api.py b/src/visier_api_analytic_model/test/test_concepts_v2_api.py new file mode 100644 index 0000000000..c029a5eb4e --- /dev/null +++ b/src/visier_api_analytic_model/test/test_concepts_v2_api.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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +import unittest + +from visier_api_analytic_model.api.concepts_v2_api import ConceptsV2Api + + +class TestConceptsV2Api(unittest.TestCase): + """ConceptsV2Api unit test stubs""" + + def setUp(self) -> None: + self.api = ConceptsV2Api() + + def tearDown(self) -> None: + pass + + def test_create_concepts(self) -> None: + """Test case for create_concepts + + Create concepts + """ + pass + + def test_delete_concepts(self) -> None: + """Test case for delete_concepts + + Delete concepts + """ + pass + + def test_get_all_concepts(self) -> None: + """Test case for get_all_concepts + + Retrieve a list of concepts + """ + pass + + def test_get_analytic_object_concepts(self) -> None: + """Test case for get_analytic_object_concepts + + Retrieve a list of concepts by analytic object + """ + pass + + def test_get_one_concept(self) -> None: + """Test case for get_one_concept + + Retrieve a concept's details + """ + pass + + +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 61b57d8661..6071239a5b 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -63,6 +63,13 @@ def test_create_properties(self) -> None: """ pass + def test_create_vee_sample_questions(self) -> None: + """Test case for create_vee_sample_questions + + Add Vee sample questions + """ + pass + def test_currencies(self) -> None: """Test case for currencies @@ -98,6 +105,13 @@ def test_delete_properties(self) -> None: """ pass + def test_delete_vee_sample_questions(self) -> None: + """Test case for delete_vee_sample_questions + + Delete Vee sample questions + """ + pass + def test_dimension(self) -> None: """Test case for dimension @@ -119,6 +133,34 @@ def test_dimensions(self) -> None: """ pass + def test_get_vee_sample_question(self) -> None: + """Test case for get_vee_sample_question + + Retrieve a Vee sample question's details + """ + pass + + def test_get_vee_sample_question_categories(self) -> None: + """Test case for get_vee_sample_question_categories + + Retrieve a list of all Vee question categories + """ + pass + + def test_get_vee_sample_question_category(self) -> None: + """Test case for get_vee_sample_question_category + + Retrieve a Vee question category's details + """ + pass + + def test_get_vee_sample_questions(self) -> None: + """Test case for get_vee_sample_questions + + Retrieve a list of all Vee sample questions + """ + pass + def test_member(self) -> None: """Test case for member @@ -238,6 +280,13 @@ def test_put_properties(self) -> None: """ pass + def test_put_vee_sample_questions(self) -> None: + """Test case for put_vee_sample_questions + + Update Vee sample questions + """ + pass + def test_selection_concept(self) -> None: """Test case for selection_concept @@ -252,6 +301,13 @@ def test_selection_concepts(self) -> None: """ pass + def test_update_analytic_objects(self) -> None: + """Test case for update_analytic_objects + + Update analytic objects + """ + pass + def test_update_dimensions(self) -> None: """Test case for update_dimensions @@ -266,6 +322,13 @@ def test_update_properties(self) -> None: """ pass + def test_update_vee_sample_questions(self) -> None: + """Test case for update_vee_sample_questions + + Patch Vee sample questions + """ + pass + if __name__ == '__main__': unittest.main() 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 index 53980778c1..687f985cd0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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_member_values_dto.py b/src/visier_api_analytic_model/test/test_dataservices_common_member_values_dto.py index 1c48789eb6..d1160b2345 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/test/test_dataservices_datamodel_aggregation_type_option_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_aggregation_type_option_dto.py new file mode 100644 index 0000000000..068c0424b0 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_aggregation_type_option_dto import DataservicesDatamodelAggregationTypeOptionDTO + +class TestDataservicesDatamodelAggregationTypeOptionDTO(unittest.TestCase): + """DataservicesDatamodelAggregationTypeOptionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelAggregationTypeOptionDTO: + """Test DataservicesDatamodelAggregationTypeOptionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelAggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '' + ) + else: + return DataservicesDatamodelAggregationTypeOptionDTO( + ) + + def testDataservicesDatamodelAggregationTypeOptionDTO(self): + """Test DataservicesDatamodelAggregationTypeOptionDTO""" + def validate_instance(instance): + DataservicesDatamodelAggregationTypeOptionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelAggregationTypeOptionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_aggregation_type_parameter_dto.py new file mode 100644 index 0000000000..ae2f5db26a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_aggregation_type_parameter_dto import DataservicesDatamodelAggregationTypeParameterDTO + +class TestDataservicesDatamodelAggregationTypeParameterDTO(unittest.TestCase): + """DataservicesDatamodelAggregationTypeParameterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelAggregationTypeParameterDTO: + """Test DataservicesDatamodelAggregationTypeParameterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelAggregationTypeParameterDTO( + description = '', + display_name = '', + id = '', + parameter_options = [ + visier_api_analytic_model.models.dataservices/datamodel/aggregation_type_option_dto.dataservices.datamodel.AggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '', ) + ] + ) + else: + return DataservicesDatamodelAggregationTypeParameterDTO( + ) + + def testDataservicesDatamodelAggregationTypeParameterDTO(self): + """Test DataservicesDatamodelAggregationTypeParameterDTO""" + def validate_instance(instance): + DataservicesDatamodelAggregationTypeParameterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelAggregationTypeParameterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_analytic_object_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_analytic_object_dto.py new file mode 100644 index 0000000000..359969aa41 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_analytic_object_dto import DataservicesDatamodelAnalyticObjectDTO + +class TestDataservicesDatamodelAnalyticObjectDTO(unittest.TestCase): + """DataservicesDatamodelAnalyticObjectDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelAnalyticObjectDTO: + """Test DataservicesDatamodelAnalyticObjectDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelAnalyticObjectDTO( + data_end_date = '', + data_start_date = '', + description = '', + dimension_ids = [ + '' + ], + display_name = '', + id = '', + object_references = [ + visier_api_analytic_model.models.dataservices/datamodel/object_reference_dto.dataservices.datamodel.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/population_configuration_dto.dataservices.datamodel.PopulationConfigurationDTO( + change_history_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/property_reference_dto.dataservices.datamodel.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + distinguishing_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/property_reference_dto.dataservices.datamodel.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + grouping_dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ], ), + property_ids = [ + '' + ], + selection_concept_ids = [ + '' + ], + type = 'SUBJECT' + ) + else: + return DataservicesDatamodelAnalyticObjectDTO( + ) + + def testDataservicesDatamodelAnalyticObjectDTO(self): + """Test DataservicesDatamodelAnalyticObjectDTO""" + def validate_instance(instance): + DataservicesDatamodelAnalyticObjectDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelAnalyticObjectDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_analytic_objects_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_analytic_objects_dto.py new file mode 100644 index 0000000000..e6434aa54a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_analytic_objects_dto import DataservicesDatamodelAnalyticObjectsDTO + +class TestDataservicesDatamodelAnalyticObjectsDTO(unittest.TestCase): + """DataservicesDatamodelAnalyticObjectsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelAnalyticObjectsDTO: + """Test DataservicesDatamodelAnalyticObjectsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelAnalyticObjectsDTO( + analytic_objects = [ + visier_api_analytic_model.models.dataservices/datamodel/analytic_object_dto.dataservices.datamodel.AnalyticObjectDTO( + data_end_date = '', + data_start_date = '', + description = '', + dimension_ids = [ + '' + ], + display_name = '', + id = '', + object_references = [ + visier_api_analytic_model.models.dataservices/datamodel/object_reference_dto.dataservices.datamodel.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 DataservicesDatamodelAnalyticObjectsDTO( + ) + + def testDataservicesDatamodelAnalyticObjectsDTO(self): + """Test DataservicesDatamodelAnalyticObjectsDTO""" + def validate_instance(instance): + DataservicesDatamodelAnalyticObjectsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelAnalyticObjectsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_currencies_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_currencies_dto.py new file mode 100644 index 0000000000..868257fb5f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_currencies_dto import DataservicesDatamodelCurrenciesDTO + +class TestDataservicesDatamodelCurrenciesDTO(unittest.TestCase): + """DataservicesDatamodelCurrenciesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelCurrenciesDTO: + """Test DataservicesDatamodelCurrenciesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelCurrenciesDTO( + currencies = [ + visier_api_analytic_model.models.dataservices/datamodel/currency_dto.dataservices.datamodel.CurrencyDTO( + currency_code = '', + display_name = '', + short_symbol = '', + symbol = '', ) + ] + ) + else: + return DataservicesDatamodelCurrenciesDTO( + ) + + def testDataservicesDatamodelCurrenciesDTO(self): + """Test DataservicesDatamodelCurrenciesDTO""" + def validate_instance(instance): + DataservicesDatamodelCurrenciesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelCurrenciesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_currency_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_currency_dto.py new file mode 100644 index 0000000000..7fa07566e6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_currency_dto import DataservicesDatamodelCurrencyDTO + +class TestDataservicesDatamodelCurrencyDTO(unittest.TestCase): + """DataservicesDatamodelCurrencyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelCurrencyDTO: + """Test DataservicesDatamodelCurrencyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelCurrencyDTO( + currency_code = '', + display_name = '', + short_symbol = '', + symbol = '' + ) + else: + return DataservicesDatamodelCurrencyDTO( + ) + + def testDataservicesDatamodelCurrencyDTO(self): + """Test DataservicesDatamodelCurrencyDTO""" + def validate_instance(instance): + DataservicesDatamodelCurrencyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelCurrencyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_currency_rate_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_currency_rate_dto.py new file mode 100644 index 0000000000..8d349b59e7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_currency_rate_dto import DataservicesDatamodelCurrencyRateDTO + +class TestDataservicesDatamodelCurrencyRateDTO(unittest.TestCase): + """DataservicesDatamodelCurrencyRateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelCurrencyRateDTO: + """Test DataservicesDatamodelCurrencyRateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelCurrencyRateDTO( + end_time = '', + from_currency_code = '', + rate = 1.337, + start_time = '', + to_currency_code = '' + ) + else: + return DataservicesDatamodelCurrencyRateDTO( + ) + + def testDataservicesDatamodelCurrencyRateDTO(self): + """Test DataservicesDatamodelCurrencyRateDTO""" + def validate_instance(instance): + DataservicesDatamodelCurrencyRateDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelCurrencyRateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_currency_rates_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_currency_rates_dto.py new file mode 100644 index 0000000000..63abfc9fc8 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_currency_rates_dto import DataservicesDatamodelCurrencyRatesDTO + +class TestDataservicesDatamodelCurrencyRatesDTO(unittest.TestCase): + """DataservicesDatamodelCurrencyRatesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelCurrencyRatesDTO: + """Test DataservicesDatamodelCurrencyRatesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelCurrencyRatesDTO( + currency_rates = [ + visier_api_analytic_model.models.dataservices/datamodel/currency_rate_dto.dataservices.datamodel.CurrencyRateDTO( + end_time = '', + from_currency_code = '', + rate = 1.337, + start_time = '', + to_currency_code = '', ) + ] + ) + else: + return DataservicesDatamodelCurrencyRatesDTO( + ) + + def testDataservicesDatamodelCurrencyRatesDTO(self): + """Test DataservicesDatamodelCurrencyRatesDTO""" + def validate_instance(instance): + DataservicesDatamodelCurrencyRatesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelCurrencyRatesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_dimension_dto.py new file mode 100644 index 0000000000..b4fa79a84e --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_dto import DataservicesDatamodelDimensionDTO + +class TestDataservicesDatamodelDimensionDTO(unittest.TestCase): + """DataservicesDatamodelDimensionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionDTO: + """Test DataservicesDatamodelDimensionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionDTO( + description = '', + display_name = '', + explanation = '', + id = '', + levels = [ + visier_api_analytic_model.models.dataservices/datamodel/level_dto.dataservices.datamodel.LevelDTO( + depth = 56, + display_name = '', + id = '', ) + ], + member_count = 56, + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ], + unknown_member = [ + '' + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelDimensionDTO( + ) + + def testDataservicesDatamodelDimensionDTO(self): + """Test DataservicesDatamodelDimensionDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_dimension_mapping_validation_dto.py new file mode 100644 index 0000000000..0a246007b6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_mapping_validation_dto import DataservicesDatamodelDimensionMappingValidationDTO + +class TestDataservicesDatamodelDimensionMappingValidationDTO(unittest.TestCase): + """DataservicesDatamodelDimensionMappingValidationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionMappingValidationDTO: + """Test DataservicesDatamodelDimensionMappingValidationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionMappingValidationDTO( + 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 DataservicesDatamodelDimensionMappingValidationDTO( + ) + + def testDataservicesDatamodelDimensionMappingValidationDTO(self): + """Test DataservicesDatamodelDimensionMappingValidationDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionMappingValidationDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionMappingValidationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_dimension_mapping_validation_execution_dto.py new file mode 100644 index 0000000000..9c6861d5f8 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_mapping_validation_execution_dto import DataservicesDatamodelDimensionMappingValidationExecutionDTO + +class TestDataservicesDatamodelDimensionMappingValidationExecutionDTO(unittest.TestCase): + """DataservicesDatamodelDimensionMappingValidationExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionMappingValidationExecutionDTO: + """Test DataservicesDatamodelDimensionMappingValidationExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionMappingValidationExecutionDTO( + analytic_object = '', + member_map_id = '' + ) + else: + return DataservicesDatamodelDimensionMappingValidationExecutionDTO( + ) + + def testDataservicesDatamodelDimensionMappingValidationExecutionDTO(self): + """Test DataservicesDatamodelDimensionMappingValidationExecutionDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionMappingValidationExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionMappingValidationExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_dimension_reference_dto.py new file mode 100644 index 0000000000..897936afa9 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO + +class TestDataservicesDatamodelDimensionReferenceDTO(unittest.TestCase): + """DataservicesDatamodelDimensionReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionReferenceDTO: + """Test DataservicesDatamodelDimensionReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelDimensionReferenceDTO( + ) + + def testDataservicesDatamodelDimensionReferenceDTO(self): + """Test DataservicesDatamodelDimensionReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimensions_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_dimensions_dto.py new file mode 100644 index 0000000000..8b99f682bc --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimensions_dto import DataservicesDatamodelDimensionsDTO + +class TestDataservicesDatamodelDimensionsDTO(unittest.TestCase): + """DataservicesDatamodelDimensionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionsDTO: + """Test DataservicesDatamodelDimensionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionsDTO( + dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/dimension_dto.dataservices.datamodel.DimensionDTO( + description = '', + display_name = '', + explanation = '', + id = '', + levels = [ + visier_api_analytic_model.models.dataservices/datamodel/level_dto.dataservices.datamodel.LevelDTO( + depth = 56, + display_name = '', + id = '', ) + ], + member_count = 56, + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ], + unknown_member = [ + '' + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelDimensionsDTO( + ) + + def testDataservicesDatamodelDimensionsDTO(self): + """Test DataservicesDatamodelDimensionsDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_level_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_level_dto.py new file mode 100644 index 0000000000..43e2934ff0 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_level_dto import DataservicesDatamodelLevelDTO + +class TestDataservicesDatamodelLevelDTO(unittest.TestCase): + """DataservicesDatamodelLevelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelLevelDTO: + """Test DataservicesDatamodelLevelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelLevelDTO( + depth = 56, + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelLevelDTO( + ) + + def testDataservicesDatamodelLevelDTO(self): + """Test DataservicesDatamodelLevelDTO""" + def validate_instance(instance): + DataservicesDatamodelLevelDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelLevelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_member_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_member_dto.py new file mode 100644 index 0000000000..c6f26fcae9 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_member_dto import DataservicesDatamodelMemberDTO + +class TestDataservicesDatamodelMemberDTO(unittest.TestCase): + """DataservicesDatamodelMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelMemberDTO: + """Test DataservicesDatamodelMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelMemberDTO( + display_name = '', + display_name_path = [ + '' + ], + full_name = '', + level = 56, + path = [ + '' + ], + validity_ranges = [ + visier_api_analytic_model.models.dataservices/datamodel/validity_range_dto.dataservices.datamodel.ValidityRangeDTO( + end = '', + start = '', ) + ] + ) + else: + return DataservicesDatamodelMemberDTO( + ) + + def testDataservicesDatamodelMemberDTO(self): + """Test DataservicesDatamodelMemberDTO""" + def validate_instance(instance): + DataservicesDatamodelMemberDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_member_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_member_parameter_definition_dto.py new file mode 100644 index 0000000000..fc3987b046 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_member_parameter_definition_dto import DataservicesDatamodelMemberParameterDefinitionDTO + +class TestDataservicesDatamodelMemberParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelMemberParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelMemberParameterDefinitionDTO: + """Test DataservicesDatamodelMemberParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelMemberParameterDefinitionDTO( + 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 DataservicesDatamodelMemberParameterDefinitionDTO( + ) + + def testDataservicesDatamodelMemberParameterDefinitionDTO(self): + """Test DataservicesDatamodelMemberParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelMemberParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelMemberParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_members_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_members_dto.py new file mode 100644 index 0000000000..4625dcbfbf --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_members_dto import DataservicesDatamodelMembersDTO + +class TestDataservicesDatamodelMembersDTO(unittest.TestCase): + """DataservicesDatamodelMembersDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelMembersDTO: + """Test DataservicesDatamodelMembersDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelMembersDTO( + members = [ + visier_api_analytic_model.models.dataservices/datamodel/member_dto.dataservices.datamodel.MemberDTO( + display_name = '', + display_name_path = [ + '' + ], + full_name = '', + level = 56, + path = [ + '' + ], + validity_ranges = [ + visier_api_analytic_model.models.dataservices/datamodel/validity_range_dto.dataservices.datamodel.ValidityRangeDTO( + end = '', + start = '', ) + ], ) + ] + ) + else: + return DataservicesDatamodelMembersDTO( + ) + + def testDataservicesDatamodelMembersDTO(self): + """Test DataservicesDatamodelMembersDTO""" + def validate_instance(instance): + DataservicesDatamodelMembersDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelMembersDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_metric_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_metric_dto.py new file mode 100644 index 0000000000..b40a37eead --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_metric_dto import DataservicesDatamodelMetricDTO + +class TestDataservicesDatamodelMetricDTO(unittest.TestCase): + """DataservicesDatamodelMetricDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelMetricDTO: + """Test DataservicesDatamodelMetricDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelMetricDTO( + analytic_object_id = '', + category = 'REGULAR', + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/parameter_definition_dto.dataservices.datamodel.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelMetricDTO( + ) + + def testDataservicesDatamodelMetricDTO(self): + """Test DataservicesDatamodelMetricDTO""" + def validate_instance(instance): + DataservicesDatamodelMetricDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelMetricDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_metrics_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_metrics_dto.py new file mode 100644 index 0000000000..33b1c0d86d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_metrics_dto import DataservicesDatamodelMetricsDTO + +class TestDataservicesDatamodelMetricsDTO(unittest.TestCase): + """DataservicesDatamodelMetricsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelMetricsDTO: + """Test DataservicesDatamodelMetricsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelMetricsDTO( + metrics = [ + visier_api_analytic_model.models.dataservices/datamodel/metric_dto.dataservices.datamodel.MetricDTO( + analytic_object_id = '', + category = 'REGULAR', + data_end_date = '', + data_start_date = '', + description = '', + display_name = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/parameter_definition_dto.dataservices.datamodel.ParameterDefinitionDTO( + aggregation_type_parameter = None, + member_parameter = None, + numeric_parameter = None, + plan_parameter = None, ) + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelMetricsDTO( + ) + + def testDataservicesDatamodelMetricsDTO(self): + """Test DataservicesDatamodelMetricsDTO""" + def validate_instance(instance): + DataservicesDatamodelMetricsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelMetricsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_numeric_parameter_definition_dto.py new file mode 100644 index 0000000000..21f890d5ca --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_numeric_parameter_definition_dto import DataservicesDatamodelNumericParameterDefinitionDTO + +class TestDataservicesDatamodelNumericParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelNumericParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelNumericParameterDefinitionDTO: + """Test DataservicesDatamodelNumericParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelNumericParameterDefinitionDTO( + default = 1.337, + description = '', + display_name = '', + id = '', + lower_bound = 1.337, + upper_bound = 1.337 + ) + else: + return DataservicesDatamodelNumericParameterDefinitionDTO( + ) + + def testDataservicesDatamodelNumericParameterDefinitionDTO(self): + """Test DataservicesDatamodelNumericParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelNumericParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelNumericParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_object_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_object_reference_dto.py new file mode 100644 index 0000000000..d29f2c9f6a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_object_reference_dto import DataservicesDatamodelObjectReferenceDTO + +class TestDataservicesDatamodelObjectReferenceDTO(unittest.TestCase): + """DataservicesDatamodelObjectReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelObjectReferenceDTO: + """Test DataservicesDatamodelObjectReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelObjectReferenceDTO( + description = '', + display_name = '', + from_object = '', + id = '', + is_strong_reference = True, + to_object = '', + type = 'SUBJECT_REFERENCE' + ) + else: + return DataservicesDatamodelObjectReferenceDTO( + ) + + def testDataservicesDatamodelObjectReferenceDTO(self): + """Test DataservicesDatamodelObjectReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelObjectReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelObjectReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_parameter_definition_dto.py new file mode 100644 index 0000000000..a3d21ab200 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_parameter_definition_dto import DataservicesDatamodelParameterDefinitionDTO + +class TestDataservicesDatamodelParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelParameterDefinitionDTO: + """Test DataservicesDatamodelParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelParameterDefinitionDTO( + aggregation_type_parameter = visier_api_analytic_model.models.dataservices/datamodel/aggregation_type_parameter_dto.dataservices.datamodel.AggregationTypeParameterDTO( + description = '', + display_name = '', + id = '', + parameter_options = [ + visier_api_analytic_model.models.dataservices/datamodel/aggregation_type_option_dto.dataservices.datamodel.AggregationTypeOptionDTO( + aggregation_function = '', + display_name = '', + id = '', + is_default = True, + property_name = '', ) + ], ), + member_parameter = visier_api_analytic_model.models.dataservices/datamodel/member_parameter_definition_dto.dataservices.datamodel.MemberParameterDefinitionDTO( + default = None, + description = '', + dimension_id = '', + display_name = '', + id = '', + reference_path = [ + '' + ], ), + numeric_parameter = visier_api_analytic_model.models.dataservices/datamodel/numeric_parameter_definition_dto.dataservices.datamodel.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/plan_parameter_definition_dto.dataservices.datamodel.PlanParameterDefinitionDTO( + description = '', + display_name = '', + id = '', + model_name = '', ) + ) + else: + return DataservicesDatamodelParameterDefinitionDTO( + ) + + def testDataservicesDatamodelParameterDefinitionDTO(self): + """Test DataservicesDatamodelParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_plan_parameter_definition_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_plan_parameter_definition_dto.py new file mode 100644 index 0000000000..446f069b3b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_plan_parameter_definition_dto import DataservicesDatamodelPlanParameterDefinitionDTO + +class TestDataservicesDatamodelPlanParameterDefinitionDTO(unittest.TestCase): + """DataservicesDatamodelPlanParameterDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanParameterDefinitionDTO: + """Test DataservicesDatamodelPlanParameterDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanParameterDefinitionDTO( + description = '', + display_name = '', + id = '', + model_name = '' + ) + else: + return DataservicesDatamodelPlanParameterDefinitionDTO( + ) + + def testDataservicesDatamodelPlanParameterDefinitionDTO(self): + """Test DataservicesDatamodelPlanParameterDefinitionDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanParameterDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanParameterDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_concept_filter_context_dto.py new file mode 100644 index 0000000000..65b923593a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_concept_filter_context_dto import DataservicesDatamodelPlanningConceptFilterContextDTO + +class TestDataservicesDatamodelPlanningConceptFilterContextDTO(unittest.TestCase): + """DataservicesDatamodelPlanningConceptFilterContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningConceptFilterContextDTO: + """Test DataservicesDatamodelPlanningConceptFilterContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningConceptFilterContextDTO( + name = '' + ) + else: + return DataservicesDatamodelPlanningConceptFilterContextDTO( + ) + + def testDataservicesDatamodelPlanningConceptFilterContextDTO(self): + """Test DataservicesDatamodelPlanningConceptFilterContextDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningConceptFilterContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningConceptFilterContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_hierarchy_filter_context_dto.py new file mode 100644 index 0000000000..c35809c051 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_hierarchy_filter_context_dto import DataservicesDatamodelPlanningHierarchyFilterContextDTO + +class TestDataservicesDatamodelPlanningHierarchyFilterContextDTO(unittest.TestCase): + """DataservicesDatamodelPlanningHierarchyFilterContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningHierarchyFilterContextDTO: + """Test DataservicesDatamodelPlanningHierarchyFilterContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningHierarchyFilterContextDTO( + excluded_members = [ + '' + ], + hierarchy_name = '', + included_members = [ + '' + ] + ) + else: + return DataservicesDatamodelPlanningHierarchyFilterContextDTO( + ) + + def testDataservicesDatamodelPlanningHierarchyFilterContextDTO(self): + """Test DataservicesDatamodelPlanningHierarchyFilterContextDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningHierarchyFilterContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningHierarchyFilterContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_model_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_model_dto.py new file mode 100644 index 0000000000..efeb53cb3d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_model_dto import DataservicesDatamodelPlanningModelDTO + +class TestDataservicesDatamodelPlanningModelDTO(unittest.TestCase): + """DataservicesDatamodelPlanningModelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningModelDTO: + """Test DataservicesDatamodelPlanningModelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningModelDTO( + description = '', + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelPlanningModelDTO( + ) + + def testDataservicesDatamodelPlanningModelDTO(self): + """Test DataservicesDatamodelPlanningModelDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningModelDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningModelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_models_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_models_dto.py new file mode 100644 index 0000000000..c1a5444f1d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_models_dto import DataservicesDatamodelPlanningModelsDTO + +class TestDataservicesDatamodelPlanningModelsDTO(unittest.TestCase): + """DataservicesDatamodelPlanningModelsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningModelsDTO: + """Test DataservicesDatamodelPlanningModelsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningModelsDTO( + models = [ + visier_api_analytic_model.models.dataservices/datamodel/planning_model_dto.dataservices.datamodel.PlanningModelDTO( + description = '', + display_name = '', + id = '', ) + ] + ) + else: + return DataservicesDatamodelPlanningModelsDTO( + ) + + def testDataservicesDatamodelPlanningModelsDTO(self): + """Test DataservicesDatamodelPlanningModelsDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningModelsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningModelsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_plan_context_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_plan_context_dto.py new file mode 100644 index 0000000000..344dd9833c --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_plan_context_dto import DataservicesDatamodelPlanningPlanContextDTO + +class TestDataservicesDatamodelPlanningPlanContextDTO(unittest.TestCase): + """DataservicesDatamodelPlanningPlanContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningPlanContextDTO: + """Test DataservicesDatamodelPlanningPlanContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningPlanContextDTO( + concept_filter_context = visier_api_analytic_model.models.dataservices/datamodel/planning_concept_filter_context_dto.dataservices.datamodel.PlanningConceptFilterContextDTO( + name = '', ), + hierarchy_filter_context = visier_api_analytic_model.models.dataservices/datamodel/planning_hierarchy_filter_context_dto.dataservices.datamodel.PlanningHierarchyFilterContextDTO( + excluded_members = [ + '' + ], + hierarchy_name = '', + included_members = [ + '' + ], ) + ) + else: + return DataservicesDatamodelPlanningPlanContextDTO( + ) + + def testDataservicesDatamodelPlanningPlanContextDTO(self): + """Test DataservicesDatamodelPlanningPlanContextDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningPlanContextDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningPlanContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_plan_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_plan_dto.py new file mode 100644 index 0000000000..18ecbd9a6d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_plan_dto import DataservicesDatamodelPlanningPlanDTO + +class TestDataservicesDatamodelPlanningPlanDTO(unittest.TestCase): + """DataservicesDatamodelPlanningPlanDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningPlanDTO: + """Test DataservicesDatamodelPlanningPlanDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningPlanDTO( + default_contexts = [ + visier_api_analytic_model.models.dataservices/datamodel/planning_plan_context_dto.dataservices.datamodel.PlanningPlanContextDTO( + concept_filter_context = None, + hierarchy_filter_context = None, ) + ], + id = '', + name = '', + plan_dimension_ids = [ + '' + ], + scenarios = [ + visier_api_analytic_model.models.dataservices/datamodel/scenario_or_snapshot_dto.dataservices.datamodel.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + snapshots = [ + visier_api_analytic_model.models.dataservices/datamodel/scenario_or_snapshot_dto.dataservices.datamodel.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + subject_id = '' + ) + else: + return DataservicesDatamodelPlanningPlanDTO( + ) + + def testDataservicesDatamodelPlanningPlanDTO(self): + """Test DataservicesDatamodelPlanningPlanDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningPlanDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningPlanDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_planning_plans_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_planning_plans_dto.py new file mode 100644 index 0000000000..9fd1803e37 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_planning_plans_dto import DataservicesDatamodelPlanningPlansDTO + +class TestDataservicesDatamodelPlanningPlansDTO(unittest.TestCase): + """DataservicesDatamodelPlanningPlansDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPlanningPlansDTO: + """Test DataservicesDatamodelPlanningPlansDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPlanningPlansDTO( + plans = [ + visier_api_analytic_model.models.dataservices/datamodel/planning_plan_dto.dataservices.datamodel.PlanningPlanDTO( + default_contexts = [ + visier_api_analytic_model.models.dataservices/datamodel/planning_plan_context_dto.dataservices.datamodel.PlanningPlanContextDTO( + concept_filter_context = None, + hierarchy_filter_context = None, ) + ], + id = '', + name = '', + plan_dimension_ids = [ + '' + ], + scenarios = [ + visier_api_analytic_model.models.dataservices/datamodel/scenario_or_snapshot_dto.dataservices.datamodel.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + snapshots = [ + visier_api_analytic_model.models.dataservices/datamodel/scenario_or_snapshot_dto.dataservices.datamodel.ScenarioOrSnapshotDTO( + display_name = '', + id = '', ) + ], + subject_id = '', ) + ] + ) + else: + return DataservicesDatamodelPlanningPlansDTO( + ) + + def testDataservicesDatamodelPlanningPlansDTO(self): + """Test DataservicesDatamodelPlanningPlansDTO""" + def validate_instance(instance): + DataservicesDatamodelPlanningPlansDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPlanningPlansDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_population_configuration_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_population_configuration_dto.py new file mode 100644 index 0000000000..d5958a4d85 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_population_configuration_dto import DataservicesDatamodelPopulationConfigurationDTO + +class TestDataservicesDatamodelPopulationConfigurationDTO(unittest.TestCase): + """DataservicesDatamodelPopulationConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPopulationConfigurationDTO: + """Test DataservicesDatamodelPopulationConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPopulationConfigurationDTO( + change_history_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/property_reference_dto.dataservices.datamodel.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + distinguishing_properties = [ + visier_api_analytic_model.models.dataservices/datamodel/property_reference_dto.dataservices.datamodel.PropertyReferenceDTO( + name = '', + qualifying_path = '', ) + ], + grouping_dimensions = [ + visier_api_analytic_model.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ] + ) + else: + return DataservicesDatamodelPopulationConfigurationDTO( + ) + + def testDataservicesDatamodelPopulationConfigurationDTO(self): + """Test DataservicesDatamodelPopulationConfigurationDTO""" + def validate_instance(instance): + DataservicesDatamodelPopulationConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPopulationConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_prediction_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_prediction_dto.py new file mode 100644 index 0000000000..f4cb995699 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_prediction_dto import DataservicesDatamodelPredictionDTO + +class TestDataservicesDatamodelPredictionDTO(unittest.TestCase): + """DataservicesDatamodelPredictionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPredictionDTO: + """Test DataservicesDatamodelPredictionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPredictionDTO( + 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 DataservicesDatamodelPredictionDTO( + ) + + def testDataservicesDatamodelPredictionDTO(self): + """Test DataservicesDatamodelPredictionDTO""" + def validate_instance(instance): + DataservicesDatamodelPredictionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPredictionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_predictions_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_predictions_dto.py new file mode 100644 index 0000000000..cc6768108a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_predictions_dto import DataservicesDatamodelPredictionsDTO + +class TestDataservicesDatamodelPredictionsDTO(unittest.TestCase): + """DataservicesDatamodelPredictionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPredictionsDTO: + """Test DataservicesDatamodelPredictionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPredictionsDTO( + predictions = [ + visier_api_analytic_model.models.dataservices/datamodel/prediction_dto.dataservices.datamodel.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 DataservicesDatamodelPredictionsDTO( + ) + + def testDataservicesDatamodelPredictionsDTO(self): + """Test DataservicesDatamodelPredictionsDTO""" + def validate_instance(instance): + DataservicesDatamodelPredictionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPredictionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_properties_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_properties_dto.py new file mode 100644 index 0000000000..707ce97d0d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_properties_dto import DataservicesDatamodelPropertiesDTO + +class TestDataservicesDatamodelPropertiesDTO(unittest.TestCase): + """DataservicesDatamodelPropertiesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPropertiesDTO: + """Test DataservicesDatamodelPropertiesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPropertiesDTO( + properties = [ + visier_api_analytic_model.models.dataservices/datamodel/property_dto.dataservices.datamodel.PropertyDTO( + data_type = '', + description = '', + display_name = '', + explanation = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/parameter_definition_dto.dataservices.datamodel.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/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ], ) + ] + ) + else: + return DataservicesDatamodelPropertiesDTO( + ) + + def testDataservicesDatamodelPropertiesDTO(self): + """Test DataservicesDatamodelPropertiesDTO""" + def validate_instance(instance): + DataservicesDatamodelPropertiesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPropertiesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_property_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_property_dto.py new file mode 100644 index 0000000000..8164387538 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_property_dto import DataservicesDatamodelPropertyDTO + +class TestDataservicesDatamodelPropertyDTO(unittest.TestCase): + """DataservicesDatamodelPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPropertyDTO: + """Test DataservicesDatamodelPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPropertyDTO( + data_type = '', + description = '', + display_name = '', + explanation = '', + id = '', + parameters = [ + visier_api_analytic_model.models.dataservices/datamodel/parameter_definition_dto.dataservices.datamodel.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/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ] + ) + else: + return DataservicesDatamodelPropertyDTO( + ) + + def testDataservicesDatamodelPropertyDTO(self): + """Test DataservicesDatamodelPropertyDTO""" + def validate_instance(instance): + DataservicesDatamodelPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_property_reference_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_property_reference_dto.py new file mode 100644 index 0000000000..8ca362d3df --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO + +class TestDataservicesDatamodelPropertyReferenceDTO(unittest.TestCase): + """DataservicesDatamodelPropertyReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPropertyReferenceDTO: + """Test DataservicesDatamodelPropertyReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPropertyReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelPropertyReferenceDTO( + ) + + def testDataservicesDatamodelPropertyReferenceDTO(self): + """Test DataservicesDatamodelPropertyReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelPropertyReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPropertyReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_scenario_or_snapshot_dto.py new file mode 100644 index 0000000000..432a4957ea --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_scenario_or_snapshot_dto import DataservicesDatamodelScenarioOrSnapshotDTO + +class TestDataservicesDatamodelScenarioOrSnapshotDTO(unittest.TestCase): + """DataservicesDatamodelScenarioOrSnapshotDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelScenarioOrSnapshotDTO: + """Test DataservicesDatamodelScenarioOrSnapshotDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelScenarioOrSnapshotDTO( + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelScenarioOrSnapshotDTO( + ) + + def testDataservicesDatamodelScenarioOrSnapshotDTO(self): + """Test DataservicesDatamodelScenarioOrSnapshotDTO""" + def validate_instance(instance): + DataservicesDatamodelScenarioOrSnapshotDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelScenarioOrSnapshotDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concept_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_selection_concept_dto.py new file mode 100644 index 0000000000..1e705e8ab5 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concept_dto import DataservicesDatamodelSelectionConceptDTO + +class TestDataservicesDatamodelSelectionConceptDTO(unittest.TestCase): + """DataservicesDatamodelSelectionConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelSelectionConceptDTO: + """Test DataservicesDatamodelSelectionConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelSelectionConceptDTO( + description = '', + display_name = '', + explanation = '', + id = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ], + visible_in_app = True + ) + else: + return DataservicesDatamodelSelectionConceptDTO( + ) + + def testDataservicesDatamodelSelectionConceptDTO(self): + """Test DataservicesDatamodelSelectionConceptDTO""" + def validate_instance(instance): + DataservicesDatamodelSelectionConceptDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelSelectionConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concepts_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_selection_concepts_dto.py new file mode 100644 index 0000000000..524497aea5 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concepts_dto import DataservicesDatamodelSelectionConceptsDTO + +class TestDataservicesDatamodelSelectionConceptsDTO(unittest.TestCase): + """DataservicesDatamodelSelectionConceptsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelSelectionConceptsDTO: + """Test DataservicesDatamodelSelectionConceptsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelSelectionConceptsDTO( + selection_concepts = [ + visier_api_analytic_model.models.dataservices/datamodel/selection_concept_dto.dataservices.datamodel.SelectionConceptDTO( + description = '', + display_name = '', + explanation = '', + id = '', + tags = [ + visier_api_analytic_model.models.dataservices/datamodel/tag_map_element_dto.dataservices.datamodel.TagMapElementDTO( + display_name = '', + id = '', ) + ], + visible_in_app = True, ) + ] + ) + else: + return DataservicesDatamodelSelectionConceptsDTO( + ) + + def testDataservicesDatamodelSelectionConceptsDTO(self): + """Test DataservicesDatamodelSelectionConceptsDTO""" + def validate_instance(instance): + DataservicesDatamodelSelectionConceptsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelSelectionConceptsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_tag_map_element_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_tag_map_element_dto.py new file mode 100644 index 0000000000..f17883f916 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO + +class TestDataservicesDatamodelTagMapElementDTO(unittest.TestCase): + """DataservicesDatamodelTagMapElementDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelTagMapElementDTO: + """Test DataservicesDatamodelTagMapElementDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelTagMapElementDTO( + display_name = '', + id = '' + ) + else: + return DataservicesDatamodelTagMapElementDTO( + ) + + def testDataservicesDatamodelTagMapElementDTO(self): + """Test DataservicesDatamodelTagMapElementDTO""" + def validate_instance(instance): + DataservicesDatamodelTagMapElementDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelTagMapElementDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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 deleted file mode 100644 index 78305a8ff2..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index e8ad26df85..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index c256e221fb..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 7548e42f1a..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 33534f622d..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b7ac6a2dce..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 9894944056..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 1996be7d21..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index d5c4afe4b6..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 842b0ec8e3..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b96f37903a..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 12b1d59b95..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 3cd874a6f6..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 05189809bf..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 272b70b3b8..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 2baec01caa..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 9799fc8f3b..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 0430416f93..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 1a2ebceac9..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 30b7cd765f..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 4e65c867dd..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index fbb725268a..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 99d8d5a63d..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 7ff96e0340..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 6edd7d4d23..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 4c31ad4479..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 0199859061..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 2b2429985a..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 42bb5b7eac..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 530db0c626..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index c85de06b6f..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 03e789b311..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index d7eb3c8dfd..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 92fc800303..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index d364f92141..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 3c745cc81b..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 864e3994e6..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 50444458a1..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 9b75e70e3b..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 50c041f38b..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 1714e1ac14..0000000000 --- a/src/visier_api_analytic_model/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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_dataservices_datamodel_validity_range_dto.py b/src/visier_api_analytic_model/test/test_dataservices_datamodel_validity_range_dto.py new file mode 100644 index 0000000000..294f51805f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_validity_range_dto import DataservicesDatamodelValidityRangeDTO + +class TestDataservicesDatamodelValidityRangeDTO(unittest.TestCase): + """DataservicesDatamodelValidityRangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelValidityRangeDTO: + """Test DataservicesDatamodelValidityRangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelValidityRangeDTO( + end = '', + start = '' + ) + else: + return DataservicesDatamodelValidityRangeDTO( + ) + + def testDataservicesDatamodelValidityRangeDTO(self): + """Test DataservicesDatamodelValidityRangeDTO""" + def validate_instance(instance): + DataservicesDatamodelValidityRangeDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelValidityRangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_analytic_object_filter_dto.py b/src/visier_api_analytic_model/test/test_designer_api_analytic_object_filter_dto.py new file mode 100644 index 0000000000..92b387ae05 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO + +class TestDesignerApiAnalyticObjectFilterDTO(unittest.TestCase): + """DesignerApiAnalyticObjectFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiAnalyticObjectFilterDTO: + """Test DesignerApiAnalyticObjectFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiAnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '' + ) + else: + return DesignerApiAnalyticObjectFilterDTO( + ) + + def testDesignerApiAnalyticObjectFilterDTO(self): + """Test DesignerApiAnalyticObjectFilterDTO""" + def validate_instance(instance): + DesignerApiAnalyticObjectFilterDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiAnalyticObjectFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_calculation_concept_configuration_dto.py new file mode 100644 index 0000000000..9745421745 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_calculation_concept_configuration_dto import DesignerApiCalculationConceptConfigurationDTO + +class TestDesignerApiCalculationConceptConfigurationDTO(unittest.TestCase): + """DesignerApiCalculationConceptConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiCalculationConceptConfigurationDTO: + """Test DesignerApiCalculationConceptConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiCalculationConceptConfigurationDTO( + perspectives = [ + visier_api_analytic_model.models.designer/api/perspective_configuration_dto.designer.api.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/perspective_node_dto.designer.api.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ] + ) + else: + return DesignerApiCalculationConceptConfigurationDTO( + ) + + def testDesignerApiCalculationConceptConfigurationDTO(self): + """Test DesignerApiCalculationConceptConfigurationDTO""" + def validate_instance(instance): + DesignerApiCalculationConceptConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiCalculationConceptConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_designer_api_calculation_concept_configuration_map_dto.py new file mode 100644 index 0000000000..893958c14f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_calculation_concept_configuration_map_dto import DesignerApiCalculationConceptConfigurationMapDTO + +class TestDesignerApiCalculationConceptConfigurationMapDTO(unittest.TestCase): + """DesignerApiCalculationConceptConfigurationMapDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiCalculationConceptConfigurationMapDTO: + """Test DesignerApiCalculationConceptConfigurationMapDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiCalculationConceptConfigurationMapDTO( + perspectives_to_map = [ + visier_api_analytic_model.models.designer/api/perspective_configuration_dto.designer.api.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/perspective_node_dto.designer.api.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ] + ) + else: + return DesignerApiCalculationConceptConfigurationMapDTO( + ) + + def testDesignerApiCalculationConceptConfigurationMapDTO(self): + """Test DesignerApiCalculationConceptConfigurationMapDTO""" + def validate_instance(instance): + DesignerApiCalculationConceptConfigurationMapDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiCalculationConceptConfigurationMapDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_calculation_concept_dto.py b/src/visier_api_analytic_model/test/test_designer_api_calculation_concept_dto.py new file mode 100644 index 0000000000..966c1c473b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_calculation_concept_dto import DesignerApiCalculationConceptDTO + +class TestDesignerApiCalculationConceptDTO(unittest.TestCase): + """DesignerApiCalculationConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiCalculationConceptDTO: + """Test DesignerApiCalculationConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiCalculationConceptDTO( + configuration = visier_api_analytic_model.models.designer/api/calculation_concept_configuration_dto.designer.api.CalculationConceptConfigurationDTO( + perspectives = [ + visier_api_analytic_model.models.designer/api/perspective_configuration_dto.designer.api.PerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/perspective_node_dto.designer.api.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ], ) + ], ), + name = '', + uuid = '' + ) + else: + return DesignerApiCalculationConceptDTO( + ) + + def testDesignerApiCalculationConceptDTO(self): + """Test DesignerApiCalculationConceptDTO""" + def validate_instance(instance): + DesignerApiCalculationConceptDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiCalculationConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_calculation_concept_list_dto.py b/src/visier_api_analytic_model/test/test_designer_api_calculation_concept_list_dto.py new file mode 100644 index 0000000000..9aa9be5d7a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_calculation_concept_list_dto import DesignerApiCalculationConceptListDTO + +class TestDesignerApiCalculationConceptListDTO(unittest.TestCase): + """DesignerApiCalculationConceptListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiCalculationConceptListDTO: + """Test DesignerApiCalculationConceptListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiCalculationConceptListDTO( + concepts = [ + visier_api_analytic_model.models.designer/api/calculation_concept_dto.designer.api.CalculationConceptDTO( + configuration = None, + name = '', + uuid = '', ) + ] + ) + else: + return DesignerApiCalculationConceptListDTO( + ) + + def testDesignerApiCalculationConceptListDTO(self): + """Test DesignerApiCalculationConceptListDTO""" + def validate_instance(instance): + DesignerApiCalculationConceptListDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiCalculationConceptListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_concept_configuration_result_dto.py b/src/visier_api_analytic_model/test/test_designer_api_concept_configuration_result_dto.py new file mode 100644 index 0000000000..a0f2b000f3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_concept_configuration_result_dto import DesignerApiConceptConfigurationResultDTO + +class TestDesignerApiConceptConfigurationResultDTO(unittest.TestCase): + """DesignerApiConceptConfigurationResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiConceptConfigurationResultDTO: + """Test DesignerApiConceptConfigurationResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiConceptConfigurationResultDTO( + concept_id = '', + message = '', + project_id = '' + ) + else: + return DesignerApiConceptConfigurationResultDTO( + ) + + def testDesignerApiConceptConfigurationResultDTO(self): + """Test DesignerApiConceptConfigurationResultDTO""" + def validate_instance(instance): + DesignerApiConceptConfigurationResultDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiConceptConfigurationResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_filter_dto.py b/src/visier_api_analytic_model/test/test_designer_api_dimension_filter_dto.py new file mode 100644 index 0000000000..8506510d73 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_filter_dto import DesignerApiDimensionFilterDTO + +class TestDesignerApiDimensionFilterDTO(unittest.TestCase): + """DesignerApiDimensionFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiDimensionFilterDTO: + """Test DesignerApiDimensionFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiDimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '' + ) + else: + return DesignerApiDimensionFilterDTO( + ) + + def testDesignerApiDimensionFilterDTO(self): + """Test DesignerApiDimensionFilterDTO""" + def validate_instance(instance): + DesignerApiDimensionFilterDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiDimensionFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_dimension_member_dto.py b/src/visier_api_analytic_model/test/test_designer_api_dimension_member_dto.py new file mode 100644 index 0000000000..6e52b4c196 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_dimension_member_dto import DesignerApiDimensionMemberDTO + +class TestDesignerApiDimensionMemberDTO(unittest.TestCase): + """DesignerApiDimensionMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiDimensionMemberDTO: + """Test DesignerApiDimensionMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiDimensionMemberDTO( + dimension_member = [ + '' + ] + ) + else: + return DesignerApiDimensionMemberDTO( + ) + + def testDesignerApiDimensionMemberDTO(self): + """Test DesignerApiDimensionMemberDTO""" + def validate_instance(instance): + DesignerApiDimensionMemberDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiDimensionMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_perspective_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_perspective_configuration_dto.py new file mode 100644 index 0000000000..d8f7624ffe --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_perspective_configuration_dto import DesignerApiPerspectiveConfigurationDTO + +class TestDesignerApiPerspectiveConfigurationDTO(unittest.TestCase): + """DesignerApiPerspectiveConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiPerspectiveConfigurationDTO: + """Test DesignerApiPerspectiveConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiPerspectiveConfigurationDTO( + perspective_id = '', + perspective_name = '', + perspective_nodes = [ + visier_api_analytic_model.models.designer/api/perspective_node_dto.designer.api.PerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '', ) + ] + ) + else: + return DesignerApiPerspectiveConfigurationDTO( + ) + + def testDesignerApiPerspectiveConfigurationDTO(self): + """Test DesignerApiPerspectiveConfigurationDTO""" + def validate_instance(instance): + DesignerApiPerspectiveConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiPerspectiveConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_perspective_node_dto.py b/src/visier_api_analytic_model/test/test_designer_api_perspective_node_dto.py new file mode 100644 index 0000000000..f95bebfe5a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_perspective_node_dto import DesignerApiPerspectiveNodeDTO + +class TestDesignerApiPerspectiveNodeDTO(unittest.TestCase): + """DesignerApiPerspectiveNodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiPerspectiveNodeDTO: + """Test DesignerApiPerspectiveNodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiPerspectiveNodeDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], + selection_concept_uuid = '', + symbol_name = '' + ) + else: + return DesignerApiPerspectiveNodeDTO( + ) + + def testDesignerApiPerspectiveNodeDTO(self): + """Test DesignerApiPerspectiveNodeDTO""" + def validate_instance(instance): + DesignerApiPerspectiveNodeDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiPerspectiveNodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concept_configuration_dto.py b/src/visier_api_analytic_model/test/test_designer_api_selection_concept_configuration_dto.py new file mode 100644 index 0000000000..32a87eff44 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concept_configuration_dto import DesignerApiSelectionConceptConfigurationDTO + +class TestDesignerApiSelectionConceptConfigurationDTO(unittest.TestCase): + """DesignerApiSelectionConceptConfigurationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiSelectionConceptConfigurationDTO: + """Test DesignerApiSelectionConceptConfigurationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiSelectionConceptConfigurationDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ] + ) + else: + return DesignerApiSelectionConceptConfigurationDTO( + ) + + def testDesignerApiSelectionConceptConfigurationDTO(self): + """Test DesignerApiSelectionConceptConfigurationDTO""" + def validate_instance(instance): + DesignerApiSelectionConceptConfigurationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiSelectionConceptConfigurationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/test/test_designer_api_selection_concept_configuration_map_dto.py new file mode 100644 index 0000000000..85f9c98c97 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concept_configuration_map_dto import DesignerApiSelectionConceptConfigurationMapDTO + +class TestDesignerApiSelectionConceptConfigurationMapDTO(unittest.TestCase): + """DesignerApiSelectionConceptConfigurationMapDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiSelectionConceptConfigurationMapDTO: + """Test DesignerApiSelectionConceptConfigurationMapDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiSelectionConceptConfigurationMapDTO( + analytic_object_filters_to_map = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ] + ) + else: + return DesignerApiSelectionConceptConfigurationMapDTO( + ) + + def testDesignerApiSelectionConceptConfigurationMapDTO(self): + """Test DesignerApiSelectionConceptConfigurationMapDTO""" + def validate_instance(instance): + DesignerApiSelectionConceptConfigurationMapDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiSelectionConceptConfigurationMapDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concept_dto.py b/src/visier_api_analytic_model/test/test_designer_api_selection_concept_dto.py new file mode 100644 index 0000000000..41ba1eb8d2 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concept_dto import DesignerApiSelectionConceptDTO + +class TestDesignerApiSelectionConceptDTO(unittest.TestCase): + """DesignerApiSelectionConceptDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiSelectionConceptDTO: + """Test DesignerApiSelectionConceptDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiSelectionConceptDTO( + configuration = visier_api_analytic_model.models.designer/api/selection_concept_configuration_dto.designer.api.SelectionConceptConfigurationDTO( + analytic_object_filters = [ + visier_api_analytic_model.models.designer/api/analytic_object_filter_dto.designer.api.AnalyticObjectFilterDTO( + analytic_object_uuid = '', + dimensions = [ + visier_api_analytic_model.models.designer/api/dimension_filter_dto.designer.api.DimensionFilterDTO( + dimension_id = '', + dimension_members = [ + visier_api_analytic_model.models.designer/api/dimension_member_dto.designer.api.DimensionMemberDTO( + dimension_member = [ + '' + ], ) + ], + symbol_name = '', ) + ], + symbol_name = '', ) + ], ), + name = '', + uuid = '' + ) + else: + return DesignerApiSelectionConceptDTO( + ) + + def testDesignerApiSelectionConceptDTO(self): + """Test DesignerApiSelectionConceptDTO""" + def validate_instance(instance): + DesignerApiSelectionConceptDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiSelectionConceptDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_selection_concept_list_dto.py b/src/visier_api_analytic_model/test/test_designer_api_selection_concept_list_dto.py new file mode 100644 index 0000000000..177a562c64 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_selection_concept_list_dto import DesignerApiSelectionConceptListDTO + +class TestDesignerApiSelectionConceptListDTO(unittest.TestCase): + """DesignerApiSelectionConceptListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerApiSelectionConceptListDTO: + """Test DesignerApiSelectionConceptListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerApiSelectionConceptListDTO( + concepts = [ + visier_api_analytic_model.models.designer/api/selection_concept_dto.designer.api.SelectionConceptDTO( + configuration = None, + name = '', + uuid = '', ) + ] + ) + else: + return DesignerApiSelectionConceptListDTO( + ) + + def testDesignerApiSelectionConceptListDTO(self): + """Test DesignerApiSelectionConceptListDTO""" + def validate_instance(instance): + DesignerApiSelectionConceptListDTO.model_validate(inst_req_only) + instance_deserialized = DesignerApiSelectionConceptListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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 deleted file mode 100644 index 81567c60a1..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index ac7de3306f..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 59b5f9318f..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 847c5cc573..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 395784dc18..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 9d88e7d07a..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index ca8f03a369..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 57c28f81d7..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 1223a9ee1b..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index dadd7635b8..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 8febb39689..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_configuration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b5b70cc46d..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 411c716661..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_concept_dto.py +++ /dev/null @@ -1,77 +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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index c8e28a39d3..0000000000 --- a/src/visier_api_analytic_model/test/test_designer_api_transfers_selection_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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_object_configuration_api.py b/src/visier_api_analytic_model/test/test_object_configuration_api.py index fa03a4b878..23ebeff5da 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/test/test_planning_get_plan_list_response_dto.py b/src/visier_api_analytic_model/test/test_planning_get_plan_list_response_dto.py new file mode 100644 index 0000000000..3eeb52c906 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_get_plan_list_response_dto import PlanningGetPlanListResponseDTO + +class TestPlanningGetPlanListResponseDTO(unittest.TestCase): + """PlanningGetPlanListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningGetPlanListResponseDTO: + """Test PlanningGetPlanListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningGetPlanListResponseDTO( + page = 56, + plans = [ + visier_api_analytic_model.models.planning/plan_info_dto.planning.PlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/scenario_info_dto.planning.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '', ) + ] + ) + else: + return PlanningGetPlanListResponseDTO( + ) + + def testPlanningGetPlanListResponseDTO(self): + """Test PlanningGetPlanListResponseDTO""" + def validate_instance(instance): + PlanningGetPlanListResponseDTO.model_validate(inst_req_only) + instance_deserialized = PlanningGetPlanListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_data_load_error_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_data_load_error_dto.py new file mode 100644 index 0000000000..7d5fbf6821 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_data_load_error_dto import PlanningPlanDataLoadErrorDTO + +class TestPlanningPlanDataLoadErrorDTO(unittest.TestCase): + """PlanningPlanDataLoadErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanDataLoadErrorDTO: + """Test PlanningPlanDataLoadErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanDataLoadErrorDTO( + error_message = '', + rci = '', + row = 56 + ) + else: + return PlanningPlanDataLoadErrorDTO( + ) + + def testPlanningPlanDataLoadErrorDTO(self): + """Test PlanningPlanDataLoadErrorDTO""" + def validate_instance(instance): + PlanningPlanDataLoadErrorDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanDataLoadErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_info_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_info_dto.py new file mode 100644 index 0000000000..6e34fd5b94 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_info_dto import PlanningPlanInfoDTO + +class TestPlanningPlanInfoDTO(unittest.TestCase): + """PlanningPlanInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanInfoDTO: + """Test PlanningPlanInfoDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/scenario_info_dto.planning.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '' + ) + else: + return PlanningPlanInfoDTO( + ) + + def testPlanningPlanInfoDTO(self): + """Test PlanningPlanInfoDTO""" + def validate_instance(instance): + PlanningPlanInfoDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanInfoDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_item_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_item_dto.py new file mode 100644 index 0000000000..00c6d72b19 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_item_dto import PlanningPlanItemDTO + +class TestPlanningPlanItemDTO(unittest.TestCase): + """PlanningPlanItemDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanItemDTO: + """Test PlanningPlanItemDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '' + ) + else: + return PlanningPlanItemDTO( + ) + + def testPlanningPlanItemDTO(self): + """Test PlanningPlanItemDTO""" + def validate_instance(instance): + PlanningPlanItemDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanItemDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_schema_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_schema_dto.py new file mode 100644 index 0000000000..98a8726fb4 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_schema_dto import PlanningPlanSchemaDTO + +class TestPlanningPlanSchemaDTO(unittest.TestCase): + """PlanningPlanSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanSchemaDTO: + """Test PlanningPlanSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanSchemaDTO( + plan_items = [ + visier_api_analytic_model.models.planning/plan_item_dto.planning.PlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '', ) + ], + plan_segment_level_members = [ + visier_api_analytic_model.models.planning/plan_segment_level_member_list_dto.planning.PlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/plan_segment_level_member_dto.planning.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '', ) + ], + plan_segment_levels = [ + visier_api_analytic_model.models.planning/plan_segment_level_dto.planning.PlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '', ) + ], + time_periods = [ + visier_api_analytic_model.models.planning/plan_time_period_dto.planning.PlanTimePeriodDTO( + date = '', + display_name = '', ) + ] + ) + else: + return PlanningPlanSchemaDTO( + ) + + def testPlanningPlanSchemaDTO(self): + """Test PlanningPlanSchemaDTO""" + def validate_instance(instance): + PlanningPlanSchemaDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_segment_level_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_segment_level_dto.py new file mode 100644 index 0000000000..fc4ba4ec18 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_segment_level_dto import PlanningPlanSegmentLevelDTO + +class TestPlanningPlanSegmentLevelDTO(unittest.TestCase): + """PlanningPlanSegmentLevelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanSegmentLevelDTO: + """Test PlanningPlanSegmentLevelDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '' + ) + else: + return PlanningPlanSegmentLevelDTO( + ) + + def testPlanningPlanSegmentLevelDTO(self): + """Test PlanningPlanSegmentLevelDTO""" + def validate_instance(instance): + PlanningPlanSegmentLevelDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanSegmentLevelDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_segment_level_member_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_segment_level_member_dto.py new file mode 100644 index 0000000000..0e5a7f59f0 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_segment_level_member_dto import PlanningPlanSegmentLevelMemberDTO + +class TestPlanningPlanSegmentLevelMemberDTO(unittest.TestCase): + """PlanningPlanSegmentLevelMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanSegmentLevelMemberDTO: + """Test PlanningPlanSegmentLevelMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '' + ) + else: + return PlanningPlanSegmentLevelMemberDTO( + ) + + def testPlanningPlanSegmentLevelMemberDTO(self): + """Test PlanningPlanSegmentLevelMemberDTO""" + def validate_instance(instance): + PlanningPlanSegmentLevelMemberDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanSegmentLevelMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_segment_level_member_list_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_segment_level_member_list_dto.py new file mode 100644 index 0000000000..2e88c1edd7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_segment_level_member_list_dto import PlanningPlanSegmentLevelMemberListDTO + +class TestPlanningPlanSegmentLevelMemberListDTO(unittest.TestCase): + """PlanningPlanSegmentLevelMemberListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanSegmentLevelMemberListDTO: + """Test PlanningPlanSegmentLevelMemberListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/plan_segment_level_member_dto.planning.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '' + ) + else: + return PlanningPlanSegmentLevelMemberListDTO( + ) + + def testPlanningPlanSegmentLevelMemberListDTO(self): + """Test PlanningPlanSegmentLevelMemberListDTO""" + def validate_instance(instance): + PlanningPlanSegmentLevelMemberListDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanSegmentLevelMemberListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_time_period_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_time_period_dto.py new file mode 100644 index 0000000000..344a67cc9b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_time_period_dto import PlanningPlanTimePeriodDTO + +class TestPlanningPlanTimePeriodDTO(unittest.TestCase): + """PlanningPlanTimePeriodDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanTimePeriodDTO: + """Test PlanningPlanTimePeriodDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanTimePeriodDTO( + var_date = '', + display_name = '' + ) + else: + return PlanningPlanTimePeriodDTO( + ) + + def testPlanningPlanTimePeriodDTO(self): + """Test PlanningPlanTimePeriodDTO""" + def validate_instance(instance): + PlanningPlanTimePeriodDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanTimePeriodDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_with_schema_dto.py b/src/visier_api_analytic_model/test/test_planning_plan_with_schema_dto.py new file mode 100644 index 0000000000..96d39cd078 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_with_schema_dto import PlanningPlanWithSchemaDTO + +class TestPlanningPlanWithSchemaDTO(unittest.TestCase): + """PlanningPlanWithSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningPlanWithSchemaDTO: + """Test PlanningPlanWithSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningPlanWithSchemaDTO( + errors = [ + visier_api_analytic_model.models.planning/plan_data_load_error_dto.planning.PlanDataLoadErrorDTO( + error_message = '', + rci = '', + row = 56, ) + ], + plan = visier_api_analytic_model.models.planning/plan_info_dto.planning.PlanInfoDTO( + currency_code = '', + display_name = '', + model_id = '', + parent_plan_uuid = '', + scenarios = [ + visier_api_analytic_model.models.planning/scenario_info_dto.planning.ScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '', ) + ], + uuid = '', ), + var_schema = visier_api_analytic_model.models.planning/plan_schema_dto.planning.PlanSchemaDTO( + plan_items = [ + visier_api_analytic_model.models.planning/plan_item_dto.planning.PlanItemDTO( + data_type = 'unknown', + display_name = '', + id = '', ) + ], + plan_segment_level_members = [ + visier_api_analytic_model.models.planning/plan_segment_level_member_list_dto.planning.PlanSegmentLevelMemberListDTO( + members = [ + visier_api_analytic_model.models.planning/plan_segment_level_member_dto.planning.PlanSegmentLevelMemberDTO( + display_name = '', + id = '', + is_custom = True, + parent_id = '', ) + ], + segment_id = '', + segment_level_id = '', ) + ], + plan_segment_levels = [ + visier_api_analytic_model.models.planning/plan_segment_level_dto.planning.PlanSegmentLevelDTO( + display_name = '', + id = '', + order = 56, + segment_display_name = '', + segment_id = '', ) + ], + time_periods = [ + visier_api_analytic_model.models.planning/plan_time_period_dto.planning.PlanTimePeriodDTO( + date = '', + display_name = '', ) + ], ) + ) + else: + return PlanningPlanWithSchemaDTO( + ) + + def testPlanningPlanWithSchemaDTO(self): + """Test PlanningPlanWithSchemaDTO""" + def validate_instance(instance): + PlanningPlanWithSchemaDTO.model_validate(inst_req_only) + instance_deserialized = PlanningPlanWithSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_scenario_info_dto.py b/src/visier_api_analytic_model/test/test_planning_scenario_info_dto.py new file mode 100644 index 0000000000..496eede27c --- /dev/null +++ b/src/visier_api_analytic_model/test/test_planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_scenario_info_dto import PlanningScenarioInfoDTO + +class TestPlanningScenarioInfoDTO(unittest.TestCase): + """PlanningScenarioInfoDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PlanningScenarioInfoDTO: + """Test PlanningScenarioInfoDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return PlanningScenarioInfoDTO( + display_name = '', + uuid = '', + versioned_scenario_id = '' + ) + else: + return PlanningScenarioInfoDTO( + ) + + def testPlanningScenarioInfoDTO(self): + """Test PlanningScenarioInfoDTO""" + def validate_instance(instance): + PlanningScenarioInfoDTO.model_validate(inst_req_only) + instance_deserialized = PlanningScenarioInfoDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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 deleted file mode 100644 index 0e05c45b60..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index d7ee0d7eb6..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 0d71a7d856..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b9010035b9..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index e4f755c2b4..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index e4e9f0c13e..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 27fc746555..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 65a4fff510..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index e7364aef80..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index ed825b61b5..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 0b43ff735c..0000000000 --- a/src/visier_api_analytic_model/test/test_planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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_servicing_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..d238226e8a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_calculated_property_type_dto import ServicingObjectconfigurationCalculatedPropertyTypeDTO + +class TestServicingObjectconfigurationCalculatedPropertyTypeDTO(unittest.TestCase): + """ServicingObjectconfigurationCalculatedPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationCalculatedPropertyTypeDTO: + """Test ServicingObjectconfigurationCalculatedPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationCalculatedPropertyTypeDTO( + data_type = '', + formula = '' + ) + else: + return ServicingObjectconfigurationCalculatedPropertyTypeDTO( + ) + + def testServicingObjectconfigurationCalculatedPropertyTypeDTO(self): + """Test ServicingObjectconfigurationCalculatedPropertyTypeDTO""" + def validate_instance(instance): + ServicingObjectconfigurationCalculatedPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationCalculatedPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_dependent_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_dependent_dto.py new file mode 100644 index 0000000000..0f98ab52b6 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_dependent_dto import ServicingObjectconfigurationDependentDTO + +class TestServicingObjectconfigurationDependentDTO(unittest.TestCase): + """ServicingObjectconfigurationDependentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationDependentDTO: + """Test ServicingObjectconfigurationDependentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationDependentDTO( + display_name = '', + id = '', + object_type = '' + ) + else: + return ServicingObjectconfigurationDependentDTO( + ) + + def testServicingObjectconfigurationDependentDTO(self): + """Test ServicingObjectconfigurationDependentDTO""" + def validate_instance(instance): + ServicingObjectconfigurationDependentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationDependentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_dimension_change_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_dimension_change_definition_dto.py new file mode 100644 index 0000000000..32e91c478b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_dimension_change_definition_dto import ServicingObjectconfigurationDimensionChangeDefinitionDTO + +class TestServicingObjectconfigurationDimensionChangeDefinitionDTO(unittest.TestCase): + """ServicingObjectconfigurationDimensionChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationDimensionChangeDefinitionDTO: + """Test ServicingObjectconfigurationDimensionChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationDimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '' + ) + else: + return ServicingObjectconfigurationDimensionChangeDefinitionDTO( + ) + + def testServicingObjectconfigurationDimensionChangeDefinitionDTO(self): + """Test ServicingObjectconfigurationDimensionChangeDefinitionDTO""" + def validate_instance(instance): + ServicingObjectconfigurationDimensionChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationDimensionChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..dc8ac7bae1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO + +class TestServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO(unittest.TestCase): + """ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO: + """Test ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO( + dimensions = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dimension_change_definition_dto.servicing.objectconfiguration.DimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '', ) + ], + project_id = '', + tenant_code = '' + ) + else: + return ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO( + ) + + def testServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO(self): + """Test ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_dimensions_change_definitions_dto.py new file mode 100644 index 0000000000..969ee737dc --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_dimensions_change_definitions_dto import ServicingObjectconfigurationDimensionsChangeDefinitionsDTO + +class TestServicingObjectconfigurationDimensionsChangeDefinitionsDTO(unittest.TestCase): + """ServicingObjectconfigurationDimensionsChangeDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationDimensionsChangeDefinitionsDTO: + """Test ServicingObjectconfigurationDimensionsChangeDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationDimensionsChangeDefinitionsDTO( + dimensions_by_tenant = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dimension_change_definitions_by_tenant_dto.servicing.objectconfiguration.DimensionChangeDefinitionsByTenantDTO( + dimensions = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dimension_change_definition_dto.servicing.objectconfiguration.DimensionChangeDefinitionDTO( + description = '', + display_name = '', + id = '', + short_display_name = '', ) + ], + project_id = '', + tenant_code = '', ) + ] + ) + else: + return ServicingObjectconfigurationDimensionsChangeDefinitionsDTO( + ) + + def testServicingObjectconfigurationDimensionsChangeDefinitionsDTO(self): + """Test ServicingObjectconfigurationDimensionsChangeDefinitionsDTO""" + def validate_instance(instance): + ServicingObjectconfigurationDimensionsChangeDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationDimensionsChangeDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_object_change_failure_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_object_change_failure_dto.py new file mode 100644 index 0000000000..3c644e3c5f --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_object_change_failure_dto import ServicingObjectconfigurationObjectChangeFailureDTO + +class TestServicingObjectconfigurationObjectChangeFailureDTO(unittest.TestCase): + """ServicingObjectconfigurationObjectChangeFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationObjectChangeFailureDTO: + """Test ServicingObjectconfigurationObjectChangeFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationObjectChangeFailureDTO( + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + tenant_code = '' + ) + else: + return ServicingObjectconfigurationObjectChangeFailureDTO( + ) + + def testServicingObjectconfigurationObjectChangeFailureDTO(self): + """Test ServicingObjectconfigurationObjectChangeFailureDTO""" + def validate_instance(instance): + ServicingObjectconfigurationObjectChangeFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationObjectChangeFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_object_change_success_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_object_change_success_dto.py new file mode 100644 index 0000000000..bf6c9d1d76 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_object_change_success_dto import ServicingObjectconfigurationObjectChangeSuccessDTO + +class TestServicingObjectconfigurationObjectChangeSuccessDTO(unittest.TestCase): + """ServicingObjectconfigurationObjectChangeSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationObjectChangeSuccessDTO: + """Test ServicingObjectconfigurationObjectChangeSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationObjectChangeSuccessDTO( + display_name = '', + id = '', + project_id = '', + tenant_code = '' + ) + else: + return ServicingObjectconfigurationObjectChangeSuccessDTO( + ) + + def testServicingObjectconfigurationObjectChangeSuccessDTO(self): + """Test ServicingObjectconfigurationObjectChangeSuccessDTO""" + def validate_instance(instance): + ServicingObjectconfigurationObjectChangeSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationObjectChangeSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_objects_bulk_change_response_dto.py new file mode 100644 index 0000000000..15e7f34443 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_objects_bulk_change_response_dto import ServicingObjectconfigurationObjectsBulkChangeResponseDTO + +class TestServicingObjectconfigurationObjectsBulkChangeResponseDTO(unittest.TestCase): + """ServicingObjectconfigurationObjectsBulkChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationObjectsBulkChangeResponseDTO: + """Test ServicingObjectconfigurationObjectsBulkChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationObjectsBulkChangeResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/objectconfiguration/object_change_failure_dto.servicing.objectconfiguration.ObjectChangeFailureDTO( + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + tenant_code = '', ) + ], + successes = [ + visier_api_analytic_model.models.servicing/objectconfiguration/object_change_success_dto.servicing.objectconfiguration.ObjectChangeSuccessDTO( + display_name = '', + id = '', + project_id = '', + tenant_code = '', ) + ] + ) + else: + return ServicingObjectconfigurationObjectsBulkChangeResponseDTO( + ) + + def testServicingObjectconfigurationObjectsBulkChangeResponseDTO(self): + """Test ServicingObjectconfigurationObjectsBulkChangeResponseDTO""" + def validate_instance(instance): + ServicingObjectconfigurationObjectsBulkChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationObjectsBulkChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_properties_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_properties_change_definitions_dto.py new file mode 100644 index 0000000000..ff5551de31 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_properties_change_definitions_dto import ServicingObjectconfigurationPropertiesChangeDefinitionsDTO + +class TestServicingObjectconfigurationPropertiesChangeDefinitionsDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertiesChangeDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertiesChangeDefinitionsDTO: + """Test ServicingObjectconfigurationPropertiesChangeDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertiesChangeDefinitionsDTO( + properties_by_tenant = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_change_definitions_by_tenant_dto.servicing.objectconfiguration.PropertyChangeDefinitionsByTenantDTO( + project_id = '', + properties = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_change_definition_dto.servicing.objectconfiguration.PropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = None, + type = None, ) + ], + tenant_code = '', ) + ] + ) + else: + return ServicingObjectconfigurationPropertiesChangeDefinitionsDTO( + ) + + def testServicingObjectconfigurationPropertiesChangeDefinitionsDTO(self): + """Test ServicingObjectconfigurationPropertiesChangeDefinitionsDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertiesChangeDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertiesChangeDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_properties_delete_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_properties_delete_definitions_dto.py new file mode 100644 index 0000000000..bd07963c44 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_properties_delete_definitions_dto import ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO + +class TestServicingObjectconfigurationPropertiesDeleteDefinitionsDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO: + """Test ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO( + delete_derived_properties = True, + ignore_property_references = True, + properties_by_tenant = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_delete_definitions_by_tenant_dto.servicing.objectconfiguration.PropertyDeleteDefinitionsByTenantDTO( + project_id = '', + property_ids = [ + '' + ], + tenant_code = '', ) + ] + ) + else: + return ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO( + ) + + def testServicingObjectconfigurationPropertiesDeleteDefinitionsDTO(self): + """Test ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_bulk_delete_response_dto.py new file mode 100644 index 0000000000..fa9502ec06 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_bulk_delete_response_dto import ServicingObjectconfigurationPropertyBulkDeleteResponseDTO + +class TestServicingObjectconfigurationPropertyBulkDeleteResponseDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyBulkDeleteResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyBulkDeleteResponseDTO: + """Test ServicingObjectconfigurationPropertyBulkDeleteResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyBulkDeleteResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_delete_failure_dto.servicing.objectconfiguration.PropertyDeleteFailureDTO( + derived_dependents_to_delete = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + reference_dependents_to_ignore = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '', ) + ], + successes = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_delete_success_dto.servicing.objectconfiguration.PropertyDeleteSuccessDTO( + derived_dependents_deleted = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + project_id = '', + reference_dependents_ignored = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return ServicingObjectconfigurationPropertyBulkDeleteResponseDTO( + ) + + def testServicingObjectconfigurationPropertyBulkDeleteResponseDTO(self): + """Test ServicingObjectconfigurationPropertyBulkDeleteResponseDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyBulkDeleteResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyBulkDeleteResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_change_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_change_definition_dto.py new file mode 100644 index 0000000000..58fa0a9acf --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_change_definition_dto import ServicingObjectconfigurationPropertyChangeDefinitionDTO + +class TestServicingObjectconfigurationPropertyChangeDefinitionDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyChangeDefinitionDTO: + """Test ServicingObjectconfigurationPropertyChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = visier_api_analytic_model.models.servicing/objectconfiguration/tags_dto.servicing.objectconfiguration.TagsDTO( + ids = [ + '' + ], ), + type = visier_api_analytic_model.models.servicing/objectconfiguration/property_type_dto.servicing.objectconfiguration.PropertyTypeDTO( + calculated = None, + simple = None, ) + ) + else: + return ServicingObjectconfigurationPropertyChangeDefinitionDTO( + ) + + def testServicingObjectconfigurationPropertyChangeDefinitionDTO(self): + """Test ServicingObjectconfigurationPropertyChangeDefinitionDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..ff6a3b3585 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO + +class TestServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO: + """Test ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO( + project_id = '', + properties = [ + visier_api_analytic_model.models.servicing/objectconfiguration/property_change_definition_dto.servicing.objectconfiguration.PropertyChangeDefinitionDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + id = '', + include_with_vee = True, + short_display_name = '', + tags = None, + type = None, ) + ], + tenant_code = '' + ) + else: + return ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO( + ) + + def testServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO(self): + """Test ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..6fce5b1e92 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO + +class TestServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO: + """Test ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO( + project_id = '', + property_ids = [ + '' + ], + tenant_code = '' + ) + else: + return ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO( + ) + + def testServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(self): + """Test ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_delete_failure_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_delete_failure_dto.py new file mode 100644 index 0000000000..4068cac8fc --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_delete_failure_dto import ServicingObjectconfigurationPropertyDeleteFailureDTO + +class TestServicingObjectconfigurationPropertyDeleteFailureDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyDeleteFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyDeleteFailureDTO: + """Test ServicingObjectconfigurationPropertyDeleteFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyDeleteFailureDTO( + derived_dependents_to_delete = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + message = '', + project_id = '', + rci = '', + reference_dependents_to_ignore = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '' + ) + else: + return ServicingObjectconfigurationPropertyDeleteFailureDTO( + ) + + def testServicingObjectconfigurationPropertyDeleteFailureDTO(self): + """Test ServicingObjectconfigurationPropertyDeleteFailureDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyDeleteFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyDeleteFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_delete_success_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_delete_success_dto.py new file mode 100644 index 0000000000..8dcde59ebe --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_delete_success_dto import ServicingObjectconfigurationPropertyDeleteSuccessDTO + +class TestServicingObjectconfigurationPropertyDeleteSuccessDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyDeleteSuccessDTO: + """Test ServicingObjectconfigurationPropertyDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyDeleteSuccessDTO( + derived_dependents_deleted = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + display_name = '', + id = '', + project_id = '', + reference_dependents_ignored = [ + visier_api_analytic_model.models.servicing/objectconfiguration/dependent_dto.servicing.objectconfiguration.DependentDTO( + display_name = '', + id = '', + object_type = '', ) + ], + tenant_code = '' + ) + else: + return ServicingObjectconfigurationPropertyDeleteSuccessDTO( + ) + + def testServicingObjectconfigurationPropertyDeleteSuccessDTO(self): + """Test ServicingObjectconfigurationPropertyDeleteSuccessDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_property_type_dto.py new file mode 100644 index 0000000000..9c05a36f98 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_property_type_dto import ServicingObjectconfigurationPropertyTypeDTO + +class TestServicingObjectconfigurationPropertyTypeDTO(unittest.TestCase): + """ServicingObjectconfigurationPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationPropertyTypeDTO: + """Test ServicingObjectconfigurationPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationPropertyTypeDTO( + calculated = visier_api_analytic_model.models.servicing/objectconfiguration/calculated_property_type_dto.servicing.objectconfiguration.CalculatedPropertyTypeDTO( + data_type = '', + formula = '', ), + simple = visier_api_analytic_model.models.servicing/objectconfiguration/simple_property_type_dto.servicing.objectconfiguration.SimplePropertyTypeDTO( + data_type = '', ) + ) + else: + return ServicingObjectconfigurationPropertyTypeDTO( + ) + + def testServicingObjectconfigurationPropertyTypeDTO(self): + """Test ServicingObjectconfigurationPropertyTypeDTO""" + def validate_instance(instance): + ServicingObjectconfigurationPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..600606c213 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_simple_property_type_dto import ServicingObjectconfigurationSimplePropertyTypeDTO + +class TestServicingObjectconfigurationSimplePropertyTypeDTO(unittest.TestCase): + """ServicingObjectconfigurationSimplePropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationSimplePropertyTypeDTO: + """Test ServicingObjectconfigurationSimplePropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationSimplePropertyTypeDTO( + data_type = '' + ) + else: + return ServicingObjectconfigurationSimplePropertyTypeDTO( + ) + + def testServicingObjectconfigurationSimplePropertyTypeDTO(self): + """Test ServicingObjectconfigurationSimplePropertyTypeDTO""" + def validate_instance(instance): + ServicingObjectconfigurationSimplePropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationSimplePropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_objectconfiguration_tags_dto.py b/src/visier_api_analytic_model/test/test_servicing_objectconfiguration_tags_dto.py new file mode 100644 index 0000000000..86005d26b7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_objectconfiguration_tags_dto import ServicingObjectconfigurationTagsDTO + +class TestServicingObjectconfigurationTagsDTO(unittest.TestCase): + """ServicingObjectconfigurationTagsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingObjectconfigurationTagsDTO: + """Test ServicingObjectconfigurationTagsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingObjectconfigurationTagsDTO( + ids = [ + '' + ] + ) + else: + return ServicingObjectconfigurationTagsDTO( + ) + + def testServicingObjectconfigurationTagsDTO(self): + """Test ServicingObjectconfigurationTagsDTO""" + def validate_instance(instance): + ServicingObjectconfigurationTagsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingObjectconfigurationTagsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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 deleted file mode 100644 index 505acf845a..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b324481ffd..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 30850ece42..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 345b497801..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 73562698ef..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index c5ef6a549f..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b83215b88e..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 78dcecd12f..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 1015cb3754..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 271764b6ee..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index d94d88a695..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 6d870629d7..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index b1ecb18c5f..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 5381177ff1..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 8765015e8c..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index 18633817d4..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index ba3f8aaee7..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index c597e9bc54..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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 deleted file mode 100644 index fbf4a3ccac..0000000000 --- a/src/visier_api_analytic_model/test/test_servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change 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_servicing_question_categories_api_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_question_categories_api_response_dto.py new file mode 100644 index 0000000000..92a659482a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_question_categories_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_question_categories_api_response_dto import ServicingQuestionCategoriesAPIResponseDTO + +class TestServicingQuestionCategoriesAPIResponseDTO(unittest.TestCase): + """ServicingQuestionCategoriesAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingQuestionCategoriesAPIResponseDTO: + """Test ServicingQuestionCategoriesAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingQuestionCategoriesAPIResponseDTO( + categories = [ + visier_api_analytic_model.models.servicing/question_category_api_response_dto.servicing.QuestionCategoryAPIResponseDTO( + category_id = '', + display_name = '', ) + ] + ) + else: + return ServicingQuestionCategoriesAPIResponseDTO( + ) + + def testServicingQuestionCategoriesAPIResponseDTO(self): + """Test ServicingQuestionCategoriesAPIResponseDTO""" + def validate_instance(instance): + ServicingQuestionCategoriesAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingQuestionCategoriesAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_question_category_api_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_question_category_api_response_dto.py new file mode 100644 index 0000000000..5b7147e6c7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_question_category_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_question_category_api_response_dto import ServicingQuestionCategoryAPIResponseDTO + +class TestServicingQuestionCategoryAPIResponseDTO(unittest.TestCase): + """ServicingQuestionCategoryAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingQuestionCategoryAPIResponseDTO: + """Test ServicingQuestionCategoryAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingQuestionCategoryAPIResponseDTO( + category_id = '', + display_name = '' + ) + else: + return ServicingQuestionCategoryAPIResponseDTO( + ) + + def testServicingQuestionCategoryAPIResponseDTO(self): + """Test ServicingQuestionCategoryAPIResponseDTO""" + def validate_instance(instance): + ServicingQuestionCategoryAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingQuestionCategoryAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_sample_question_api_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_sample_question_api_response_dto.py new file mode 100644 index 0000000000..76fd3d39ad --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_sample_question_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_sample_question_api_response_dto import ServicingSampleQuestionAPIResponseDTO + +class TestServicingSampleQuestionAPIResponseDTO(unittest.TestCase): + """ServicingSampleQuestionAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSampleQuestionAPIResponseDTO: + """Test ServicingSampleQuestionAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSampleQuestionAPIResponseDTO( + category_id = '', + question = '', + question_id = '', + user_group_assignment = visier_api_analytic_model.models.servicing/user_group_assignment_dto.servicing.UserGroupAssignmentDTO( + user_group_ids = [ + '' + ], ), + visible_in_vee = True + ) + else: + return ServicingSampleQuestionAPIResponseDTO( + ) + + def testServicingSampleQuestionAPIResponseDTO(self): + """Test ServicingSampleQuestionAPIResponseDTO""" + def validate_instance(instance): + ServicingSampleQuestionAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSampleQuestionAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_sample_questions_api_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_sample_questions_api_response_dto.py new file mode 100644 index 0000000000..b4a3831b7a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_sample_questions_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_sample_questions_api_response_dto import ServicingSampleQuestionsAPIResponseDTO + +class TestServicingSampleQuestionsAPIResponseDTO(unittest.TestCase): + """ServicingSampleQuestionsAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSampleQuestionsAPIResponseDTO: + """Test ServicingSampleQuestionsAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSampleQuestionsAPIResponseDTO( + questions = [ + visier_api_analytic_model.models.servicing/sample_question_api_response_dto.servicing.SampleQuestionAPIResponseDTO( + category_id = '', + question = '', + question_id = '', + user_group_assignment = None, + visible_in_vee = True, ) + ] + ) + else: + return ServicingSampleQuestionsAPIResponseDTO( + ) + + def testServicingSampleQuestionsAPIResponseDTO(self): + """Test ServicingSampleQuestionsAPIResponseDTO""" + def validate_instance(instance): + ServicingSampleQuestionsAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSampleQuestionsAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_user_group_assignment_dto.py b/src/visier_api_analytic_model/test/test_servicing_user_group_assignment_dto.py new file mode 100644 index 0000000000..5fb6a99c2b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_user_group_assignment_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_user_group_assignment_dto import ServicingUserGroupAssignmentDTO + +class TestServicingUserGroupAssignmentDTO(unittest.TestCase): + """ServicingUserGroupAssignmentDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingUserGroupAssignmentDTO: + """Test ServicingUserGroupAssignmentDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingUserGroupAssignmentDTO( + user_group_ids = [ + '' + ] + ) + else: + return ServicingUserGroupAssignmentDTO( + ) + + def testServicingUserGroupAssignmentDTO(self): + """Test ServicingUserGroupAssignmentDTO""" + def validate_instance(instance): + ServicingUserGroupAssignmentDTO.model_validate(inst_req_only) + instance_deserialized = ServicingUserGroupAssignmentDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_analytic_object_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_definition_dto.py new file mode 100644 index 0000000000..9d7a59dd3a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_analytic_object_definition_dto import ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO + +class TestServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO: + """Test ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO( + object_name = '', + update_operation = 'unspecified', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_analytic_object_request_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_request_dto.py new file mode 100644 index 0000000000..53d9a85db3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_analytic_object_request_dto import ServicingV2ObjectconfigurationAnalyticObjectRequestDTO + +class TestServicingV2ObjectconfigurationAnalyticObjectRequestDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationAnalyticObjectRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationAnalyticObjectRequestDTO: + """Test ServicingV2ObjectconfigurationAnalyticObjectRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationAnalyticObjectRequestDTO( + analytic_objects = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/analytic_object_with_context_dto.servicing.v2.objectconfiguration.AnalyticObjectWithContextDTO( + analytic_object = None, + execution_context = None, ) + ] + ) + else: + return ServicingV2ObjectconfigurationAnalyticObjectRequestDTO( + ) + + def testServicingV2ObjectconfigurationAnalyticObjectRequestDTO(self): + """Test ServicingV2ObjectconfigurationAnalyticObjectRequestDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationAnalyticObjectRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationAnalyticObjectRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_analytic_object_with_context_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_with_context_dto.py new file mode 100644 index 0000000000..0e68444e63 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_analytic_object_with_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_analytic_object_with_context_dto import ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO + +class TestServicingV2ObjectconfigurationAnalyticObjectWithContextDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO: + """Test ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO( + analytic_object = visier_api_analytic_model.models.servicing/v2/objectconfiguration/analytic_object_definition_dto.servicing.v2.objectconfiguration.AnalyticObjectDefinitionDTO( + object_name = '', + update_operation = 'unspecified', + uuid = '', ), + execution_context = visier_api_analytic_model.models.servicing/v2/objectconfiguration/execution_context_dto.servicing.v2.objectconfiguration.ExecutionContextDTO( + project_id = '', + tenant_code = '', ) + ) + else: + return ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO( + ) + + def testServicingV2ObjectconfigurationAnalyticObjectWithContextDTO(self): + """Test ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_basic_information_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_basic_information_dto.py new file mode 100644 index 0000000000..30ce4058fa --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_basic_information_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO + +class TestServicingV2ObjectconfigurationBasicInformationDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationBasicInformationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationBasicInformationDTO: + """Test ServicingV2ObjectconfigurationBasicInformationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationBasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/synonym_list_dto.servicing.v2.objectconfiguration.SynonymListDTO( + synonyms = [ + '' + ], ) + ) + else: + return ServicingV2ObjectconfigurationBasicInformationDTO( + ) + + def testServicingV2ObjectconfigurationBasicInformationDTO(self): + """Test ServicingV2ObjectconfigurationBasicInformationDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationBasicInformationDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_bulk_change_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_bulk_change_response_dto.py new file mode 100644 index 0000000000..8b581fa797 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_bulk_change_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_bulk_change_response_dto import ServicingV2ObjectconfigurationBulkChangeResponseDTO + +class TestServicingV2ObjectconfigurationBulkChangeResponseDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationBulkChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationBulkChangeResponseDTO: + """Test ServicingV2ObjectconfigurationBulkChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationBulkChangeResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/failed_change_dto.servicing.v2.objectconfiguration.FailedChangeDTO( + display_name = '', + execution_context = None, + messages = [ + '' + ], + object_name = '', + uuid = '', ) + ], + successes = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/successful_change_dto.servicing.v2.objectconfiguration.SuccessfulChangeDTO( + display_name = '', + execution_context = None, + object_name = '', + uuid = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationBulkChangeResponseDTO( + ) + + def testServicingV2ObjectconfigurationBulkChangeResponseDTO(self): + """Test ServicingV2ObjectconfigurationBulkChangeResponseDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationBulkChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationBulkChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..15f234c810 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_calculated_property_type_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_calculated_property_type_dto import ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO + +class TestServicingV2ObjectconfigurationCalculatedPropertyTypeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO: + """Test ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO( + data_type = '', + formula = '', + primitive_type = '' + ) + else: + return ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO( + ) + + def testServicingV2ObjectconfigurationCalculatedPropertyTypeDTO(self): + """Test ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_definition_dto.py new file mode 100644 index 0000000000..648fd6e61d --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_definition_dto import ServicingV2ObjectconfigurationConceptDefinitionDTO + +class TestServicingV2ObjectconfigurationConceptDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptDefinitionDTO: + """Test ServicingV2ObjectconfigurationConceptDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptDefinitionDTO( + basic_information = visier_api_analytic_model.models.servicing/v2/objectconfiguration/basic_information_dto.servicing.v2.objectconfiguration.BasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = None, ), + details = visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_type_details_dto.servicing.v2.objectconfiguration.ConceptTypeDetailsDTO( + process = None, ), + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationConceptDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationConceptDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationConceptDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_delete_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_dto.py new file mode 100644 index 0000000000..ccb22ce370 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_delete_dto import ServicingV2ObjectconfigurationConceptDeleteDTO + +class TestServicingV2ObjectconfigurationConceptDeleteDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptDeleteDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptDeleteDTO: + """Test ServicingV2ObjectconfigurationConceptDeleteDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptDeleteDTO( + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationConceptDeleteDTO( + ) + + def testServicingV2ObjectconfigurationConceptDeleteDTO(self): + """Test ServicingV2ObjectconfigurationConceptDeleteDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptDeleteDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptDeleteDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_delete_request_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_request_dto.py new file mode 100644 index 0000000000..179e94165a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_delete_request_dto import ServicingV2ObjectconfigurationConceptDeleteRequestDTO + +class TestServicingV2ObjectconfigurationConceptDeleteRequestDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptDeleteRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptDeleteRequestDTO: + """Test ServicingV2ObjectconfigurationConceptDeleteRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptDeleteRequestDTO( + concepts = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_delete_with_context_dto.servicing.v2.objectconfiguration.ConceptDeleteWithContextDTO( + concept = None, + execution_context = None, ) + ] + ) + else: + return ServicingV2ObjectconfigurationConceptDeleteRequestDTO( + ) + + def testServicingV2ObjectconfigurationConceptDeleteRequestDTO(self): + """Test ServicingV2ObjectconfigurationConceptDeleteRequestDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptDeleteRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptDeleteRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_delete_with_context_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_with_context_dto.py new file mode 100644 index 0000000000..65f6c98594 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_delete_with_context_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_delete_with_context_dto import ServicingV2ObjectconfigurationConceptDeleteWithContextDTO + +class TestServicingV2ObjectconfigurationConceptDeleteWithContextDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptDeleteWithContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptDeleteWithContextDTO: + """Test ServicingV2ObjectconfigurationConceptDeleteWithContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptDeleteWithContextDTO( + concept = visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_delete_dto.servicing.v2.objectconfiguration.ConceptDeleteDTO( + object_name = '', + uuid = '', ), + execution_context = visier_api_analytic_model.models.servicing/v2/objectconfiguration/execution_context_dto.servicing.v2.objectconfiguration.ExecutionContextDTO( + project_id = '', + tenant_code = '', ) + ) + else: + return ServicingV2ObjectconfigurationConceptDeleteWithContextDTO( + ) + + def testServicingV2ObjectconfigurationConceptDeleteWithContextDTO(self): + """Test ServicingV2ObjectconfigurationConceptDeleteWithContextDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptDeleteWithContextDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptDeleteWithContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_request_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_request_dto.py new file mode 100644 index 0000000000..6ef62eb6f4 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_request_dto import ServicingV2ObjectconfigurationConceptRequestDTO + +class TestServicingV2ObjectconfigurationConceptRequestDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptRequestDTO: + """Test ServicingV2ObjectconfigurationConceptRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptRequestDTO( + concepts = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_with_context_dto.servicing.v2.objectconfiguration.ConceptWithContextDTO( + concept = None, + execution_context = None, ) + ] + ) + else: + return ServicingV2ObjectconfigurationConceptRequestDTO( + ) + + def testServicingV2ObjectconfigurationConceptRequestDTO(self): + """Test ServicingV2ObjectconfigurationConceptRequestDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptRequestDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_response_dto.py new file mode 100644 index 0000000000..2270ed1a47 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_response_dto import ServicingV2ObjectconfigurationConceptResponseDTO + +class TestServicingV2ObjectconfigurationConceptResponseDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptResponseDTO: + """Test ServicingV2ObjectconfigurationConceptResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptResponseDTO( + concepts = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_with_context_dto.servicing.v2.objectconfiguration.ConceptWithContextDTO( + concept = None, + execution_context = None, ) + ] + ) + else: + return ServicingV2ObjectconfigurationConceptResponseDTO( + ) + + def testServicingV2ObjectconfigurationConceptResponseDTO(self): + """Test ServicingV2ObjectconfigurationConceptResponseDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_type_details_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_type_details_dto.py new file mode 100644 index 0000000000..1410400f44 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_type_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_type_details_dto import ServicingV2ObjectconfigurationConceptTypeDetailsDTO + +class TestServicingV2ObjectconfigurationConceptTypeDetailsDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptTypeDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptTypeDetailsDTO: + """Test ServicingV2ObjectconfigurationConceptTypeDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptTypeDetailsDTO( + process = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_definition_dto.servicing.v2.objectconfiguration.ProcessConceptDefinitionDTO( + analytic_object_name = '', + include_with_vee = True, + metric_list = None, + on_hold_concept_uuid = '', + outcome_list = None, + participation_concept_uuid = '', + property_list = None, + stage_list = None, + status_dimension_object_name = '', + tag_list = None, + visible_in_analytics = True, ) + ) + else: + return ServicingV2ObjectconfigurationConceptTypeDetailsDTO( + ) + + def testServicingV2ObjectconfigurationConceptTypeDetailsDTO(self): + """Test ServicingV2ObjectconfigurationConceptTypeDetailsDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptTypeDetailsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptTypeDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_concept_with_context_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_with_context_dto.py new file mode 100644 index 0000000000..257b7ca4da --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_concept_with_context_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_concept_with_context_dto import ServicingV2ObjectconfigurationConceptWithContextDTO + +class TestServicingV2ObjectconfigurationConceptWithContextDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationConceptWithContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationConceptWithContextDTO: + """Test ServicingV2ObjectconfigurationConceptWithContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationConceptWithContextDTO( + concept = visier_api_analytic_model.models.servicing/v2/objectconfiguration/concept_definition_dto.servicing.v2.objectconfiguration.ConceptDefinitionDTO( + basic_information = None, + details = None, + object_name = '', + uuid = '', ), + execution_context = visier_api_analytic_model.models.servicing/v2/objectconfiguration/execution_context_dto.servicing.v2.objectconfiguration.ExecutionContextDTO( + project_id = '', + tenant_code = '', ) + ) + else: + return ServicingV2ObjectconfigurationConceptWithContextDTO( + ) + + def testServicingV2ObjectconfigurationConceptWithContextDTO(self): + """Test ServicingV2ObjectconfigurationConceptWithContextDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationConceptWithContextDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationConceptWithContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_execution_context_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_execution_context_dto.py new file mode 100644 index 0000000000..1a589e9b25 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_execution_context_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO + +class TestServicingV2ObjectconfigurationExecutionContextDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationExecutionContextDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationExecutionContextDTO: + """Test ServicingV2ObjectconfigurationExecutionContextDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationExecutionContextDTO( + project_id = '', + tenant_code = '' + ) + else: + return ServicingV2ObjectconfigurationExecutionContextDTO( + ) + + def testServicingV2ObjectconfigurationExecutionContextDTO(self): + """Test ServicingV2ObjectconfigurationExecutionContextDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationExecutionContextDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_failed_change_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_failed_change_dto.py new file mode 100644 index 0000000000..a17f9bb17b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_failed_change_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_failed_change_dto import ServicingV2ObjectconfigurationFailedChangeDTO + +class TestServicingV2ObjectconfigurationFailedChangeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationFailedChangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationFailedChangeDTO: + """Test ServicingV2ObjectconfigurationFailedChangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationFailedChangeDTO( + display_name = '', + execution_context = visier_api_analytic_model.models.servicing/v2/objectconfiguration/execution_context_dto.servicing.v2.objectconfiguration.ExecutionContextDTO( + project_id = '', + tenant_code = '', ), + messages = [ + '' + ], + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationFailedChangeDTO( + ) + + def testServicingV2ObjectconfigurationFailedChangeDTO(self): + """Test ServicingV2ObjectconfigurationFailedChangeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationFailedChangeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationFailedChangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_metric_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_metric_definition_dto.py new file mode 100644 index 0000000000..98f1b9e549 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_metric_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_metric_definition_dto import ServicingV2ObjectconfigurationMetricDefinitionDTO + +class TestServicingV2ObjectconfigurationMetricDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationMetricDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationMetricDefinitionDTO: + """Test ServicingV2ObjectconfigurationMetricDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationMetricDefinitionDTO( + additive_type = 'fullyAdditive', + basic_information = visier_api_analytic_model.models.servicing/v2/objectconfiguration/basic_information_dto.servicing.v2.objectconfiguration.BasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = None, ), + details = visier_api_analytic_model.models.servicing/v2/objectconfiguration/metric_type_details_dto.servicing.v2.objectconfiguration.MetricTypeDetailsDTO( + process_concept = None, ), + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationMetricDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationMetricDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationMetricDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationMetricDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationMetricDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_metric_type_details_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_metric_type_details_dto.py new file mode 100644 index 0000000000..2aa7677f84 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_metric_type_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_metric_type_details_dto import ServicingV2ObjectconfigurationMetricTypeDetailsDTO + +class TestServicingV2ObjectconfigurationMetricTypeDetailsDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationMetricTypeDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationMetricTypeDetailsDTO: + """Test ServicingV2ObjectconfigurationMetricTypeDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationMetricTypeDetailsDTO( + process_concept = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_metric_definition_dto.servicing.v2.objectconfiguration.ProcessConceptMetricDefinitionDTO( + data_type = '', + formula = '', + visible_in_analytics = True, ) + ) + else: + return ServicingV2ObjectconfigurationMetricTypeDetailsDTO( + ) + + def testServicingV2ObjectconfigurationMetricTypeDetailsDTO(self): + """Test ServicingV2ObjectconfigurationMetricTypeDetailsDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationMetricTypeDetailsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationMetricTypeDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_definition_dto.py new file mode 100644 index 0000000000..586c954b49 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_definition_dto import ServicingV2ObjectconfigurationProcessConceptDefinitionDTO + +class TestServicingV2ObjectconfigurationProcessConceptDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptDefinitionDTO: + """Test ServicingV2ObjectconfigurationProcessConceptDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptDefinitionDTO( + analytic_object_name = '', + include_with_vee = True, + metric_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_metric_list_dto.servicing.v2.objectconfiguration.ProcessConceptMetricListDTO( + metrics = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/metric_definition_dto.servicing.v2.objectconfiguration.MetricDefinitionDTO( + additive_type = 'fullyAdditive', + basic_information = None, + details = None, + object_name = '', + uuid = '', ) + ], ), + on_hold_concept_uuid = '', + outcome_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_outcome_list_dto.servicing.v2.objectconfiguration.ProcessConceptOutcomeListDTO( + outcomes = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_outcome_dto.servicing.v2.objectconfiguration.ProcessConceptOutcomeDTO( + basic_information = None, + mapped_member_list = None, + object_name = '', + outcome_semantic = 'Success', + uuid = '', ) + ], ), + participation_concept_uuid = '', + property_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_property_list_dto.servicing.v2.objectconfiguration.ProcessConceptPropertyListDTO( + properties = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/property_definition_dto.servicing.v2.objectconfiguration.PropertyDefinitionDTO( + basic_information = None, + details = None, + object_name = '', + uuid = '', ) + ], ), + stage_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_stage_list_dto.servicing.v2.objectconfiguration.ProcessConceptStageListDTO( + stages = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_stage_dto.servicing.v2.objectconfiguration.ProcessConceptStageDTO( + basic_information = None, + mapped_member_list = None, + object_name = '', + uuid = '', ) + ], ), + status_dimension_object_name = '', + tag_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/tag_reference_list_dto.servicing.v2.objectconfiguration.TagReferenceListDTO( + tags = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/tag_reference_dto.servicing.v2.objectconfiguration.TagReferenceDTO( + object_name = '', ) + ], ), + visible_in_analytics = True + ) + else: + return ServicingV2ObjectconfigurationProcessConceptDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_member_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_member_dto.py new file mode 100644 index 0000000000..c172f8e8ab --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_member_dto import ServicingV2ObjectconfigurationProcessConceptMemberDTO + +class TestServicingV2ObjectconfigurationProcessConceptMemberDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptMemberDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptMemberDTO: + """Test ServicingV2ObjectconfigurationProcessConceptMemberDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptMemberDTO( + display_name = '', + name_path = [ + '' + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptMemberDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptMemberDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptMemberDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptMemberDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptMemberDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_member_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_member_list_dto.py new file mode 100644 index 0000000000..15a793fb75 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_member_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_member_list_dto import ServicingV2ObjectconfigurationProcessConceptMemberListDTO + +class TestServicingV2ObjectconfigurationProcessConceptMemberListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptMemberListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptMemberListDTO: + """Test ServicingV2ObjectconfigurationProcessConceptMemberListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptMemberListDTO( + members = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_member_dto.servicing.v2.objectconfiguration.ProcessConceptMemberDTO( + display_name = '', + name_path = [ + '' + ], ) + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptMemberListDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptMemberListDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptMemberListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptMemberListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptMemberListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_metric_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_metric_definition_dto.py new file mode 100644 index 0000000000..1ce42977d1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_metric_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_metric_definition_dto import ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO + +class TestServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO: + """Test ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO( + data_type = '', + formula = '', + visible_in_analytics = True + ) + else: + return ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_metric_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_metric_list_dto.py new file mode 100644 index 0000000000..3a7bbed6ae --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_metric_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_metric_list_dto import ServicingV2ObjectconfigurationProcessConceptMetricListDTO + +class TestServicingV2ObjectconfigurationProcessConceptMetricListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptMetricListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptMetricListDTO: + """Test ServicingV2ObjectconfigurationProcessConceptMetricListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptMetricListDTO( + metrics = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/metric_definition_dto.servicing.v2.objectconfiguration.MetricDefinitionDTO( + additive_type = 'fullyAdditive', + basic_information = None, + details = None, + object_name = '', + uuid = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptMetricListDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptMetricListDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptMetricListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptMetricListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptMetricListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_outcome_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_outcome_dto.py new file mode 100644 index 0000000000..63c4cde569 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_outcome_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_outcome_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeDTO + +class TestServicingV2ObjectconfigurationProcessConceptOutcomeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptOutcomeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptOutcomeDTO: + """Test ServicingV2ObjectconfigurationProcessConceptOutcomeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptOutcomeDTO( + basic_information = visier_api_analytic_model.models.servicing/v2/objectconfiguration/basic_information_dto.servicing.v2.objectconfiguration.BasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = None, ), + mapped_member_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_member_list_dto.servicing.v2.objectconfiguration.ProcessConceptMemberListDTO( + members = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_member_dto.servicing.v2.objectconfiguration.ProcessConceptMemberDTO( + display_name = '', + name_path = [ + '' + ], ) + ], ), + object_name = '', + outcome_semantic = 'Success', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationProcessConceptOutcomeDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptOutcomeDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptOutcomeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptOutcomeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptOutcomeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_outcome_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_outcome_list_dto.py new file mode 100644 index 0000000000..423ed91d11 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_outcome_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_outcome_list_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO + +class TestServicingV2ObjectconfigurationProcessConceptOutcomeListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO: + """Test ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO( + outcomes = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_outcome_dto.servicing.v2.objectconfiguration.ProcessConceptOutcomeDTO( + basic_information = None, + mapped_member_list = None, + object_name = '', + outcome_semantic = 'Success', + uuid = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptOutcomeListDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_property_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_property_list_dto.py new file mode 100644 index 0000000000..8528d62f0b --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_property_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_property_list_dto import ServicingV2ObjectconfigurationProcessConceptPropertyListDTO + +class TestServicingV2ObjectconfigurationProcessConceptPropertyListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptPropertyListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptPropertyListDTO: + """Test ServicingV2ObjectconfigurationProcessConceptPropertyListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptPropertyListDTO( + properties = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/property_definition_dto.servicing.v2.objectconfiguration.PropertyDefinitionDTO( + basic_information = None, + details = None, + object_name = '', + uuid = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptPropertyListDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptPropertyListDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptPropertyListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptPropertyListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptPropertyListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_property_type_dto.py new file mode 100644 index 0000000000..66f41d4f46 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_property_type_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_property_type_dto import ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO + +class TestServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO: + """Test ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO( + data_type = '', + formula = '', + primitive_type = '' + ) + else: + return ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_stage_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_stage_dto.py new file mode 100644 index 0000000000..1125fce9c7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_stage_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_stage_dto import ServicingV2ObjectconfigurationProcessConceptStageDTO + +class TestServicingV2ObjectconfigurationProcessConceptStageDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptStageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptStageDTO: + """Test ServicingV2ObjectconfigurationProcessConceptStageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptStageDTO( + basic_information = visier_api_analytic_model.models.servicing/v2/objectconfiguration/basic_information_dto.servicing.v2.objectconfiguration.BasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = None, ), + mapped_member_list = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_member_list_dto.servicing.v2.objectconfiguration.ProcessConceptMemberListDTO( + members = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_member_dto.servicing.v2.objectconfiguration.ProcessConceptMemberDTO( + display_name = '', + name_path = [ + '' + ], ) + ], ), + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationProcessConceptStageDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptStageDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptStageDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptStageDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptStageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_process_concept_stage_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_stage_list_dto.py new file mode 100644 index 0000000000..e1e040049a --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_process_concept_stage_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_process_concept_stage_list_dto import ServicingV2ObjectconfigurationProcessConceptStageListDTO + +class TestServicingV2ObjectconfigurationProcessConceptStageListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationProcessConceptStageListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationProcessConceptStageListDTO: + """Test ServicingV2ObjectconfigurationProcessConceptStageListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationProcessConceptStageListDTO( + stages = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_stage_dto.servicing.v2.objectconfiguration.ProcessConceptStageDTO( + basic_information = None, + mapped_member_list = None, + object_name = '', + uuid = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationProcessConceptStageListDTO( + ) + + def testServicingV2ObjectconfigurationProcessConceptStageListDTO(self): + """Test ServicingV2ObjectconfigurationProcessConceptStageListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationProcessConceptStageListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationProcessConceptStageListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_property_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_property_definition_dto.py new file mode 100644 index 0000000000..8075ec0113 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_property_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_property_definition_dto import ServicingV2ObjectconfigurationPropertyDefinitionDTO + +class TestServicingV2ObjectconfigurationPropertyDefinitionDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationPropertyDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationPropertyDefinitionDTO: + """Test ServicingV2ObjectconfigurationPropertyDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationPropertyDefinitionDTO( + basic_information = visier_api_analytic_model.models.servicing/v2/objectconfiguration/basic_information_dto.servicing.v2.objectconfiguration.BasicInformationDTO( + description = '', + designer_notes = '', + display_name = '', + explanation = '', + short_display_name = '', + synonym_list = None, ), + details = visier_api_analytic_model.models.servicing/v2/objectconfiguration/property_type_details_dto.servicing.v2.objectconfiguration.PropertyTypeDetailsDTO( + calculated = None, + process_concept = None, + simple = None, ), + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationPropertyDefinitionDTO( + ) + + def testServicingV2ObjectconfigurationPropertyDefinitionDTO(self): + """Test ServicingV2ObjectconfigurationPropertyDefinitionDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationPropertyDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationPropertyDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_property_type_details_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_property_type_details_dto.py new file mode 100644 index 0000000000..5fac0814ac --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_property_type_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_property_type_details_dto import ServicingV2ObjectconfigurationPropertyTypeDetailsDTO + +class TestServicingV2ObjectconfigurationPropertyTypeDetailsDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationPropertyTypeDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationPropertyTypeDetailsDTO: + """Test ServicingV2ObjectconfigurationPropertyTypeDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationPropertyTypeDetailsDTO( + calculated = visier_api_analytic_model.models.servicing/v2/objectconfiguration/calculated_property_type_dto.servicing.v2.objectconfiguration.CalculatedPropertyTypeDTO( + data_type = '', + formula = '', + primitive_type = '', ), + process_concept = visier_api_analytic_model.models.servicing/v2/objectconfiguration/process_concept_property_type_dto.servicing.v2.objectconfiguration.ProcessConceptPropertyTypeDTO( + data_type = '', + formula = '', + primitive_type = '', ), + simple = visier_api_analytic_model.models.servicing/v2/objectconfiguration/simple_property_type_dto.servicing.v2.objectconfiguration.SimplePropertyTypeDTO( + data_type = '', + primitive_type = '', ) + ) + else: + return ServicingV2ObjectconfigurationPropertyTypeDetailsDTO( + ) + + def testServicingV2ObjectconfigurationPropertyTypeDetailsDTO(self): + """Test ServicingV2ObjectconfigurationPropertyTypeDetailsDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationPropertyTypeDetailsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationPropertyTypeDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..59c57addc8 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_simple_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_simple_property_type_dto import ServicingV2ObjectconfigurationSimplePropertyTypeDTO + +class TestServicingV2ObjectconfigurationSimplePropertyTypeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationSimplePropertyTypeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationSimplePropertyTypeDTO: + """Test ServicingV2ObjectconfigurationSimplePropertyTypeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationSimplePropertyTypeDTO( + data_type = '', + primitive_type = '' + ) + else: + return ServicingV2ObjectconfigurationSimplePropertyTypeDTO( + ) + + def testServicingV2ObjectconfigurationSimplePropertyTypeDTO(self): + """Test ServicingV2ObjectconfigurationSimplePropertyTypeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationSimplePropertyTypeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationSimplePropertyTypeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_successful_change_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_successful_change_dto.py new file mode 100644 index 0000000000..4484aab327 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_successful_change_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_successful_change_dto import ServicingV2ObjectconfigurationSuccessfulChangeDTO + +class TestServicingV2ObjectconfigurationSuccessfulChangeDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationSuccessfulChangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationSuccessfulChangeDTO: + """Test ServicingV2ObjectconfigurationSuccessfulChangeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationSuccessfulChangeDTO( + display_name = '', + execution_context = visier_api_analytic_model.models.servicing/v2/objectconfiguration/execution_context_dto.servicing.v2.objectconfiguration.ExecutionContextDTO( + project_id = '', + tenant_code = '', ), + object_name = '', + uuid = '' + ) + else: + return ServicingV2ObjectconfigurationSuccessfulChangeDTO( + ) + + def testServicingV2ObjectconfigurationSuccessfulChangeDTO(self): + """Test ServicingV2ObjectconfigurationSuccessfulChangeDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationSuccessfulChangeDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationSuccessfulChangeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_synonym_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_synonym_list_dto.py new file mode 100644 index 0000000000..25feec90b7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_synonym_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_synonym_list_dto import ServicingV2ObjectconfigurationSynonymListDTO + +class TestServicingV2ObjectconfigurationSynonymListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationSynonymListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationSynonymListDTO: + """Test ServicingV2ObjectconfigurationSynonymListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationSynonymListDTO( + synonyms = [ + '' + ] + ) + else: + return ServicingV2ObjectconfigurationSynonymListDTO( + ) + + def testServicingV2ObjectconfigurationSynonymListDTO(self): + """Test ServicingV2ObjectconfigurationSynonymListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationSynonymListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationSynonymListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_tag_reference_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_tag_reference_dto.py new file mode 100644 index 0000000000..769e6d82cb --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_tag_reference_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_tag_reference_dto import ServicingV2ObjectconfigurationTagReferenceDTO + +class TestServicingV2ObjectconfigurationTagReferenceDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationTagReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationTagReferenceDTO: + """Test ServicingV2ObjectconfigurationTagReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationTagReferenceDTO( + object_name = '' + ) + else: + return ServicingV2ObjectconfigurationTagReferenceDTO( + ) + + def testServicingV2ObjectconfigurationTagReferenceDTO(self): + """Test ServicingV2ObjectconfigurationTagReferenceDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationTagReferenceDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationTagReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_v2_objectconfiguration_tag_reference_list_dto.py b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_tag_reference_list_dto.py new file mode 100644 index 0000000000..3a833f7cf1 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_v2_objectconfiguration_tag_reference_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_v2_objectconfiguration_tag_reference_list_dto import ServicingV2ObjectconfigurationTagReferenceListDTO + +class TestServicingV2ObjectconfigurationTagReferenceListDTO(unittest.TestCase): + """ServicingV2ObjectconfigurationTagReferenceListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingV2ObjectconfigurationTagReferenceListDTO: + """Test ServicingV2ObjectconfigurationTagReferenceListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingV2ObjectconfigurationTagReferenceListDTO( + tags = [ + visier_api_analytic_model.models.servicing/v2/objectconfiguration/tag_reference_dto.servicing.v2.objectconfiguration.TagReferenceDTO( + object_name = '', ) + ] + ) + else: + return ServicingV2ObjectconfigurationTagReferenceListDTO( + ) + + def testServicingV2ObjectconfigurationTagReferenceListDTO(self): + """Test ServicingV2ObjectconfigurationTagReferenceListDTO""" + def validate_instance(instance): + ServicingV2ObjectconfigurationTagReferenceListDTO.model_validate(inst_req_only) + instance_deserialized = ServicingV2ObjectconfigurationTagReferenceListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_question_change_definition_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_definition_dto.py new file mode 100644 index 0000000000..d03e52df98 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_question_change_definition_dto import ServicingVeeQuestionChangeDefinitionDTO + +class TestServicingVeeQuestionChangeDefinitionDTO(unittest.TestCase): + """ServicingVeeQuestionChangeDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionChangeDefinitionDTO: + """Test ServicingVeeQuestionChangeDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionChangeDefinitionDTO( + category_id = '', + question = '', + question_id = '', + user_group_assignment = visier_api_analytic_model.models.servicing/user_group_assignment_dto.servicing.UserGroupAssignmentDTO( + user_group_ids = [ + '' + ], ), + visible_in_vee = True + ) + else: + return ServicingVeeQuestionChangeDefinitionDTO( + ) + + def testServicingVeeQuestionChangeDefinitionDTO(self): + """Test ServicingVeeQuestionChangeDefinitionDTO""" + def validate_instance(instance): + ServicingVeeQuestionChangeDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionChangeDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_question_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..1ad7ad80f3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_definitions_by_tenant_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_question_change_definitions_by_tenant_dto import ServicingVeeQuestionChangeDefinitionsByTenantDTO + +class TestServicingVeeQuestionChangeDefinitionsByTenantDTO(unittest.TestCase): + """ServicingVeeQuestionChangeDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionChangeDefinitionsByTenantDTO: + """Test ServicingVeeQuestionChangeDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionChangeDefinitionsByTenantDTO( + project_id = '', + questions = [ + visier_api_analytic_model.models.servicing/vee_question_change_definition_dto.servicing.VeeQuestionChangeDefinitionDTO( + category_id = '', + question = '', + question_id = '', + user_group_assignment = None, + visible_in_vee = True, ) + ], + tenant_code = '' + ) + else: + return ServicingVeeQuestionChangeDefinitionsByTenantDTO( + ) + + def testServicingVeeQuestionChangeDefinitionsByTenantDTO(self): + """Test ServicingVeeQuestionChangeDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingVeeQuestionChangeDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionChangeDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_question_change_failure_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_failure_dto.py new file mode 100644 index 0000000000..7dc529eee3 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_failure_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_question_change_failure_dto import ServicingVeeQuestionChangeFailureDTO + +class TestServicingVeeQuestionChangeFailureDTO(unittest.TestCase): + """ServicingVeeQuestionChangeFailureDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionChangeFailureDTO: + """Test ServicingVeeQuestionChangeFailureDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionChangeFailureDTO( + category_id = '', + message = '', + project_id = '', + question = '', + question_id = '', + rci = '', + tenant_code = '', + user_group_assignment = visier_api_analytic_model.models.servicing/user_group_assignment_dto.servicing.UserGroupAssignmentDTO( + user_group_ids = [ + '' + ], ) + ) + else: + return ServicingVeeQuestionChangeFailureDTO( + ) + + def testServicingVeeQuestionChangeFailureDTO(self): + """Test ServicingVeeQuestionChangeFailureDTO""" + def validate_instance(instance): + ServicingVeeQuestionChangeFailureDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionChangeFailureDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_question_change_success_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_success_dto.py new file mode 100644 index 0000000000..a9a512f7f7 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_question_change_success_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_question_change_success_dto import ServicingVeeQuestionChangeSuccessDTO + +class TestServicingVeeQuestionChangeSuccessDTO(unittest.TestCase): + """ServicingVeeQuestionChangeSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionChangeSuccessDTO: + """Test ServicingVeeQuestionChangeSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionChangeSuccessDTO( + category_id = '', + project_id = '', + question = '', + question_id = '', + tenant_code = '', + user_group_assignment = visier_api_analytic_model.models.servicing/user_group_assignment_dto.servicing.UserGroupAssignmentDTO( + user_group_ids = [ + '' + ], ), + visible_in_vee = True + ) + else: + return ServicingVeeQuestionChangeSuccessDTO( + ) + + def testServicingVeeQuestionChangeSuccessDTO(self): + """Test ServicingVeeQuestionChangeSuccessDTO""" + def validate_instance(instance): + ServicingVeeQuestionChangeSuccessDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionChangeSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_question_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_question_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..d17379c074 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_question_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_question_delete_definitions_by_tenant_dto import ServicingVeeQuestionDeleteDefinitionsByTenantDTO + +class TestServicingVeeQuestionDeleteDefinitionsByTenantDTO(unittest.TestCase): + """ServicingVeeQuestionDeleteDefinitionsByTenantDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionDeleteDefinitionsByTenantDTO: + """Test ServicingVeeQuestionDeleteDefinitionsByTenantDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionDeleteDefinitionsByTenantDTO( + project_id = '', + question_ids = [ + '' + ], + tenant_code = '' + ) + else: + return ServicingVeeQuestionDeleteDefinitionsByTenantDTO( + ) + + def testServicingVeeQuestionDeleteDefinitionsByTenantDTO(self): + """Test ServicingVeeQuestionDeleteDefinitionsByTenantDTO""" + def validate_instance(instance): + ServicingVeeQuestionDeleteDefinitionsByTenantDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionDeleteDefinitionsByTenantDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_questions_bulk_change_response_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_questions_bulk_change_response_dto.py new file mode 100644 index 0000000000..9c207d0e40 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_questions_bulk_change_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_questions_bulk_change_response_dto import ServicingVeeQuestionsBulkChangeResponseDTO + +class TestServicingVeeQuestionsBulkChangeResponseDTO(unittest.TestCase): + """ServicingVeeQuestionsBulkChangeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionsBulkChangeResponseDTO: + """Test ServicingVeeQuestionsBulkChangeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionsBulkChangeResponseDTO( + failures = [ + visier_api_analytic_model.models.servicing/vee_question_change_failure_dto.servicing.VeeQuestionChangeFailureDTO( + category_id = '', + message = '', + project_id = '', + question = '', + question_id = '', + rci = '', + tenant_code = '', + user_group_assignment = None, ) + ], + successes = [ + visier_api_analytic_model.models.servicing/vee_question_change_success_dto.servicing.VeeQuestionChangeSuccessDTO( + category_id = '', + project_id = '', + question = '', + question_id = '', + tenant_code = '', + user_group_assignment = None, + visible_in_vee = True, ) + ] + ) + else: + return ServicingVeeQuestionsBulkChangeResponseDTO( + ) + + def testServicingVeeQuestionsBulkChangeResponseDTO(self): + """Test ServicingVeeQuestionsBulkChangeResponseDTO""" + def validate_instance(instance): + ServicingVeeQuestionsBulkChangeResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionsBulkChangeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_questions_change_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_questions_change_definitions_dto.py new file mode 100644 index 0000000000..8242bd5ee9 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_questions_change_definitions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_questions_change_definitions_dto import ServicingVeeQuestionsChangeDefinitionsDTO + +class TestServicingVeeQuestionsChangeDefinitionsDTO(unittest.TestCase): + """ServicingVeeQuestionsChangeDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionsChangeDefinitionsDTO: + """Test ServicingVeeQuestionsChangeDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionsChangeDefinitionsDTO( + questions_by_tenant = [ + visier_api_analytic_model.models.servicing/vee_question_change_definitions_by_tenant_dto.servicing.VeeQuestionChangeDefinitionsByTenantDTO( + project_id = '', + questions = [ + visier_api_analytic_model.models.servicing/vee_question_change_definition_dto.servicing.VeeQuestionChangeDefinitionDTO( + category_id = '', + question = '', + question_id = '', + user_group_assignment = None, + visible_in_vee = True, ) + ], + tenant_code = '', ) + ] + ) + else: + return ServicingVeeQuestionsChangeDefinitionsDTO( + ) + + def testServicingVeeQuestionsChangeDefinitionsDTO(self): + """Test ServicingVeeQuestionsChangeDefinitionsDTO""" + def validate_instance(instance): + ServicingVeeQuestionsChangeDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionsChangeDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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_vee_questions_delete_definitions_dto.py b/src/visier_api_analytic_model/test/test_servicing_vee_questions_delete_definitions_dto.py new file mode 100644 index 0000000000..4bdd7c9501 --- /dev/null +++ b/src/visier_api_analytic_model/test/test_servicing_vee_questions_delete_definitions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change 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_vee_questions_delete_definitions_dto import ServicingVeeQuestionsDeleteDefinitionsDTO + +class TestServicingVeeQuestionsDeleteDefinitionsDTO(unittest.TestCase): + """ServicingVeeQuestionsDeleteDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingVeeQuestionsDeleteDefinitionsDTO: + """Test ServicingVeeQuestionsDeleteDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingVeeQuestionsDeleteDefinitionsDTO( + questions_by_tenant = [ + visier_api_analytic_model.models.servicing/vee_question_delete_definitions_by_tenant_dto.servicing.VeeQuestionDeleteDefinitionsByTenantDTO( + project_id = '', + question_ids = [ + '' + ], + tenant_code = '', ) + ] + ) + else: + return ServicingVeeQuestionsDeleteDefinitionsDTO( + ) + + def testServicingVeeQuestionsDeleteDefinitionsDTO(self): + """Test ServicingVeeQuestionsDeleteDefinitionsDTO""" + def validate_instance(instance): + ServicingVeeQuestionsDeleteDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = ServicingVeeQuestionsDeleteDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_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 23acd2505d..86b88ca311 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 b6ac795aa7..d0d55cac52 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,9 +16,10 @@ """ # noqa: E501 -__version__ = "0.99201.1793" +__version__ = "0.99201.1830" # import apis into sdk package +from visier_api_analytic_model.api.concepts_v2_api import ConceptsV2Api from visier_api_analytic_model.api.data_model_api import DataModelApi from visier_api_analytic_model.api.object_configuration_api import ObjectConfigurationApi @@ -26,89 +27,138 @@ # import models into sdk package 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.dataservices_datamodel_aggregation_type_option_dto import DataservicesDatamodelAggregationTypeOptionDTO +from visier_api_analytic_model.models.dataservices_datamodel_aggregation_type_parameter_dto import DataservicesDatamodelAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_analytic_object_dto import DataservicesDatamodelAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_analytic_objects_dto import DataservicesDatamodelAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_currencies_dto import DataservicesDatamodelCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_dto import DataservicesDatamodelCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_rate_dto import DataservicesDatamodelCurrencyRateDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_rates_dto import DataservicesDatamodelCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_dto import DataservicesDatamodelDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_dto import DataservicesDatamodelDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_execution_dto import DataservicesDatamodelDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimensions_dto import DataservicesDatamodelDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_level_dto import DataservicesDatamodelLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_member_dto import DataservicesDatamodelMemberDTO +from visier_api_analytic_model.models.dataservices_datamodel_member_parameter_definition_dto import DataservicesDatamodelMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_members_dto import DataservicesDatamodelMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_metric_dto import DataservicesDatamodelMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_metrics_dto import DataservicesDatamodelMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_numeric_parameter_definition_dto import DataservicesDatamodelNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_object_reference_dto import DataservicesDatamodelObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_parameter_definition_dto import DataservicesDatamodelParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_plan_parameter_definition_dto import DataservicesDatamodelPlanParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_concept_filter_context_dto import DataservicesDatamodelPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_hierarchy_filter_context_dto import DataservicesDatamodelPlanningHierarchyFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_model_dto import DataservicesDatamodelPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_models_dto import DataservicesDatamodelPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plan_context_dto import DataservicesDatamodelPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plan_dto import DataservicesDatamodelPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plans_dto import DataservicesDatamodelPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_population_configuration_dto import DataservicesDatamodelPopulationConfigurationDTO +from visier_api_analytic_model.models.dataservices_datamodel_prediction_dto import DataservicesDatamodelPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_predictions_dto import DataservicesDatamodelPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_properties_dto import DataservicesDatamodelPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_dto import DataservicesDatamodelPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_scenario_or_snapshot_dto import DataservicesDatamodelScenarioOrSnapshotDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concept_dto import DataservicesDatamodelSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concepts_dto import DataservicesDatamodelSelectionConceptsDTO +from visier_api_analytic_model.models.dataservices_datamodel_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO +from visier_api_analytic_model.models.dataservices_datamodel_validity_range_dto import DataservicesDatamodelValidityRangeDTO +from visier_api_analytic_model.models.designer_api_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_configuration_dto import DesignerApiCalculationConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_configuration_map_dto import DesignerApiCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_dto import DesignerApiCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_list_dto import DesignerApiCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_concept_configuration_result_dto import DesignerApiConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_dimension_filter_dto import DesignerApiDimensionFilterDTO +from visier_api_analytic_model.models.designer_api_dimension_member_dto import DesignerApiDimensionMemberDTO +from visier_api_analytic_model.models.designer_api_perspective_configuration_dto import DesignerApiPerspectiveConfigurationDTO +from visier_api_analytic_model.models.designer_api_perspective_node_dto import DesignerApiPerspectiveNodeDTO +from visier_api_analytic_model.models.designer_api_selection_concept_configuration_dto import DesignerApiSelectionConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_selection_concept_configuration_map_dto import DesignerApiSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_selection_concept_dto import DesignerApiSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_selection_concept_list_dto import DesignerApiSelectionConceptListDTO +from visier_api_analytic_model.models.planning_get_plan_list_response_dto import PlanningGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_plan_data_load_error_dto import PlanningPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_plan_info_dto import PlanningPlanInfoDTO +from visier_api_analytic_model.models.planning_plan_item_dto import PlanningPlanItemDTO +from visier_api_analytic_model.models.planning_plan_schema_dto import PlanningPlanSchemaDTO +from visier_api_analytic_model.models.planning_plan_segment_level_dto import PlanningPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_plan_segment_level_member_dto import PlanningPlanSegmentLevelMemberDTO +from visier_api_analytic_model.models.planning_plan_segment_level_member_list_dto import PlanningPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_plan_time_period_dto import PlanningPlanTimePeriodDTO +from visier_api_analytic_model.models.planning_plan_with_schema_dto import PlanningPlanWithSchemaDTO +from visier_api_analytic_model.models.planning_scenario_info_dto import PlanningScenarioInfoDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_calculated_property_type_dto import ServicingObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dependent_dto import ServicingObjectconfigurationDependentDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimension_change_definition_dto import ServicingObjectconfigurationDimensionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimensions_change_definitions_dto import ServicingObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_object_change_failure_dto import ServicingObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_object_change_success_dto import ServicingObjectconfigurationObjectChangeSuccessDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_objects_bulk_change_response_dto import ServicingObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_change_definitions_dto import ServicingObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_delete_definitions_dto import ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_bulk_delete_response_dto import ServicingObjectconfigurationPropertyBulkDeleteResponseDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_change_definition_dto import ServicingObjectconfigurationPropertyChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_failure_dto import ServicingObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_success_dto import ServicingObjectconfigurationPropertyDeleteSuccessDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_type_dto import ServicingObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_simple_property_type_dto import ServicingObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_tags_dto import ServicingObjectconfigurationTagsDTO +from visier_api_analytic_model.models.servicing_question_categories_api_response_dto import ServicingQuestionCategoriesAPIResponseDTO +from visier_api_analytic_model.models.servicing_question_category_api_response_dto import ServicingQuestionCategoryAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_question_api_response_dto import ServicingSampleQuestionAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_questions_api_response_dto import ServicingSampleQuestionsAPIResponseDTO +from visier_api_analytic_model.models.servicing_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_definition_dto import ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_request_dto import ServicingV2ObjectconfigurationAnalyticObjectRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_with_context_dto import ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_bulk_change_response_dto import ServicingV2ObjectconfigurationBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_calculated_property_type_dto import ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_definition_dto import ServicingV2ObjectconfigurationConceptDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_dto import ServicingV2ObjectconfigurationConceptDeleteDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_request_dto import ServicingV2ObjectconfigurationConceptDeleteRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_with_context_dto import ServicingV2ObjectconfigurationConceptDeleteWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_request_dto import ServicingV2ObjectconfigurationConceptRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_response_dto import ServicingV2ObjectconfigurationConceptResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_type_details_dto import ServicingV2ObjectconfigurationConceptTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_with_context_dto import ServicingV2ObjectconfigurationConceptWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_failed_change_dto import ServicingV2ObjectconfigurationFailedChangeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_metric_definition_dto import ServicingV2ObjectconfigurationMetricDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_metric_type_details_dto import ServicingV2ObjectconfigurationMetricTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_definition_dto import ServicingV2ObjectconfigurationProcessConceptDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_dto import ServicingV2ObjectconfigurationProcessConceptMemberDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_list_dto import ServicingV2ObjectconfigurationProcessConceptMemberListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_metric_definition_dto import ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_metric_list_dto import ServicingV2ObjectconfigurationProcessConceptMetricListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_outcome_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_outcome_list_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_list_dto import ServicingV2ObjectconfigurationProcessConceptPropertyListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_type_dto import ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_stage_dto import ServicingV2ObjectconfigurationProcessConceptStageDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_stage_list_dto import ServicingV2ObjectconfigurationProcessConceptStageListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_property_definition_dto import ServicingV2ObjectconfigurationPropertyDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_property_type_details_dto import ServicingV2ObjectconfigurationPropertyTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_simple_property_type_dto import ServicingV2ObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_successful_change_dto import ServicingV2ObjectconfigurationSuccessfulChangeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_synonym_list_dto import ServicingV2ObjectconfigurationSynonymListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_tag_reference_dto import ServicingV2ObjectconfigurationTagReferenceDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_tag_reference_list_dto import ServicingV2ObjectconfigurationTagReferenceListDTO +from visier_api_analytic_model.models.servicing_vee_question_change_definition_dto import ServicingVeeQuestionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_vee_question_change_definitions_by_tenant_dto import ServicingVeeQuestionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_vee_question_change_failure_dto import ServicingVeeQuestionChangeFailureDTO +from visier_api_analytic_model.models.servicing_vee_question_change_success_dto import ServicingVeeQuestionChangeSuccessDTO +from visier_api_analytic_model.models.servicing_vee_question_delete_definitions_by_tenant_dto import ServicingVeeQuestionDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_vee_questions_bulk_change_response_dto import ServicingVeeQuestionsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_vee_questions_change_definitions_dto import ServicingVeeQuestionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_vee_questions_delete_definitions_dto import ServicingVeeQuestionsDeleteDefinitionsDTO from visier_api_analytic_model.models.status import Status diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/api/__init__.py b/src/visier_api_analytic_model/visier_api_analytic_model/api/__init__.py index 9a56b822ee..3dc36fecdf 100644 --- a/src/visier_api_analytic_model/visier_api_analytic_model/api/__init__.py +++ b/src/visier_api_analytic_model/visier_api_analytic_model/api/__init__.py @@ -1,6 +1,7 @@ # flake8: noqa # import apis into api package +from visier_api_analytic_model.api.concepts_v2_api import ConceptsV2Api from visier_api_analytic_model.api.data_model_api import DataModelApi from visier_api_analytic_model.api.object_configuration_api import ObjectConfigurationApi diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/api/concepts_v2_api.py b/src/visier_api_analytic_model/visier_api_analytic_model/api/concepts_v2_api.py new file mode 100644 index 0000000000..0caab99742 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/api/concepts_v2_api.py @@ -0,0 +1,1690 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from visier_api_core import ApiClient, ApiResponse, RequestSerialized, RESTResponseType + +from pydantic import Field, StrictStr, field_validator +from typing import List, Optional +from typing_extensions import Annotated +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_bulk_change_response_dto import ServicingV2ObjectconfigurationBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_request_dto import ServicingV2ObjectconfigurationConceptDeleteRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_request_dto import ServicingV2ObjectconfigurationConceptRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_response_dto import ServicingV2ObjectconfigurationConceptResponseDTO +import visier_api_analytic_model.models + + +class ConceptsV2Api: + """ + This class provides methods to make requests to the Visier API. + It uses the ApiClient to handle the HTTP requests and responses. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def create_concepts( + self, + servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingV2ObjectconfigurationBulkChangeResponseDTO: + """Create concepts + + Create new concepts. The response returns whether each concept was successfully created or not. When creating objects, assign a unique object name but don't set a UUID. Visier generates UUIDs for new objects.
**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 servicing_v2_objectconfiguration_concept_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_concepts_serialize( + servicing_v2_objectconfiguration_concept_request_dto=servicing_v2_objectconfiguration_concept_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def create_concepts_with_http_info( + self, + servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingV2ObjectconfigurationBulkChangeResponseDTO]: + """Create concepts + + Create new concepts. The response returns whether each concept was successfully created or not. When creating objects, assign a unique object name but don't set a UUID. Visier generates UUIDs for new objects.
**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 servicing_v2_objectconfiguration_concept_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_concepts_serialize( + servicing_v2_objectconfiguration_concept_request_dto=servicing_v2_objectconfiguration_concept_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def create_concepts_without_preload_content( + self, + servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create concepts + + Create new concepts. The response returns whether each concept was successfully created or not. When creating objects, assign a unique object name but don't set a UUID. Visier generates UUIDs for new objects.
**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 servicing_v2_objectconfiguration_concept_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_request_dto: ServicingV2ObjectconfigurationConceptRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_concepts_serialize( + servicing_v2_objectconfiguration_concept_request_dto=servicing_v2_objectconfiguration_concept_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_concepts_serialize( + self, + servicing_v2_objectconfiguration_concept_request_dto, + target_tenant_id, + project_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id + # process the form parameters + # process the body parameter + if servicing_v2_objectconfiguration_concept_request_dto is not None: + _body_params = servicing_v2_objectconfiguration_concept_request_dto + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v2alpha/data/model/concepts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def delete_concepts( + self, + servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingV2ObjectconfigurationBulkChangeResponseDTO: + """Delete concepts + + Delete existing concepts. The response returns whether each concept was successfully deleted or not.
**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 servicing_v2_objectconfiguration_concept_delete_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_concepts_serialize( + servicing_v2_objectconfiguration_concept_delete_request_dto=servicing_v2_objectconfiguration_concept_delete_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def delete_concepts_with_http_info( + self, + servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingV2ObjectconfigurationBulkChangeResponseDTO]: + """Delete concepts + + Delete existing concepts. The response returns whether each concept was successfully deleted or not.
**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 servicing_v2_objectconfiguration_concept_delete_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_concepts_serialize( + servicing_v2_objectconfiguration_concept_delete_request_dto=servicing_v2_objectconfiguration_concept_delete_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def delete_concepts_without_preload_content( + self, + servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO, + 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Delete concepts + + Delete existing concepts. The response returns whether each concept was successfully deleted or not.
**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 servicing_v2_objectconfiguration_concept_delete_request_dto: (required) + :type servicing_v2_objectconfiguration_concept_delete_request_dto: ServicingV2ObjectconfigurationConceptDeleteRequestDTO + :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. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_concepts_serialize( + servicing_v2_objectconfiguration_concept_delete_request_dto=servicing_v2_objectconfiguration_concept_delete_request_dto, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_concepts_serialize( + self, + servicing_v2_objectconfiguration_concept_delete_request_dto, + target_tenant_id, + project_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id + # process the form parameters + # process the body parameter + if servicing_v2_objectconfiguration_concept_delete_request_dto is not None: + _body_params = servicing_v2_objectconfiguration_concept_delete_request_dto + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v2alpha/data/model/concepts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_all_concepts( + self, + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingV2ObjectconfigurationConceptResponseDTO: + """Retrieve a list of concepts + + Retrieve a list of all concepts in your Visier 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 type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_concepts_serialize( + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def get_all_concepts_with_http_info( + self, + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingV2ObjectconfigurationConceptResponseDTO]: + """Retrieve a list of concepts + + Retrieve a list of all concepts in your Visier 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 type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_concepts_serialize( + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def get_all_concepts_without_preload_content( + self, + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a list of concepts + + Retrieve a list of all concepts in your Visier 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 type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_all_concepts_serialize( + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_all_concepts_serialize( + self, + type, + var_with, + object_name, + uuid, + target_tenant_id, + project_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'type': 'multi', + 'with': 'multi', + 'objectName': 'multi', + 'uuid': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if type is not None: + + _query_params.append(('type', type)) + + if var_with is not None: + + _query_params.append(('with', var_with)) + + if object_name is not None: + + _query_params.append(('objectName', object_name)) + + if uuid is not None: + + _query_params.append(('uuid', uuid)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2alpha/data/model/concepts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_analytic_object_concepts( + self, + analytic_object_name: Annotated[StrictStr, Field(description="The object name of the analytic object from which to retrieve concepts.")], + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingV2ObjectconfigurationConceptResponseDTO: + """Retrieve a list of concepts by analytic object + + Retrieve all the concepts for a specific analytic object. The response returns the details of all concepts for the analytic object, including object names, concept types, and descriptions.
**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 analytic_object_name: The object name of the analytic object from which to retrieve concepts. (required) + :type analytic_object_name: str + :param type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_analytic_object_concepts_serialize( + analytic_object_name=analytic_object_name, + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def get_analytic_object_concepts_with_http_info( + self, + analytic_object_name: Annotated[StrictStr, Field(description="The object name of the analytic object from which to retrieve concepts.")], + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingV2ObjectconfigurationConceptResponseDTO]: + """Retrieve a list of concepts by analytic object + + Retrieve all the concepts for a specific analytic object. The response returns the details of all concepts for the analytic object, including object names, concept types, and descriptions.
**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 analytic_object_name: The object name of the analytic object from which to retrieve concepts. (required) + :type analytic_object_name: str + :param type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_analytic_object_concepts_serialize( + analytic_object_name=analytic_object_name, + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def get_analytic_object_concepts_without_preload_content( + self, + analytic_object_name: Annotated[StrictStr, Field(description="The object name of the analytic object from which to retrieve concepts.")], + type: Annotated[Optional[List[StrictStr]], Field(description="The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default.")] = None, + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = None, + object_name: Annotated[Optional[List[StrictStr]], Field(description="The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`.")] = None, + uuid: Annotated[Optional[List[StrictStr]], Field(description="The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a list of concepts by analytic object + + Retrieve all the concepts for a specific analytic object. The response returns the details of all concepts for the analytic object, including object names, concept types, and descriptions.
**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 analytic_object_name: The object name of the analytic object from which to retrieve concepts. (required) + :type analytic_object_name: str + :param type: The type of the concept to retrieve. Valid values: - `process`: Retrieves all process concepts. This is the default. + :type type: List[str] + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[str] + :param object_name: The concept object names to return in the response. When combined with `uuid`, the results return objects that match either the `objectName` or `uuid`. + :type object_name: List[str] + :param uuid: The concept UUIDs to return in the response. When combined with `objectName`, the results return objects that match either the `objectName` or `uuid`. + :type uuid: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_analytic_object_concepts_serialize( + analytic_object_name=analytic_object_name, + type=type, + var_with=var_with, + object_name=object_name, + uuid=uuid, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_analytic_object_concepts_serialize( + self, + analytic_object_name, + type, + var_with, + object_name, + uuid, + target_tenant_id, + project_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'type': 'multi', + 'with': 'multi', + 'objectName': 'multi', + 'uuid': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if analytic_object_name is not None: + _path_params['analyticObjectName'] = analytic_object_name + # process the query parameters + if type is not None: + + _query_params.append(('type', type)) + + if var_with is not None: + + _query_params.append(('with', var_with)) + + if object_name is not None: + + _query_params.append(('objectName', object_name)) + + if uuid is not None: + + _query_params.append(('uuid', uuid)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2alpha/data/model/analytic-objects/{analyticObjectName}/concepts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_one_concept( + self, + concept_id: Annotated[StrictStr, Field(description="The object name or UUID of the concept to retrieve.")], + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingV2ObjectconfigurationConceptResponseDTO: + """Retrieve a concept's details + + Retrieve the details of a specific concept, such as its concept type and description.
**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 concept_id: The object name or UUID of the concept to retrieve. (required) + :type concept_id: str + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_one_concept_serialize( + concept_id=concept_id, + var_with=var_with, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def get_one_concept_with_http_info( + self, + concept_id: Annotated[StrictStr, Field(description="The object name or UUID of the concept to retrieve.")], + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingV2ObjectconfigurationConceptResponseDTO]: + """Retrieve a concept's details + + Retrieve the details of a specific concept, such as its concept type and description.
**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 concept_id: The object name or UUID of the concept to retrieve. (required) + :type concept_id: str + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_one_concept_serialize( + concept_id=concept_id, + var_with=var_with, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def get_one_concept_without_preload_content( + self, + concept_id: Annotated[StrictStr, Field(description="The object name or UUID of the concept to retrieve.")], + var_with: Annotated[Optional[List[StrictStr]], Field(description="The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`.")] = 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, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a concept's details + + Retrieve the details of a specific concept, such as its concept type and description.
**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 concept_id: The object name or UUID of the concept to retrieve. (required) + :type concept_id: str + :param var_with: The level of information to retrieve for the concept. Valid values: - `basic`: Retrieves the concept's UUID, object name, and basic information. This is the default. - `details`: Retrieves the `basic` details and additional configurations, such as `visibleInApp`. + :type var_with: List[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 project_id: Optionally, specify a project in which to make the request. + :type project_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_one_concept_serialize( + concept_id=concept_id, + var_with=var_with, + target_tenant_id=target_tenant_id, + project_id=project_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingV2ObjectconfigurationConceptResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_one_concept_serialize( + self, + concept_id, + var_with, + target_tenant_id, + project_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'with': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if concept_id is not None: + _path_params['conceptId'] = concept_id + # process the query parameters + if var_with is not None: + + _query_params.append(('with', var_with)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2alpha/data/model/concepts/{conceptId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + 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 854c61eab1..b5f2d99cdc 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,35 +23,44 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import List, Optional from typing_extensions import Annotated -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 +from visier_api_analytic_model.models.dataservices_datamodel_analytic_object_dto import DataservicesDatamodelAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_analytic_objects_dto import DataservicesDatamodelAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_currencies_dto import DataservicesDatamodelCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_dto import DataservicesDatamodelCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_rates_dto import DataservicesDatamodelCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_dto import DataservicesDatamodelDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_dto import DataservicesDatamodelDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_execution_dto import DataservicesDatamodelDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimensions_dto import DataservicesDatamodelDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_members_dto import DataservicesDatamodelMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_metric_dto import DataservicesDatamodelMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_metrics_dto import DataservicesDatamodelMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_model_dto import DataservicesDatamodelPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_models_dto import DataservicesDatamodelPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plan_dto import DataservicesDatamodelPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plans_dto import DataservicesDatamodelPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_prediction_dto import DataservicesDatamodelPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_predictions_dto import DataservicesDatamodelPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_properties_dto import DataservicesDatamodelPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_dto import DataservicesDatamodelPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concept_dto import DataservicesDatamodelSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concepts_dto import DataservicesDatamodelSelectionConceptsDTO +from visier_api_analytic_model.models.planning_get_plan_list_response_dto import PlanningGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_plan_with_schema_dto import PlanningPlanWithSchemaDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimensions_change_definitions_dto import ServicingObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_objects_bulk_change_response_dto import ServicingObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_change_definitions_dto import ServicingObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_delete_definitions_dto import ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_bulk_delete_response_dto import ServicingObjectconfigurationPropertyBulkDeleteResponseDTO +from visier_api_analytic_model.models.servicing_question_categories_api_response_dto import ServicingQuestionCategoriesAPIResponseDTO +from visier_api_analytic_model.models.servicing_question_category_api_response_dto import ServicingQuestionCategoryAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_question_api_response_dto import ServicingSampleQuestionAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_questions_api_response_dto import ServicingSampleQuestionsAPIResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_request_dto import ServicingV2ObjectconfigurationAnalyticObjectRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_bulk_change_response_dto import ServicingV2ObjectconfigurationBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_vee_questions_bulk_change_response_dto import ServicingVeeQuestionsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_vee_questions_change_definitions_dto import ServicingVeeQuestionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_vee_questions_delete_definitions_dto import ServicingVeeQuestionsDeleteDefinitionsDTO import visier_api_analytic_model.models @@ -84,7 +93,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, - ) -> DataservicesDatamodelTransfersMetricsDTO: + ) -> DataservicesDatamodelMetricsDTO: """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 +134,7 @@ def analytic_metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -156,7 +165,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[DataservicesDatamodelTransfersMetricsDTO]: + ) -> ApiResponse[DataservicesDatamodelMetricsDTO]: """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 +206,7 @@ def analytic_metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -269,7 +278,7 @@ def analytic_metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelMetricsDTO", } response_data = self.api_client.call_api( *_param, @@ -364,7 +373,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, - ) -> DataservicesDatamodelTransfersAnalyticObjectDTO: + ) -> DataservicesDatamodelAnalyticObjectDTO: """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 +414,7 @@ def analytic_object( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", + '200': "DataservicesDatamodelAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -436,7 +445,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[DataservicesDatamodelTransfersAnalyticObjectDTO]: + ) -> ApiResponse[DataservicesDatamodelAnalyticObjectDTO]: """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 +486,7 @@ def analytic_object_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", + '200': "DataservicesDatamodelAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -549,7 +558,7 @@ def analytic_object_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectDTO", + '200': "DataservicesDatamodelAnalyticObjectDTO", } response_data = self.api_client.call_api( *_param, @@ -645,7 +654,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, - ) -> DataservicesDatamodelTransfersAnalyticObjectsDTO: + ) -> DataservicesDatamodelAnalyticObjectsDTO: """Retrieve a list of analytic objects Retrieve all the analytic objects in your Visier solution. @@ -689,7 +698,7 @@ def analytic_objects( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", + '200': "DataservicesDatamodelAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -721,7 +730,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[DataservicesDatamodelTransfersAnalyticObjectsDTO]: + ) -> ApiResponse[DataservicesDatamodelAnalyticObjectsDTO]: """Retrieve a list of analytic objects Retrieve all the analytic objects in your Visier solution. @@ -765,7 +774,7 @@ def analytic_objects_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", + '200': "DataservicesDatamodelAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -841,7 +850,7 @@ def analytic_objects_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersAnalyticObjectsDTO", + '200': "DataservicesDatamodelAnalyticObjectsDTO", } response_data = self.api_client.call_api( *_param, @@ -945,7 +954,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, - ) -> DataservicesDatamodelTransfersPropertyDTO: + ) -> DataservicesDatamodelPropertyDTO: """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 +998,7 @@ def call_property( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertyDTO", + '200': "DataservicesDatamodelPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1021,7 +1030,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[DataservicesDatamodelTransfersPropertyDTO]: + ) -> ApiResponse[DataservicesDatamodelPropertyDTO]: """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 +1074,7 @@ def call_property_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertyDTO", + '200': "DataservicesDatamodelPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1141,7 +1150,7 @@ def call_property_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertyDTO", + '200': "DataservicesDatamodelPropertyDTO", } response_data = self.api_client.call_api( *_param, @@ -1226,7 +1235,7 @@ def _call_property_serialize( @validate_call def create_properties( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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 +1250,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, - ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: + ) -> ServicingObjectconfigurationObjectsBulkChangeResponseDTO: """Create properties Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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 +1284,7 @@ def create_properties( """ # noqa: E501 _param = self._create_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1285,7 +1294,7 @@ def create_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1302,7 +1311,7 @@ def create_properties( @validate_call def create_properties_with_http_info( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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 +1326,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[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: + ) -> ApiResponse[ServicingObjectconfigurationObjectsBulkChangeResponseDTO]: """Create properties Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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 +1360,7 @@ def create_properties_with_http_info( """ # noqa: E501 _param = self._create_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1361,7 +1370,7 @@ def create_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1378,7 +1387,7 @@ def create_properties_with_http_info( @validate_call def create_properties_without_preload_content( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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 +1407,8 @@ def create_properties_without_preload_content( Create new properties. Administrating tenant users can specify the tenant in which to add these properties. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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 +1436,7 @@ def create_properties_without_preload_content( """ # noqa: E501 _param = self._create_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -1437,7 +1446,7 @@ def create_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1448,7 +1457,7 @@ def create_properties_without_preload_content( def _create_properties_serialize( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -1478,8 +1487,8 @@ def _create_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if servicing_publicapi_objectconfiguration_properties_change_definitions_dto is not None: - _body_params = servicing_publicapi_objectconfiguration_properties_change_definitions_dto + if servicing_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` @@ -1532,9 +1541,11 @@ def _create_properties_serialize( @validate_call - def currencies( + def create_vee_sample_questions( self, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1547,13 +1558,17 @@ def currencies( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersCurrenciesDTO: - """Retrieve all currencies + ) -> ServicingVeeQuestionsBulkChangeResponseDTO: + """Add Vee sample questions - Retrieve all the available currencies in your Visier solution. + Create new sample questions that your users can ask Vee. Administrating tenants can specify the tenant in which to add sample questions 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 servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -1576,8 +1591,10 @@ def currencies( :return: Returns the result object. """ # noqa: E501 - _param = self._currencies_serialize( + _param = self._create_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1585,7 +1602,7 @@ def currencies( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrenciesDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1600,9 +1617,11 @@ def currencies( @validate_call - def currencies_with_http_info( + def create_vee_sample_questions_with_http_info( self, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1615,13 +1634,17 @@ 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[DataservicesDatamodelTransfersCurrenciesDTO]: - """Retrieve all currencies + ) -> ApiResponse[ServicingVeeQuestionsBulkChangeResponseDTO]: + """Add Vee sample questions - Retrieve all the available currencies in your Visier solution. + Create new sample questions that your users can ask Vee. Administrating tenants can specify the tenant in which to add sample questions 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 servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -1644,8 +1667,10 @@ def currencies_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._currencies_serialize( + _param = self._create_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1653,7 +1678,7 @@ def currencies_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrenciesDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1668,9 +1693,11 @@ def currencies_with_http_info( @validate_call - def currencies_without_preload_content( + def create_vee_sample_questions_without_preload_content( self, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1684,12 +1711,16 @@ def currencies_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve all currencies + """Add Vee sample questions - Retrieve all the available currencies in your Visier solution. + Create new sample questions that your users can ask Vee. Administrating tenants can specify the tenant in which to add sample questions 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 servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -1712,8 +1743,10 @@ def currencies_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._currencies_serialize( + _param = self._create_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1721,7 +1754,7 @@ def currencies_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrenciesDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1730,9 +1763,11 @@ def currencies_without_preload_content( return response_data.response - def _currencies_serialize( + def _create_vee_sample_questions_serialize( self, + servicing_vee_questions_change_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -1756,8 +1791,12 @@ def _currencies_serialize( # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter + if servicing_vee_questions_change_definitions_dto is not None: + _body_params = servicing_vee_questions_change_definitions_dto # set the HTTP header `Accept` @@ -1768,6 +1807,19 @@ def _currencies_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1779,8 +1831,8 @@ def _currencies_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/currencies', + method='POST', + resource_path='/v1alpha/data/model/vee/sample-questions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1797,9 +1849,8 @@ def _currencies_serialize( @validate_call - def currency( + def currencies( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -1813,13 +1864,11 @@ def currency( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersCurrencyDTO: - """Retrieve a currency + ) -> DataservicesDatamodelCurrenciesDTO: + """Retrieve all currencies - Retrieve a specific currency if you know the currency code. + Retrieve all the available currencies in your Visier solution. - :param id: The ISO 4217 3-letter code for the currency. (required) - :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1844,8 +1893,7 @@ def currency( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_serialize( - id=id, + _param = self._currencies_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1854,7 +1902,7 @@ def currency( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyDTO", + '200': "DataservicesDatamodelCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -1869,9 +1917,8 @@ def currency( @validate_call - def currency_with_http_info( + def currencies_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -1885,13 +1932,11 @@ 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[DataservicesDatamodelTransfersCurrencyDTO]: - """Retrieve a currency + ) -> ApiResponse[DataservicesDatamodelCurrenciesDTO]: + """Retrieve all currencies - Retrieve a specific currency if you know the currency code. + Retrieve all the available currencies in your Visier solution. - :param id: The ISO 4217 3-letter code for the currency. (required) - :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1916,8 +1961,7 @@ def currency_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_serialize( - id=id, + _param = self._currencies_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1926,7 +1970,7 @@ def currency_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyDTO", + '200': "DataservicesDatamodelCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -1941,9 +1985,8 @@ def currency_with_http_info( @validate_call - def currency_without_preload_content( + def currencies_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -1958,12 +2001,10 @@ def currency_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a currency + """Retrieve all currencies - Retrieve a specific currency if you know the currency code. + Retrieve all the available currencies in your Visier solution. - :param id: The ISO 4217 3-letter code for the currency. (required) - :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -1988,8 +2029,7 @@ def currency_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_serialize( - id=id, + _param = self._currencies_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1998,7 +2038,7 @@ def currency_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyDTO", + '200': "DataservicesDatamodelCurrenciesDTO", } response_data = self.api_client.call_api( *_param, @@ -2007,9 +2047,8 @@ def currency_without_preload_content( return response_data.response - def _currency_serialize( + def _currencies_serialize( self, - id, target_tenant_id, _request_auth, _content_type, @@ -2030,8 +2069,6 @@ def _currency_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if target_tenant_id is not None: @@ -2060,7 +2097,7 @@ def _currency_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/currencies/{id}', + resource_path='/v1/data/model/currencies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2077,12 +2114,9 @@ def _currency_serialize( @validate_call - def currency_rates( + def currency( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], - start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, - end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, - decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -2096,19 +2130,13 @@ def currency_rates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersCurrencyRatesDTO: - """Retrieve all exchange rates for a currency + ) -> DataservicesDatamodelCurrencyDTO: + """Retrieve 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. + Retrieve a specific currency if you know the currency code. - :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) + :param id: The ISO 4217 3-letter code for the currency. (required) :type id: str - :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. - :type start_time: str - :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. - :type end_time: str - :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. - :type decimals: 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 _request_timeout: timeout setting for this request. If one @@ -2133,11 +2161,8 @@ def currency_rates( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_serialize( + _param = self._currency_serialize( id=id, - start_time=start_time, - end_time=end_time, - decimals=decimals, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2146,7 +2171,7 @@ def currency_rates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -2161,12 +2186,9 @@ def currency_rates( @validate_call - def currency_rates_with_http_info( + def currency_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], - start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, - end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, - decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -2180,19 +2202,13 @@ 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[DataservicesDatamodelTransfersCurrencyRatesDTO]: - """Retrieve all exchange rates for a currency + ) -> ApiResponse[DataservicesDatamodelCurrencyDTO]: + """Retrieve 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. + Retrieve a specific currency if you know the currency code. - :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) + :param id: The ISO 4217 3-letter code for the currency. (required) :type id: str - :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. - :type start_time: str - :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. - :type end_time: str - :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. - :type decimals: 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 _request_timeout: timeout setting for this request. If one @@ -2217,11 +2233,8 @@ def currency_rates_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_serialize( + _param = self._currency_serialize( id=id, - start_time=start_time, - end_time=end_time, - decimals=decimals, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2230,7 +2243,7 @@ def currency_rates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -2245,12 +2258,9 @@ def currency_rates_with_http_info( @validate_call - def currency_rates_without_preload_content( + def currency_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], - start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, - end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, - decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency.")], 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, @@ -2265,18 +2275,12 @@ def currency_rates_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve all exchange rates for a currency + """Retrieve 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. + Retrieve a specific currency if you know the currency code. - :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) + :param id: The ISO 4217 3-letter code for the currency. (required) :type id: str - :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. - :type start_time: str - :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. - :type end_time: str - :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. - :type decimals: 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 _request_timeout: timeout setting for this request. If one @@ -2301,11 +2305,8 @@ def currency_rates_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_serialize( + _param = self._currency_serialize( id=id, - start_time=start_time, - end_time=end_time, - decimals=decimals, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2314,7 +2315,7 @@ def currency_rates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyDTO", } response_data = self.api_client.call_api( *_param, @@ -2323,12 +2324,9 @@ def currency_rates_without_preload_content( return response_data.response - def _currency_rates_serialize( + def _currency_serialize( self, id, - start_time, - end_time, - decimals, target_tenant_id, _request_auth, _content_type, @@ -2352,18 +2350,6 @@ def _currency_rates_serialize( if id is not None: _path_params['id'] = id # process the query parameters - if start_time is not None: - - _query_params.append(('startTime', start_time)) - - if end_time is not None: - - _query_params.append(('endTime', end_time)) - - if decimals is not None: - - _query_params.append(('decimals', decimals)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -2391,7 +2377,7 @@ def _currency_rates_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/currencies/{id}/rates', + resource_path='/v1/data/model/currencies/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2408,10 +2394,9 @@ def _currency_rates_serialize( @validate_call - def currency_rates_with_to_currency( + def currency_rates( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], - to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, @@ -2428,15 +2413,13 @@ 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, - ) -> DataservicesDatamodelTransfersCurrencyRatesDTO: - """Retrieve exchange rates from one currency to another currency + ) -> DataservicesDatamodelCurrencyRatesDTO: + """Retrieve all exchange rates for a 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. + 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. - :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) :type id: str - :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) - :type to_id: str :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. :type start_time: str :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. @@ -2467,9 +2450,8 @@ def currency_rates_with_to_currency( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_with_to_currency_serialize( + _param = self._currency_rates_serialize( id=id, - to_id=to_id, start_time=start_time, end_time=end_time, decimals=decimals, @@ -2481,7 +2463,7 @@ def currency_rates_with_to_currency( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2496,10 +2478,9 @@ def currency_rates_with_to_currency( @validate_call - def currency_rates_with_to_currency_with_http_info( + def currency_rates_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], - to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, @@ -2516,15 +2497,13 @@ 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[DataservicesDatamodelTransfersCurrencyRatesDTO]: - """Retrieve exchange rates from one currency to another currency + ) -> ApiResponse[DataservicesDatamodelCurrencyRatesDTO]: + """Retrieve all exchange rates for a 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. + 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. - :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) :type id: str - :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) - :type to_id: str :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. :type start_time: str :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. @@ -2555,9 +2534,8 @@ def currency_rates_with_to_currency_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_with_to_currency_serialize( + _param = self._currency_rates_serialize( id=id, - to_id=to_id, start_time=start_time, end_time=end_time, decimals=decimals, @@ -2569,7 +2547,7 @@ def currency_rates_with_to_currency_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2584,10 +2562,9 @@ def currency_rates_with_to_currency_with_http_info( @validate_call - def currency_rates_with_to_currency_without_preload_content( + def currency_rates_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], - to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to get rates for.")], start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = None, @@ -2605,14 +2582,12 @@ def currency_rates_with_to_currency_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve exchange rates from one currency to another currency + """Retrieve all exchange rates for a 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. + 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. - :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :param id: The ISO 4217 3-letter code for the currency to get rates for. (required) :type id: str - :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) - :type to_id: str :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. :type start_time: str :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. @@ -2643,9 +2618,8 @@ def currency_rates_with_to_currency_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._currency_rates_with_to_currency_serialize( + _param = self._currency_rates_serialize( id=id, - to_id=to_id, start_time=start_time, end_time=end_time, decimals=decimals, @@ -2657,7 +2631,7 @@ def currency_rates_with_to_currency_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersCurrencyRatesDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2666,10 +2640,9 @@ def currency_rates_with_to_currency_without_preload_content( return response_data.response - def _currency_rates_with_to_currency_serialize( + def _currency_rates_serialize( self, id, - to_id, start_time, end_time, decimals, @@ -2695,8 +2668,6 @@ def _currency_rates_with_to_currency_serialize( # process the path parameters if id is not None: _path_params['id'] = id - if to_id is not None: - _path_params['toId'] = to_id # process the query parameters if start_time is not None: @@ -2737,7 +2708,7 @@ def _currency_rates_with_to_currency_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/currencies/{id}/rates/{toId}', + resource_path='/v1/data/model/currencies/{id}/rates', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2754,11 +2725,14 @@ def _currency_rates_with_to_currency_serialize( @validate_call - def delete_properties( + def currency_rates_with_to_currency( self, - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], + to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, + decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2771,17 +2745,23 @@ def delete_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO: - """Delete properties + ) -> DataservicesDatamodelCurrencyRatesDTO: + """Retrieve exchange rates from one currency to another currency - 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. + 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. - :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO + :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :type id: str + :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) + :type to_id: str + :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. + :type start_time: str + :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. + :type end_time: str + :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. + :type decimals: 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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -2804,10 +2784,13 @@ def delete_properties( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_properties_serialize( - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, + _param = self._currency_rates_with_to_currency_serialize( + id=id, + to_id=to_id, + start_time=start_time, + end_time=end_time, + decimals=decimals, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2815,7 +2798,7 @@ def delete_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2830,11 +2813,14 @@ def delete_properties( @validate_call - def delete_properties_with_http_info( + def currency_rates_with_to_currency_with_http_info( self, - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], + to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, + decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2847,17 +2833,23 @@ 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[ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO]: - """Delete properties + ) -> ApiResponse[DataservicesDatamodelCurrencyRatesDTO]: + """Retrieve exchange rates from one currency to another currency - 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. + 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. - :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO + :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :type id: str + :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) + :type to_id: str + :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. + :type start_time: str + :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. + :type end_time: str + :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. + :type decimals: 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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -2880,10 +2872,13 @@ def delete_properties_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_properties_serialize( - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, + _param = self._currency_rates_with_to_currency_serialize( + id=id, + to_id=to_id, + start_time=start_time, + end_time=end_time, + decimals=decimals, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2891,7 +2886,7 @@ def delete_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2906,11 +2901,14 @@ def delete_properties_with_http_info( @validate_call - def delete_properties_without_preload_content( + def currency_rates_with_to_currency_without_preload_content( self, - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO, + id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert from.")], + to_id: Annotated[StrictStr, Field(description="The ISO 4217 3-letter code for the currency to convert to.")], + start_time: Annotated[Optional[StrictStr], Field(description="The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds.")] = None, + end_time: Annotated[Optional[StrictStr], Field(description="The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds.")] = None, + decimals: Annotated[Optional[StrictStr], Field(description="The number of decimals to round exchange rates to. Default is to round to 2 decimal places.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2924,16 +2922,22 @@ def delete_properties_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete properties + """Retrieve exchange rates from one currency to another currency - 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. + 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. - :param servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_delete_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesDeleteDefinitionsDTO + :param id: The ISO 4217 3-letter code for the currency to convert from. (required) + :type id: str + :param to_id: The ISO 4217 3-letter code for the currency to convert to. (required) + :type to_id: str + :param start_time: The earliest time instant to retrieve exchange rates from. Default is to use 0 milliseconds. + :type start_time: str + :param end_time: The latest time instant to retrieve exchange rates from. Default is to use the time of this request in milliseconds. + :type end_time: str + :param decimals: The number of decimals to round exchange rates to. Default is to round to 2 decimal places. + :type decimals: 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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -2956,10 +2960,13 @@ def delete_properties_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_properties_serialize( - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto=servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, + _param = self._currency_rates_with_to_currency_serialize( + id=id, + to_id=to_id, + start_time=start_time, + end_time=end_time, + decimals=decimals, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2967,7 +2974,7 @@ def delete_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationPropertyBulkDeleteResponseDTO", + '200': "DataservicesDatamodelCurrencyRatesDTO", } response_data = self.api_client.call_api( *_param, @@ -2976,11 +2983,14 @@ def delete_properties_without_preload_content( return response_data.response - def _delete_properties_serialize( + def _currency_rates_with_to_currency_serialize( self, - servicing_publicapi_objectconfiguration_properties_delete_definitions_dto, + id, + to_id, + start_time, + end_time, + decimals, target_tenant_id, - project_id, _request_auth, _content_type, _headers, @@ -3000,16 +3010,28 @@ def _delete_properties_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id + if to_id is not None: + _path_params['toId'] = to_id # process the query parameters + if start_time is not None: + + _query_params.append(('startTime', start_time)) + + if end_time is not None: + + _query_params.append(('endTime', end_time)) + + if decimals is not None: + + _query_params.append(('decimals', decimals)) + # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id - if project_id is not None: - _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - 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` @@ -3020,19 +3042,6 @@ def _delete_properties_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3044,8 +3053,8 @@ def _delete_properties_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/data/model/properties', + method='GET', + resource_path='/v1/data/model/currencies/{id}/rates/{toId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3062,11 +3071,11 @@ def _delete_properties_serialize( @validate_call - def dimension( + def delete_properties( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], + servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3079,17 +3088,17 @@ def dimension( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersDimensionDTO: - """Retrieve a dimension by ID + ) -> ServicingObjectconfigurationPropertyBulkDeleteResponseDTO: + """Delete properties - 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. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the dimension to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3112,10 +3121,10 @@ def dimension( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_serialize( - object_id=object_id, - id=id, + _param = self._delete_properties_serialize( + servicing_objectconfiguration_properties_delete_definitions_dto=servicing_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3123,7 +3132,7 @@ def dimension( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionDTO", + '200': "ServicingObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3138,11 +3147,11 @@ def dimension( @validate_call - def dimension_with_http_info( + def delete_properties_with_http_info( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], + servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3155,17 +3164,17 @@ 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[DataservicesDatamodelTransfersDimensionDTO]: - """Retrieve a dimension by ID + ) -> ApiResponse[ServicingObjectconfigurationPropertyBulkDeleteResponseDTO]: + """Delete properties - 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. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the dimension to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3188,10 +3197,10 @@ def dimension_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_serialize( - object_id=object_id, - id=id, + _param = self._delete_properties_serialize( + servicing_objectconfiguration_properties_delete_definitions_dto=servicing_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3199,7 +3208,7 @@ def dimension_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionDTO", + '200': "ServicingObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3214,11 +3223,11 @@ def dimension_with_http_info( @validate_call - def dimension_without_preload_content( + def delete_properties_without_preload_content( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], + servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3232,16 +3241,16 @@ def dimension_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a dimension by ID + """Delete properties - 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. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the dimension to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_delete_definitions_dto: (required) + :type servicing_objectconfiguration_properties_delete_definitions_dto: ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3264,10 +3273,10 @@ def dimension_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_serialize( - object_id=object_id, - id=id, + _param = self._delete_properties_serialize( + servicing_objectconfiguration_properties_delete_definitions_dto=servicing_objectconfiguration_properties_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3275,7 +3284,7 @@ def dimension_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionDTO", + '200': "ServicingObjectconfigurationPropertyBulkDeleteResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3284,11 +3293,11 @@ def dimension_without_preload_content( return response_data.response - def _dimension_serialize( + def _delete_properties_serialize( self, - object_id, - id, + servicing_objectconfiguration_properties_delete_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -3308,16 +3317,16 @@ def _dimension_serialize( _body_params: Optional[bytes] = None # process the path parameters - if object_id is not None: - _path_params['objectId'] = object_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter + if servicing_objectconfiguration_properties_delete_definitions_dto is not None: + _body_params = servicing_objectconfiguration_properties_delete_definitions_dto # set the HTTP header `Accept` @@ -3328,6 +3337,19 @@ def _dimension_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3339,8 +3361,8 @@ def _dimension_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{id}', + method='DELETE', + resource_path='/v1/data/model/properties', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3357,12 +3379,11 @@ def _dimension_serialize( @validate_call - def dimension_member_map_validation( + def delete_vee_sample_questions( 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.")], - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, + servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3375,19 +3396,17 @@ 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, - ) -> DataservicesDatamodelTransfersDimensionMappingValidationDTO: - """Validate a member map's unmapped dimension members by ID + ) -> ServicingVeeQuestionsBulkChangeResponseDTO: + """Delete Vee sample questions - 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. + Delete existing sample questions. Administrating tenants can specify the tenant in which to delete questions 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 object_id: The ID of the analytic object. (required) - :type object_id: str - :param dimension_id: The ID of a dimension of the member map. (required) - :type dimension_id: str - :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) - :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO + :param servicing_vee_questions_delete_definitions_dto: (required) + :type servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3410,11 +3429,10 @@ def dimension_member_map_validation( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_member_map_validation_serialize( - object_id=object_id, - dimension_id=dimension_id, - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, + _param = self._delete_vee_sample_questions_serialize( + servicing_vee_questions_delete_definitions_dto=servicing_vee_questions_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3422,7 +3440,7 @@ def dimension_member_map_validation( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3437,12 +3455,11 @@ def dimension_member_map_validation( @validate_call - def dimension_member_map_validation_with_http_info( + def delete_vee_sample_questions_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.")], - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, + servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3455,19 +3472,17 @@ 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[DataservicesDatamodelTransfersDimensionMappingValidationDTO]: - """Validate a member map's unmapped dimension members by ID + ) -> ApiResponse[ServicingVeeQuestionsBulkChangeResponseDTO]: + """Delete Vee sample questions - 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. + Delete existing sample questions. Administrating tenants can specify the tenant in which to delete questions 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 object_id: The ID of the analytic object. (required) - :type object_id: str - :param dimension_id: The ID of a dimension of the member map. (required) - :type dimension_id: str - :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) - :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO + :param servicing_vee_questions_delete_definitions_dto: (required) + :type servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3490,11 +3505,10 @@ def dimension_member_map_validation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_member_map_validation_serialize( - object_id=object_id, - dimension_id=dimension_id, - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, + _param = self._delete_vee_sample_questions_serialize( + servicing_vee_questions_delete_definitions_dto=servicing_vee_questions_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3502,7 +3516,7 @@ def dimension_member_map_validation_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3517,12 +3531,11 @@ def dimension_member_map_validation_with_http_info( @validate_call - def dimension_member_map_validation_without_preload_content( + def delete_vee_sample_questions_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.")], - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO, + servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3536,18 +3549,16 @@ def dimension_member_map_validation_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Validate a member map's unmapped dimension members by ID + """Delete Vee sample questions - 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. + Delete existing sample questions. Administrating tenants can specify the tenant in which to delete questions 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 object_id: The ID of the analytic object. (required) - :type object_id: str - :param dimension_id: The ID of a dimension of the member map. (required) - :type dimension_id: str - :param dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: (required) - :type dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto: DataservicesDatamodelTransfersDimensionMappingValidationExecutionDTO + :param servicing_vee_questions_delete_definitions_dto: (required) + :type servicing_vee_questions_delete_definitions_dto: ServicingVeeQuestionsDeleteDefinitionsDTO :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. + :type project_id: str :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 @@ -3570,11 +3581,10 @@ def dimension_member_map_validation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._dimension_member_map_validation_serialize( - object_id=object_id, - dimension_id=dimension_id, - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto=dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, + _param = self._delete_vee_sample_questions_serialize( + servicing_vee_questions_delete_definitions_dto=servicing_vee_questions_delete_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3582,7 +3592,7 @@ def dimension_member_map_validation_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionMappingValidationDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3591,12 +3601,11 @@ def dimension_member_map_validation_without_preload_content( return response_data.response - def _dimension_member_map_validation_serialize( + def _delete_vee_sample_questions_serialize( self, - object_id, - dimension_id, - dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto, + servicing_vee_questions_delete_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -3616,18 +3625,16 @@ def _dimension_member_map_validation_serialize( _body_params: Optional[bytes] = None # process the path parameters - if object_id is not None: - _path_params['objectId'] = object_id - if dimension_id is not None: - _path_params['dimensionId'] = dimension_id # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto is not None: - _body_params = dataservices_datamodel_transfers_dimension_mapping_validation_execution_dto + if servicing_vee_questions_delete_definitions_dto is not None: + _body_params = servicing_vee_questions_delete_definitions_dto # set the HTTP header `Accept` @@ -3662,8 +3669,8 @@ def _dimension_member_map_validation_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/mappings/validate', + method='DELETE', + resource_path='/v1alpha/data/model/vee/sample-questions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3680,10 +3687,10 @@ def _dimension_member_map_validation_serialize( @validate_call - def dimensions( + def dimension( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], 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, @@ -3697,15 +3704,15 @@ def dimensions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersDimensionsDTO: - """Retrieve a list of dimensions + ) -> DataservicesDatamodelDimensionDTO: + """Retrieve a dimension by ID - Retrieve a list of dimensions for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[str] + :param id: The ID of the dimension to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3730,7 +3737,7 @@ def dimensions( :return: Returns the result object. """ # noqa: E501 - _param = self._dimensions_serialize( + _param = self._dimension_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -3741,7 +3748,7 @@ def dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "DataservicesDatamodelDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3756,10 +3763,10 @@ def dimensions( @validate_call - def dimensions_with_http_info( + def dimension_with_http_info( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], 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, @@ -3773,15 +3780,15 @@ 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[DataservicesDatamodelTransfersDimensionsDTO]: - """Retrieve a list of dimensions + ) -> ApiResponse[DataservicesDatamodelDimensionDTO]: + """Retrieve a dimension by ID - Retrieve a list of dimensions for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[str] + :param id: The ID of the dimension to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3806,7 +3813,7 @@ def dimensions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._dimensions_serialize( + _param = self._dimension_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -3817,7 +3824,7 @@ def dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "DataservicesDatamodelDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3832,10 +3839,10 @@ def dimensions_with_http_info( @validate_call - def dimensions_without_preload_content( + def dimension_without_preload_content( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the dimension to retrieve.")], 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, @@ -3850,14 +3857,14 @@ def dimensions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of dimensions + """Retrieve a dimension by ID - Retrieve a list of dimensions for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[str] + :param id: The ID of the dimension to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -3882,7 +3889,7 @@ def dimensions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._dimensions_serialize( + _param = self._dimension_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -3893,7 +3900,7 @@ def dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "DataservicesDatamodelDimensionDTO", } response_data = self.api_client.call_api( *_param, @@ -3902,7 +3909,7 @@ def dimensions_without_preload_content( return response_data.response - def _dimensions_serialize( + def _dimension_serialize( self, object_id, id, @@ -3916,7 +3923,6 @@ def _dimensions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -3929,11 +3935,9 @@ def _dimensions_serialize( # process the path parameters if object_id is not None: _path_params['objectId'] = object_id - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + _path_params['id'] = id + # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -3961,7 +3965,7 @@ def _dimensions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions', + resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3978,12 +3982,11 @@ def _dimensions_serialize( @validate_call - def member( + 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 the dimension.")], - id: StrictStr, - id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = None, + dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], + dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO, 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, @@ -3997,19 +4000,17 @@ def member( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersMembersDTO: - """Retrieve a dimension member + ) -> DataservicesDatamodelDimensionMappingValidationDTO: + """Validate a member map's unmapped dimension members by ID - 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. + 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. :param object_id: The ID of the analytic object. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) + :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param id: (required) - :type id: str - :param id2: The ID of the member to retrieve. - :type id2: str + :param dataservices_datamodel_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO :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 @@ -4034,11 +4035,10 @@ def member( :return: Returns the result object. """ # noqa: E501 - _param = self._member_serialize( + _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - id=id, - id2=id2, + dataservices_datamodel_dimension_mapping_validation_execution_dto=dataservices_datamodel_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4047,7 +4047,7 @@ def member( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -4062,12 +4062,11 @@ def member( @validate_call - def member_with_http_info( + 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 the dimension.")], - id: StrictStr, - id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = None, + dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], + dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO, 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, @@ -4081,19 +4080,17 @@ 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[DataservicesDatamodelTransfersMembersDTO]: - """Retrieve a dimension member + ) -> ApiResponse[DataservicesDatamodelDimensionMappingValidationDTO]: + """Validate a member map's unmapped dimension members by ID - 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. + 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. :param object_id: The ID of the analytic object. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) + :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param id: (required) - :type id: str - :param id2: The ID of the member to retrieve. - :type id2: str + :param dataservices_datamodel_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO :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 @@ -4118,11 +4115,10 @@ def member_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._member_serialize( + _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - id=id, - id2=id2, + dataservices_datamodel_dimension_mapping_validation_execution_dto=dataservices_datamodel_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4131,7 +4127,7 @@ def member_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -4146,12 +4142,11 @@ def member_with_http_info( @validate_call - def member_without_preload_content( + 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 the dimension.")], - id: StrictStr, - id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = None, + dimension_id: Annotated[StrictStr, Field(description="The ID of a dimension of the member map.")], + dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO, 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, @@ -4166,18 +4161,16 @@ def member_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a dimension member + """Validate a member map's unmapped dimension members by ID - 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. + 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. :param object_id: The ID of the analytic object. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) + :param dimension_id: The ID of a dimension of the member map. (required) :type dimension_id: str - :param id: (required) - :type id: str - :param id2: The ID of the member to retrieve. - :type id2: str + :param dataservices_datamodel_dimension_mapping_validation_execution_dto: (required) + :type dataservices_datamodel_dimension_mapping_validation_execution_dto: DataservicesDatamodelDimensionMappingValidationExecutionDTO :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 @@ -4202,11 +4195,10 @@ def member_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._member_serialize( + _param = self._dimension_member_map_validation_serialize( object_id=object_id, dimension_id=dimension_id, - id=id, - id2=id2, + dataservices_datamodel_dimension_mapping_validation_execution_dto=dataservices_datamodel_dimension_mapping_validation_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4215,7 +4207,7 @@ def member_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionMappingValidationDTO", } response_data = self.api_client.call_api( *_param, @@ -4224,12 +4216,11 @@ def member_without_preload_content( return response_data.response - def _member_serialize( + def _dimension_member_map_validation_serialize( self, object_id, dimension_id, - id, - id2, + dataservices_datamodel_dimension_mapping_validation_execution_dto, target_tenant_id, _request_auth, _content_type, @@ -4254,18 +4245,14 @@ def _member_serialize( _path_params['objectId'] = object_id if dimension_id is not None: _path_params['dimensionId'] = dimension_id - if id is not None: - _path_params['id'] = id # process the query parameters - if id2 is not None: - - _query_params.append(('Id', id2)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter + if dataservices_datamodel_dimension_mapping_validation_execution_dto is not None: + _body_params = dataservices_datamodel_dimension_mapping_validation_execution_dto # set the HTTP header `Accept` @@ -4276,6 +4263,19 @@ def _member_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4287,8 +4287,8 @@ def _member_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/members/{id}', + method='POST', + resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/mappings/validate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4305,18 +4305,10 @@ def _member_serialize( @validate_call - def members( + def dimensions( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], - dimension_id: Annotated[StrictStr, Field(description="The ID of the dimension.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, - max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, - filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, - var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, - include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, - offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -4330,31 +4322,15 @@ def members( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersMembersDTO: - """Retrieve a list of dimension members + ) -> DataservicesDatamodelDimensionsDTO: + """Retrieve a list of dimensions - 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. + Retrieve a list of dimensions for a specific analytic object. - :param object_id: The ID of the analytic object. (required) + :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) - :type dimension_id: str - :param id: The IDs of the members to retrieve. Default is all members. + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. :type id: List[str] - :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. - :type max_level: int - :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. - :type filter: str - :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. - :type var_field: str - :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. - :type include_data_members: bool - :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type offset: int - :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type limit: int - :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. - :type sort_type: 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 _request_timeout: timeout setting for this request. If one @@ -4379,17 +4355,9 @@ def members( :return: Returns the result object. """ # noqa: E501 - _param = self._members_serialize( + _param = self._dimensions_serialize( object_id=object_id, - dimension_id=dimension_id, id=id, - max_level=max_level, - filter=filter, - var_field=var_field, - include_data_members=include_data_members, - offset=offset, - limit=limit, - sort_type=sort_type, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4398,7 +4366,7 @@ def members( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -4413,18 +4381,10 @@ def members( @validate_call - def members_with_http_info( + def dimensions_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 the dimension.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, - max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, - filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, - var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, - include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, - offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -4438,31 +4398,15 @@ 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[DataservicesDatamodelTransfersMembersDTO]: - """Retrieve a list of dimension members + ) -> ApiResponse[DataservicesDatamodelDimensionsDTO]: + """Retrieve a list of dimensions - 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. + Retrieve a list of dimensions for a specific analytic object. - :param object_id: The ID of the analytic object. (required) + :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) - :type dimension_id: str - :param id: The IDs of the members to retrieve. Default is all members. + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. :type id: List[str] - :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. - :type max_level: int - :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. - :type filter: str - :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. - :type var_field: str - :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. - :type include_data_members: bool - :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type offset: int - :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type limit: int - :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. - :type sort_type: 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 _request_timeout: timeout setting for this request. If one @@ -4487,17 +4431,9 @@ def members_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._members_serialize( + _param = self._dimensions_serialize( object_id=object_id, - dimension_id=dimension_id, id=id, - max_level=max_level, - filter=filter, - var_field=var_field, - include_data_members=include_data_members, - offset=offset, - limit=limit, - sort_type=sort_type, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4506,7 +4442,7 @@ def members_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -4521,18 +4457,10 @@ def members_with_http_info( @validate_call - def members_without_preload_content( + def dimensions_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 the dimension.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, - max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, - filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, - var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, - include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, - offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, - sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -4547,30 +4475,14 @@ def members_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of dimension members + """Retrieve a list of dimensions - 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. + Retrieve a list of dimensions for a specific analytic object. - :param object_id: The ID of the analytic object. (required) + :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param dimension_id: The ID of the dimension. (required) - :type dimension_id: str - :param id: The IDs of the members to retrieve. Default is all members. + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. :type id: List[str] - :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. - :type max_level: int - :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. - :type filter: str - :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. - :type var_field: str - :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. - :type include_data_members: bool - :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type offset: int - :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. - :type limit: int - :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. - :type sort_type: 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 _request_timeout: timeout setting for this request. If one @@ -4595,17 +4507,9 @@ def members_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._members_serialize( + _param = self._dimensions_serialize( object_id=object_id, - dimension_id=dimension_id, id=id, - max_level=max_level, - filter=filter, - var_field=var_field, - include_data_members=include_data_members, - offset=offset, - limit=limit, - sort_type=sort_type, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -4614,7 +4518,7 @@ def members_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMembersDTO", + '200': "DataservicesDatamodelDimensionsDTO", } response_data = self.api_client.call_api( *_param, @@ -4623,18 +4527,10 @@ def members_without_preload_content( return response_data.response - def _members_serialize( + def _dimensions_serialize( self, object_id, - dimension_id, id, - max_level, - filter, - var_field, - include_data_members, - offset, - limit, - sort_type, target_tenant_id, _request_auth, _content_type, @@ -4658,41 +4554,11 @@ def _members_serialize( # process the path parameters if object_id is not None: _path_params['objectId'] = object_id - if dimension_id is not None: - _path_params['dimensionId'] = dimension_id # process the query parameters if id is not None: _query_params.append(('id', id)) - if max_level is not None: - - _query_params.append(('maxLevel', max_level)) - - if filter is not None: - - _query_params.append(('filter', filter)) - - if var_field is not None: - - _query_params.append(('field', var_field)) - - if include_data_members is not None: - - _query_params.append(('includeDataMembers', include_data_members)) - - if offset is not None: - - _query_params.append(('offset', offset)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if sort_type is not None: - - _query_params.append(('sortType', sort_type)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -4720,7 +4586,7 @@ def _members_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/members', + resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4737,10 +4603,11 @@ def _members_serialize( @validate_call - def metric( + def get_vee_sample_question( self, - id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + question_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question to retrieve.")], 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4753,15 +4620,17 @@ def metric( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersMetricDTO: - """Retrieve a metric by ID + ) -> ServicingSampleQuestionAPIResponseDTO: + """Retrieve a Vee sample question's details - If you know the ID of a metric, use this API to retrieve that metric specifically. + Get the details of a specific Vee sample question where the ID is the `questionID` returned by `GET /v1alpha/data/model/vee/sample-questions`.
**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 id: The ID of the metric to retrieve. (required) - :type id: str + :param question_id: The ID of the Vee sample question to retrieve. (required) + :type question_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. :type target_tenant_id: str + :param project_id: Optionally, specify a project in which to make the request. + :type project_id: str :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 @@ -4784,9 +4653,10 @@ def metric( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_serialize( - id=id, + _param = self._get_vee_sample_question_serialize( + question_id=question_id, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4794,7 +4664,7 @@ def metric( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricDTO", + '200': "ServicingSampleQuestionAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4809,10 +4679,11 @@ def metric( @validate_call - def metric_with_http_info( + def get_vee_sample_question_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + question_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question to retrieve.")], 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4825,15 +4696,17 @@ 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[DataservicesDatamodelTransfersMetricDTO]: - """Retrieve a metric by ID + ) -> ApiResponse[ServicingSampleQuestionAPIResponseDTO]: + """Retrieve a Vee sample question's details - If you know the ID of a metric, use this API to retrieve that metric specifically. + Get the details of a specific Vee sample question where the ID is the `questionID` returned by `GET /v1alpha/data/model/vee/sample-questions`.
**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 id: The ID of the metric to retrieve. (required) - :type id: str + :param question_id: The ID of the Vee sample question to retrieve. (required) + :type question_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. :type target_tenant_id: str + :param project_id: Optionally, specify a project in which to make the request. + :type project_id: str :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 @@ -4856,9 +4729,10 @@ def metric_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_serialize( - id=id, + _param = self._get_vee_sample_question_serialize( + question_id=question_id, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4866,7 +4740,7 @@ def metric_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricDTO", + '200': "ServicingSampleQuestionAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4881,10 +4755,11 @@ def metric_with_http_info( @validate_call - def metric_without_preload_content( + def get_vee_sample_question_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + question_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question to retrieve.")], 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4898,14 +4773,16 @@ def metric_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a metric by ID + """Retrieve a Vee sample question's details - If you know the ID of a metric, use this API to retrieve that metric specifically. + Get the details of a specific Vee sample question where the ID is the `questionID` returned by `GET /v1alpha/data/model/vee/sample-questions`.
**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 id: The ID of the metric to retrieve. (required) - :type id: str + :param question_id: The ID of the Vee sample question to retrieve. (required) + :type question_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. :type target_tenant_id: str + :param project_id: Optionally, specify a project in which to make the request. + :type project_id: str :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 @@ -4928,9 +4805,10 @@ def metric_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_serialize( - id=id, + _param = self._get_vee_sample_question_serialize( + question_id=question_id, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4938,7 +4816,7 @@ def metric_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricDTO", + '200': "ServicingSampleQuestionAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4947,10 +4825,11 @@ def metric_without_preload_content( return response_data.response - def _metric_serialize( + def _get_vee_sample_question_serialize( self, - id, + question_id, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -4970,12 +4849,14 @@ def _metric_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if question_id is not None: + _path_params['questionId'] = question_id # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter @@ -5000,7 +4881,7 @@ def _metric_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/metrics/{id}', + resource_path='/v1alpha/data/model/vee/sample-questions/{questionId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5017,10 +4898,8 @@ def _metric_serialize( @validate_call - def metric_dimensions( + def get_vee_sample_question_categories( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -5034,15 +4913,11 @@ def metric_dimensions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersDimensionsDTO: - """Retrieve a metric's dimensions + ) -> ServicingQuestionCategoriesAPIResponseDTO: + """Retrieve a list of all Vee question categories - Retrieve a list of dimensions for a specific metric. + Get a list of all categories for Vee sample questions. Administrating tenants can specify the tenant from which to retrieve categories 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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -5067,9 +4942,7 @@ def metric_dimensions( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_dimensions_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_categories_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5078,7 +4951,7 @@ def metric_dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "ServicingQuestionCategoriesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5093,10 +4966,8 @@ def metric_dimensions( @validate_call - def metric_dimensions_with_http_info( + def get_vee_sample_question_categories_with_http_info( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -5110,15 +4981,11 @@ 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[DataservicesDatamodelTransfersDimensionsDTO]: - """Retrieve a metric's dimensions + ) -> ApiResponse[ServicingQuestionCategoriesAPIResponseDTO]: + """Retrieve a list of all Vee question categories - Retrieve a list of dimensions for a specific metric. + Get a list of all categories for Vee sample questions. Administrating tenants can specify the tenant from which to retrieve categories 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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -5143,9 +5010,7 @@ def metric_dimensions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_dimensions_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_categories_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5154,7 +5019,7 @@ def metric_dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "ServicingQuestionCategoriesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5169,10 +5034,8 @@ def metric_dimensions_with_http_info( @validate_call - def metric_dimensions_without_preload_content( + def get_vee_sample_question_categories_without_preload_content( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ None, @@ -5187,14 +5050,10 @@ def metric_dimensions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a metric's dimensions + """Retrieve a list of all Vee question categories - Retrieve a list of dimensions for a specific metric. + Get a list of all categories for Vee sample questions. Administrating tenants can specify the tenant from which to retrieve categories 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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the dimensions to retrieve. Default is all dimensions. - :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -5219,9 +5078,7 @@ def metric_dimensions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_dimensions_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_categories_serialize( target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5230,7 +5087,7 @@ def metric_dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersDimensionsDTO", + '200': "ServicingQuestionCategoriesAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5239,10 +5096,8 @@ def metric_dimensions_without_preload_content( return response_data.response - def _metric_dimensions_serialize( + def _get_vee_sample_question_categories_serialize( self, - metric_id, - id, target_tenant_id, _request_auth, _content_type, @@ -5253,7 +5108,6 @@ def _metric_dimensions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -5264,13 +5118,7 @@ def _metric_dimensions_serialize( _body_params: Optional[bytes] = None # process the path parameters - if metric_id is not None: - _path_params['metricId'] = metric_id # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -5298,7 +5146,7 @@ def _metric_dimensions_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/metrics/{metricId}/dimensions', + resource_path='/v1alpha/data/model/vee/sample-question-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5315,10 +5163,9 @@ def _metric_dimensions_serialize( @validate_call - def metric_selection_concepts( + def get_vee_sample_question_category( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + question_category_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question category to retrieve.")], 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, @@ -5332,15 +5179,13 @@ 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, - ) -> DataservicesDatamodelTransfersSelectionConceptsDTO: - """Retrieve a metric's selection concepts + ) -> ServicingQuestionCategoryAPIResponseDTO: + """Retrieve a Vee question category's details - Retrieve a list of selection concepts for a specific metric. + Get the details of a specific Vee sample question category where the ID is the `categoryID` returned by `GET /v1alpha/data/model/vee/sample-question-categories`.
**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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param question_category_id: The ID of the Vee sample question category to retrieve. (required) + :type question_category_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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -5365,9 +5210,8 @@ def metric_selection_concepts( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_selection_concepts_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_category_serialize( + question_category_id=question_category_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5376,7 +5220,7 @@ def metric_selection_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingQuestionCategoryAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5391,10 +5235,9 @@ def metric_selection_concepts( @validate_call - def metric_selection_concepts_with_http_info( + def get_vee_sample_question_category_with_http_info( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + question_category_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question category to retrieve.")], 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, @@ -5408,15 +5251,13 @@ 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[DataservicesDatamodelTransfersSelectionConceptsDTO]: - """Retrieve a metric's selection concepts + ) -> ApiResponse[ServicingQuestionCategoryAPIResponseDTO]: + """Retrieve a Vee question category's details - Retrieve a list of selection concepts for a specific metric. + Get the details of a specific Vee sample question category where the ID is the `categoryID` returned by `GET /v1alpha/data/model/vee/sample-question-categories`.
**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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param question_category_id: The ID of the Vee sample question category to retrieve. (required) + :type question_category_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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -5441,9 +5282,8 @@ def metric_selection_concepts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_selection_concepts_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_category_serialize( + question_category_id=question_category_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5452,7 +5292,7 @@ def metric_selection_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingQuestionCategoryAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5467,10 +5307,9 @@ def metric_selection_concepts_with_http_info( @validate_call - def metric_selection_concepts_without_preload_content( + def get_vee_sample_question_category_without_preload_content( self, - metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + question_category_id: Annotated[StrictStr, Field(description="The ID of the Vee sample question category to retrieve.")], 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, @@ -5485,14 +5324,12 @@ def metric_selection_concepts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a metric's selection concepts + """Retrieve a Vee question category's details - Retrieve a list of selection concepts for a specific metric. + Get the details of a specific Vee sample question category where the ID is the `categoryID` returned by `GET /v1alpha/data/model/vee/sample-question-categories`.
**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 metric_id: The ID of the metric to retrieve. (required) - :type metric_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param question_category_id: The ID of the Vee sample question category to retrieve. (required) + :type question_category_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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -5517,9 +5354,8 @@ def metric_selection_concepts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._metric_selection_concepts_serialize( - metric_id=metric_id, - id=id, + _param = self._get_vee_sample_question_category_serialize( + question_category_id=question_category_id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5528,7 +5364,7 @@ def metric_selection_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingQuestionCategoryAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5537,10 +5373,9 @@ def metric_selection_concepts_without_preload_content( return response_data.response - def _metric_selection_concepts_serialize( + def _get_vee_sample_question_category_serialize( self, - metric_id, - id, + question_category_id, target_tenant_id, _request_auth, _content_type, @@ -5551,7 +5386,6 @@ def _metric_selection_concepts_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -5562,13 +5396,9 @@ def _metric_selection_concepts_serialize( _body_params: Optional[bytes] = None # process the path parameters - if metric_id is not None: - _path_params['metricId'] = metric_id + if question_category_id is not None: + _path_params['questionCategoryId'] = question_category_id # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -5596,7 +5426,7 @@ def _metric_selection_concepts_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/metrics/{metricId}/selection-concepts', + resource_path='/v1alpha/data/model/vee/sample-question-categories/{questionCategoryId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5613,11 +5443,10 @@ def _metric_selection_concepts_serialize( @validate_call - def metrics( + def get_vee_sample_questions( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, - category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5630,17 +5459,15 @@ def metrics( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersMetricsDTO: - """Retrieve a list of metrics + ) -> ServicingSampleQuestionsAPIResponseDTO: + """Retrieve a list of all Vee sample questions - Retrieve all the metrics in your Visier solution. + Get a list of all Vee sample questions for a tenant, including sample questions that are not available to end users. Administrating tenants can specify the tenant from which to retrieve sample questions 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 id: The IDs of the metrics to retrieve. Default is all metrics. - :type id: List[str] - :param category: The category to filter the returned metrics by. - :type category: 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 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 _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 @@ -5663,10 +5490,9 @@ def metrics( :return: Returns the result object. """ # noqa: E501 - _param = self._metrics_serialize( - id=id, - category=category, + _param = self._get_vee_sample_questions_serialize( target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5674,7 +5500,7 @@ def metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "ServicingSampleQuestionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5689,11 +5515,10 @@ def metrics( @validate_call - def metrics_with_http_info( + def get_vee_sample_questions_with_http_info( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, - category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5706,17 +5531,15 @@ 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[DataservicesDatamodelTransfersMetricsDTO]: - """Retrieve a list of metrics + ) -> ApiResponse[ServicingSampleQuestionsAPIResponseDTO]: + """Retrieve a list of all Vee sample questions - Retrieve all the metrics in your Visier solution. + Get a list of all Vee sample questions for a tenant, including sample questions that are not available to end users. Administrating tenants can specify the tenant from which to retrieve sample questions 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 id: The IDs of the metrics to retrieve. Default is all metrics. - :type id: List[str] - :param category: The category to filter the returned metrics by. - :type category: 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 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 _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 @@ -5739,10 +5562,9 @@ def metrics_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._metrics_serialize( - id=id, - category=category, + _param = self._get_vee_sample_questions_serialize( target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5750,7 +5572,7 @@ def metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "ServicingSampleQuestionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5765,11 +5587,10 @@ def metrics_with_http_info( @validate_call - def metrics_without_preload_content( + def get_vee_sample_questions_without_preload_content( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, - category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5783,16 +5604,14 @@ def metrics_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of metrics + """Retrieve a list of all Vee sample questions - Retrieve all the metrics in your Visier solution. + Get a list of all Vee sample questions for a tenant, including sample questions that are not available to end users. Administrating tenants can specify the tenant from which to retrieve sample questions 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 id: The IDs of the metrics to retrieve. Default is all metrics. - :type id: List[str] - :param category: The category to filter the returned metrics by. - :type category: 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 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 _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 @@ -5815,10 +5634,9 @@ def metrics_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._metrics_serialize( - id=id, - category=category, + _param = self._get_vee_sample_questions_serialize( target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5826,7 +5644,7 @@ def metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "ServicingSampleQuestionsAPIResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -5835,11 +5653,10 @@ def metrics_without_preload_content( return response_data.response - def _metrics_serialize( + def _get_vee_sample_questions_serialize( self, - id, - category, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -5849,7 +5666,6 @@ def _metrics_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -5861,17 +5677,11 @@ def _metrics_serialize( # process the path parameters # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - - if category is not None: - - _query_params.append(('category', category)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter @@ -5896,7 +5706,7 @@ def _metrics_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/metrics', + resource_path='/v1alpha/data/model/vee/sample-questions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5913,20 +5723,12 @@ def _metrics_serialize( @validate_call - def plan_data_loadl_list( + def member( self, - display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, - model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, - plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, - created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, - created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, - edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, - edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, - exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, - max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, - page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], + dimension_id: Annotated[StrictStr, Field(description="The ID of the dimension.")], + id: StrictStr, + id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = 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[ None, @@ -5940,35 +5742,19 @@ 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, - ) -> PlanningTransfersGetPlanListResponseDTO: - """Retrieve a list of plans + ) -> DataservicesDatamodelMembersDTO: + """Retrieve a dimension member - 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). + 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. - :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". - :type display_name: str - :param model: Returns plans that belong to the specified planning model ID. - :type model: str - :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. - :type plan_status: str - :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. - :type created_start: str - :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. - :type created_end: str - :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. - :type edited_start: str - :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. - :type edited_end: str - :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. - :type order_by: str - :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. - :type sort_order: str - :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. - :type exclude_subplans: bool - :param max_results: Sets the maximum number of results to return per page. Default is 50. - :type max_results: str - :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. - :type page: str + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: (required) + :type id: str + :param id2: The ID of the member to retrieve. + :type id2: 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 _request_timeout: timeout setting for this request. If one @@ -5993,19 +5779,11 @@ def plan_data_loadl_list( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_data_loadl_list_serialize( - display_name=display_name, - model=model, - plan_status=plan_status, - created_start=created_start, - created_end=created_end, - edited_start=edited_start, - edited_end=edited_end, - order_by=order_by, - sort_order=sort_order, - exclude_subplans=exclude_subplans, - max_results=max_results, - page=page, + _param = self._member_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + id2=id2, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6014,7 +5792,7 @@ def plan_data_loadl_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersGetPlanListResponseDTO", + '200': "DataservicesDatamodelMembersDTO", } response_data = self.api_client.call_api( *_param, @@ -6029,20 +5807,12 @@ def plan_data_loadl_list( @validate_call - def plan_data_loadl_list_with_http_info( + def member_with_http_info( self, - display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, - model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, - plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, - created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, - created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, - edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, - edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, - exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, - max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, - page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], + dimension_id: Annotated[StrictStr, Field(description="The ID of the dimension.")], + id: StrictStr, + id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = 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[ None, @@ -6056,35 +5826,2996 @@ 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[PlanningTransfersGetPlanListResponseDTO]: - """Retrieve a list of plans + ) -> ApiResponse[DataservicesDatamodelMembersDTO]: + """Retrieve a dimension member - 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). + 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. - :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". - :type display_name: str - :param model: Returns plans that belong to the specified planning model ID. - :type model: str - :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. - :type plan_status: str - :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. - :type created_start: str - :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. - :type created_end: str - :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. - :type edited_start: str - :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. - :type edited_end: str - :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. - :type order_by: str - :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. - :type sort_order: str - :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. - :type exclude_subplans: bool - :param max_results: Sets the maximum number of results to return per page. Default is 50. - :type max_results: str - :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. - :type page: str + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: (required) + :type id: str + :param id2: The ID of the member to retrieve. + :type id2: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._member_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + id2=id2, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMembersDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def member_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 the dimension.")], + id: StrictStr, + id2: Annotated[Optional[StrictStr], Field(description="The ID of the member to retrieve.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """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. + + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: (required) + :type id: str + :param id2: The ID of the member to retrieve. + :type id2: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._member_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + id2=id2, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMembersDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _member_serialize( + self, + object_id, + dimension_id, + id, + id2, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if object_id is not None: + _path_params['objectId'] = object_id + if dimension_id is not None: + _path_params['dimensionId'] = dimension_id + if id is not None: + _path_params['id'] = id + # process the query parameters + if id2 is not None: + + _query_params.append(('Id', id2)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/members/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def members( + self, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object.")], + dimension_id: Annotated[StrictStr, Field(description="The ID of the dimension.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, + max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, + filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, + var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, + include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, + offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelMembersDTO: + """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. + + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: The IDs of the members to retrieve. Default is all members. + :type id: List[str] + :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. + :type max_level: int + :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. + :type filter: str + :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. + :type var_field: str + :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. + :type include_data_members: bool + :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type offset: int + :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type limit: int + :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. + :type sort_type: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._members_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + max_level=max_level, + filter=filter, + var_field=var_field, + include_data_members=include_data_members, + offset=offset, + limit=limit, + sort_type=sort_type, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMembersDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def members_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 the dimension.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, + max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, + filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, + var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, + include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, + offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelMembersDTO]: + """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. + + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: The IDs of the members to retrieve. Default is all members. + :type id: List[str] + :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. + :type max_level: int + :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. + :type filter: str + :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. + :type var_field: str + :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. + :type include_data_members: bool + :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type offset: int + :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type limit: int + :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. + :type sort_type: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._members_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + max_level=max_level, + filter=filter, + var_field=var_field, + include_data_members=include_data_members, + offset=offset, + limit=limit, + sort_type=sort_type, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMembersDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def members_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 the dimension.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the members to retrieve. Default is all members.")] = None, + max_level: Annotated[Optional[StrictInt], Field(description="The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels.")] = None, + filter: Annotated[Optional[StrictStr], Field(description="A regular expression that members must match to be retrieved. Default is to retrieve all members.")] = None, + var_field: Annotated[Optional[StrictStr], Field(description="Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`.")] = None, + include_data_members: Annotated[Optional[StrictBool], Field(description="Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`.")] = None, + offset: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored.")] = None, + sort_type: Annotated[Optional[StrictStr], Field(description="The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """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. + + :param object_id: The ID of the analytic object. (required) + :type object_id: str + :param dimension_id: The ID of the dimension. (required) + :type dimension_id: str + :param id: The IDs of the members to retrieve. Default is all members. + :type id: List[str] + :param max_level: The maximum level in the hierarchy to fetch. The top level of the hierarchy is 0. Default is all levels. + :type max_level: int + :param filter: A regular expression that members must match to be retrieved. Default is to retrieve all members. + :type filter: str + :param var_field: Indicates the aspect of the member to apply the filter to. Possible values are: - **id**: Match the filter to the member ID. - **display**: Match the filter to the member's display name. - **either**: Match the filter to the member ID or display name. Default is `id`. + :type var_field: str + :param include_data_members: Indicates whether data members are included in the response. Parent-child dimensions only. Default is `false`. + :type include_data_members: bool + :param offset: For paginated member requests against high-cardinality dimensions, the offset of the first member to retrieve. Default is 0. If the `offset` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type offset: int + :param limit: For paginated member requests against high-cardinality dimensions, the maximum number of members to retrieve. Default is -1, meaning no limit. If the `limit` value is specified to a non-default value, all other non-pagination parameters are ignored. + :type limit: int + :param sort_type: The order of the members in the response. Valid values: - **configured**: Sorts the members according to their configuration; for example, the configured order of dimension members in the studio experience. - **natural**: Sorts the members by their natural order; for example, sorted in ascending order by level in a parent-child dimension. Default is `natural`. + :type sort_type: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._members_serialize( + object_id=object_id, + dimension_id=dimension_id, + id=id, + max_level=max_level, + filter=filter, + var_field=var_field, + include_data_members=include_data_members, + offset=offset, + limit=limit, + sort_type=sort_type, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMembersDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _members_serialize( + self, + object_id, + dimension_id, + id, + max_level, + filter, + var_field, + include_data_members, + offset, + limit, + sort_type, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'id': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if object_id is not None: + _path_params['objectId'] = object_id + if dimension_id is not None: + _path_params['dimensionId'] = dimension_id + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + if max_level is not None: + + _query_params.append(('maxLevel', max_level)) + + if filter is not None: + + _query_params.append(('filter', filter)) + + if var_field is not None: + + _query_params.append(('field', var_field)) + + if include_data_members is not None: + + _query_params.append(('includeDataMembers', include_data_members)) + + if offset is not None: + + _query_params.append(('offset', offset)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if sort_type is not None: + + _query_params.append(('sortType', sort_type)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/analytic-objects/{objectId}/dimensions/{dimensionId}/members', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def metric( + self, + id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelMetricDTO: + """Retrieve a metric by ID + + If you know the ID of a metric, use this API to retrieve that metric specifically. + + :param id: The ID of the metric to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def metric_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelMetricDTO]: + """Retrieve a metric by ID + + If you know the ID of a metric, use this API to retrieve that metric specifically. + + :param id: The ID of the metric to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def metric_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a metric by ID + + If you know the ID of a metric, use this API to retrieve that metric specifically. + + :param id: The ID of the metric to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _metric_serialize( + self, + id, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/metrics/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def metric_dimensions( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelDimensionsDTO: + """Retrieve a metric's dimensions + + Retrieve a list of dimensions for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_dimensions_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelDimensionsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def metric_dimensions_with_http_info( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelDimensionsDTO]: + """Retrieve a metric's dimensions + + Retrieve a list of dimensions for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_dimensions_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelDimensionsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def metric_dimensions_without_preload_content( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the dimensions to retrieve. Default is all dimensions.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a metric's dimensions + + Retrieve a list of dimensions for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the dimensions to retrieve. Default is all dimensions. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_dimensions_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelDimensionsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _metric_dimensions_serialize( + self, + metric_id, + id, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'id': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if metric_id is not None: + _path_params['metricId'] = metric_id + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/metrics/{metricId}/dimensions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def metric_selection_concepts( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelSelectionConceptsDTO: + """Retrieve a metric's selection concepts + + Retrieve a list of selection concepts for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_selection_concepts_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelSelectionConceptsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def metric_selection_concepts_with_http_info( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelSelectionConceptsDTO]: + """Retrieve a metric's selection concepts + + Retrieve a list of selection concepts for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_selection_concepts_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelSelectionConceptsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def metric_selection_concepts_without_preload_content( + self, + metric_id: Annotated[StrictStr, Field(description="The ID of the metric to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a metric's selection concepts + + Retrieve a list of selection concepts for a specific metric. + + :param metric_id: The ID of the metric to retrieve. (required) + :type metric_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metric_selection_concepts_serialize( + metric_id=metric_id, + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelSelectionConceptsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _metric_selection_concepts_serialize( + self, + metric_id, + id, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'id': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if metric_id is not None: + _path_params['metricId'] = metric_id + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/metrics/{metricId}/selection-concepts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def metrics( + self, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, + category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelMetricsDTO: + """Retrieve a list of metrics + + Retrieve all the metrics in your Visier solution. + + :param id: The IDs of the metrics to retrieve. Default is all metrics. + :type id: List[str] + :param category: The category to filter the returned metrics by. + :type category: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metrics_serialize( + id=id, + category=category, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def metrics_with_http_info( + self, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, + category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelMetricsDTO]: + """Retrieve a list of metrics + + Retrieve all the metrics in your Visier solution. + + :param id: The IDs of the metrics to retrieve. Default is all metrics. + :type id: List[str] + :param category: The category to filter the returned metrics by. + :type category: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metrics_serialize( + id=id, + category=category, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def metrics_without_preload_content( + self, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the metrics to retrieve. Default is all metrics.")] = None, + category: Annotated[Optional[StrictStr], Field(description="The category to filter the returned metrics by.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a list of metrics + + Retrieve all the metrics in your Visier solution. + + :param id: The IDs of the metrics to retrieve. Default is all metrics. + :type id: List[str] + :param category: The category to filter the returned metrics by. + :type category: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._metrics_serialize( + id=id, + category=category, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _metrics_serialize( + self, + id, + category, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'id': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + if category is not None: + + _query_params.append(('category', category)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/metrics', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def plan_data_loadl_list( + self, + display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, + model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, + plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, + created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, + created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, + edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, + edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, + exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, + max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, + page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PlanningGetPlanListResponseDTO: + """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). + + :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". + :type display_name: str + :param model: Returns plans that belong to the specified planning model ID. + :type model: str + :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. + :type plan_status: str + :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. + :type created_start: str + :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. + :type created_end: str + :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. + :type edited_start: str + :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. + :type edited_end: str + :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. + :type order_by: str + :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. + :type sort_order: str + :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. + :type exclude_subplans: bool + :param max_results: Sets the maximum number of results to return per page. Default is 50. + :type max_results: str + :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. + :type page: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_data_loadl_list_serialize( + display_name=display_name, + model=model, + plan_status=plan_status, + created_start=created_start, + created_end=created_end, + edited_start=edited_start, + edited_end=edited_end, + order_by=order_by, + sort_order=sort_order, + exclude_subplans=exclude_subplans, + max_results=max_results, + page=page, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningGetPlanListResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def plan_data_loadl_list_with_http_info( + self, + display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, + model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, + plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, + created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, + created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, + edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, + edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, + exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, + max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, + page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PlanningGetPlanListResponseDTO]: + """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). + + :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". + :type display_name: str + :param model: Returns plans that belong to the specified planning model ID. + :type model: str + :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. + :type plan_status: str + :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. + :type created_start: str + :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. + :type created_end: str + :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. + :type edited_start: str + :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. + :type edited_end: str + :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. + :type order_by: str + :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. + :type sort_order: str + :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. + :type exclude_subplans: bool + :param max_results: Sets the maximum number of results to return per page. Default is 50. + :type max_results: str + :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. + :type page: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_data_loadl_list_serialize( + display_name=display_name, + model=model, + plan_status=plan_status, + created_start=created_start, + created_end=created_end, + edited_start=edited_start, + edited_end=edited_end, + order_by=order_by, + sort_order=sort_order, + exclude_subplans=exclude_subplans, + max_results=max_results, + page=page, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningGetPlanListResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def plan_data_loadl_list_without_preload_content( + self, + display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, + model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, + plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, + created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, + created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, + edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, + edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, + order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, + sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, + exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, + max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, + page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """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). + + :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". + :type display_name: str + :param model: Returns plans that belong to the specified planning model ID. + :type model: str + :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. + :type plan_status: str + :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. + :type created_start: str + :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. + :type created_end: str + :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. + :type edited_start: str + :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. + :type edited_end: str + :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. + :type order_by: str + :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. + :type sort_order: str + :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. + :type exclude_subplans: bool + :param max_results: Sets the maximum number of results to return per page. Default is 50. + :type max_results: str + :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. + :type page: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_data_loadl_list_serialize( + display_name=display_name, + model=model, + plan_status=plan_status, + created_start=created_start, + created_end=created_end, + edited_start=edited_start, + edited_end=edited_end, + order_by=order_by, + sort_order=sort_order, + exclude_subplans=exclude_subplans, + max_results=max_results, + page=page, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningGetPlanListResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _plan_data_loadl_list_serialize( + self, + display_name, + model, + plan_status, + created_start, + created_end, + edited_start, + edited_end, + order_by, + sort_order, + exclude_subplans, + max_results, + page, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if display_name is not None: + + _query_params.append(('displayName', display_name)) + + if model is not None: + + _query_params.append(('model', model)) + + if plan_status is not None: + + _query_params.append(('planStatus', plan_status)) + + if created_start is not None: + + _query_params.append(('createdStart', created_start)) + + if created_end is not None: + + _query_params.append(('createdEnd', created_end)) + + if edited_start is not None: + + _query_params.append(('editedStart', edited_start)) + + if edited_end is not None: + + _query_params.append(('editedEnd', edited_end)) + + if order_by is not None: + + _query_params.append(('orderBy', order_by)) + + if sort_order is not None: + + _query_params.append(('sortOrder', sort_order)) + + if exclude_subplans is not None: + + _query_params.append(('excludeSubplans', exclude_subplans)) + + if max_results is not None: + + _query_params.append(('maxResults', max_results)) + + if page is not None: + + _query_params.append(('page', page)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1alpha/planning/model/plans', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def plan_info_with_schema( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], + with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, + segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PlanningPlanWithSchemaDTO: + """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). + + :param id: The unique identifier of the plan. (required) + :type id: str + :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. + :type with_schema: bool + :param segment_id_filter: If defined, returns segment levels and members for the specified segment. + :type segment_id_filter: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_info_with_schema_serialize( + id=id, + with_schema=with_schema, + segment_id_filter=segment_id_filter, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningPlanWithSchemaDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def plan_info_with_schema_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], + with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, + segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PlanningPlanWithSchemaDTO]: + """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). + + :param id: The unique identifier of the plan. (required) + :type id: str + :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. + :type with_schema: bool + :param segment_id_filter: If defined, returns segment levels and members for the specified segment. + :type segment_id_filter: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_info_with_schema_serialize( + id=id, + with_schema=with_schema, + segment_id_filter=segment_id_filter, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningPlanWithSchemaDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def plan_info_with_schema_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], + with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, + segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """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). + + :param id: The unique identifier of the plan. (required) + :type id: str + :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. + :type with_schema: bool + :param segment_id_filter: If defined, returns segment levels and members for the specified segment. + :type segment_id_filter: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._plan_info_with_schema_serialize( + id=id, + with_schema=with_schema, + segment_id_filter=segment_id_filter, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PlanningPlanWithSchemaDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _plan_info_with_schema_serialize( + self, + id, + with_schema, + segment_id_filter, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + if with_schema is not None: + + _query_params.append(('withSchema', with_schema)) + + if segment_id_filter is not None: + + _query_params.append(('segmentIdFilter', segment_id_filter)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1alpha/planning/model/plans/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def planning_metrics( + self, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelMetricsDTO: + """Retrieve metrics by planning model ID + + Retrieve all the metrics you have access to for a planning model. + + :param id: The ID of the planning model to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._planning_metrics_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def planning_metrics_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelMetricsDTO]: + """Retrieve metrics by planning model ID + + Retrieve all the metrics you have access to for a planning model. + + :param id: The ID of the planning model to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._planning_metrics_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def planning_metrics_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve metrics by planning model ID + + Retrieve all the metrics you have access to for a planning model. + + :param id: The ID of the planning model to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._planning_metrics_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelMetricsDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _planning_metrics_serialize( + self, + id, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/model/plan-models/{id}/metrics', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def planning_model( + self, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataservicesDatamodelPlanningModelDTO: + """Retrieve a planning model by ID + + Retrieve a specific planning model you have access to. + + :param id: The ID of the planning model to retrieve. (required) + :type 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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._planning_model_serialize( + id=id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataservicesDatamodelPlanningModelDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_analytic_model.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def planning_model_with_http_info( + self, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataservicesDatamodelPlanningModelDTO]: + """Retrieve a planning model by ID + + Retrieve a specific planning model you have access to. + + :param id: The ID of the planning model to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -6109,19 +8840,8 @@ def plan_data_loadl_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_data_loadl_list_serialize( - display_name=display_name, - model=model, - plan_status=plan_status, - created_start=created_start, - created_end=created_end, - edited_start=edited_start, - edited_end=edited_end, - order_by=order_by, - sort_order=sort_order, - exclude_subplans=exclude_subplans, - max_results=max_results, - page=page, + _param = self._planning_model_serialize( + id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6130,7 +8850,7 @@ def plan_data_loadl_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersGetPlanListResponseDTO", + '200': "DataservicesDatamodelPlanningModelDTO", } response_data = self.api_client.call_api( *_param, @@ -6145,20 +8865,9 @@ def plan_data_loadl_list_with_http_info( @validate_call - def plan_data_loadl_list_without_preload_content( + def planning_model_without_preload_content( self, - display_name: Annotated[Optional[StrictStr], Field(description="Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\".")] = None, - model: Annotated[Optional[StrictStr], Field(description="Returns plans that belong to the specified planning model ID.")] = None, - plan_status: Annotated[Optional[StrictStr], Field(description="Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan.")] = None, - created_start: Annotated[Optional[StrictStr], Field(description="Returns plans created on or after this date. The format is YYYY-MM-DD.")] = None, - created_end: Annotated[Optional[StrictStr], Field(description="Return plans created on or before this date. The format is YYYY-MM-DD.")] = None, - edited_start: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or after this date. The format is YYYY-MM-DD.")] = None, - edited_end: Annotated[Optional[StrictStr], Field(description="Returns plans edited on or before this date. The format is YYYY-MM-DD.")] = None, - order_by: Annotated[Optional[StrictStr], Field(description="Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model.")] = None, - sort_order: Annotated[Optional[StrictStr], Field(description="Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`.")] = None, - exclude_subplans: Annotated[Optional[StrictBool], Field(description="If `true`, the response doesn't return subplans. Default is `true`.")] = None, - max_results: Annotated[Optional[StrictStr], Field(description="Sets the maximum number of results to return per page. Default is 50.")] = None, - page: Annotated[Optional[StrictStr], Field(description="Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], 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, @@ -6173,34 +8882,12 @@ def plan_data_loadl_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of plans + """Retrieve a planning model by ID - 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). + Retrieve a specific planning model you have access to. - :param display_name: Returns plans that match the specified display name. Ignores text case and includes partial matches. For example, `displayName=WFP Plan` returns plans named \"WFP Plan 2024\", \"WFP plan v1\", and \"WFP plan - Product\". - :type display_name: str - :param model: Returns plans that belong to the specified planning model ID. - :type model: str - :param plan_status: Returns plans with the specified plan status. Valid values: - **ASSIGNED**: The subplan has been assigned to a subplanner. - **IN_PROGRESS**: The subplanner has opened the subplan. - **OVERDUE**: The subplan was not completed on time. - **SUBMITTED**: The subplan has been submitted for review. - **SENT_BACK**: The subplan was rejected and returned to the subplanner for editing. - **CONSOLIDATED**: The subplan has been accepted and combined into the primary plan. - :type plan_status: str - :param created_start: Returns plans created on or after this date. The format is YYYY-MM-DD. - :type created_start: str - :param created_end: Return plans created on or before this date. The format is YYYY-MM-DD. - :type created_end: str - :param edited_start: Returns plans edited on or after this date. The format is YYYY-MM-DD. - :type edited_start: str - :param edited_end: Returns plans edited on or before this date. The format is YYYY-MM-DD. - :type edited_end: str - :param order_by: Orders plan results by the specified value. Valid values: - **LAST_EDITED_DATE**: Orders plans by the last edited date. This is the default. - **CREATED_DATE**: Orders plans by the creation date. - **PLAN_MODEL**: Orders plans alphabetically by planning model. - :type order_by: str - :param sort_order: Sorts plan results by the specified value. Valid values are `ASCENDING` or `DESCENDING`. Default is `DESCENDING`. - :type sort_order: str - :param exclude_subplans: If `true`, the response doesn't return subplans. Default is `true`. - :type exclude_subplans: bool - :param max_results: Sets the maximum number of results to return per page. Default is 50. - :type max_results: str - :param page: Sets the results page to return. If undefined, returns the first 50 results. To get the next 50 results, specify `page=2`. - :type page: str + :param id: The ID of the planning model to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -6225,19 +8912,8 @@ def plan_data_loadl_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_data_loadl_list_serialize( - display_name=display_name, - model=model, - plan_status=plan_status, - created_start=created_start, - created_end=created_end, - edited_start=edited_start, - edited_end=edited_end, - order_by=order_by, - sort_order=sort_order, - exclude_subplans=exclude_subplans, - max_results=max_results, - page=page, + _param = self._planning_model_serialize( + id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6246,7 +8922,7 @@ def plan_data_loadl_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersGetPlanListResponseDTO", + '200': "DataservicesDatamodelPlanningModelDTO", } response_data = self.api_client.call_api( *_param, @@ -6255,20 +8931,9 @@ def plan_data_loadl_list_without_preload_content( return response_data.response - def _plan_data_loadl_list_serialize( + def _planning_model_serialize( self, - display_name, - model, - plan_status, - created_start, - created_end, - edited_start, - edited_end, - order_by, - sort_order, - exclude_subplans, - max_results, - page, + id, target_tenant_id, _request_auth, _content_type, @@ -6289,55 +8954,9 @@ def _plan_data_loadl_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if display_name is not None: - - _query_params.append(('displayName', display_name)) - - if model is not None: - - _query_params.append(('model', model)) - - if plan_status is not None: - - _query_params.append(('planStatus', plan_status)) - - if created_start is not None: - - _query_params.append(('createdStart', created_start)) - - if created_end is not None: - - _query_params.append(('createdEnd', created_end)) - - if edited_start is not None: - - _query_params.append(('editedStart', edited_start)) - - if edited_end is not None: - - _query_params.append(('editedEnd', edited_end)) - - if order_by is not None: - - _query_params.append(('orderBy', order_by)) - - if sort_order is not None: - - _query_params.append(('sortOrder', sort_order)) - - if exclude_subplans is not None: - - _query_params.append(('excludeSubplans', exclude_subplans)) - - if max_results is not None: - - _query_params.append(('maxResults', max_results)) - - if page is not None: - - _query_params.append(('page', page)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -6365,7 +8984,7 @@ def _plan_data_loadl_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1alpha/planning/model/plans', + resource_path='/v1/data/model/plan-models/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6382,11 +9001,9 @@ def _plan_data_loadl_list_serialize( @validate_call - def plan_info_with_schema( + def planning_models( self, - id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], - with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, - segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = None, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = 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[ None, @@ -6400,17 +9017,13 @@ 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, - ) -> PlanningTransfersPlanWithSchemaDTO: - """Retrieve a plan's details + ) -> DataservicesDatamodelPlanningModelsDTO: + """Retrieve a list of planning models - 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). + Retrieve all the planning models you have access to. - :param id: The unique identifier of the plan. (required) - :type id: str - :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. - :type with_schema: bool - :param segment_id_filter: If defined, returns segment levels and members for the specified segment. - :type segment_id_filter: str + :param id: The IDs of the planning models to retrieve. Default is all models. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -6435,10 +9048,8 @@ def plan_info_with_schema( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_info_with_schema_serialize( + _param = self._planning_models_serialize( id=id, - with_schema=with_schema, - segment_id_filter=segment_id_filter, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6447,7 +9058,7 @@ def plan_info_with_schema( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersPlanWithSchemaDTO", + '200': "DataservicesDatamodelPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -6462,11 +9073,9 @@ def plan_info_with_schema( @validate_call - def plan_info_with_schema_with_http_info( + def planning_models_with_http_info( self, - id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], - with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, - segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = None, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = 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[ None, @@ -6480,17 +9089,13 @@ 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[PlanningTransfersPlanWithSchemaDTO]: - """Retrieve a plan's details + ) -> ApiResponse[DataservicesDatamodelPlanningModelsDTO]: + """Retrieve a list of planning models - 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). + Retrieve all the planning models you have access to. - :param id: The unique identifier of the plan. (required) - :type id: str - :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. - :type with_schema: bool - :param segment_id_filter: If defined, returns segment levels and members for the specified segment. - :type segment_id_filter: str + :param id: The IDs of the planning models to retrieve. Default is all models. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -6515,10 +9120,8 @@ def plan_info_with_schema_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_info_with_schema_serialize( + _param = self._planning_models_serialize( id=id, - with_schema=with_schema, - segment_id_filter=segment_id_filter, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6527,7 +9130,7 @@ def plan_info_with_schema_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersPlanWithSchemaDTO", + '200': "DataservicesDatamodelPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -6542,11 +9145,9 @@ def plan_info_with_schema_with_http_info( @validate_call - def plan_info_with_schema_without_preload_content( + def planning_models_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The unique identifier of the plan.")], - with_schema: Annotated[Optional[StrictBool], Field(description="If `true`, the response returns the plan's schema. Default is `false`.")] = None, - segment_id_filter: Annotated[Optional[StrictStr], Field(description="If defined, returns segment levels and members for the specified segment.")] = None, + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = 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[ None, @@ -6561,16 +9162,12 @@ def plan_info_with_schema_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a plan's details + """Retrieve a list of planning models - 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). + Retrieve all the planning models you have access to. - :param id: The unique identifier of the plan. (required) - :type id: str - :param with_schema: If `true`, the response returns the plan's schema. Default is `false`. - :type with_schema: bool - :param segment_id_filter: If defined, returns segment levels and members for the specified segment. - :type segment_id_filter: str + :param id: The IDs of the planning models to retrieve. Default is all models. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -6595,10 +9192,8 @@ def plan_info_with_schema_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._plan_info_with_schema_serialize( + _param = self._planning_models_serialize( id=id, - with_schema=with_schema, - segment_id_filter=segment_id_filter, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -6607,7 +9202,7 @@ def plan_info_with_schema_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PlanningTransfersPlanWithSchemaDTO", + '200': "DataservicesDatamodelPlanningModelsDTO", } response_data = self.api_client.call_api( *_param, @@ -6616,11 +9211,9 @@ def plan_info_with_schema_without_preload_content( return response_data.response - def _plan_info_with_schema_serialize( + def _planning_models_serialize( self, id, - with_schema, - segment_id_filter, target_tenant_id, _request_auth, _content_type, @@ -6631,6 +9224,7 @@ def _plan_info_with_schema_serialize( _host = None _collection_formats: Dict[str, str] = { + 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -6641,16 +9235,10 @@ def _plan_info_with_schema_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters - if with_schema is not None: - - _query_params.append(('withSchema', with_schema)) - - if segment_id_filter is not None: + if id is not None: - _query_params.append(('segmentIdFilter', segment_id_filter)) + _query_params.append(('id', id)) # process the header parameters if target_tenant_id is not None: @@ -6679,7 +9267,7 @@ def _plan_info_with_schema_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1alpha/planning/model/plans/{id}', + resource_path='/v1/data/model/plan-models', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6696,9 +9284,10 @@ def _plan_info_with_schema_serialize( @validate_call - def planning_metrics( + def planning_plan( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], 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, @@ -6712,12 +9301,14 @@ def planning_metrics( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersMetricsDTO: - """Retrieve metrics by planning model ID + ) -> DataservicesDatamodelPlanningPlanDTO: + """Retrieve a plan by planning model ID and plan ID - Retrieve all the metrics you have access to for a planning model. + Retrieve a specific plan that you have access to in a planning model. - :param id: The ID of the planning model to retrieve. (required) + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The ID of the plan to retrieve. (required) :type 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. :type target_tenant_id: str @@ -6743,7 +9334,8 @@ def planning_metrics( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_metrics_serialize( + _param = self._planning_plan_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -6753,7 +9345,7 @@ def planning_metrics( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -6768,9 +9360,10 @@ def planning_metrics( @validate_call - def planning_metrics_with_http_info( + def planning_plan_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], 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, @@ -6784,12 +9377,14 @@ 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[DataservicesDatamodelTransfersMetricsDTO]: - """Retrieve metrics by planning model ID + ) -> ApiResponse[DataservicesDatamodelPlanningPlanDTO]: + """Retrieve a plan by planning model ID and plan ID - Retrieve all the metrics you have access to for a planning model. + Retrieve a specific plan that you have access to in a planning model. - :param id: The ID of the planning model to retrieve. (required) + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The ID of the plan to retrieve. (required) :type 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. :type target_tenant_id: str @@ -6815,7 +9410,8 @@ def planning_metrics_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_metrics_serialize( + _param = self._planning_plan_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -6825,7 +9421,7 @@ def planning_metrics_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -6840,9 +9436,10 @@ def planning_metrics_with_http_info( @validate_call - def planning_metrics_without_preload_content( + def planning_plan_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], 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, @@ -6857,11 +9454,13 @@ def planning_metrics_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve metrics by planning model ID + """Retrieve a plan by planning model ID and plan ID - Retrieve all the metrics you have access to for a planning model. + Retrieve a specific plan that you have access to in a planning model. - :param id: The ID of the planning model to retrieve. (required) + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The ID of the plan to retrieve. (required) :type 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. :type target_tenant_id: str @@ -6887,7 +9486,8 @@ def planning_metrics_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_metrics_serialize( + _param = self._planning_plan_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -6897,7 +9497,7 @@ def planning_metrics_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersMetricsDTO", + '200': "DataservicesDatamodelPlanningPlanDTO", } response_data = self.api_client.call_api( *_param, @@ -6906,8 +9506,9 @@ def planning_metrics_without_preload_content( return response_data.response - def _planning_metrics_serialize( + def _planning_plan_serialize( self, + model_id, id, target_tenant_id, _request_auth, @@ -6929,6 +9530,8 @@ def _planning_metrics_serialize( _body_params: Optional[bytes] = None # process the path parameters + if model_id is not None: + _path_params['modelId'] = model_id if id is not None: _path_params['id'] = id # process the query parameters @@ -6959,7 +9562,7 @@ def _planning_metrics_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/plan-models/{id}/metrics', + resource_path='/v1/data/model/plan-models/{modelId}/plans/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6976,9 +9579,10 @@ def _planning_metrics_serialize( @validate_call - def planning_model( + def planning_plans( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = 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[ None, @@ -6992,13 +9596,15 @@ def planning_model( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPlanningModelDTO: - """Retrieve a planning model by ID + ) -> DataservicesDatamodelPlanningPlansDTO: + """Retrieve a list of plans by planning model ID - Retrieve a specific planning model you have access to. + Retrieve all the plans you have access to for a planning model. - :param id: The ID of the planning model to retrieve. (required) - :type id: str + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The IDs of the plans to retrieve. Default is all plans. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7023,7 +9629,8 @@ def planning_model( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_model_serialize( + _param = self._planning_plans_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7033,7 +9640,7 @@ def planning_model( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelDTO", + '200': "DataservicesDatamodelPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -7048,9 +9655,10 @@ def planning_model( @validate_call - def planning_model_with_http_info( + def planning_plans_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = 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[ None, @@ -7064,13 +9672,15 @@ 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[DataservicesDatamodelTransfersPlanningModelDTO]: - """Retrieve a planning model by ID + ) -> ApiResponse[DataservicesDatamodelPlanningPlansDTO]: + """Retrieve a list of plans by planning model ID - Retrieve a specific planning model you have access to. + Retrieve all the plans you have access to for a planning model. - :param id: The ID of the planning model to retrieve. (required) - :type id: str + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The IDs of the plans to retrieve. Default is all plans. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7095,7 +9705,8 @@ def planning_model_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_model_serialize( + _param = self._planning_plans_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7105,7 +9716,7 @@ def planning_model_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelDTO", + '200': "DataservicesDatamodelPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -7120,9 +9731,10 @@ def planning_model_with_http_info( @validate_call - def planning_model_without_preload_content( + def planning_plans_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = 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[ None, @@ -7137,12 +9749,14 @@ def planning_model_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a planning model by ID + """Retrieve a list of plans by planning model ID - Retrieve a specific planning model you have access to. + Retrieve all the plans you have access to for a planning model. - :param id: The ID of the planning model to retrieve. (required) - :type id: str + :param model_id: The ID of the planning model to retrieve. (required) + :type model_id: str + :param id: The IDs of the plans to retrieve. Default is all plans. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7167,7 +9781,8 @@ def planning_model_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_model_serialize( + _param = self._planning_plans_serialize( + model_id=model_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7177,7 +9792,7 @@ def planning_model_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelDTO", + '200': "DataservicesDatamodelPlanningPlansDTO", } response_data = self.api_client.call_api( *_param, @@ -7186,8 +9801,9 @@ def planning_model_without_preload_content( return response_data.response - def _planning_model_serialize( + def _planning_plans_serialize( self, + model_id, id, target_tenant_id, _request_auth, @@ -7199,6 +9815,7 @@ def _planning_model_serialize( _host = None _collection_formats: Dict[str, str] = { + 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -7209,9 +9826,13 @@ def _planning_model_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if model_id is not None: + _path_params['modelId'] = model_id # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -7239,7 +9860,7 @@ def _planning_model_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/plan-models/{id}', + resource_path='/v1/data/model/plan-models/{modelId}/plans', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7256,9 +9877,9 @@ def _planning_model_serialize( @validate_call - def planning_models( + def prediction( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], 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, @@ -7272,13 +9893,13 @@ def planning_models( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPlanningModelsDTO: - """Retrieve a list of planning models + ) -> DataservicesDatamodelPredictionDTO: + """Retrieve a prediction by ID - Retrieve all the planning models you have access to. + If you know the ID of a prediction, use this API to retrieve that prediction specifically. - :param id: The IDs of the planning models to retrieve. Default is all models. - :type id: List[str] + :param id: The ID of the prediction to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7303,7 +9924,7 @@ def planning_models( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_models_serialize( + _param = self._prediction_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7313,7 +9934,7 @@ def planning_models( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelsDTO", + '200': "DataservicesDatamodelPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -7328,9 +9949,9 @@ def planning_models( @validate_call - def planning_models_with_http_info( + def prediction_with_http_info( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], 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, @@ -7344,13 +9965,13 @@ 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[DataservicesDatamodelTransfersPlanningModelsDTO]: - """Retrieve a list of planning models + ) -> ApiResponse[DataservicesDatamodelPredictionDTO]: + """Retrieve a prediction by ID - Retrieve all the planning models you have access to. + If you know the ID of a prediction, use this API to retrieve that prediction specifically. - :param id: The IDs of the planning models to retrieve. Default is all models. - :type id: List[str] + :param id: The ID of the prediction to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7375,7 +9996,7 @@ def planning_models_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_models_serialize( + _param = self._prediction_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7385,7 +10006,7 @@ def planning_models_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelsDTO", + '200': "DataservicesDatamodelPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -7400,9 +10021,9 @@ def planning_models_with_http_info( @validate_call - def planning_models_without_preload_content( + def prediction_without_preload_content( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the planning models to retrieve. Default is all models.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], 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, @@ -7417,12 +10038,12 @@ def planning_models_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of planning models + """Retrieve a prediction by ID - Retrieve all the planning models you have access to. + If you know the ID of a prediction, use this API to retrieve that prediction specifically. - :param id: The IDs of the planning models to retrieve. Default is all models. - :type id: List[str] + :param id: The ID of the prediction to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -7447,7 +10068,7 @@ def planning_models_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_models_serialize( + _param = self._prediction_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7457,7 +10078,7 @@ def planning_models_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningModelsDTO", + '200': "DataservicesDatamodelPredictionDTO", } response_data = self.api_client.call_api( *_param, @@ -7466,7 +10087,7 @@ def planning_models_without_preload_content( return response_data.response - def _planning_models_serialize( + def _prediction_serialize( self, id, target_tenant_id, @@ -7479,7 +10100,6 @@ def _planning_models_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -7490,11 +10110,9 @@ def _planning_models_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + _path_params['id'] = id + # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -7522,7 +10140,7 @@ def _planning_models_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/plan-models', + resource_path='/v1/data/model/predictions/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7539,10 +10157,9 @@ def _planning_models_serialize( @validate_call - def planning_plan( + def predictions( self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = 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[ None, @@ -7556,15 +10173,13 @@ def planning_plan( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPlanningPlanDTO: - """Retrieve a plan by planning model ID and plan ID + ) -> DataservicesDatamodelPredictionsDTO: + """Retrieve a list of predictions - Retrieve a specific plan that you have access to in a planning model. + Retrieve all the predictions in your Visier solution. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The ID of the plan to retrieve. (required) - :type id: str + :param id: The IDs of the predictions to retrieve. Default is all predictions. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7589,8 +10204,7 @@ def planning_plan( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plan_serialize( - model_id=model_id, + _param = self._predictions_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7600,7 +10214,7 @@ def planning_plan( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlanDTO", + '200': "DataservicesDatamodelPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -7615,10 +10229,9 @@ def planning_plan( @validate_call - def planning_plan_with_http_info( + def predictions_with_http_info( self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = 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[ None, @@ -7632,15 +10245,13 @@ 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[DataservicesDatamodelTransfersPlanningPlanDTO]: - """Retrieve a plan by planning model ID and plan ID + ) -> ApiResponse[DataservicesDatamodelPredictionsDTO]: + """Retrieve a list of predictions - Retrieve a specific plan that you have access to in a planning model. + Retrieve all the predictions in your Visier solution. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The ID of the plan to retrieve. (required) - :type id: str + :param id: The IDs of the predictions to retrieve. Default is all predictions. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7665,8 +10276,7 @@ def planning_plan_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plan_serialize( - model_id=model_id, + _param = self._predictions_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7676,7 +10286,7 @@ def planning_plan_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlanDTO", + '200': "DataservicesDatamodelPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -7691,10 +10301,9 @@ def planning_plan_with_http_info( @validate_call - def planning_plan_without_preload_content( + def predictions_without_preload_content( self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the plan to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = 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[ None, @@ -7709,14 +10318,12 @@ def planning_plan_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a plan by planning model ID and plan ID + """Retrieve a list of predictions - Retrieve a specific plan that you have access to in a planning model. + Retrieve all the predictions in your Visier solution. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The ID of the plan to retrieve. (required) - :type id: str + :param id: The IDs of the predictions to retrieve. Default is all predictions. + :type id: List[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 _request_timeout: timeout setting for this request. If one @@ -7741,8 +10348,7 @@ def planning_plan_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plan_serialize( - model_id=model_id, + _param = self._predictions_serialize( id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7752,7 +10358,7 @@ def planning_plan_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlanDTO", + '200': "DataservicesDatamodelPredictionsDTO", } response_data = self.api_client.call_api( *_param, @@ -7761,9 +10367,8 @@ def planning_plan_without_preload_content( return response_data.response - def _planning_plan_serialize( + def _predictions_serialize( self, - model_id, id, target_tenant_id, _request_auth, @@ -7775,6 +10380,7 @@ def _planning_plan_serialize( _host = None _collection_formats: Dict[str, str] = { + 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -7785,11 +10391,11 @@ def _planning_plan_serialize( _body_params: Optional[bytes] = None # process the path parameters - if model_id is not None: - _path_params['modelId'] = model_id - if id is not None: - _path_params['id'] = id # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -7817,7 +10423,7 @@ def _planning_plan_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/plan-models/{modelId}/plans/{id}', + resource_path='/v1/data/model/predictions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7834,10 +10440,10 @@ def _planning_plan_serialize( @validate_call - def planning_plans( + def properties( self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = 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[ None, @@ -7851,14 +10457,14 @@ def planning_plans( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPlanningPlansDTO: - """Retrieve a list of plans by planning model ID + ) -> DataservicesDatamodelPropertiesDTO: + """Retrieve a list of properties - Retrieve all the plans you have access to for a planning model. + Retrieve a list of properties for a specific analytic object. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The IDs of the plans to retrieve. Default is all plans. + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the properties to retrieve. Default is all properties. :type id: List[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 @@ -7884,8 +10490,8 @@ def planning_plans( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plans_serialize( - model_id=model_id, + _param = self._properties_serialize( + object_id=object_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7895,7 +10501,7 @@ def planning_plans( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlansDTO", + '200': "DataservicesDatamodelPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -7910,10 +10516,10 @@ def planning_plans( @validate_call - def planning_plans_with_http_info( - self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = None, + def properties_with_http_info( + self, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = 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[ None, @@ -7927,14 +10533,14 @@ 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[DataservicesDatamodelTransfersPlanningPlansDTO]: - """Retrieve a list of plans by planning model ID + ) -> ApiResponse[DataservicesDatamodelPropertiesDTO]: + """Retrieve a list of properties - Retrieve all the plans you have access to for a planning model. + Retrieve a list of properties for a specific analytic object. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The IDs of the plans to retrieve. Default is all plans. + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the properties to retrieve. Default is all properties. :type id: List[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 @@ -7960,8 +10566,8 @@ def planning_plans_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plans_serialize( - model_id=model_id, + _param = self._properties_serialize( + object_id=object_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -7971,7 +10577,7 @@ def planning_plans_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlansDTO", + '200': "DataservicesDatamodelPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -7986,10 +10592,10 @@ def planning_plans_with_http_info( @validate_call - def planning_plans_without_preload_content( + def properties_without_preload_content( self, - model_id: Annotated[StrictStr, Field(description="The ID of the planning model to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the plans to retrieve. Default is all plans.")] = None, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = 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[ None, @@ -8004,13 +10610,13 @@ def planning_plans_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of plans by planning model ID + """Retrieve a list of properties - Retrieve all the plans you have access to for a planning model. + Retrieve a list of properties for a specific analytic object. - :param model_id: The ID of the planning model to retrieve. (required) - :type model_id: str - :param id: The IDs of the plans to retrieve. Default is all plans. + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the properties to retrieve. Default is all properties. :type id: List[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 @@ -8036,8 +10642,8 @@ def planning_plans_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._planning_plans_serialize( - model_id=model_id, + _param = self._properties_serialize( + object_id=object_id, id=id, target_tenant_id=target_tenant_id, _request_auth=_request_auth, @@ -8047,7 +10653,7 @@ def planning_plans_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPlanningPlansDTO", + '200': "DataservicesDatamodelPropertiesDTO", } response_data = self.api_client.call_api( *_param, @@ -8056,9 +10662,9 @@ def planning_plans_without_preload_content( return response_data.response - def _planning_plans_serialize( + def _properties_serialize( self, - model_id, + object_id, id, target_tenant_id, _request_auth, @@ -8081,8 +10687,8 @@ def _planning_plans_serialize( _body_params: Optional[bytes] = None # process the path parameters - if model_id is not None: - _path_params['modelId'] = model_id + if object_id is not None: + _path_params['objectId'] = object_id # process the query parameters if id is not None: @@ -8115,7 +10721,7 @@ def _planning_plans_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/plan-models/{modelId}/plans', + resource_path='/v1/data/model/analytic-objects/{objectId}/properties', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8132,10 +10738,11 @@ def _planning_plans_serialize( @validate_call - def prediction( + def put_properties( self, - id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8148,15 +10755,17 @@ def prediction( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPredictionDTO: - """Retrieve a prediction by ID + ) -> ServicingObjectconfigurationObjectsBulkChangeResponseDTO: + """Replace properties - If you know the ID of a prediction, use this API to retrieve that prediction specifically. + 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 id: The ID of the prediction to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8179,9 +10788,10 @@ def prediction( :return: Returns the result object. """ # noqa: E501 - _param = self._prediction_serialize( - id=id, + _param = self._put_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8189,7 +10799,7 @@ def prediction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8204,10 +10814,11 @@ def prediction( @validate_call - def prediction_with_http_info( + def put_properties_with_http_info( self, - id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8220,15 +10831,17 @@ 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[DataservicesDatamodelTransfersPredictionDTO]: - """Retrieve a prediction by ID + ) -> ApiResponse[ServicingObjectconfigurationObjectsBulkChangeResponseDTO]: + """Replace properties - If you know the ID of a prediction, use this API to retrieve that prediction specifically. + 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 id: The ID of the prediction to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8251,9 +10864,10 @@ def prediction_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._prediction_serialize( - id=id, + _param = self._put_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8261,7 +10875,7 @@ def prediction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8276,10 +10890,11 @@ def prediction_with_http_info( @validate_call - def prediction_without_preload_content( + def put_properties_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The ID of the prediction to retrieve.")], + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8293,14 +10908,16 @@ def prediction_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a prediction by ID + """Replace properties - If you know the ID of a prediction, use this API to retrieve that prediction specifically. + 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 id: The ID of the prediction to retrieve. (required) - :type id: str + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8323,9 +10940,10 @@ def prediction_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._prediction_serialize( - id=id, + _param = self._put_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8333,7 +10951,7 @@ def prediction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8342,10 +10960,11 @@ def prediction_without_preload_content( return response_data.response - def _prediction_serialize( + def _put_properties_serialize( self, - id, + servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -8365,14 +10984,16 @@ def _prediction_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter + if servicing_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` @@ -8383,6 +11004,19 @@ def _prediction_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8394,8 +11028,8 @@ def _prediction_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/predictions/{id}', + method='PUT', + resource_path='/v1/data/model/properties', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8412,10 +11046,11 @@ def _prediction_serialize( @validate_call - def predictions( + def put_vee_sample_questions( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = None, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8428,15 +11063,17 @@ def predictions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPredictionsDTO: - """Retrieve a list of predictions + ) -> ServicingVeeQuestionsBulkChangeResponseDTO: + """Update Vee sample questions - Retrieve all the predictions in your Visier solution. + Update existing sample questions, such as its question category or whether the question is visible in Vee. Administrating tenants can specify the tenant in which to update sample questions using the `TargetTenantID` header. When updating sample questions, the question definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values for optional fields from the update request, the values reset to their respective default value. We recommend that you retrieve a question's details before you update the question with new values.
**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 id: The IDs of the predictions to retrieve. Default is all predictions. - :type id: List[str] + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8459,9 +11096,10 @@ def predictions( :return: Returns the result object. """ # noqa: E501 - _param = self._predictions_serialize( - id=id, + _param = self._put_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8469,7 +11107,7 @@ def predictions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionsDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8484,10 +11122,11 @@ def predictions( @validate_call - def predictions_with_http_info( + def put_vee_sample_questions_with_http_info( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = None, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8500,15 +11139,17 @@ 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[DataservicesDatamodelTransfersPredictionsDTO]: - """Retrieve a list of predictions + ) -> ApiResponse[ServicingVeeQuestionsBulkChangeResponseDTO]: + """Update Vee sample questions - Retrieve all the predictions in your Visier solution. + Update existing sample questions, such as its question category or whether the question is visible in Vee. Administrating tenants can specify the tenant in which to update sample questions using the `TargetTenantID` header. When updating sample questions, the question definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values for optional fields from the update request, the values reset to their respective default value. We recommend that you retrieve a question's details before you update the question with new values.
**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 id: The IDs of the predictions to retrieve. Default is all predictions. - :type id: List[str] + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8531,9 +11172,10 @@ def predictions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._predictions_serialize( - id=id, + _param = self._put_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8541,7 +11183,7 @@ def predictions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionsDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8556,10 +11198,11 @@ def predictions_with_http_info( @validate_call - def predictions_without_preload_content( + def put_vee_sample_questions_without_preload_content( self, - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the predictions to retrieve. Default is all predictions.")] = None, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8573,14 +11216,16 @@ def predictions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of predictions + """Update Vee sample questions - Retrieve all the predictions in your Visier solution. + Update existing sample questions, such as its question category or whether the question is visible in Vee. Administrating tenants can specify the tenant in which to update sample questions using the `TargetTenantID` header. When updating sample questions, the question definition in your API call replaces the prior definition. You must provide the entire definition in the `PUT` call. If you omit values for optional fields from the update request, the values reset to their respective default value. We recommend that you retrieve a question's details before you update the question with new values.
**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 id: The IDs of the predictions to retrieve. Default is all predictions. - :type id: List[str] + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. + :type project_id: str :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 @@ -8603,9 +11248,10 @@ def predictions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._predictions_serialize( - id=id, + _param = self._put_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8613,7 +11259,7 @@ def predictions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPredictionsDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -8622,10 +11268,11 @@ def predictions_without_preload_content( return response_data.response - def _predictions_serialize( + def _put_vee_sample_questions_serialize( self, - id, + servicing_vee_questions_change_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -8635,7 +11282,6 @@ def _predictions_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -8647,15 +11293,15 @@ def _predictions_serialize( # process the path parameters # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter + if servicing_vee_questions_change_definitions_dto is not None: + _body_params = servicing_vee_questions_change_definitions_dto # set the HTTP header `Accept` @@ -8666,6 +11312,19 @@ def _predictions_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8677,8 +11336,8 @@ def _predictions_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/predictions', + method='PUT', + resource_path='/v1alpha/data/model/vee/sample-questions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8695,10 +11354,10 @@ def _predictions_serialize( @validate_call - def properties( + def selection_concept( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], 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, @@ -8712,15 +11371,15 @@ def properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersPropertiesDTO: - """Retrieve a list of properties + ) -> DataservicesDatamodelSelectionConceptDTO: + """Retrieve an analytic object's selection concept by ID - Retrieve a list of properties for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the properties to retrieve. Default is all properties. - :type id: List[str] + :param id: The ID of the selection concept to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8745,7 +11404,7 @@ def properties( :return: Returns the result object. """ # noqa: E501 - _param = self._properties_serialize( + _param = self._selection_concept_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -8756,7 +11415,7 @@ def properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertiesDTO", + '200': "DataservicesDatamodelSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -8771,10 +11430,10 @@ def properties( @validate_call - def properties_with_http_info( + def selection_concept_with_http_info( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], 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, @@ -8788,15 +11447,15 @@ 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[DataservicesDatamodelTransfersPropertiesDTO]: - """Retrieve a list of properties + ) -> ApiResponse[DataservicesDatamodelSelectionConceptDTO]: + """Retrieve an analytic object's selection concept by ID - Retrieve a list of properties for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the properties to retrieve. Default is all properties. - :type id: List[str] + :param id: The ID of the selection concept to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8821,7 +11480,7 @@ def properties_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._properties_serialize( + _param = self._selection_concept_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -8832,7 +11491,7 @@ def properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertiesDTO", + '200': "DataservicesDatamodelSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -8847,10 +11506,10 @@ def properties_with_http_info( @validate_call - def properties_without_preload_content( + def selection_concept_without_preload_content( self, object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the properties to retrieve. Default is all properties.")] = None, + id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], 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, @@ -8865,14 +11524,14 @@ def properties_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve a list of properties + """Retrieve an analytic object's selection concept by ID - Retrieve a list of properties for a specific analytic object. + 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. :param object_id: The ID of the analytic object to retrieve. (required) :type object_id: str - :param id: The IDs of the properties to retrieve. Default is all properties. - :type id: List[str] + :param id: The ID of the selection concept to retrieve. (required) + :type 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. :type target_tenant_id: str :param _request_timeout: timeout setting for this request. If one @@ -8897,7 +11556,7 @@ def properties_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._properties_serialize( + _param = self._selection_concept_serialize( object_id=object_id, id=id, target_tenant_id=target_tenant_id, @@ -8908,7 +11567,7 @@ def properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersPropertiesDTO", + '200': "DataservicesDatamodelSelectionConceptDTO", } response_data = self.api_client.call_api( *_param, @@ -8917,7 +11576,7 @@ def properties_without_preload_content( return response_data.response - def _properties_serialize( + def _selection_concept_serialize( self, object_id, id, @@ -8931,7 +11590,6 @@ def _properties_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -8944,11 +11602,9 @@ def _properties_serialize( # process the path parameters if object_id is not None: _path_params['objectId'] = object_id - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + _path_params['id'] = id + # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id @@ -8976,7 +11632,7 @@ def _properties_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/properties', + resource_path='/v1/data/model/analytic-objects/{objectId}/selection-concepts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8993,11 +11649,11 @@ def _properties_serialize( @validate_call - def put_properties( + def selection_concepts( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9010,17 +11666,17 @@ def put_properties( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: - """Replace properties + ) -> DataservicesDatamodelSelectionConceptsDTO: + """Retrieve an analytic object's selection concepts - 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. + Retrieve a list of selection concepts for a specific analytic object. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -9043,10 +11699,10 @@ def put_properties( :return: Returns the result object. """ # noqa: E501 - _param = self._put_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._selection_concepts_serialize( + object_id=object_id, + id=id, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9054,7 +11710,7 @@ def put_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "DataservicesDatamodelSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9069,11 +11725,11 @@ def put_properties( @validate_call - def put_properties_with_http_info( + def selection_concepts_with_http_info( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9086,17 +11742,17 @@ 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[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: - """Replace properties + ) -> ApiResponse[DataservicesDatamodelSelectionConceptsDTO]: + """Retrieve an analytic object's selection concepts - 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. + Retrieve a list of selection concepts for a specific analytic object. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -9119,10 +11775,10 @@ def put_properties_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._put_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._selection_concepts_serialize( + object_id=object_id, + id=id, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9130,7 +11786,7 @@ def put_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "DataservicesDatamodelSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9145,11 +11801,11 @@ def put_properties_with_http_info( @validate_call - def put_properties_without_preload_content( + def selection_concepts_without_preload_content( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], + id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = 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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9163,16 +11819,16 @@ def put_properties_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Replace properties + """Retrieve an analytic object's selection concepts - 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. + Retrieve a list of selection concepts for a specific analytic object. - :param servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param object_id: The ID of the analytic object to retrieve. (required) + :type object_id: str + :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. + :type id: List[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 project_id: Optionally, specify a project in which to make the request. - :type project_id: str :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 @@ -9195,10 +11851,10 @@ def put_properties_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._put_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._selection_concepts_serialize( + object_id=object_id, + id=id, target_tenant_id=target_tenant_id, - project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9206,7 +11862,7 @@ def put_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "DataservicesDatamodelSelectionConceptsDTO", } response_data = self.api_client.call_api( *_param, @@ -9215,11 +11871,11 @@ def put_properties_without_preload_content( return response_data.response - def _put_properties_serialize( + def _selection_concepts_serialize( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + object_id, + id, target_tenant_id, - project_id, _request_auth, _content_type, _headers, @@ -9229,6 +11885,7 @@ def _put_properties_serialize( _host = None _collection_formats: Dict[str, str] = { + 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -9239,16 +11896,18 @@ def _put_properties_serialize( _body_params: Optional[bytes] = None # process the path parameters + if object_id is not None: + _path_params['objectId'] = object_id # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id - if project_id is not None: - _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - 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` @@ -9259,19 +11918,6 @@ def _put_properties_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -9283,8 +11929,8 @@ def _put_properties_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/data/model/properties', + method='GET', + resource_path='/v1/data/model/analytic-objects/{objectId}/selection-concepts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9301,10 +11947,9 @@ def _put_properties_serialize( @validate_call - def selection_concept( + def update_analytic_objects( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], + servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO, 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, @@ -9318,15 +11963,13 @@ def selection_concept( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersSelectionConceptDTO: - """Retrieve an analytic object's selection concept by ID + ) -> ServicingV2ObjectconfigurationBulkChangeResponseDTO: + """Update analytic objects - 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. + Update the details of an analytic object. Supports reverting subjects, events, and internal comparisons to Blueprint.
**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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the selection concept to retrieve. (required) - :type id: str + :param servicing_v2_objectconfiguration_analytic_object_request_dto: (required) + :type servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO :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 @@ -9351,9 +11994,8 @@ def selection_concept( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concept_serialize( - object_id=object_id, - id=id, + _param = self._update_analytic_objects_serialize( + servicing_v2_objectconfiguration_analytic_object_request_dto=servicing_v2_objectconfiguration_analytic_object_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9362,7 +12004,7 @@ def selection_concept( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptDTO", + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9377,10 +12019,9 @@ def selection_concept( @validate_call - def selection_concept_with_http_info( + def update_analytic_objects_with_http_info( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], + servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO, 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, @@ -9394,15 +12035,13 @@ 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[DataservicesDatamodelTransfersSelectionConceptDTO]: - """Retrieve an analytic object's selection concept by ID + ) -> ApiResponse[ServicingV2ObjectconfigurationBulkChangeResponseDTO]: + """Update analytic objects - 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. + Update the details of an analytic object. Supports reverting subjects, events, and internal comparisons to Blueprint.
**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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the selection concept to retrieve. (required) - :type id: str + :param servicing_v2_objectconfiguration_analytic_object_request_dto: (required) + :type servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO :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 @@ -9427,9 +12066,8 @@ def selection_concept_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concept_serialize( - object_id=object_id, - id=id, + _param = self._update_analytic_objects_serialize( + servicing_v2_objectconfiguration_analytic_object_request_dto=servicing_v2_objectconfiguration_analytic_object_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9438,7 +12076,7 @@ def selection_concept_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptDTO", + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9453,10 +12091,9 @@ def selection_concept_with_http_info( @validate_call - def selection_concept_without_preload_content( + def update_analytic_objects_without_preload_content( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[StrictStr, Field(description="The ID of the selection concept to retrieve.")], + servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO, 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, @@ -9471,14 +12108,12 @@ def selection_concept_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve an analytic object's selection concept by ID + """Update analytic objects - 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. + Update the details of an analytic object. Supports reverting subjects, events, and internal comparisons to Blueprint.
**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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The ID of the selection concept to retrieve. (required) - :type id: str + :param servicing_v2_objectconfiguration_analytic_object_request_dto: (required) + :type servicing_v2_objectconfiguration_analytic_object_request_dto: ServicingV2ObjectconfigurationAnalyticObjectRequestDTO :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 @@ -9503,9 +12138,8 @@ def selection_concept_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concept_serialize( - object_id=object_id, - id=id, + _param = self._update_analytic_objects_serialize( + servicing_v2_objectconfiguration_analytic_object_request_dto=servicing_v2_objectconfiguration_analytic_object_request_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -9514,7 +12148,7 @@ def selection_concept_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptDTO", + '200': "ServicingV2ObjectconfigurationBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9523,10 +12157,9 @@ def selection_concept_without_preload_content( return response_data.response - def _selection_concept_serialize( + def _update_analytic_objects_serialize( self, - object_id, - id, + servicing_v2_objectconfiguration_analytic_object_request_dto, target_tenant_id, _request_auth, _content_type, @@ -9547,16 +12180,14 @@ def _selection_concept_serialize( _body_params: Optional[bytes] = None # process the path parameters - if object_id is not None: - _path_params['objectId'] = object_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter + if servicing_v2_objectconfiguration_analytic_object_request_dto is not None: + _body_params = servicing_v2_objectconfiguration_analytic_object_request_dto # set the HTTP header `Accept` @@ -9567,6 +12198,19 @@ def _selection_concept_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -9578,8 +12222,8 @@ def _selection_concept_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/selection-concepts/{id}', + method='PUT', + resource_path='/v2alpha/data/model/analytic-objects', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9596,11 +12240,11 @@ def _selection_concept_serialize( @validate_call - def selection_concepts( + def update_dimensions( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO, 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9613,17 +12257,17 @@ def selection_concepts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DataservicesDatamodelTransfersSelectionConceptsDTO: - """Retrieve an analytic object's selection concepts + ) -> ServicingObjectconfigurationObjectsBulkChangeResponseDTO: + """Update dimensions - Retrieve a list of selection concepts for a specific analytic object. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param servicing_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO :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. If omitted, the request uses the production version. + :type project_id: str :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 @@ -9646,10 +12290,10 @@ def selection_concepts( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concepts_serialize( - object_id=object_id, - id=id, + _param = self._update_dimensions_serialize( + servicing_objectconfiguration_dimensions_change_definitions_dto=servicing_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9657,7 +12301,7 @@ def selection_concepts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9672,11 +12316,11 @@ def selection_concepts( @validate_call - def selection_concepts_with_http_info( + def update_dimensions_with_http_info( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO, 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9689,17 +12333,17 @@ 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[DataservicesDatamodelTransfersSelectionConceptsDTO]: - """Retrieve an analytic object's selection concepts + ) -> ApiResponse[ServicingObjectconfigurationObjectsBulkChangeResponseDTO]: + """Update dimensions - Retrieve a list of selection concepts for a specific analytic object. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param servicing_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO :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. If omitted, the request uses the production version. + :type project_id: str :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 @@ -9722,10 +12366,10 @@ def selection_concepts_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concepts_serialize( - object_id=object_id, - id=id, + _param = self._update_dimensions_serialize( + servicing_objectconfiguration_dimensions_change_definitions_dto=servicing_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9733,7 +12377,7 @@ def selection_concepts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9748,11 +12392,11 @@ def selection_concepts_with_http_info( @validate_call - def selection_concepts_without_preload_content( + def update_dimensions_without_preload_content( self, - object_id: Annotated[StrictStr, Field(description="The ID of the analytic object to retrieve.")], - id: Annotated[Optional[List[StrictStr]], Field(description="The IDs of the selection concepts to retrieve. Default is all selection concepts.")] = None, + servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO, 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. If omitted, the request uses the production version.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9766,16 +12410,16 @@ def selection_concepts_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve an analytic object's selection concepts + """Update dimensions - Retrieve a list of selection concepts for a specific analytic object. + 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 object_id: The ID of the analytic object to retrieve. (required) - :type object_id: str - :param id: The IDs of the selection concepts to retrieve. Default is all selection concepts. - :type id: List[str] + :param servicing_objectconfiguration_dimensions_change_definitions_dto: (required) + :type servicing_objectconfiguration_dimensions_change_definitions_dto: ServicingObjectconfigurationDimensionsChangeDefinitionsDTO :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. If omitted, the request uses the production version. + :type project_id: str :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 @@ -9798,10 +12442,10 @@ def selection_concepts_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._selection_concepts_serialize( - object_id=object_id, - id=id, + _param = self._update_dimensions_serialize( + servicing_objectconfiguration_dimensions_change_definitions_dto=servicing_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id=target_tenant_id, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9809,7 +12453,7 @@ def selection_concepts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DataservicesDatamodelTransfersSelectionConceptsDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9818,11 +12462,11 @@ def selection_concepts_without_preload_content( return response_data.response - def _selection_concepts_serialize( + def _update_dimensions_serialize( self, - object_id, - id, + servicing_objectconfiguration_dimensions_change_definitions_dto, target_tenant_id, + project_id, _request_auth, _content_type, _headers, @@ -9832,7 +12476,6 @@ def _selection_concepts_serialize( _host = None _collection_formats: Dict[str, str] = { - 'id': 'multi', } _path_params: Dict[str, str] = {} @@ -9843,18 +12486,16 @@ def _selection_concepts_serialize( _body_params: Optional[bytes] = None # process the path parameters - if object_id is not None: - _path_params['objectId'] = object_id # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters if target_tenant_id is not None: _header_params['TargetTenantID'] = target_tenant_id + if project_id is not None: + _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter + if servicing_objectconfiguration_dimensions_change_definitions_dto is not None: + _body_params = servicing_objectconfiguration_dimensions_change_definitions_dto # set the HTTP header `Accept` @@ -9865,6 +12506,19 @@ def _selection_concepts_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -9876,8 +12530,8 @@ def _selection_concepts_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/data/model/analytic-objects/{objectId}/selection-concepts', + method='PATCH', + resource_path='/v1/data/model/dimensions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9894,9 +12548,9 @@ def _selection_concepts_serialize( @validate_call - def update_dimensions( + def update_properties( self, - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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 +12565,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, - ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: - """Update dimensions + ) -> ServicingObjectconfigurationObjectsBulkChangeResponseDTO: + """Update properties - 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. + 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 servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. @@ -9944,8 +12598,8 @@ def update_dimensions( :return: Returns the result object. """ # noqa: E501 - _param = self._update_dimensions_serialize( - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, + _param = self._update_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -9955,7 +12609,7 @@ def update_dimensions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -9970,9 +12624,9 @@ def update_dimensions( @validate_call - def update_dimensions_with_http_info( + def update_properties_with_http_info( self, - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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 +12641,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[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: - """Update dimensions + ) -> ApiResponse[ServicingObjectconfigurationObjectsBulkChangeResponseDTO]: + """Update properties - 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. + 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 servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. @@ -10020,8 +12674,8 @@ def update_dimensions_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_dimensions_serialize( - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, + _param = self._update_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10031,7 +12685,7 @@ def update_dimensions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10046,9 +12700,9 @@ def update_dimensions_with_http_info( @validate_call - def update_dimensions_without_preload_content( + def update_properties_without_preload_content( self, - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO, + servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO, 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[ @@ -10064,12 +12718,12 @@ def update_dimensions_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update dimensions + """Update properties - 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. + 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 servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto: ServicingPublicapiObjectconfigurationDimensionsChangeDefinitionsDTO + :param servicing_objectconfiguration_properties_change_definitions_dto: (required) + :type servicing_objectconfiguration_properties_change_definitions_dto: ServicingObjectconfigurationPropertiesChangeDefinitionsDTO :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. @@ -10096,8 +12750,8 @@ def update_dimensions_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_dimensions_serialize( - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto=servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, + _param = self._update_properties_serialize( + servicing_objectconfiguration_properties_change_definitions_dto=servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10107,7 +12761,7 @@ def update_dimensions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingObjectconfigurationObjectsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10116,9 +12770,9 @@ def update_dimensions_without_preload_content( return response_data.response - def _update_dimensions_serialize( + def _update_properties_serialize( self, - servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto, + servicing_objectconfiguration_properties_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -10148,8 +12802,8 @@ def _update_dimensions_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto is not None: - _body_params = servicing_publicapi_objectconfiguration_dimensions_change_definitions_dto + if servicing_objectconfiguration_properties_change_definitions_dto is not None: + _body_params = servicing_objectconfiguration_properties_change_definitions_dto # set the HTTP header `Accept` @@ -10185,7 +12839,7 @@ def _update_dimensions_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/data/model/dimensions', + resource_path='/v1/data/model/properties', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10202,9 +12856,9 @@ def _update_dimensions_serialize( @validate_call - def update_properties( + def update_vee_sample_questions( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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 +12873,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, - ) -> ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO: - """Update properties + ) -> ServicingVeeQuestionsBulkChangeResponseDTO: + """Patch Vee sample questions - 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. + Make partial changes to Vee sample questions. Administrating tenants can specify the tenant in which to patch questions using the `TargetTenantID` header. Unlike a `PUT` call, which completely replaces the sample question definition, use `PATCH` to change specific fields in the question without affecting omitted fields.
**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 servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. @@ -10252,8 +12906,8 @@ def update_properties( :return: Returns the result object. """ # noqa: E501 - _param = self._update_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._update_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10263,7 +12917,7 @@ def update_properties( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10278,9 +12932,9 @@ def update_properties( @validate_call - def update_properties_with_http_info( + def update_vee_sample_questions_with_http_info( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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 +12949,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[ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO]: - """Update properties + ) -> ApiResponse[ServicingVeeQuestionsBulkChangeResponseDTO]: + """Patch Vee sample questions - 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. + Make partial changes to Vee sample questions. Administrating tenants can specify the tenant in which to patch questions using the `TargetTenantID` header. Unlike a `PUT` call, which completely replaces the sample question definition, use `PATCH` to change specific fields in the question without affecting omitted fields.
**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 servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. @@ -10328,8 +12982,8 @@ def update_properties_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._update_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10339,7 +12993,7 @@ def update_properties_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10354,9 +13008,9 @@ def update_properties_with_http_info( @validate_call - def update_properties_without_preload_content( + def update_vee_sample_questions_without_preload_content( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO, + servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO, 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[ @@ -10372,12 +13026,12 @@ def update_properties_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update properties + """Patch Vee sample questions - 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. + Make partial changes to Vee sample questions. Administrating tenants can specify the tenant in which to patch questions using the `TargetTenantID` header. Unlike a `PUT` call, which completely replaces the sample question definition, use `PATCH` to change specific fields in the question without affecting omitted fields.
**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 servicing_publicapi_objectconfiguration_properties_change_definitions_dto: (required) - :type servicing_publicapi_objectconfiguration_properties_change_definitions_dto: ServicingPublicapiObjectconfigurationPropertiesChangeDefinitionsDTO + :param servicing_vee_questions_change_definitions_dto: (required) + :type servicing_vee_questions_change_definitions_dto: ServicingVeeQuestionsChangeDefinitionsDTO :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. @@ -10404,8 +13058,8 @@ def update_properties_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_properties_serialize( - servicing_publicapi_objectconfiguration_properties_change_definitions_dto=servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + _param = self._update_vee_sample_questions_serialize( + servicing_vee_questions_change_definitions_dto=servicing_vee_questions_change_definitions_dto, target_tenant_id=target_tenant_id, project_id=project_id, _request_auth=_request_auth, @@ -10415,7 +13069,7 @@ def update_properties_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiObjectconfigurationObjectsBulkChangeResponseDTO", + '200': "ServicingVeeQuestionsBulkChangeResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -10424,9 +13078,9 @@ def update_properties_without_preload_content( return response_data.response - def _update_properties_serialize( + def _update_vee_sample_questions_serialize( self, - servicing_publicapi_objectconfiguration_properties_change_definitions_dto, + servicing_vee_questions_change_definitions_dto, target_tenant_id, project_id, _request_auth, @@ -10456,8 +13110,8 @@ def _update_properties_serialize( _header_params['ProjectID'] = project_id # process the form parameters # process the body parameter - if servicing_publicapi_objectconfiguration_properties_change_definitions_dto is not None: - _body_params = servicing_publicapi_objectconfiguration_properties_change_definitions_dto + if servicing_vee_questions_change_definitions_dto is not None: + _body_params = servicing_vee_questions_change_definitions_dto # set the HTTP header `Accept` @@ -10493,7 +13147,7 @@ def _update_properties_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/data/model/properties', + resource_path='/v1alpha/data/model/vee/sample-questions', path_params=_path_params, query_params=_query_params, header_params=_header_params, 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 3dee365d4f..95fb0a3bdd 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_analytic_model.models.designer_api_calculation_concept_configuration_map_dto import DesignerApiCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_dto import DesignerApiCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_list_dto import DesignerApiCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_concept_configuration_result_dto import DesignerApiConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_selection_concept_configuration_map_dto import DesignerApiSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_selection_concept_dto import DesignerApiSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_selection_concept_list_dto import DesignerApiSelectionConceptListDTO 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, - ) -> DesignerApiTransfersCalculationConceptDTO: + ) -> DesignerApiCalculationConceptDTO: """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': "DesignerApiTransfersCalculationConceptDTO", + '200': "DesignerApiCalculationConceptDTO", } 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[DesignerApiTransfersCalculationConceptDTO]: + ) -> ApiResponse[DesignerApiCalculationConceptDTO]: """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': "DesignerApiTransfersCalculationConceptDTO", + '200': "DesignerApiCalculationConceptDTO", } 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': "DesignerApiTransfersCalculationConceptDTO", + '200': "DesignerApiCalculationConceptDTO", } 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, - ) -> DesignerApiTransfersCalculationConceptListDTO: + ) -> DesignerApiCalculationConceptListDTO: """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': "DesignerApiTransfersCalculationConceptListDTO", + '200': "DesignerApiCalculationConceptListDTO", } 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[DesignerApiTransfersCalculationConceptListDTO]: + ) -> ApiResponse[DesignerApiCalculationConceptListDTO]: """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': "DesignerApiTransfersCalculationConceptListDTO", + '200': "DesignerApiCalculationConceptListDTO", } 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': "DesignerApiTransfersCalculationConceptListDTO", + '200': "DesignerApiCalculationConceptListDTO", } 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, - ) -> DesignerApiTransfersSelectionConceptDTO: + ) -> DesignerApiSelectionConceptDTO: """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': "DesignerApiTransfersSelectionConceptDTO", + '200': "DesignerApiSelectionConceptDTO", } 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[DesignerApiTransfersSelectionConceptDTO]: + ) -> ApiResponse[DesignerApiSelectionConceptDTO]: """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': "DesignerApiTransfersSelectionConceptDTO", + '200': "DesignerApiSelectionConceptDTO", } 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': "DesignerApiTransfersSelectionConceptDTO", + '200': "DesignerApiSelectionConceptDTO", } 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, - ) -> DesignerApiTransfersSelectionConceptListDTO: + ) -> DesignerApiSelectionConceptListDTO: """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': "DesignerApiTransfersSelectionConceptListDTO", + '200': "DesignerApiSelectionConceptListDTO", } 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[DesignerApiTransfersSelectionConceptListDTO]: + ) -> ApiResponse[DesignerApiSelectionConceptListDTO]: """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': "DesignerApiTransfersSelectionConceptListDTO", + '200': "DesignerApiSelectionConceptListDTO", } 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': "DesignerApiTransfersSelectionConceptListDTO", + '200': "DesignerApiSelectionConceptListDTO", } 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.")], - designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, + designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO, 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, - ) -> DesignerApiTransfersConceptConfigurationResultDTO: + ) -> DesignerApiConceptConfigurationResultDTO: """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 designer_api_transfers_calculation_concept_configuration_map_dto: (required) - :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO + :param designer_api_calculation_concept_configuration_map_dto: (required) + :type designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO :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, - designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, + designer_api_calculation_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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.")], - designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, + designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO, 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[DesignerApiTransfersConceptConfigurationResultDTO]: + ) -> ApiResponse[DesignerApiConceptConfigurationResultDTO]: """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 designer_api_transfers_calculation_concept_configuration_map_dto: (required) - :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO + :param designer_api_calculation_concept_configuration_map_dto: (required) + :type designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO :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, - designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, + designer_api_calculation_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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.")], - designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO, + designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO, 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 designer_api_transfers_calculation_concept_configuration_map_dto: (required) - :type designer_api_transfers_calculation_concept_configuration_map_dto: DesignerApiTransfersCalculationConceptConfigurationMapDTO + :param designer_api_calculation_concept_configuration_map_dto: (required) + :type designer_api_calculation_concept_configuration_map_dto: DesignerApiCalculationConceptConfigurationMapDTO :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, - designer_api_transfers_calculation_concept_configuration_map_dto=designer_api_transfers_calculation_concept_configuration_map_dto, + designer_api_calculation_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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, - designer_api_transfers_calculation_concept_configuration_map_dto, + designer_api_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 designer_api_transfers_calculation_concept_configuration_map_dto is not None: - _body_params = designer_api_transfers_calculation_concept_configuration_map_dto + if designer_api_calculation_concept_configuration_map_dto is not None: + _body_params = designer_api_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.")], - designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, + designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO, 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, - ) -> DesignerApiTransfersConceptConfigurationResultDTO: + ) -> DesignerApiConceptConfigurationResultDTO: """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 designer_api_transfers_selection_concept_configuration_map_dto: (required) - :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO + :param designer_api_selection_concept_configuration_map_dto: (required) + :type designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO :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, - designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, + designer_api_selection_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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.")], - designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, + designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO, 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[DesignerApiTransfersConceptConfigurationResultDTO]: + ) -> ApiResponse[DesignerApiConceptConfigurationResultDTO]: """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 designer_api_transfers_selection_concept_configuration_map_dto: (required) - :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO + :param designer_api_selection_concept_configuration_map_dto: (required) + :type designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO :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, - designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, + designer_api_selection_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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.")], - designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO, + designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO, 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 designer_api_transfers_selection_concept_configuration_map_dto: (required) - :type designer_api_transfers_selection_concept_configuration_map_dto: DesignerApiTransfersSelectionConceptConfigurationMapDTO + :param designer_api_selection_concept_configuration_map_dto: (required) + :type designer_api_selection_concept_configuration_map_dto: DesignerApiSelectionConceptConfigurationMapDTO :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, - designer_api_transfers_selection_concept_configuration_map_dto=designer_api_transfers_selection_concept_configuration_map_dto, + designer_api_selection_concept_configuration_map_dto=designer_api_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': "DesignerApiTransfersConceptConfigurationResultDTO", + '200': "DesignerApiConceptConfigurationResultDTO", } 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, - designer_api_transfers_selection_concept_configuration_map_dto, + designer_api_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 designer_api_transfers_selection_concept_configuration_map_dto is not None: - _body_params = designer_api_transfers_selection_concept_configuration_map_dto + if designer_api_selection_concept_configuration_map_dto is not None: + _body_params = designer_api_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 9501c5aa5e..aed7c83503 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -18,89 +18,138 @@ # import models into model package 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.dataservices_datamodel_aggregation_type_option_dto import DataservicesDatamodelAggregationTypeOptionDTO +from visier_api_analytic_model.models.dataservices_datamodel_aggregation_type_parameter_dto import DataservicesDatamodelAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_analytic_object_dto import DataservicesDatamodelAnalyticObjectDTO +from visier_api_analytic_model.models.dataservices_datamodel_analytic_objects_dto import DataservicesDatamodelAnalyticObjectsDTO +from visier_api_analytic_model.models.dataservices_datamodel_currencies_dto import DataservicesDatamodelCurrenciesDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_dto import DataservicesDatamodelCurrencyDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_rate_dto import DataservicesDatamodelCurrencyRateDTO +from visier_api_analytic_model.models.dataservices_datamodel_currency_rates_dto import DataservicesDatamodelCurrencyRatesDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_dto import DataservicesDatamodelDimensionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_dto import DataservicesDatamodelDimensionMappingValidationDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_mapping_validation_execution_dto import DataservicesDatamodelDimensionMappingValidationExecutionDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_dimensions_dto import DataservicesDatamodelDimensionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_level_dto import DataservicesDatamodelLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_member_dto import DataservicesDatamodelMemberDTO +from visier_api_analytic_model.models.dataservices_datamodel_member_parameter_definition_dto import DataservicesDatamodelMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_members_dto import DataservicesDatamodelMembersDTO +from visier_api_analytic_model.models.dataservices_datamodel_metric_dto import DataservicesDatamodelMetricDTO +from visier_api_analytic_model.models.dataservices_datamodel_metrics_dto import DataservicesDatamodelMetricsDTO +from visier_api_analytic_model.models.dataservices_datamodel_numeric_parameter_definition_dto import DataservicesDatamodelNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_object_reference_dto import DataservicesDatamodelObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_parameter_definition_dto import DataservicesDatamodelParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_plan_parameter_definition_dto import DataservicesDatamodelPlanParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_concept_filter_context_dto import DataservicesDatamodelPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_hierarchy_filter_context_dto import DataservicesDatamodelPlanningHierarchyFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_model_dto import DataservicesDatamodelPlanningModelDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_models_dto import DataservicesDatamodelPlanningModelsDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plan_context_dto import DataservicesDatamodelPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plan_dto import DataservicesDatamodelPlanningPlanDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_plans_dto import DataservicesDatamodelPlanningPlansDTO +from visier_api_analytic_model.models.dataservices_datamodel_population_configuration_dto import DataservicesDatamodelPopulationConfigurationDTO +from visier_api_analytic_model.models.dataservices_datamodel_prediction_dto import DataservicesDatamodelPredictionDTO +from visier_api_analytic_model.models.dataservices_datamodel_predictions_dto import DataservicesDatamodelPredictionsDTO +from visier_api_analytic_model.models.dataservices_datamodel_properties_dto import DataservicesDatamodelPropertiesDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_dto import DataservicesDatamodelPropertyDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_scenario_or_snapshot_dto import DataservicesDatamodelScenarioOrSnapshotDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concept_dto import DataservicesDatamodelSelectionConceptDTO +from visier_api_analytic_model.models.dataservices_datamodel_selection_concepts_dto import DataservicesDatamodelSelectionConceptsDTO +from visier_api_analytic_model.models.dataservices_datamodel_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO +from visier_api_analytic_model.models.dataservices_datamodel_validity_range_dto import DataservicesDatamodelValidityRangeDTO +from visier_api_analytic_model.models.designer_api_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_configuration_dto import DesignerApiCalculationConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_configuration_map_dto import DesignerApiCalculationConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_dto import DesignerApiCalculationConceptDTO +from visier_api_analytic_model.models.designer_api_calculation_concept_list_dto import DesignerApiCalculationConceptListDTO +from visier_api_analytic_model.models.designer_api_concept_configuration_result_dto import DesignerApiConceptConfigurationResultDTO +from visier_api_analytic_model.models.designer_api_dimension_filter_dto import DesignerApiDimensionFilterDTO +from visier_api_analytic_model.models.designer_api_dimension_member_dto import DesignerApiDimensionMemberDTO +from visier_api_analytic_model.models.designer_api_perspective_configuration_dto import DesignerApiPerspectiveConfigurationDTO +from visier_api_analytic_model.models.designer_api_perspective_node_dto import DesignerApiPerspectiveNodeDTO +from visier_api_analytic_model.models.designer_api_selection_concept_configuration_dto import DesignerApiSelectionConceptConfigurationDTO +from visier_api_analytic_model.models.designer_api_selection_concept_configuration_map_dto import DesignerApiSelectionConceptConfigurationMapDTO +from visier_api_analytic_model.models.designer_api_selection_concept_dto import DesignerApiSelectionConceptDTO +from visier_api_analytic_model.models.designer_api_selection_concept_list_dto import DesignerApiSelectionConceptListDTO +from visier_api_analytic_model.models.planning_get_plan_list_response_dto import PlanningGetPlanListResponseDTO +from visier_api_analytic_model.models.planning_plan_data_load_error_dto import PlanningPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_plan_info_dto import PlanningPlanInfoDTO +from visier_api_analytic_model.models.planning_plan_item_dto import PlanningPlanItemDTO +from visier_api_analytic_model.models.planning_plan_schema_dto import PlanningPlanSchemaDTO +from visier_api_analytic_model.models.planning_plan_segment_level_dto import PlanningPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_plan_segment_level_member_dto import PlanningPlanSegmentLevelMemberDTO +from visier_api_analytic_model.models.planning_plan_segment_level_member_list_dto import PlanningPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_plan_time_period_dto import PlanningPlanTimePeriodDTO +from visier_api_analytic_model.models.planning_plan_with_schema_dto import PlanningPlanWithSchemaDTO +from visier_api_analytic_model.models.planning_scenario_info_dto import PlanningScenarioInfoDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_calculated_property_type_dto import ServicingObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dependent_dto import ServicingObjectconfigurationDependentDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimension_change_definition_dto import ServicingObjectconfigurationDimensionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_dimensions_change_definitions_dto import ServicingObjectconfigurationDimensionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_object_change_failure_dto import ServicingObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_object_change_success_dto import ServicingObjectconfigurationObjectChangeSuccessDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_objects_bulk_change_response_dto import ServicingObjectconfigurationObjectsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_change_definitions_dto import ServicingObjectconfigurationPropertiesChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_properties_delete_definitions_dto import ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_bulk_delete_response_dto import ServicingObjectconfigurationPropertyBulkDeleteResponseDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_change_definition_dto import ServicingObjectconfigurationPropertyChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_failure_dto import ServicingObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_success_dto import ServicingObjectconfigurationPropertyDeleteSuccessDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_type_dto import ServicingObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_simple_property_type_dto import ServicingObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_tags_dto import ServicingObjectconfigurationTagsDTO +from visier_api_analytic_model.models.servicing_question_categories_api_response_dto import ServicingQuestionCategoriesAPIResponseDTO +from visier_api_analytic_model.models.servicing_question_category_api_response_dto import ServicingQuestionCategoryAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_question_api_response_dto import ServicingSampleQuestionAPIResponseDTO +from visier_api_analytic_model.models.servicing_sample_questions_api_response_dto import ServicingSampleQuestionsAPIResponseDTO +from visier_api_analytic_model.models.servicing_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_definition_dto import ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_request_dto import ServicingV2ObjectconfigurationAnalyticObjectRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_analytic_object_with_context_dto import ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_bulk_change_response_dto import ServicingV2ObjectconfigurationBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_calculated_property_type_dto import ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_definition_dto import ServicingV2ObjectconfigurationConceptDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_dto import ServicingV2ObjectconfigurationConceptDeleteDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_request_dto import ServicingV2ObjectconfigurationConceptDeleteRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_delete_with_context_dto import ServicingV2ObjectconfigurationConceptDeleteWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_request_dto import ServicingV2ObjectconfigurationConceptRequestDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_response_dto import ServicingV2ObjectconfigurationConceptResponseDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_type_details_dto import ServicingV2ObjectconfigurationConceptTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_with_context_dto import ServicingV2ObjectconfigurationConceptWithContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_failed_change_dto import ServicingV2ObjectconfigurationFailedChangeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_metric_definition_dto import ServicingV2ObjectconfigurationMetricDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_metric_type_details_dto import ServicingV2ObjectconfigurationMetricTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_definition_dto import ServicingV2ObjectconfigurationProcessConceptDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_dto import ServicingV2ObjectconfigurationProcessConceptMemberDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_list_dto import ServicingV2ObjectconfigurationProcessConceptMemberListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_metric_definition_dto import ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_metric_list_dto import ServicingV2ObjectconfigurationProcessConceptMetricListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_outcome_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_outcome_list_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_list_dto import ServicingV2ObjectconfigurationProcessConceptPropertyListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_type_dto import ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_stage_dto import ServicingV2ObjectconfigurationProcessConceptStageDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_stage_list_dto import ServicingV2ObjectconfigurationProcessConceptStageListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_property_definition_dto import ServicingV2ObjectconfigurationPropertyDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_property_type_details_dto import ServicingV2ObjectconfigurationPropertyTypeDetailsDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_simple_property_type_dto import ServicingV2ObjectconfigurationSimplePropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_successful_change_dto import ServicingV2ObjectconfigurationSuccessfulChangeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_synonym_list_dto import ServicingV2ObjectconfigurationSynonymListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_tag_reference_dto import ServicingV2ObjectconfigurationTagReferenceDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_tag_reference_list_dto import ServicingV2ObjectconfigurationTagReferenceListDTO +from visier_api_analytic_model.models.servicing_vee_question_change_definition_dto import ServicingVeeQuestionChangeDefinitionDTO +from visier_api_analytic_model.models.servicing_vee_question_change_definitions_by_tenant_dto import ServicingVeeQuestionChangeDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_vee_question_change_failure_dto import ServicingVeeQuestionChangeFailureDTO +from visier_api_analytic_model.models.servicing_vee_question_change_success_dto import ServicingVeeQuestionChangeSuccessDTO +from visier_api_analytic_model.models.servicing_vee_question_delete_definitions_by_tenant_dto import ServicingVeeQuestionDeleteDefinitionsByTenantDTO +from visier_api_analytic_model.models.servicing_vee_questions_bulk_change_response_dto import ServicingVeeQuestionsBulkChangeResponseDTO +from visier_api_analytic_model.models.servicing_vee_questions_change_definitions_dto import ServicingVeeQuestionsChangeDefinitionsDTO +from visier_api_analytic_model.models.servicing_vee_questions_delete_definitions_dto import ServicingVeeQuestionsDeleteDefinitionsDTO from visier_api_analytic_model.models.status import Status 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 index 44e9589507..2c83106a97 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 8843dd5362..0c690c23c1 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for retrieving and configuring your analytic model in Visier. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_aggregation_type_option_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_aggregation_type_option_dto.py new file mode 100644 index 0000000000..2f7c460fae --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelAggregationTypeOptionDTO(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 DataservicesDatamodelAggregationTypeOptionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelAggregationTypeOptionDTO 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_aggregation_type_parameter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_aggregation_type_parameter_dto.py new file mode 100644 index 0000000000..032e7f4e92 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_aggregation_type_option_dto import DataservicesDatamodelAggregationTypeOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelAggregationTypeParameterDTO(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[DataservicesDatamodelAggregationTypeOptionDTO]] = 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 DataservicesDatamodelAggregationTypeParameterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelAggregationTypeParameterDTO 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": [DataservicesDatamodelAggregationTypeOptionDTO.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_analytic_object_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_analytic_object_dto.py new file mode 100644 index 0000000000..d0c1993787 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_object_reference_dto import DataservicesDatamodelObjectReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_population_configuration_dto import DataservicesDatamodelPopulationConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelAnalyticObjectDTO(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[DataservicesDatamodelObjectReferenceDTO]] = 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[DataservicesDatamodelPopulationConfigurationDTO] = 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 DataservicesDatamodelAnalyticObjectDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelAnalyticObjectDTO 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": [DataservicesDatamodelObjectReferenceDTO.from_dict(_item) for _item in obj["objectReferences"]] if obj.get("objectReferences") is not None else None, + "populationConfiguration": DataservicesDatamodelPopulationConfigurationDTO.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_analytic_objects_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_analytic_objects_dto.py new file mode 100644 index 0000000000..afc71c46fe --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_analytic_object_dto import DataservicesDatamodelAnalyticObjectDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelAnalyticObjectsDTO(BaseModel): + """ + A collection of analytic objects + """ # noqa: E501 + analytic_objects: Optional[List[DataservicesDatamodelAnalyticObjectDTO]] = 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 DataservicesDatamodelAnalyticObjectsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelAnalyticObjectsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjects": [DataservicesDatamodelAnalyticObjectDTO.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_currencies_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_currencies_dto.py new file mode 100644 index 0000000000..b3c7b9c250 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_currency_dto import DataservicesDatamodelCurrencyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelCurrenciesDTO(BaseModel): + """ + A collection of currencies. + """ # noqa: E501 + currencies: Optional[List[DataservicesDatamodelCurrencyDTO]] = 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 DataservicesDatamodelCurrenciesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelCurrenciesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencies": [DataservicesDatamodelCurrencyDTO.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_currency_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_currency_dto.py new file mode 100644 index 0000000000..56e7b1f2ea --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelCurrencyDTO(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 DataservicesDatamodelCurrencyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelCurrencyDTO 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_currency_rate_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_currency_rate_dto.py new file mode 100644 index 0000000000..0994b32d01 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelCurrencyRateDTO(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 DataservicesDatamodelCurrencyRateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelCurrencyRateDTO 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_currency_rates_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_currency_rates_dto.py new file mode 100644 index 0000000000..f4a1edcf17 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_currency_rate_dto import DataservicesDatamodelCurrencyRateDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelCurrencyRatesDTO(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[DataservicesDatamodelCurrencyRateDTO]] = 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 DataservicesDatamodelCurrencyRatesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelCurrencyRatesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "currencyRates": [DataservicesDatamodelCurrencyRateDTO.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_dimension_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_dimension_dto.py new file mode 100644 index 0000000000..b43347c014 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_level_dto import DataservicesDatamodelLevelDTO +from visier_api_analytic_model.models.dataservices_datamodel_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelDimensionDTO(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[DataservicesDatamodelLevelDTO]] = 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[DataservicesDatamodelTagMapElementDTO]] = 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 DataservicesDatamodelDimensionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelDimensionDTO 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": [DataservicesDatamodelLevelDTO.from_dict(_item) for _item in obj["levels"]] if obj.get("levels") is not None else None, + "memberCount": obj.get("memberCount"), + "tags": [DataservicesDatamodelTagMapElementDTO.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_dimension_mapping_validation_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_dimension_mapping_validation_dto.py new file mode 100644 index 0000000000..0f034dc64c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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 DataservicesDatamodelDimensionMappingValidationDTO(BaseModel): + """ + DataservicesDatamodelDimensionMappingValidationDTO + """ # 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 DataservicesDatamodelDimensionMappingValidationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelDimensionMappingValidationDTO 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_dimension_mapping_validation_execution_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_dimension_mapping_validation_execution_dto.py new file mode 100644 index 0000000000..dc9235a0c8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelDimensionMappingValidationExecutionDTO(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 DataservicesDatamodelDimensionMappingValidationExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelDimensionMappingValidationExecutionDTO 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_dimension_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_dimension_reference_dto.py new file mode 100644 index 0000000000..f83afb6711 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelDimensionReferenceDTO(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 DataservicesDatamodelDimensionReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelDimensionReferenceDTO 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_dimensions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_dimensions_dto.py new file mode 100644 index 0000000000..3029a6d2b7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_dimension_dto import DataservicesDatamodelDimensionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelDimensionsDTO(BaseModel): + """ + A collection of dimensions. + """ # noqa: E501 + dimensions: Optional[List[DataservicesDatamodelDimensionDTO]] = 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 DataservicesDatamodelDimensionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelDimensionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensions": [DataservicesDatamodelDimensionDTO.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_level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_level_dto.py new file mode 100644 index 0000000000..8ee3c81ba5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelLevelDTO(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 DataservicesDatamodelLevelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelLevelDTO 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_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_member_dto.py new file mode 100644 index 0000000000..b6a6325c1e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_validity_range_dto import DataservicesDatamodelValidityRangeDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelMemberDTO(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[DataservicesDatamodelValidityRangeDTO]] = 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 DataservicesDatamodelMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelMemberDTO 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": [DataservicesDatamodelValidityRangeDTO.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_member_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_member_parameter_definition_dto.py new file mode 100644 index 0000000000..09cd58886b --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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 DataservicesDatamodelMemberParameterDefinitionDTO(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 DataservicesDatamodelMemberParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesDatamodelMemberParameterDefinitionDTO 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_members_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_members_dto.py new file mode 100644 index 0000000000..a6d413aec2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_member_dto import DataservicesDatamodelMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelMembersDTO(BaseModel): + """ + A collection of members. + """ # noqa: E501 + members: Optional[List[DataservicesDatamodelMemberDTO]] = 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 DataservicesDatamodelMembersDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelMembersDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "members": [DataservicesDatamodelMemberDTO.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_metric_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_metric_dto.py new file mode 100644 index 0000000000..6ce8e822e5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_parameter_definition_dto import DataservicesDatamodelParameterDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelMetricDTO(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[DataservicesDatamodelParameterDefinitionDTO]] = 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 DataservicesDatamodelMetricDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelMetricDTO 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": [DataservicesDatamodelParameterDefinitionDTO.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_metrics_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_metrics_dto.py new file mode 100644 index 0000000000..fde40690ea --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_metric_dto import DataservicesDatamodelMetricDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelMetricsDTO(BaseModel): + """ + A collection of metrics. + """ # noqa: E501 + metrics: Optional[List[DataservicesDatamodelMetricDTO]] = 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 DataservicesDatamodelMetricsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelMetricsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics": [DataservicesDatamodelMetricDTO.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_numeric_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_numeric_parameter_definition_dto.py new file mode 100644 index 0000000000..c3fd0b68d8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelNumericParameterDefinitionDTO(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 DataservicesDatamodelNumericParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelNumericParameterDefinitionDTO 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_object_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_object_reference_dto.py new file mode 100644 index 0000000000..58d547c1fb --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelObjectReferenceDTO(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 DataservicesDatamodelObjectReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelObjectReferenceDTO 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_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_parameter_definition_dto.py new file mode 100644 index 0000000000..c1d58655d5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_aggregation_type_parameter_dto import DataservicesDatamodelAggregationTypeParameterDTO +from visier_api_analytic_model.models.dataservices_datamodel_member_parameter_definition_dto import DataservicesDatamodelMemberParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_numeric_parameter_definition_dto import DataservicesDatamodelNumericParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_plan_parameter_definition_dto import DataservicesDatamodelPlanParameterDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelParameterDefinitionDTO(BaseModel): + """ + Parameters generalize object definitions so that end users can provide values at query run time. + """ # noqa: E501 + aggregation_type_parameter: Optional[DataservicesDatamodelAggregationTypeParameterDTO] = Field(default=None, description="An aggregation parameter. Such parameters enable control over how applicable metrics aggregate their results.", alias="aggregationTypeParameter") + member_parameter: Optional[DataservicesDatamodelMemberParameterDefinitionDTO] = 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[DataservicesDatamodelNumericParameterDefinitionDTO] = 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[DataservicesDatamodelPlanParameterDefinitionDTO] = 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 DataservicesDatamodelParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesDatamodelParameterDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationTypeParameter": DataservicesDatamodelAggregationTypeParameterDTO.from_dict(obj["aggregationTypeParameter"]) if obj.get("aggregationTypeParameter") is not None else None, + "memberParameter": DataservicesDatamodelMemberParameterDefinitionDTO.from_dict(obj["memberParameter"]) if obj.get("memberParameter") is not None else None, + "numericParameter": DataservicesDatamodelNumericParameterDefinitionDTO.from_dict(obj["numericParameter"]) if obj.get("numericParameter") is not None else None, + "planParameter": DataservicesDatamodelPlanParameterDefinitionDTO.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_plan_parameter_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_plan_parameter_definition_dto.py new file mode 100644 index 0000000000..f6f0697dc1 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanParameterDefinitionDTO(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 DataservicesDatamodelPlanParameterDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPlanParameterDefinitionDTO 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_planning_concept_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_concept_filter_context_dto.py new file mode 100644 index 0000000000..b911869eae --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningConceptFilterContextDTO(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 DataservicesDatamodelPlanningConceptFilterContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPlanningConceptFilterContextDTO 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_planning_hierarchy_filter_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_hierarchy_filter_context_dto.py new file mode 100644 index 0000000000..3d826bb65f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningHierarchyFilterContextDTO(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 DataservicesDatamodelPlanningHierarchyFilterContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPlanningHierarchyFilterContextDTO 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_planning_model_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_model_dto.py new file mode 100644 index 0000000000..548f0cce78 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningModelDTO(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 DataservicesDatamodelPlanningModelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPlanningModelDTO 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_planning_models_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_models_dto.py new file mode 100644 index 0000000000..f5103f8a36 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_planning_model_dto import DataservicesDatamodelPlanningModelDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningModelsDTO(BaseModel): + """ + A collection of planning modules. + """ # noqa: E501 + models: Optional[List[DataservicesDatamodelPlanningModelDTO]] = 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 DataservicesDatamodelPlanningModelsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPlanningModelsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "models": [DataservicesDatamodelPlanningModelDTO.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_planning_plan_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_plan_context_dto.py new file mode 100644 index 0000000000..cf696fd4de --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_planning_concept_filter_context_dto import DataservicesDatamodelPlanningConceptFilterContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_planning_hierarchy_filter_context_dto import DataservicesDatamodelPlanningHierarchyFilterContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningPlanContextDTO(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[DataservicesDatamodelPlanningConceptFilterContextDTO] = Field(default=None, description="A plan context defined using a selection concept.", alias="conceptFilterContext") + hierarchy_filter_context: Optional[DataservicesDatamodelPlanningHierarchyFilterContextDTO] = 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 DataservicesDatamodelPlanningPlanContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesDatamodelPlanningPlanContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conceptFilterContext": DataservicesDatamodelPlanningConceptFilterContextDTO.from_dict(obj["conceptFilterContext"]) if obj.get("conceptFilterContext") is not None else None, + "hierarchyFilterContext": DataservicesDatamodelPlanningHierarchyFilterContextDTO.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_planning_plan_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_plan_dto.py new file mode 100644 index 0000000000..b436e3264e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_planning_plan_context_dto import DataservicesDatamodelPlanningPlanContextDTO +from visier_api_analytic_model.models.dataservices_datamodel_scenario_or_snapshot_dto import DataservicesDatamodelScenarioOrSnapshotDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningPlanDTO(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[DataservicesDatamodelPlanningPlanContextDTO]] = 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[DataservicesDatamodelScenarioOrSnapshotDTO]] = Field(default=None, description="The available scenarios for the plan.") + snapshots: Optional[List[DataservicesDatamodelScenarioOrSnapshotDTO]] = 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 DataservicesDatamodelPlanningPlanDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPlanningPlanDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "defaultContexts": [DataservicesDatamodelPlanningPlanContextDTO.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": [DataservicesDatamodelScenarioOrSnapshotDTO.from_dict(_item) for _item in obj["scenarios"]] if obj.get("scenarios") is not None else None, + "snapshots": [DataservicesDatamodelScenarioOrSnapshotDTO.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_planning_plans_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_planning_plans_dto.py new file mode 100644 index 0000000000..9cd472a671 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_planning_plan_dto import DataservicesDatamodelPlanningPlanDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPlanningPlansDTO(BaseModel): + """ + A collection of plan definitions. + """ # noqa: E501 + plans: Optional[List[DataservicesDatamodelPlanningPlanDTO]] = 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 DataservicesDatamodelPlanningPlansDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPlanningPlansDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "plans": [DataservicesDatamodelPlanningPlanDTO.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_population_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_population_configuration_dto.py new file mode 100644 index 0000000000..9329fd0543 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_analytic_model.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPopulationConfigurationDTO(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[DataservicesDatamodelPropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members over time.", alias="changeHistoryProperties") + distinguishing_properties: Optional[List[DataservicesDatamodelPropertyReferenceDTO]] = Field(default=None, description="Properties that are used by default to compare subject members.", alias="distinguishingProperties") + grouping_dimensions: Optional[List[DataservicesDatamodelDimensionReferenceDTO]] = 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 DataservicesDatamodelPopulationConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPopulationConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "changeHistoryProperties": [DataservicesDatamodelPropertyReferenceDTO.from_dict(_item) for _item in obj["changeHistoryProperties"]] if obj.get("changeHistoryProperties") is not None else None, + "distinguishingProperties": [DataservicesDatamodelPropertyReferenceDTO.from_dict(_item) for _item in obj["distinguishingProperties"]] if obj.get("distinguishingProperties") is not None else None, + "groupingDimensions": [DataservicesDatamodelDimensionReferenceDTO.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_prediction_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_prediction_dto.py new file mode 100644 index 0000000000..07f2edd5ed --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesDatamodelPredictionDTO(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 DataservicesDatamodelPredictionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPredictionDTO 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_predictions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_predictions_dto.py new file mode 100644 index 0000000000..3966c1ff86 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_prediction_dto import DataservicesDatamodelPredictionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPredictionsDTO(BaseModel): + """ + A collection of predictions. + """ # noqa: E501 + predictions: Optional[List[DataservicesDatamodelPredictionDTO]] = 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 DataservicesDatamodelPredictionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPredictionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "predictions": [DataservicesDatamodelPredictionDTO.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_properties_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_properties_dto.py new file mode 100644 index 0000000000..8e3eb03ad8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_property_dto import DataservicesDatamodelPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPropertiesDTO(BaseModel): + """ + A collection of properties. + """ # noqa: E501 + properties: Optional[List[DataservicesDatamodelPropertyDTO]] = 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 DataservicesDatamodelPropertiesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPropertiesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "properties": [DataservicesDatamodelPropertyDTO.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_property_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_property_dto.py new file mode 100644 index 0000000000..b2be96efe8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_parameter_definition_dto import DataservicesDatamodelParameterDefinitionDTO +from visier_api_analytic_model.models.dataservices_datamodel_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPropertyDTO(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[DataservicesDatamodelParameterDefinitionDTO]] = 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[DataservicesDatamodelTagMapElementDTO]] = 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 DataservicesDatamodelPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelPropertyDTO 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": [DataservicesDatamodelParameterDefinitionDTO.from_dict(_item) for _item in obj["parameters"]] if obj.get("parameters") is not None else None, + "primitiveDataType": obj.get("primitiveDataType"), + "tags": [DataservicesDatamodelTagMapElementDTO.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_property_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_property_reference_dto.py new file mode 100644 index 0000000000..4b1cc6234a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPropertyReferenceDTO(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 DataservicesDatamodelPropertyReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPropertyReferenceDTO 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_scenario_or_snapshot_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_scenario_or_snapshot_dto.py new file mode 100644 index 0000000000..2e6cad0372 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelScenarioOrSnapshotDTO(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 DataservicesDatamodelScenarioOrSnapshotDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelScenarioOrSnapshotDTO 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_selection_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_selection_concept_dto.py new file mode 100644 index 0000000000..7c1ff43e68 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tag_map_element_dto import DataservicesDatamodelTagMapElementDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelSelectionConceptDTO(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[DataservicesDatamodelTagMapElementDTO]] = 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 DataservicesDatamodelSelectionConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelSelectionConceptDTO 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": [DataservicesDatamodelTagMapElementDTO.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_selection_concepts_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_selection_concepts_dto.py new file mode 100644 index 0000000000..5d1f8f7758 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_selection_concept_dto import DataservicesDatamodelSelectionConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelSelectionConceptsDTO(BaseModel): + """ + A collection of selection concepts + """ # noqa: E501 + selection_concepts: Optional[List[DataservicesDatamodelSelectionConceptDTO]] = 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 DataservicesDatamodelSelectionConceptsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesDatamodelSelectionConceptsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "selectionConcepts": [DataservicesDatamodelSelectionConceptDTO.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_tag_map_element_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_tag_map_element_dto.py new file mode 100644 index 0000000000..1d96a60223 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelTagMapElementDTO(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 DataservicesDatamodelTagMapElementDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelTagMapElementDTO 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_aggregation_type_option_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_aggregation_type_option_dto.py deleted file mode 100644 index 138e66719d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 944298ccc3..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 292ed9752d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index bfb11656ac..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 2c4a610dfc..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index de9f36bde9..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0755412b30..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 50a262cef7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index f45b7a2658..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 226500a8b4..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 2984d0ab09..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ef998757d4..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index e158096a9c..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 11771905fb..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ce8b7ec0f5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 38d3f20cb1..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 02fa840134..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 3e55e3a564..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d9bf01c4ae..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 620ad20e60..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c543a6fa7e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 20c67d684d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5e16abd326..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 9cdfe76280..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 843038d60f..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 780d0ffb19..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a7dd5580c8..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 28aa6ba84b..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a98da4a7d0..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 8b9e8e92b7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 6020507ca8..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6b41e54a3a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 71584c314e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 4d90de8394..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 553f1f2bc5..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index f682c52926..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a4134953e9..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index b9342fa602..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 458de4ae0f..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 4d366960b7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index b14c34bdfb..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/dataservices_datamodel_validity_range_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_validity_range_dto.py new file mode 100644 index 0000000000..34ad27c5da --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelValidityRangeDTO(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 DataservicesDatamodelValidityRangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelValidityRangeDTO 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/designer_api_analytic_object_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_analytic_object_filter_dto.py new file mode 100644 index 0000000000..45f4832968 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_filter_dto import DesignerApiDimensionFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiAnalyticObjectFilterDTO(BaseModel): + """ + DesignerApiAnalyticObjectFilterDTO + """ # 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[DesignerApiDimensionFilterDTO]] = 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 DesignerApiAnalyticObjectFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiAnalyticObjectFilterDTO 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": [DesignerApiDimensionFilterDTO.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_calculation_concept_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_calculation_concept_configuration_dto.py new file mode 100644 index 0000000000..e72d495971 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_perspective_configuration_dto import DesignerApiPerspectiveConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiCalculationConceptConfigurationDTO(BaseModel): + """ + DesignerApiCalculationConceptConfigurationDTO + """ # noqa: E501 + perspectives: Optional[List[DesignerApiPerspectiveConfigurationDTO]] = 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 DesignerApiCalculationConceptConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiCalculationConceptConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "perspectives": [DesignerApiPerspectiveConfigurationDTO.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_calculation_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_calculation_concept_configuration_map_dto.py new file mode 100644 index 0000000000..b3d91001a2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_perspective_configuration_dto import DesignerApiPerspectiveConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiCalculationConceptConfigurationMapDTO(BaseModel): + """ + The configuration to apply to the concept. + """ # noqa: E501 + perspectives_to_map: Optional[List[DesignerApiPerspectiveConfigurationDTO]] = 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 DesignerApiCalculationConceptConfigurationMapDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiCalculationConceptConfigurationMapDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "perspectivesToMap": [DesignerApiPerspectiveConfigurationDTO.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_calculation_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_calculation_concept_dto.py new file mode 100644 index 0000000000..de90164042 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_calculation_concept_configuration_dto import DesignerApiCalculationConceptConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiCalculationConceptDTO(BaseModel): + """ + DesignerApiCalculationConceptDTO + """ # noqa: E501 + configuration: Optional[DesignerApiCalculationConceptConfigurationDTO] = 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 DesignerApiCalculationConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerApiCalculationConceptDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": DesignerApiCalculationConceptConfigurationDTO.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_calculation_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_calculation_concept_list_dto.py new file mode 100644 index 0000000000..a952c59481 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_calculation_concept_dto import DesignerApiCalculationConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiCalculationConceptListDTO(BaseModel): + """ + DesignerApiCalculationConceptListDTO + """ # noqa: E501 + concepts: Optional[List[DesignerApiCalculationConceptDTO]] = 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 DesignerApiCalculationConceptListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiCalculationConceptListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [DesignerApiCalculationConceptDTO.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_concept_configuration_result_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_concept_configuration_result_dto.py new file mode 100644 index 0000000000..f18f6c8da9 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiConceptConfigurationResultDTO(BaseModel): + """ + DesignerApiConceptConfigurationResultDTO + """ # 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 DesignerApiConceptConfigurationResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiConceptConfigurationResultDTO 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_dimension_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_dimension_filter_dto.py new file mode 100644 index 0000000000..69e75c790b --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_member_dto import DesignerApiDimensionMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiDimensionFilterDTO(BaseModel): + """ + DesignerApiDimensionFilterDTO + """ # noqa: E501 + dimension_id: Optional[StrictStr] = Field(default=None, description="The UUID of the dimension.", alias="dimensionId") + dimension_members: Optional[List[DesignerApiDimensionMemberDTO]] = 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 DesignerApiDimensionFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiDimensionFilterDTO 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": [DesignerApiDimensionMemberDTO.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_dimension_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_dimension_member_dto.py new file mode 100644 index 0000000000..09454398da --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiDimensionMemberDTO(BaseModel): + """ + DesignerApiDimensionMemberDTO + """ # 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 DesignerApiDimensionMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerApiDimensionMemberDTO 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_perspective_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_perspective_configuration_dto.py new file mode 100644 index 0000000000..40ce88b34c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_perspective_node_dto import DesignerApiPerspectiveNodeDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiPerspectiveConfigurationDTO(BaseModel): + """ + DesignerApiPerspectiveConfigurationDTO + """ # 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[DesignerApiPerspectiveNodeDTO]] = 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 DesignerApiPerspectiveConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiPerspectiveConfigurationDTO 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": [DesignerApiPerspectiveNodeDTO.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_perspective_node_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_perspective_node_dto.py new file mode 100644 index 0000000000..873e63838c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiPerspectiveNodeDTO(BaseModel): + """ + DesignerApiPerspectiveNodeDTO + """ # noqa: E501 + analytic_object_filters: Optional[List[DesignerApiAnalyticObjectFilterDTO]] = 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 DesignerApiPerspectiveNodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiPerspectiveNodeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFilters": [DesignerApiAnalyticObjectFilterDTO.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_selection_concept_configuration_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_selection_concept_configuration_dto.py new file mode 100644 index 0000000000..97d4845e3a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiSelectionConceptConfigurationDTO(BaseModel): + """ + DesignerApiSelectionConceptConfigurationDTO + """ # noqa: E501 + analytic_object_filters: Optional[List[DesignerApiAnalyticObjectFilterDTO]] = 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 DesignerApiSelectionConceptConfigurationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiSelectionConceptConfigurationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFilters": [DesignerApiAnalyticObjectFilterDTO.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_selection_concept_configuration_map_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_selection_concept_configuration_map_dto.py new file mode 100644 index 0000000000..110930483f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_analytic_object_filter_dto import DesignerApiAnalyticObjectFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiSelectionConceptConfigurationMapDTO(BaseModel): + """ + DesignerApiSelectionConceptConfigurationMapDTO + """ # noqa: E501 + analytic_object_filters_to_map: Optional[List[DesignerApiAnalyticObjectFilterDTO]] = 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 DesignerApiSelectionConceptConfigurationMapDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiSelectionConceptConfigurationMapDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectFiltersToMap": [DesignerApiAnalyticObjectFilterDTO.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_selection_concept_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_selection_concept_dto.py new file mode 100644 index 0000000000..ceb1634859 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_selection_concept_configuration_dto import DesignerApiSelectionConceptConfigurationDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiSelectionConceptDTO(BaseModel): + """ + DesignerApiSelectionConceptDTO + """ # noqa: E501 + configuration: Optional[DesignerApiSelectionConceptConfigurationDTO] = 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 DesignerApiSelectionConceptDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerApiSelectionConceptDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": DesignerApiSelectionConceptConfigurationDTO.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_selection_concept_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_selection_concept_list_dto.py new file mode 100644 index 0000000000..03e09f40a6 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_selection_concept_dto import DesignerApiSelectionConceptDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerApiSelectionConceptListDTO(BaseModel): + """ + DesignerApiSelectionConceptListDTO + """ # noqa: E501 + concepts: Optional[List[DesignerApiSelectionConceptDTO]] = 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 DesignerApiSelectionConceptListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerApiSelectionConceptListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [DesignerApiSelectionConceptDTO.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_analytic_object_filter_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_analytic_object_filter_dto.py deleted file mode 100644 index bd4652428e..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 6757c9fbd7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5c556186ff..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1603486a74..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ab6885797a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a06ca4e365..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 3c02a5c3bd..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index b50d97154d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 82e7d4d136..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index b6fa354fd2..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 1ece81712a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6cb6899565..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 16864a6b43..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_selection_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 79a63bf40a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/designer_api_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/planning_get_plan_list_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_get_plan_list_response_dto.py new file mode 100644 index 0000000000..9ce6ee066a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_plan_info_dto import PlanningPlanInfoDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningGetPlanListResponseDTO(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[PlanningPlanInfoDTO]] = 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 PlanningGetPlanListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 PlanningGetPlanListResponseDTO 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": [PlanningPlanInfoDTO.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_plan_data_load_error_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_data_load_error_dto.py new file mode 100644 index 0000000000..4a431d52c0 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 PlanningPlanDataLoadErrorDTO(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 PlanningPlanDataLoadErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningPlanDataLoadErrorDTO 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_plan_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_info_dto.py new file mode 100644 index 0000000000..c5cd5e8088 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_scenario_info_dto import PlanningScenarioInfoDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningPlanInfoDTO(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[PlanningScenarioInfoDTO]] = 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 PlanningPlanInfoDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 PlanningPlanInfoDTO 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": [PlanningScenarioInfoDTO.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_plan_item_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_item_dto.py new file mode 100644 index 0000000000..66c9061f64 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 PlanningPlanItemDTO(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 PlanningPlanItemDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningPlanItemDTO 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_plan_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_schema_dto.py new file mode 100644 index 0000000000..71a8ca7d42 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_plan_item_dto import PlanningPlanItemDTO +from visier_api_analytic_model.models.planning_plan_segment_level_dto import PlanningPlanSegmentLevelDTO +from visier_api_analytic_model.models.planning_plan_segment_level_member_list_dto import PlanningPlanSegmentLevelMemberListDTO +from visier_api_analytic_model.models.planning_plan_time_period_dto import PlanningPlanTimePeriodDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningPlanSchemaDTO(BaseModel): + """ + Information about a plan's schema. + """ # noqa: E501 + plan_items: Optional[List[PlanningPlanItemDTO]] = Field(default=None, description="A collection of editable plan items in a plan.", alias="planItems") + plan_segment_level_members: Optional[List[PlanningPlanSegmentLevelMemberListDTO]] = 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[PlanningPlanSegmentLevelDTO]] = Field(default=None, description="The dimensions that the plan is segmented by.", alias="planSegmentLevels") + time_periods: Optional[List[PlanningPlanTimePeriodDTO]] = 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 PlanningPlanSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 PlanningPlanSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "planItems": [PlanningPlanItemDTO.from_dict(_item) for _item in obj["planItems"]] if obj.get("planItems") is not None else None, + "planSegmentLevelMembers": [PlanningPlanSegmentLevelMemberListDTO.from_dict(_item) for _item in obj["planSegmentLevelMembers"]] if obj.get("planSegmentLevelMembers") is not None else None, + "planSegmentLevels": [PlanningPlanSegmentLevelDTO.from_dict(_item) for _item in obj["planSegmentLevels"]] if obj.get("planSegmentLevels") is not None else None, + "timePeriods": [PlanningPlanTimePeriodDTO.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_plan_segment_level_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_segment_level_dto.py new file mode 100644 index 0000000000..a4775a50b0 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 PlanningPlanSegmentLevelDTO(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 PlanningPlanSegmentLevelDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningPlanSegmentLevelDTO 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_plan_segment_level_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_segment_level_member_dto.py new file mode 100644 index 0000000000..610f262d08 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 PlanningPlanSegmentLevelMemberDTO(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 PlanningPlanSegmentLevelMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningPlanSegmentLevelMemberDTO 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_plan_segment_level_member_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_segment_level_member_list_dto.py new file mode 100644 index 0000000000..07dab207a4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_segment_level_member_dto import PlanningPlanSegmentLevelMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningPlanSegmentLevelMemberListDTO(BaseModel): + """ + A collection of dimension members. + """ # noqa: E501 + members: Optional[List[PlanningPlanSegmentLevelMemberDTO]] = 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 PlanningPlanSegmentLevelMemberListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 PlanningPlanSegmentLevelMemberListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "members": [PlanningPlanSegmentLevelMemberDTO.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_plan_time_period_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_time_period_dto.py new file mode 100644 index 0000000000..83d2cd658e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningPlanTimePeriodDTO(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 PlanningPlanTimePeriodDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningPlanTimePeriodDTO 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_plan_with_schema_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_plan_with_schema_dto.py new file mode 100644 index 0000000000..747cb1db3c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_plan_data_load_error_dto import PlanningPlanDataLoadErrorDTO +from visier_api_analytic_model.models.planning_plan_info_dto import PlanningPlanInfoDTO +from visier_api_analytic_model.models.planning_plan_schema_dto import PlanningPlanSchemaDTO +from typing import Optional, Set +from typing_extensions import Self + +class PlanningPlanWithSchemaDTO(BaseModel): + """ + Details about the plan, including its schema. + """ # noqa: E501 + errors: Optional[List[PlanningPlanDataLoadErrorDTO]] = Field(default=None, description="The errors that occurred while loading the data.") + plan: Optional[PlanningPlanInfoDTO] = None + var_schema: Optional[PlanningPlanSchemaDTO] = 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 PlanningPlanWithSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 PlanningPlanWithSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "errors": [PlanningPlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "plan": PlanningPlanInfoDTO.from_dict(obj["plan"]) if obj.get("plan") is not None else None, + "schema": PlanningPlanSchemaDTO.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_scenario_info_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_scenario_info_dto.py new file mode 100644 index 0000000000..963aab6f4c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PlanningScenarioInfoDTO(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 PlanningScenarioInfoDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PlanningScenarioInfoDTO 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/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 deleted file mode 100644 index 0aa748f5fb..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 683b91c059..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7b6a432361..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 0627df36d7..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 3a415050f2..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ecf0f29454..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index e184dd153d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 8a58e1a601..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 2754462e71..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 17eeefd34a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 0230a64890..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/planning_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/servicing_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..d35ae58cb7 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationCalculatedPropertyTypeDTO(BaseModel): + """ + ServicingObjectconfigurationCalculatedPropertyTypeDTO + """ # 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 ServicingObjectconfigurationCalculatedPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationCalculatedPropertyTypeDTO 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_objectconfiguration_dependent_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_dependent_dto.py new file mode 100644 index 0000000000..d2feb640d4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationDependentDTO(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 ServicingObjectconfigurationDependentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationDependentDTO 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_objectconfiguration_dimension_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_dimension_change_definition_dto.py new file mode 100644 index 0000000000..83dc9c1916 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationDimensionChangeDefinitionDTO(BaseModel): + """ + ServicingObjectconfigurationDimensionChangeDefinitionDTO + """ # 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 ServicingObjectconfigurationDimensionChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationDimensionChangeDefinitionDTO 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_objectconfiguration_dimension_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_dimension_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..59cf11a98f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_objectconfiguration_dimension_change_definition_dto import ServicingObjectconfigurationDimensionChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO(BaseModel): + """ + ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO + """ # noqa: E501 + dimensions: Optional[List[ServicingObjectconfigurationDimensionChangeDefinitionDTO]] = 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 ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensions": [ServicingObjectconfigurationDimensionChangeDefinitionDTO.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_objectconfiguration_dimensions_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_dimensions_change_definitions_dto.py new file mode 100644 index 0000000000..0252f72aa8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_dimension_change_definitions_by_tenant_dto import ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationDimensionsChangeDefinitionsDTO(BaseModel): + """ + ServicingObjectconfigurationDimensionsChangeDefinitionsDTO + """ # noqa: E501 + dimensions_by_tenant: Optional[List[ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO]] = 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 ServicingObjectconfigurationDimensionsChangeDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationDimensionsChangeDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionsByTenant": [ServicingObjectconfigurationDimensionChangeDefinitionsByTenantDTO.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_objectconfiguration_object_change_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_object_change_failure_dto.py new file mode 100644 index 0000000000..70312a2147 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationObjectChangeFailureDTO(BaseModel): + """ + ServicingObjectconfigurationObjectChangeFailureDTO + """ # 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 ServicingObjectconfigurationObjectChangeFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationObjectChangeFailureDTO 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_objectconfiguration_object_change_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_object_change_success_dto.py new file mode 100644 index 0000000000..84a7e47816 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationObjectChangeSuccessDTO(BaseModel): + """ + ServicingObjectconfigurationObjectChangeSuccessDTO + """ # 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 ServicingObjectconfigurationObjectChangeSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationObjectChangeSuccessDTO 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_objectconfiguration_objects_bulk_change_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_objects_bulk_change_response_dto.py new file mode 100644 index 0000000000..7c551fd375 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_object_change_failure_dto import ServicingObjectconfigurationObjectChangeFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_object_change_success_dto import ServicingObjectconfigurationObjectChangeSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationObjectsBulkChangeResponseDTO(BaseModel): + """ + ServicingObjectconfigurationObjectsBulkChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingObjectconfigurationObjectChangeFailureDTO]] = Field(default=None, description="The objects that were not successfully changed.") + successes: Optional[List[ServicingObjectconfigurationObjectChangeSuccessDTO]] = 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 ServicingObjectconfigurationObjectsBulkChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationObjectsBulkChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingObjectconfigurationObjectChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingObjectconfigurationObjectChangeSuccessDTO.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_objectconfiguration_properties_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_properties_change_definitions_dto.py new file mode 100644 index 0000000000..fbd6b959f5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_property_change_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertiesChangeDefinitionsDTO(BaseModel): + """ + ServicingObjectconfigurationPropertiesChangeDefinitionsDTO + """ # noqa: E501 + properties_by_tenant: Optional[List[ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO]] = 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 ServicingObjectconfigurationPropertiesChangeDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertiesChangeDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertiesByTenant": [ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO.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_objectconfiguration_properties_delete_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_properties_delete_definitions_dto.py new file mode 100644 index 0000000000..058a2a2570 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_property_delete_definitions_by_tenant_dto import ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO(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[ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO]] = 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 ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertiesDeleteDefinitionsDTO 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": [ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO.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_objectconfiguration_property_bulk_delete_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_bulk_delete_response_dto.py new file mode 100644 index 0000000000..71ac5cab9f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_property_delete_failure_dto import ServicingObjectconfigurationPropertyDeleteFailureDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_property_delete_success_dto import ServicingObjectconfigurationPropertyDeleteSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyBulkDeleteResponseDTO(BaseModel): + """ + Results of a bulk delete operation. + """ # noqa: E501 + failures: Optional[List[ServicingObjectconfigurationPropertyDeleteFailureDTO]] = Field(default=None, description="Properties that were not successfully deleted.") + successes: Optional[List[ServicingObjectconfigurationPropertyDeleteSuccessDTO]] = 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 ServicingObjectconfigurationPropertyBulkDeleteResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertyBulkDeleteResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingObjectconfigurationPropertyDeleteFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingObjectconfigurationPropertyDeleteSuccessDTO.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_objectconfiguration_property_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_change_definition_dto.py new file mode 100644 index 0000000000..0e86534d96 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_property_type_dto import ServicingObjectconfigurationPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_tags_dto import ServicingObjectconfigurationTagsDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyChangeDefinitionDTO(BaseModel): + """ + ServicingObjectconfigurationPropertyChangeDefinitionDTO + """ # 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[ServicingObjectconfigurationTagsDTO] = Field(default=None, description="The tags associated with the property.") + type: Optional[ServicingObjectconfigurationPropertyTypeDTO] = 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 ServicingObjectconfigurationPropertyChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingObjectconfigurationPropertyChangeDefinitionDTO 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": ServicingObjectconfigurationTagsDTO.from_dict(obj["tags"]) if obj.get("tags") is not None else None, + "type": ServicingObjectconfigurationPropertyTypeDTO.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_objectconfiguration_property_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..593527435e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_objectconfiguration_property_change_definition_dto import ServicingObjectconfigurationPropertyChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO(BaseModel): + """ + ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO + """ # 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[ServicingObjectconfigurationPropertyChangeDefinitionDTO]] = 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 ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertyChangeDefinitionsByTenantDTO 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": [ServicingObjectconfigurationPropertyChangeDefinitionDTO.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_objectconfiguration_property_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..7ca47fd583 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO(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 ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationPropertyDeleteDefinitionsByTenantDTO 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_objectconfiguration_property_delete_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_failure_dto.py new file mode 100644 index 0000000000..24dbc9b70e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_objectconfiguration_dependent_dto import ServicingObjectconfigurationDependentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyDeleteFailureDTO(BaseModel): + """ + Details about a failed property deletion. + """ # noqa: E501 + derived_dependents_to_delete: Optional[List[ServicingObjectconfigurationDependentDTO]] = 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[ServicingObjectconfigurationDependentDTO]] = 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 ServicingObjectconfigurationPropertyDeleteFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertyDeleteFailureDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "derivedDependentsToDelete": [ServicingObjectconfigurationDependentDTO.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": [ServicingObjectconfigurationDependentDTO.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_objectconfiguration_property_delete_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_delete_success_dto.py new file mode 100644 index 0000000000..ed6fc0cde4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_objectconfiguration_dependent_dto import ServicingObjectconfigurationDependentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyDeleteSuccessDTO(BaseModel): + """ + Details about a successful property deletion. + """ # noqa: E501 + derived_dependents_deleted: Optional[List[ServicingObjectconfigurationDependentDTO]] = 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[ServicingObjectconfigurationDependentDTO]] = 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 ServicingObjectconfigurationPropertyDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingObjectconfigurationPropertyDeleteSuccessDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "derivedDependentsDeleted": [ServicingObjectconfigurationDependentDTO.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": [ServicingObjectconfigurationDependentDTO.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_objectconfiguration_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_property_type_dto.py new file mode 100644 index 0000000000..43e0b6c5bc --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_objectconfiguration_calculated_property_type_dto import ServicingObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_objectconfiguration_simple_property_type_dto import ServicingObjectconfigurationSimplePropertyTypeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationPropertyTypeDTO(BaseModel): + """ + ServicingObjectconfigurationPropertyTypeDTO + """ # noqa: E501 + calculated: Optional[ServicingObjectconfigurationCalculatedPropertyTypeDTO] = Field(default=None, description="The calculated property type, which derives its value using a formula.") + simple: Optional[ServicingObjectconfigurationSimplePropertyTypeDTO] = 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 ServicingObjectconfigurationPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingObjectconfigurationPropertyTypeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "calculated": ServicingObjectconfigurationCalculatedPropertyTypeDTO.from_dict(obj["calculated"]) if obj.get("calculated") is not None else None, + "simple": ServicingObjectconfigurationSimplePropertyTypeDTO.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_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..b7162a6b43 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationSimplePropertyTypeDTO(BaseModel): + """ + ServicingObjectconfigurationSimplePropertyTypeDTO + """ # 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 ServicingObjectconfigurationSimplePropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationSimplePropertyTypeDTO 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_objectconfiguration_tags_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_objectconfiguration_tags_dto.py new file mode 100644 index 0000000000..afe0afdb4f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingObjectconfigurationTagsDTO(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 ServicingObjectconfigurationTagsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingObjectconfigurationTagsDTO 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/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 deleted file mode 100644 index 0ec186033d..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 62938b9ba1..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index fd4634456f..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 108c5a9769..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 36b3c876af..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d695883bcb..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f28b71fd7a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 66a32f77d2..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7db5f6e704..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d1cbe683b1..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1074f54ce0..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 263c001bce..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 64e1b7ef0a..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index b1c5a48e04..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 1353fc4305..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index d949e273f9..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c47edc4951..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d4a4355951..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index c73fb606c1..0000000000 --- a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_publicapi_objectconfiguration_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/servicing_question_categories_api_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_question_categories_api_response_dto.py new file mode 100644 index 0000000000..5f77cedc4c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_question_categories_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_question_category_api_response_dto import ServicingQuestionCategoryAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingQuestionCategoriesAPIResponseDTO(BaseModel): + """ + ServicingQuestionCategoriesAPIResponseDTO + """ # noqa: E501 + categories: Optional[List[ServicingQuestionCategoryAPIResponseDTO]] = Field(default=None, description="A list of available categories for Vee sample questions.") + __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 ServicingQuestionCategoriesAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingQuestionCategoriesAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": [ServicingQuestionCategoryAPIResponseDTO.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_analytic_model/visier_api_analytic_model/models/servicing_question_category_api_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_question_category_api_response_dto.py new file mode 100644 index 0000000000..ab548b6f30 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_question_category_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingQuestionCategoryAPIResponseDTO(BaseModel): + """ + ServicingQuestionCategoryAPIResponseDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the question category.", alias="categoryId") + display_name: Optional[StrictStr] = Field(default=None, description="An identifiable name to display within Visier. For example, \"About individuals\".", alias="displayName") + __properties: ClassVar[List[str]] = ["categoryId", "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 ServicingQuestionCategoryAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingQuestionCategoryAPIResponseDTO 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"), + "displayName": obj.get("displayName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_question_api_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_question_api_response_dto.py new file mode 100644 index 0000000000..c949674044 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_question_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSampleQuestionAPIResponseDTO(BaseModel): + """ + ServicingSampleQuestionAPIResponseDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the question category.", alias="categoryId") + 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") + user_group_assignment: Optional[ServicingUserGroupAssignmentDTO] = Field(default=None, description="The user group IDs assigned to the sample question.", alias="userGroupAssignment") + visible_in_vee: Optional[StrictBool] = Field(default=None, description="If `true`, the sample question is visible in Vee.", alias="visibleInVee") + __properties: ClassVar[List[str]] = ["categoryId", "question", "questionId", "userGroupAssignment", "visibleInVee"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingSampleQuestionAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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_group_assignment + if self.user_group_assignment: + _dict['userGroupAssignment'] = self.user_group_assignment.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingSampleQuestionAPIResponseDTO 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"), + "question": obj.get("question"), + "questionId": obj.get("questionId"), + "userGroupAssignment": ServicingUserGroupAssignmentDTO.from_dict(obj["userGroupAssignment"]) if obj.get("userGroupAssignment") is not None else None, + "visibleInVee": obj.get("visibleInVee") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_questions_api_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_questions_api_response_dto.py new file mode 100644 index 0000000000..7317094f0f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_sample_questions_api_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_sample_question_api_response_dto import ServicingSampleQuestionAPIResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSampleQuestionsAPIResponseDTO(BaseModel): + """ + ServicingSampleQuestionsAPIResponseDTO + """ # noqa: E501 + questions: Optional[List[ServicingSampleQuestionAPIResponseDTO]] = 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 ServicingSampleQuestionsAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingSampleQuestionsAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questions": [ServicingSampleQuestionAPIResponseDTO.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_analytic_model/visier_api_analytic_model/models/servicing_user_group_assignment_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_user_group_assignment_dto.py new file mode 100644 index 0000000000..e1eda5a62d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_user_group_assignment_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingUserGroupAssignmentDTO(BaseModel): + """ + ServicingUserGroupAssignmentDTO + """ # noqa: E501 + user_group_ids: Optional[List[StrictStr]] = Field(default=None, description="A list of user group IDs assigned to the sample question.", alias="userGroupIds") + __properties: ClassVar[List[str]] = ["userGroupIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingUserGroupAssignmentDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingUserGroupAssignmentDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userGroupIds": obj.get("userGroupIds") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_definition_dto.py new file mode 100644 index 0000000000..67da5e3e3e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO(BaseModel): + """ + Information about the analytic object, such as its UUID and object name. + """ # noqa: E501 + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the analytic object.", alias="objectName") + update_operation: Optional[StrictStr] = Field(default=None, description="Update the analytic object. Required for `PUT` requests. Valid values: - `unspecified`: Do not update the object. - `revertToBP`: Undo any tenant overrides and revert the object back to its Blueprint state.", alias="updateOperation") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the analytic object.") + __properties: ClassVar[List[str]] = ["objectName", "updateOperation", "uuid"] + + @field_validator('update_operation') + def update_operation_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['unspecified', 'revertToBP']): + raise ValueError("must be one of enum values ('unspecified', 'revertToBP')") + 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 ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "objectName": obj.get("objectName"), + "updateOperation": obj.get("updateOperation"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_request_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_request_dto.py new file mode 100644 index 0000000000..123a3e9cd3 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_analytic_object_with_context_dto import ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationAnalyticObjectRequestDTO(BaseModel): + """ + The analytic objects to create or update. + """ # noqa: E501 + analytic_objects: Optional[List[ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO]] = Field(default=None, description="The analytic objects in the request.", 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 ServicingV2ObjectconfigurationAnalyticObjectRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationAnalyticObjectRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjects": [ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO.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/servicing_v2_objectconfiguration_analytic_object_with_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_with_context_dto.py new file mode 100644 index 0000000000..2d687e666d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_analytic_object_with_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_analytic_object_definition_dto import ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO(BaseModel): + """ + Information about the analytic object and the context of the API request, such as the tenant code and project ID. + """ # noqa: E501 + analytic_object: Optional[ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO] = Field(default=None, description="Information about the analytic object, such as its UUID and object name.", alias="analyticObject") + execution_context: Optional[ServicingV2ObjectconfigurationExecutionContextDTO] = Field(default=None, description="The context of the API request, such as the tenant code and project ID.", alias="executionContext") + __properties: ClassVar[List[str]] = ["analyticObject", "executionContext"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of analytic_object + if self.analytic_object: + _dict['analyticObject'] = self.analytic_object.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationAnalyticObjectWithContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObject": ServicingV2ObjectconfigurationAnalyticObjectDefinitionDTO.from_dict(obj["analyticObject"]) if obj.get("analyticObject") is not None else None, + "executionContext": ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_basic_information_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_basic_information_dto.py new file mode 100644 index 0000000000..3638830f91 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_basic_information_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_synonym_list_dto import ServicingV2ObjectconfigurationSynonymListDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationBasicInformationDTO(BaseModel): + """ + Fields that identify and describe the object, such as its display name, description, and explanation. + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="A short description of the object. Descriptions provide in-context help for your users while working in Visier.") + designer_notes: Optional[StrictStr] = Field(default=None, description="An admin-only description of the object that provides design-specific information or considerations.", alias="designerNotes") + display_name: Optional[StrictStr] = Field(default=None, description="The user-friendly name for the object.", alias="displayName") + explanation: Optional[StrictStr] = Field(default=None, description="A longer description of the object that typically includes a definition, calculation details, and other guidance about how to use the object.") + short_display_name: Optional[StrictStr] = Field(default=None, description="A shortened version of the display name. If the object is visible in the solution experience, this name is displayed in visualization titles.", alias="shortDisplayName") + synonym_list: Optional[ServicingV2ObjectconfigurationSynonymListDTO] = Field(default=None, description="Alternative words or phrases for the object.", alias="synonymList") + __properties: ClassVar[List[str]] = ["description", "designerNotes", "displayName", "explanation", "shortDisplayName", "synonymList"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationBasicInformationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of synonym_list + if self.synonym_list: + _dict['synonymList'] = self.synonym_list.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationBasicInformationDTO 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"), + "shortDisplayName": obj.get("shortDisplayName"), + "synonymList": ServicingV2ObjectconfigurationSynonymListDTO.from_dict(obj["synonymList"]) if obj.get("synonymList") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_bulk_change_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_bulk_change_response_dto.py new file mode 100644 index 0000000000..c7ecf16bca --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_failed_change_dto import ServicingV2ObjectconfigurationFailedChangeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_successful_change_dto import ServicingV2ObjectconfigurationSuccessfulChangeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationBulkChangeResponseDTO(BaseModel): + """ + ServicingV2ObjectconfigurationBulkChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingV2ObjectconfigurationFailedChangeDTO]] = Field(default=None, description="The list of failed changes.") + successes: Optional[List[ServicingV2ObjectconfigurationSuccessfulChangeDTO]] = Field(default=None, description="The list of successful changes.") + __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 ServicingV2ObjectconfigurationBulkChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationBulkChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingV2ObjectconfigurationFailedChangeDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingV2ObjectconfigurationSuccessfulChangeDTO.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_v2_objectconfiguration_calculated_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_calculated_property_type_dto.py new file mode 100644 index 0000000000..19ca8f7eb0 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_calculated_property_type_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO(BaseModel): + """ + A calculated property that takes a value that comes directly from the data and creates a new value through a formula. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The property's data type. Valid values: `Number`, `Integer`, `Ordinal`, `Categorical`, `Currency`, `Boolean`, `Percent`, `IntegerPercent`, `PercentNoScaling`, `PercentagePoint`, `String`, `Text`, `LargeText`, `Date`, `HourDuration`, `DayDuration`, `MonthDuration`, `YearDuration`.", alias="dataType") + formula: Optional[StrictStr] = Field(default=None, description="The property's formula written in Visier Formula Language (VFL).") + primitive_type: Optional[StrictStr] = Field(default=None, description="The primitive data type, such as String, Integer, or Boolean.", alias="primitiveType") + __properties: ClassVar[List[str]] = ["dataType", "formula", "primitiveType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO 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"), + "primitiveType": obj.get("primitiveType") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_definition_dto.py new file mode 100644 index 0000000000..380bcd7546 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_concept_type_details_dto import ServicingV2ObjectconfigurationConceptTypeDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptDefinitionDTO(BaseModel): + """ + Information about the concept, such as its UUID and concept type. + """ # noqa: E501 + basic_information: Optional[ServicingV2ObjectconfigurationBasicInformationDTO] = Field(default=None, description="Fields that identify and describe the concept, such as its display name, description, and explanation.", alias="basicInformation") + details: Optional[ServicingV2ObjectconfigurationConceptTypeDetailsDTO] = Field(default=None, description="The concept type and its details.") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the concept.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the concept.") + __properties: ClassVar[List[str]] = ["basicInformation", "details", "objectName", "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 ServicingV2ObjectconfigurationConceptDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of basic_information + if self.basic_information: + _dict['basicInformation'] = self.basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of details + if self.details: + _dict['details'] = self.details.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basicInformation": ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(obj["basicInformation"]) if obj.get("basicInformation") is not None else None, + "details": ServicingV2ObjectconfigurationConceptTypeDetailsDTO.from_dict(obj["details"]) if obj.get("details") is not None else None, + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_dto.py new file mode 100644 index 0000000000..a59f975e81 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptDeleteDTO(BaseModel): + """ + The concepts to delete. + """ # noqa: E501 + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the concept.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the concept.") + __properties: ClassVar[List[str]] = ["objectName", "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 ServicingV2ObjectconfigurationConceptDeleteDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptDeleteDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_request_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_request_dto.py new file mode 100644 index 0000000000..e92ca0fbe3 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_concept_delete_with_context_dto import ServicingV2ObjectconfigurationConceptDeleteWithContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptDeleteRequestDTO(BaseModel): + """ + The concepts to delete. + """ # noqa: E501 + concepts: Optional[List[ServicingV2ObjectconfigurationConceptDeleteWithContextDTO]] = Field(default=None, description="The concepts in the request.") + __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 ServicingV2ObjectconfigurationConceptDeleteRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationConceptDeleteRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [ServicingV2ObjectconfigurationConceptDeleteWithContextDTO.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/servicing_v2_objectconfiguration_concept_delete_with_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_with_context_dto.py new file mode 100644 index 0000000000..3bd70f2f8d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_delete_with_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_concept_delete_dto import ServicingV2ObjectconfigurationConceptDeleteDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptDeleteWithContextDTO(BaseModel): + """ + Information about the concept to delete and the context of the API request, such as the tenant code and project ID. + """ # noqa: E501 + concept: Optional[ServicingV2ObjectconfigurationConceptDeleteDTO] = Field(default=None, description="Information identifying the concept to delete.") + execution_context: Optional[ServicingV2ObjectconfigurationExecutionContextDTO] = Field(default=None, description="The context of the API request, such as the tenant code and project ID.", alias="executionContext") + __properties: ClassVar[List[str]] = ["concept", "executionContext"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptDeleteWithContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 + if self.concept: + _dict['concept'] = self.concept.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptDeleteWithContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concept": ServicingV2ObjectconfigurationConceptDeleteDTO.from_dict(obj["concept"]) if obj.get("concept") is not None else None, + "executionContext": ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_request_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_request_dto.py new file mode 100644 index 0000000000..1e5305f9f6 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_request_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_concept_with_context_dto import ServicingV2ObjectconfigurationConceptWithContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptRequestDTO(BaseModel): + """ + The concepts to create or update. + """ # noqa: E501 + concepts: Optional[List[ServicingV2ObjectconfigurationConceptWithContextDTO]] = Field(default=None, description="The concepts in the request.") + __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 ServicingV2ObjectconfigurationConceptRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationConceptRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [ServicingV2ObjectconfigurationConceptWithContextDTO.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/servicing_v2_objectconfiguration_concept_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_response_dto.py new file mode 100644 index 0000000000..3f96803d51 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_response_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_concept_with_context_dto import ServicingV2ObjectconfigurationConceptWithContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptResponseDTO(BaseModel): + """ + The response for retrieving concepts. + """ # noqa: E501 + concepts: Optional[List[ServicingV2ObjectconfigurationConceptWithContextDTO]] = Field(default=None, description="The concepts in the response.") + __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 ServicingV2ObjectconfigurationConceptResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationConceptResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [ServicingV2ObjectconfigurationConceptWithContextDTO.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/servicing_v2_objectconfiguration_concept_type_details_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_type_details_dto.py new file mode 100644 index 0000000000..eca286bfad --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_type_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_definition_dto import ServicingV2ObjectconfigurationProcessConceptDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptTypeDetailsDTO(BaseModel): + """ + ServicingV2ObjectconfigurationConceptTypeDetailsDTO + """ # noqa: E501 + process: Optional[ServicingV2ObjectconfigurationProcessConceptDefinitionDTO] = Field(default=None, description="The process concept's associated objects, such as its analytic object and status dimension.") + __properties: ClassVar[List[str]] = ["process"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptTypeDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of process + if self.process: + _dict['process'] = self.process.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptTypeDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "process": ServicingV2ObjectconfigurationProcessConceptDefinitionDTO.from_dict(obj["process"]) if obj.get("process") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_with_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_with_context_dto.py new file mode 100644 index 0000000000..c7b4b6be25 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_concept_with_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_concept_definition_dto import ServicingV2ObjectconfigurationConceptDefinitionDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationConceptWithContextDTO(BaseModel): + """ + Information about the concept and the context of the API request, such as the tenant code and project ID. + """ # noqa: E501 + concept: Optional[ServicingV2ObjectconfigurationConceptDefinitionDTO] = Field(default=None, description="Information about the concept, such as its UUID and concept type.") + execution_context: Optional[ServicingV2ObjectconfigurationExecutionContextDTO] = Field(default=None, description="The context of the API request, such as the tenant code and project ID.", alias="executionContext") + __properties: ClassVar[List[str]] = ["concept", "executionContext"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptWithContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 + if self.concept: + _dict['concept'] = self.concept.to_dict() + # override the default output from pydantic by calling `to_dict()` of execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationConceptWithContextDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concept": ServicingV2ObjectconfigurationConceptDefinitionDTO.from_dict(obj["concept"]) if obj.get("concept") is not None else None, + "executionContext": ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_execution_context_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_execution_context_dto.py new file mode 100644 index 0000000000..25471d3257 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_execution_context_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationExecutionContextDTO(BaseModel): + """ + The context of the API request, such as the tenant code and project ID. + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The project ID.", 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 ServicingV2ObjectconfigurationExecutionContextDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationExecutionContextDTO 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_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_failed_change_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_failed_change_dto.py new file mode 100644 index 0000000000..67e5b334b2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_failed_change_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationFailedChangeDTO(BaseModel): + """ + ServicingV2ObjectconfigurationFailedChangeDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object that was attempted to be changed.", alias="displayName") + execution_context: Optional[ServicingV2ObjectconfigurationExecutionContextDTO] = Field(default=None, description="The tenant and, optionally, project that change was attempted on.", alias="executionContext") + messages: Optional[List[StrictStr]] = Field(default=None, description="The error messages.") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the object that was attempted to be changed.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the object that was attempted to be changed.") + __properties: ClassVar[List[str]] = ["displayName", "executionContext", "messages", "objectName", "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 ServicingV2ObjectconfigurationFailedChangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationFailedChangeDTO 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"), + "executionContext": ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None, + "messages": obj.get("messages"), + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_definition_dto.py new file mode 100644 index 0000000000..7ef4b99a57 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_definition_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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.servicing_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_metric_type_details_dto import ServicingV2ObjectconfigurationMetricTypeDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationMetricDefinitionDTO(BaseModel): + """ + Information about the metric, such as its object name, basic information, and additive type. + """ # noqa: E501 + additive_type: Optional[StrictStr] = Field(default=None, description="How to sum the metric's values. Valid values: - `fullyAdditive`: Sums the metric over any dimension, concept, or time period. - `balance`: Sums the metric over any dimension or concept, but not time period. - `nonAdditive`: Metric values are not additive.", alias="additiveType") + basic_information: Optional[ServicingV2ObjectconfigurationBasicInformationDTO] = Field(default=None, description="Fields that identify and describe the metric, such as its display name, description, and explanation.", alias="basicInformation") + details: Optional[ServicingV2ObjectconfigurationMetricTypeDetailsDTO] = Field(default=None, description="The metric type and its details.") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the metric.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the metric.") + __properties: ClassVar[List[str]] = ["additiveType", "basicInformation", "details", "objectName", "uuid"] + + @field_validator('additive_type') + def additive_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['fullyAdditive', 'balance', 'nonAdditive', 'unknown']): + raise ValueError("must be one of enum values ('fullyAdditive', 'balance', 'nonAdditive', 'unknown')") + 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 ServicingV2ObjectconfigurationMetricDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of basic_information + if self.basic_information: + _dict['basicInformation'] = self.basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of details + if self.details: + _dict['details'] = self.details.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationMetricDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "additiveType": obj.get("additiveType"), + "basicInformation": ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(obj["basicInformation"]) if obj.get("basicInformation") is not None else None, + "details": ServicingV2ObjectconfigurationMetricTypeDetailsDTO.from_dict(obj["details"]) if obj.get("details") is not None else None, + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_type_details_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_type_details_dto.py new file mode 100644 index 0000000000..1d6a99cfe9 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_metric_type_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_metric_definition_dto import ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationMetricTypeDetailsDTO(BaseModel): + """ + ServicingV2ObjectconfigurationMetricTypeDetailsDTO + """ # noqa: E501 + process_concept: Optional[ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO] = Field(default=None, description="Information about the metric, such as its formula and data type.", alias="processConcept") + __properties: ClassVar[List[str]] = ["processConcept"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationMetricTypeDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of process_concept + if self.process_concept: + _dict['processConcept'] = self.process_concept.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationMetricTypeDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "processConcept": ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO.from_dict(obj["processConcept"]) if obj.get("processConcept") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_definition_dto.py new file mode 100644 index 0000000000..3e01c5166f --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_definition_dto.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_metric_list_dto import ServicingV2ObjectconfigurationProcessConceptMetricListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_outcome_list_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_list_dto import ServicingV2ObjectconfigurationProcessConceptPropertyListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_stage_list_dto import ServicingV2ObjectconfigurationProcessConceptStageListDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_tag_reference_list_dto import ServicingV2ObjectconfigurationTagReferenceListDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptDefinitionDTO(BaseModel): + """ + The process concept's associated objects, such as its analytic object and status dimension. + """ # noqa: E501 + analytic_object_name: Optional[StrictStr] = Field(default=None, description="The object name of the analytic object for the process concept.", alias="analyticObjectName") + include_with_vee: Optional[StrictBool] = Field(default=None, description="If `true`, the object is available in Vee's responses.", alias="includeWithVee") + metric_list: Optional[ServicingV2ObjectconfigurationProcessConceptMetricListDTO] = Field(default=None, description="The process concept's associated metrics.", alias="metricList") + on_hold_concept_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the on-hold concept for the process concept.", alias="onHoldConceptUuid") + outcome_list: Optional[ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO] = Field(default=None, description="The process concept's outcomes.", alias="outcomeList") + participation_concept_uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the participation concept for the process concept.", alias="participationConceptUuid") + property_list: Optional[ServicingV2ObjectconfigurationProcessConceptPropertyListDTO] = Field(default=None, description="The process concept's associated properties.", alias="propertyList") + stage_list: Optional[ServicingV2ObjectconfigurationProcessConceptStageListDTO] = Field(default=None, description="The process concept's stages.", alias="stageList") + status_dimension_object_name: Optional[StrictStr] = Field(default=None, description="The object name of the status dimension for the process concept.", alias="statusDimensionObjectName") + tag_list: Optional[ServicingV2ObjectconfigurationTagReferenceListDTO] = Field(default=None, description="The tags assigned to the object.", alias="tagList") + visible_in_analytics: Optional[StrictBool] = Field(default=None, description="If `true`, the object is visible to end users in the solution.", alias="visibleInAnalytics") + __properties: ClassVar[List[str]] = ["analyticObjectName", "includeWithVee", "metricList", "onHoldConceptUuid", "outcomeList", "participationConceptUuid", "propertyList", "stageList", "statusDimensionObjectName", "tagList", "visibleInAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metric_list + if self.metric_list: + _dict['metricList'] = self.metric_list.to_dict() + # override the default output from pydantic by calling `to_dict()` of outcome_list + if self.outcome_list: + _dict['outcomeList'] = self.outcome_list.to_dict() + # override the default output from pydantic by calling `to_dict()` of property_list + if self.property_list: + _dict['propertyList'] = self.property_list.to_dict() + # override the default output from pydantic by calling `to_dict()` of stage_list + if self.stage_list: + _dict['stageList'] = self.stage_list.to_dict() + # override the default output from pydantic by calling `to_dict()` of tag_list + if self.tag_list: + _dict['tagList'] = self.tag_list.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analyticObjectName": obj.get("analyticObjectName"), + "includeWithVee": obj.get("includeWithVee"), + "metricList": ServicingV2ObjectconfigurationProcessConceptMetricListDTO.from_dict(obj["metricList"]) if obj.get("metricList") is not None else None, + "onHoldConceptUuid": obj.get("onHoldConceptUuid"), + "outcomeList": ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO.from_dict(obj["outcomeList"]) if obj.get("outcomeList") is not None else None, + "participationConceptUuid": obj.get("participationConceptUuid"), + "propertyList": ServicingV2ObjectconfigurationProcessConceptPropertyListDTO.from_dict(obj["propertyList"]) if obj.get("propertyList") is not None else None, + "stageList": ServicingV2ObjectconfigurationProcessConceptStageListDTO.from_dict(obj["stageList"]) if obj.get("stageList") is not None else None, + "statusDimensionObjectName": obj.get("statusDimensionObjectName"), + "tagList": ServicingV2ObjectconfigurationTagReferenceListDTO.from_dict(obj["tagList"]) if obj.get("tagList") is not None else None, + "visibleInAnalytics": obj.get("visibleInAnalytics") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_dto.py new file mode 100644 index 0000000000..239505412c --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptMemberDTO(BaseModel): + """ + Each member mapped to a stage or outcome in the process concept. + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the mapped member.", alias="displayName") + name_path: Optional[List[StrictStr]] = Field(default=None, description="The name path of the mapped member.", alias="namePath") + __properties: ClassVar[List[str]] = ["displayName", "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 ServicingV2ObjectconfigurationProcessConceptMemberDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptMemberDTO 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"), + "namePath": obj.get("namePath") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_list_dto.py new file mode 100644 index 0000000000..e820ad4860 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_member_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_member_dto import ServicingV2ObjectconfigurationProcessConceptMemberDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptMemberListDTO(BaseModel): + """ + The members mapped to a stage or outcome in the process concept. + """ # noqa: E501 + members: Optional[List[ServicingV2ObjectconfigurationProcessConceptMemberDTO]] = Field(default=None, description="Each member mapped to a stage or outcome in the process concept.") + __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 ServicingV2ObjectconfigurationProcessConceptMemberListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationProcessConceptMemberListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "members": [ServicingV2ObjectconfigurationProcessConceptMemberDTO.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/servicing_v2_objectconfiguration_process_concept_metric_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_definition_dto.py new file mode 100644 index 0000000000..1917070464 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO(BaseModel): + """ + Information about the metric, such as its formula and data type. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The metric's data type. Valid values: `Number`, `Integer`, `Ordinal`, `Categorical`, `Currency`, `Boolean`, `Percent`, `IntegerPercent`, `PercentNoScaling`, `PercentagePoint`, `String`, `Text`, `LargeText`, `Date`, `HourDuration`, `DayDuration`, `MonthDuration`, `YearDuration`.", alias="dataType") + formula: Optional[StrictStr] = Field(default=None, description="The metric's formula written in Visier Formula Language (VFL).") + visible_in_analytics: Optional[StrictBool] = Field(default=None, description="If `true`, the object is visible to end users in the solution. Default is `true`.", alias="visibleInAnalytics") + __properties: ClassVar[List[str]] = ["dataType", "formula", "visibleInAnalytics"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptMetricDefinitionDTO 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"), + "visibleInAnalytics": obj.get("visibleInAnalytics") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_list_dto.py new file mode 100644 index 0000000000..394f5498db --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_metric_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_metric_definition_dto import ServicingV2ObjectconfigurationMetricDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptMetricListDTO(BaseModel): + """ + The process concept's associated metrics. + """ # noqa: E501 + metrics: Optional[List[ServicingV2ObjectconfigurationMetricDefinitionDTO]] = Field(default=None, description="Each metric in the process concept.") + __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 ServicingV2ObjectconfigurationProcessConceptMetricListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationProcessConceptMetricListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics": [ServicingV2ObjectconfigurationMetricDefinitionDTO.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/servicing_v2_objectconfiguration_process_concept_outcome_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_dto.py new file mode 100644 index 0000000000..89a4af06f4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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.servicing_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_list_dto import ServicingV2ObjectconfigurationProcessConceptMemberListDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptOutcomeDTO(BaseModel): + """ + Information about a process concept outcome. + """ # noqa: E501 + basic_information: Optional[ServicingV2ObjectconfigurationBasicInformationDTO] = Field(default=None, description="Fields that identify and describe the concept outcome, such as its display name, description, and explanation.", alias="basicInformation") + mapped_member_list: Optional[ServicingV2ObjectconfigurationProcessConceptMemberListDTO] = Field(default=None, description="Each member mapped to the process concept outcome.", alias="mappedMemberList") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the process concept outcome.", alias="objectName") + outcome_semantic: Optional[StrictStr] = Field(default=None, description="The end result of the process. Valid values: - `Success`: The outcome is considered successful; for example, Hired. This is the default. - `Fail`: The outcome is considered a failure; for example, Rejected.", alias="outcomeSemantic") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the process concept outcome.") + __properties: ClassVar[List[str]] = ["basicInformation", "mappedMemberList", "objectName", "outcomeSemantic", "uuid"] + + @field_validator('outcome_semantic') + def outcome_semantic_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['Success', 'Fail']): + raise ValueError("must be one of enum values ('Success', '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 ServicingV2ObjectconfigurationProcessConceptOutcomeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of basic_information + if self.basic_information: + _dict['basicInformation'] = self.basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of mapped_member_list + if self.mapped_member_list: + _dict['mappedMemberList'] = self.mapped_member_list.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptOutcomeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basicInformation": ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(obj["basicInformation"]) if obj.get("basicInformation") is not None else None, + "mappedMemberList": ServicingV2ObjectconfigurationProcessConceptMemberListDTO.from_dict(obj["mappedMemberList"]) if obj.get("mappedMemberList") is not None else None, + "objectName": obj.get("objectName"), + "outcomeSemantic": obj.get("outcomeSemantic"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_list_dto.py new file mode 100644 index 0000000000..b7ca1c68f5 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_outcome_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_outcome_dto import ServicingV2ObjectconfigurationProcessConceptOutcomeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO(BaseModel): + """ + The process concept's outcomes. + """ # noqa: E501 + outcomes: Optional[List[ServicingV2ObjectconfigurationProcessConceptOutcomeDTO]] = Field(default=None, description="Each outcome in the process concept.") + __properties: ClassVar[List[str]] = ["outcomes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in outcomes (list) + _items = [] + if self.outcomes: + for _item_outcomes in self.outcomes: + if _item_outcomes: + _items.append(_item_outcomes.to_dict()) + _dict['outcomes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptOutcomeListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "outcomes": [ServicingV2ObjectconfigurationProcessConceptOutcomeDTO.from_dict(_item) for _item in obj["outcomes"]] if obj.get("outcomes") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_list_dto.py new file mode 100644 index 0000000000..e11ff0f419 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_property_definition_dto import ServicingV2ObjectconfigurationPropertyDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptPropertyListDTO(BaseModel): + """ + The process concept's associated properties. + """ # noqa: E501 + properties: Optional[List[ServicingV2ObjectconfigurationPropertyDefinitionDTO]] = Field(default=None, description="Each property in the process concept.") + __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 ServicingV2ObjectconfigurationProcessConceptPropertyListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationProcessConceptPropertyListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "properties": [ServicingV2ObjectconfigurationPropertyDefinitionDTO.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/servicing_v2_objectconfiguration_process_concept_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_type_dto.py new file mode 100644 index 0000000000..4f5e2b97cd --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_property_type_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO(BaseModel): + """ + A process concept property that takes a value that comes directly from the data and creates a new value through a formula. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The property's data type. Valid values: `Number`, `Integer`, `Ordinal`, `Categorical`, `Currency`, `Boolean`, `Percent`, `IntegerPercent`, `PercentNoScaling`, `PercentagePoint`, `String`, `Text`, `LargeText`, `Date`, `HourDuration`, `DayDuration`, `MonthDuration`, `YearDuration`.", alias="dataType") + formula: Optional[StrictStr] = Field(default=None, description="The property's formula written in Visier Formula Language (VFL).") + primitive_type: Optional[StrictStr] = Field(default=None, description="The primitive data type, such as String, Integer, or Boolean.", alias="primitiveType") + __properties: ClassVar[List[str]] = ["dataType", "formula", "primitiveType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO 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"), + "primitiveType": obj.get("primitiveType") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_dto.py new file mode 100644 index 0000000000..19fedcd6d4 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_member_list_dto import ServicingV2ObjectconfigurationProcessConceptMemberListDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptStageDTO(BaseModel): + """ + Information about a process concept stage. + """ # noqa: E501 + basic_information: Optional[ServicingV2ObjectconfigurationBasicInformationDTO] = Field(default=None, description="Fields that identify and describe the concept stage, such as its display name, description, and explanation.", alias="basicInformation") + mapped_member_list: Optional[ServicingV2ObjectconfigurationProcessConceptMemberListDTO] = Field(default=None, description="The members mapped to the process concept stage.", alias="mappedMemberList") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the process concept stage.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the process concept stage.") + __properties: ClassVar[List[str]] = ["basicInformation", "mappedMemberList", "objectName", "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 ServicingV2ObjectconfigurationProcessConceptStageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of basic_information + if self.basic_information: + _dict['basicInformation'] = self.basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of mapped_member_list + if self.mapped_member_list: + _dict['mappedMemberList'] = self.mapped_member_list.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptStageDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basicInformation": ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(obj["basicInformation"]) if obj.get("basicInformation") is not None else None, + "mappedMemberList": ServicingV2ObjectconfigurationProcessConceptMemberListDTO.from_dict(obj["mappedMemberList"]) if obj.get("mappedMemberList") is not None else None, + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_list_dto.py new file mode 100644 index 0000000000..03ef3b089d --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_process_concept_stage_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_process_concept_stage_dto import ServicingV2ObjectconfigurationProcessConceptStageDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationProcessConceptStageListDTO(BaseModel): + """ + The process concept's stages. + """ # noqa: E501 + stages: Optional[List[ServicingV2ObjectconfigurationProcessConceptStageDTO]] = Field(default=None, description="Each stage in the process concept.") + __properties: ClassVar[List[str]] = ["stages"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptStageListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in stages (list) + _items = [] + if self.stages: + for _item_stages in self.stages: + if _item_stages: + _items.append(_item_stages.to_dict()) + _dict['stages'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationProcessConceptStageListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "stages": [ServicingV2ObjectconfigurationProcessConceptStageDTO.from_dict(_item) for _item in obj["stages"]] if obj.get("stages") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_definition_dto.py new file mode 100644 index 0000000000..5004753ad8 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_basic_information_dto import ServicingV2ObjectconfigurationBasicInformationDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_property_type_details_dto import ServicingV2ObjectconfigurationPropertyTypeDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationPropertyDefinitionDTO(BaseModel): + """ + ServicingV2ObjectconfigurationPropertyDefinitionDTO + """ # noqa: E501 + basic_information: Optional[ServicingV2ObjectconfigurationBasicInformationDTO] = Field(default=None, description="Fields that identify and describe the property, such as its display name, description, and explanation.", alias="basicInformation") + details: Optional[ServicingV2ObjectconfigurationPropertyTypeDetailsDTO] = Field(default=None, description="The property type and its details.") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the property.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID identifying the property.") + __properties: ClassVar[List[str]] = ["basicInformation", "details", "objectName", "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 ServicingV2ObjectconfigurationPropertyDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of basic_information + if self.basic_information: + _dict['basicInformation'] = self.basic_information.to_dict() + # override the default output from pydantic by calling `to_dict()` of details + if self.details: + _dict['details'] = self.details.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationPropertyDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "basicInformation": ServicingV2ObjectconfigurationBasicInformationDTO.from_dict(obj["basicInformation"]) if obj.get("basicInformation") is not None else None, + "details": ServicingV2ObjectconfigurationPropertyTypeDetailsDTO.from_dict(obj["details"]) if obj.get("details") is not None else None, + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_type_details_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_type_details_dto.py new file mode 100644 index 0000000000..022d59281e --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_property_type_details_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_calculated_property_type_dto import ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_process_concept_property_type_dto import ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO +from visier_api_analytic_model.models.servicing_v2_objectconfiguration_simple_property_type_dto import ServicingV2ObjectconfigurationSimplePropertyTypeDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationPropertyTypeDetailsDTO(BaseModel): + """ + The property type. + """ # noqa: E501 + calculated: Optional[ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO] = Field(default=None, description="The calculated property type, which derives its value using a formula.") + process_concept: Optional[ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO] = Field(default=None, description="The process concept property type, which describes the relationship between subject member properties and a subject member in the process pipeline.", alias="processConcept") + simple: Optional[ServicingV2ObjectconfigurationSimplePropertyTypeDTO] = Field(default=None, description="The simple property type, which provides a single value directly from the data.") + __properties: ClassVar[List[str]] = ["calculated", "processConcept", "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 ServicingV2ObjectconfigurationPropertyTypeDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 process_concept + if self.process_concept: + _dict['processConcept'] = self.process_concept.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 ServicingV2ObjectconfigurationPropertyTypeDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "calculated": ServicingV2ObjectconfigurationCalculatedPropertyTypeDTO.from_dict(obj["calculated"]) if obj.get("calculated") is not None else None, + "processConcept": ServicingV2ObjectconfigurationProcessConceptPropertyTypeDTO.from_dict(obj["processConcept"]) if obj.get("processConcept") is not None else None, + "simple": ServicingV2ObjectconfigurationSimplePropertyTypeDTO.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_v2_objectconfiguration_simple_property_type_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_simple_property_type_dto.py new file mode 100644 index 0000000000..8f5a87dabe --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_simple_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationSimplePropertyTypeDTO(BaseModel): + """ + A simple property that provides single-level detail to an analytic object and contains one value at a time. + """ # noqa: E501 + data_type: Optional[StrictStr] = Field(default=None, description="The property's data type. Valid values: `Number`, `Integer`, `Ordinal`, `Categorical`, `Currency`, `Boolean`, `Percent`, `IntegerPercent`, `PercentNoScaling`, `PercentagePoint`, `String`, `Text`, `LargeText`, `Date`, `HourDuration`, `DayDuration`, `MonthDuration`, `YearDuration`.", alias="dataType") + primitive_type: Optional[StrictStr] = Field(default=None, description="The primitive data type, such as String, Integer, or Boolean.", alias="primitiveType") + __properties: ClassVar[List[str]] = ["dataType", "primitiveType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationSimplePropertyTypeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationSimplePropertyTypeDTO 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"), + "primitiveType": obj.get("primitiveType") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_successful_change_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_successful_change_dto.py new file mode 100644 index 0000000000..84a7542e56 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_successful_change_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_v2_objectconfiguration_execution_context_dto import ServicingV2ObjectconfigurationExecutionContextDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationSuccessfulChangeDTO(BaseModel): + """ + ServicingV2ObjectconfigurationSuccessfulChangeDTO + """ # noqa: E501 + display_name: Optional[StrictStr] = Field(default=None, description="The display name of the object that was changed.", alias="displayName") + execution_context: Optional[ServicingV2ObjectconfigurationExecutionContextDTO] = Field(default=None, description="The tenant and, optionally, project that change was made on.", alias="executionContext") + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the object that was changed.", alias="objectName") + uuid: Optional[StrictStr] = Field(default=None, description="The UUID of the object that was changed.") + __properties: ClassVar[List[str]] = ["displayName", "executionContext", "objectName", "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 ServicingV2ObjectconfigurationSuccessfulChangeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationSuccessfulChangeDTO 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"), + "executionContext": ServicingV2ObjectconfigurationExecutionContextDTO.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None, + "objectName": obj.get("objectName"), + "uuid": obj.get("uuid") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_synonym_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_synonym_list_dto.py new file mode 100644 index 0000000000..b92cbcbc51 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_synonym_list_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationSynonymListDTO(BaseModel): + """ + The object's synonyms. + """ # noqa: E501 + synonyms: Optional[List[StrictStr]] = Field(default=None, description="Alternative words or phrases for the object.") + __properties: ClassVar[List[str]] = ["synonyms"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationSynonymListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationSynonymListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "synonyms": obj.get("synonyms") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_dto.py new file mode 100644 index 0000000000..0e5eba87fa --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationTagReferenceDTO(BaseModel): + """ + A reference to a tag. + """ # noqa: E501 + object_name: Optional[StrictStr] = Field(default=None, description="The object name of the tag.", alias="objectName") + __properties: ClassVar[List[str]] = ["objectName"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationTagReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingV2ObjectconfigurationTagReferenceDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "objectName": obj.get("objectName") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_list_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_list_dto.py new file mode 100644 index 0000000000..05a30c84dc --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_v2_objectconfiguration_tag_reference_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_v2_objectconfiguration_tag_reference_dto import ServicingV2ObjectconfigurationTagReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingV2ObjectconfigurationTagReferenceListDTO(BaseModel): + """ + The tags assigned to the object. + """ # noqa: E501 + tags: Optional[List[ServicingV2ObjectconfigurationTagReferenceDTO]] = Field(default=None, description="A list of tags assigned to the object.") + __properties: ClassVar[List[str]] = ["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 ServicingV2ObjectconfigurationTagReferenceListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingV2ObjectconfigurationTagReferenceListDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tags": [ServicingV2ObjectconfigurationTagReferenceDTO.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/servicing_vee_question_change_definition_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_definition_dto.py new file mode 100644 index 0000000000..6fd2ede0ec --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_definition_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionChangeDefinitionDTO(BaseModel): + """ + ServicingVeeQuestionChangeDefinitionDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the question category.", alias="categoryId") + question: Optional[StrictStr] = Field(default=None, description="A question in plain language to display in Vee.") + question_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the sample question. Omit if creating a new sample question.", alias="questionId") + user_group_assignment: Optional[ServicingUserGroupAssignmentDTO] = Field(default=None, description="The user group IDs assigned to the sample question.", alias="userGroupAssignment") + visible_in_vee: Optional[StrictBool] = Field(default=None, description="If `true`, the question is visible in Vee. Default is `true`.", alias="visibleInVee") + __properties: ClassVar[List[str]] = ["categoryId", "question", "questionId", "userGroupAssignment", "visibleInVee"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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_group_assignment + if self.user_group_assignment: + _dict['userGroupAssignment'] = self.user_group_assignment.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeDefinitionDTO 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"), + "question": obj.get("question"), + "questionId": obj.get("questionId"), + "userGroupAssignment": ServicingUserGroupAssignmentDTO.from_dict(obj["userGroupAssignment"]) if obj.get("userGroupAssignment") is not None else None, + "visibleInVee": obj.get("visibleInVee") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..b7ecb1dba3 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_vee_question_change_definition_dto import ServicingVeeQuestionChangeDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionChangeDefinitionsByTenantDTO(BaseModel): + """ + ServicingVeeQuestionChangeDefinitionsByTenantDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="To make changes in a project, specify a project ID.", alias="projectId") + questions: Optional[List[ServicingVeeQuestionChangeDefinitionDTO]] = Field(default=None, description="The list of sample questions to update.") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant code of the tenant in which to update sample questions.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["projectId", "questions", "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 ServicingVeeQuestionChangeDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingVeeQuestionChangeDefinitionsByTenantDTO 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"), + "questions": [ServicingVeeQuestionChangeDefinitionDTO.from_dict(_item) for _item in obj["questions"]] if obj.get("questions") 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_vee_question_change_failure_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_failure_dto.py new file mode 100644 index 0000000000..20a2feb7f2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_failure_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionChangeFailureDTO(BaseModel): + """ + ServicingVeeQuestionChangeFailureDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the category of the sample question that was not successfully changed.", alias="categoryId") + 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") + question: Optional[StrictStr] = Field(default=None, description="The question in plain language that was not successfully changed.") + question_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the sample question that was not successfully changed.", alias="questionId") + 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") + user_group_assignment: Optional[ServicingUserGroupAssignmentDTO] = Field(default=None, description="The user group IDs that were not successfully assigned to the sample question.", alias="userGroupAssignment") + __properties: ClassVar[List[str]] = ["categoryId", "message", "projectId", "question", "questionId", "rci", "tenantCode", "userGroupAssignment"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeFailureDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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_group_assignment + if self.user_group_assignment: + _dict['userGroupAssignment'] = self.user_group_assignment.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeFailureDTO 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"), + "message": obj.get("message"), + "projectId": obj.get("projectId"), + "question": obj.get("question"), + "questionId": obj.get("questionId"), + "rci": obj.get("rci"), + "tenantCode": obj.get("tenantCode"), + "userGroupAssignment": ServicingUserGroupAssignmentDTO.from_dict(obj["userGroupAssignment"]) if obj.get("userGroupAssignment") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_success_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_success_dto.py new file mode 100644 index 0000000000..87e6bc4cd2 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_change_success_dto.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Visier Analytic Model APIs + + Visier APIs for retrieving and configuring your analytic model in Visier. + + The version of the OpenAPI document: 22222222.99201.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_user_group_assignment_dto import ServicingUserGroupAssignmentDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionChangeSuccessDTO(BaseModel): + """ + ServicingVeeQuestionChangeSuccessDTO + """ # noqa: E501 + category_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the category of the question that was successfully changed.", alias="categoryId") + project_id: Optional[StrictStr] = Field(default=None, description="The project that the sample question was changed in.", alias="projectId") + question: Optional[StrictStr] = Field(default=None, description="The sample question in plain language that was successfully changed.") + question_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the sample question that was successfully changed.", alias="questionId") + tenant_code: Optional[StrictStr] = Field(default=None, description="The tenant that the sample question was changed in.", alias="tenantCode") + user_group_assignment: Optional[ServicingUserGroupAssignmentDTO] = Field(default=None, description="The user group IDs that were successfully assigned to the sample question.", alias="userGroupAssignment") + visible_in_vee: Optional[StrictBool] = Field(default=None, description="If `true`, the question is visible in Vee.", alias="visibleInVee") + __properties: ClassVar[List[str]] = ["categoryId", "projectId", "question", "questionId", "tenantCode", "userGroupAssignment", "visibleInVee"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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_group_assignment + if self.user_group_assignment: + _dict['userGroupAssignment'] = self.user_group_assignment.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionChangeSuccessDTO 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"), + "projectId": obj.get("projectId"), + "question": obj.get("question"), + "questionId": obj.get("questionId"), + "tenantCode": obj.get("tenantCode"), + "userGroupAssignment": ServicingUserGroupAssignmentDTO.from_dict(obj["userGroupAssignment"]) if obj.get("userGroupAssignment") is not None else None, + "visibleInVee": obj.get("visibleInVee") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_delete_definitions_by_tenant_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_delete_definitions_by_tenant_dto.py new file mode 100644 index 0000000000..3647cfa081 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_question_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionDeleteDefinitionsByTenantDTO(BaseModel): + """ + ServicingVeeQuestionDeleteDefinitionsByTenantDTO + """ # noqa: E501 + project_id: Optional[StrictStr] = Field(default=None, description="The project in which to delete sample questions. If omitted and the ProjectID request header is not defined, the change is published to production immediately.", alias="projectId") + question_ids: Optional[List[StrictStr]] = Field(default=None, description="The IDs of the sample questions to delete for a specific tenant.", alias="questionIds") + tenant_code: Optional[StrictStr] = Field(default=None, description="The code of the tenant to delete sample questions from. Default is the current tenant.", alias="tenantCode") + __properties: ClassVar[List[str]] = ["projectId", "questionIds", "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 ServicingVeeQuestionDeleteDefinitionsByTenantDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionDeleteDefinitionsByTenantDTO 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"), + "questionIds": obj.get("questionIds"), + "tenantCode": obj.get("tenantCode") + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_bulk_change_response_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_bulk_change_response_dto.py new file mode 100644 index 0000000000..d53605836a --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_question_change_failure_dto import ServicingVeeQuestionChangeFailureDTO +from visier_api_analytic_model.models.servicing_vee_question_change_success_dto import ServicingVeeQuestionChangeSuccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionsBulkChangeResponseDTO(BaseModel): + """ + ServicingVeeQuestionsBulkChangeResponseDTO + """ # noqa: E501 + failures: Optional[List[ServicingVeeQuestionChangeFailureDTO]] = Field(default=None, description="The sample questions that were not successfully changed.") + successes: Optional[List[ServicingVeeQuestionChangeSuccessDTO]] = Field(default=None, description="The sample questions 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 ServicingVeeQuestionsBulkChangeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingVeeQuestionsBulkChangeResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failures": [ServicingVeeQuestionChangeFailureDTO.from_dict(_item) for _item in obj["failures"]] if obj.get("failures") is not None else None, + "successes": [ServicingVeeQuestionChangeSuccessDTO.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_vee_questions_change_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_change_definitions_dto.py new file mode 100644 index 0000000000..4fdd1f7d88 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_question_change_definitions_by_tenant_dto import ServicingVeeQuestionChangeDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionsChangeDefinitionsDTO(BaseModel): + """ + ServicingVeeQuestionsChangeDefinitionsDTO + """ # noqa: E501 + questions_by_tenant: Optional[List[ServicingVeeQuestionChangeDefinitionsByTenantDTO]] = Field(default=None, description="The Vee sample question updates to make in each tenant.", alias="questionsByTenant") + __properties: ClassVar[List[str]] = ["questionsByTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionsChangeDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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_by_tenant (list) + _items = [] + if self.questions_by_tenant: + for _item_questions_by_tenant in self.questions_by_tenant: + if _item_questions_by_tenant: + _items.append(_item_questions_by_tenant.to_dict()) + _dict['questionsByTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionsChangeDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questionsByTenant": [ServicingVeeQuestionChangeDefinitionsByTenantDTO.from_dict(_item) for _item in obj["questionsByTenant"]] if obj.get("questionsByTenant") is not None else None + }) + return _obj + + diff --git a/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_delete_definitions_dto.py b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_delete_definitions_dto.py new file mode 100644 index 0000000000..ab866cec86 --- /dev/null +++ b/src/visier_api_analytic_model/visier_api_analytic_model/models/servicing_vee_questions_delete_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_question_delete_definitions_by_tenant_dto import ServicingVeeQuestionDeleteDefinitionsByTenantDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingVeeQuestionsDeleteDefinitionsDTO(BaseModel): + """ + ServicingVeeQuestionsDeleteDefinitionsDTO + """ # noqa: E501 + questions_by_tenant: Optional[List[ServicingVeeQuestionDeleteDefinitionsByTenantDTO]] = Field(default=None, description="The sample questions to delete for each tenant.", alias="questionsByTenant") + __properties: ClassVar[List[str]] = ["questionsByTenant"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionsDeleteDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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_by_tenant (list) + _items = [] + if self.questions_by_tenant: + for _item_questions_by_tenant in self.questions_by_tenant: + if _item_questions_by_tenant: + _items.append(_item_questions_by_tenant.to_dict()) + _dict['questionsByTenant'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingVeeQuestionsDeleteDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questionsByTenant": [ServicingVeeQuestionDeleteDefinitionsByTenantDTO.from_dict(_item) for _item in obj["questionsByTenant"]] if obj.get("questionsByTenant") is not None else None + }) + 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 715c6938a2..e4033d8aec 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_core/pyproject.toml b/src/visier_api_core/pyproject.toml index 5d7aafb0ec..37c685b642 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.1793" +version = "0.99201.1830" 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 e5bd630109..5ff54b6f24 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793" +VERSION = "0.99201.1830" 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 c7570e6341..fe8444b706 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1793" +__version__ = "0.99201.1830" # 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 63ab77ce33..871ca783d2 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793/python' + self.user_agent = 'Visier-SDK/0.99201.1830/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 e35de3e5ad..9167064f41 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793\n"\ - "SDK Package Version: 0.99201.1793".\ + "Version of the API: 22222222.99201.1830\n"\ + "SDK Package Version: 0.99201.1830".\ 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 de7763798d..0db1b33886 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 2bb9d8826e..c1d1df4b70 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 624e7ad7bc..e991ec3dc2 100644 --- a/src/visier_api_data_in/.openapi-generator/FILES +++ b/src/visier_api_data_in/.openapi-generator/FILES @@ -4,30 +4,30 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_admin_data_transfers_import_definition_apidto.py -test/test_admin_data_transfers_import_definitions_apidto.py +test/test_admin_assign_connector_credentials_by_tenant_response_dto.py +test/test_admin_assign_connector_credentials_response_dto.py +test/test_admin_assign_connector_with_credentials_response_dto.py +test/test_admin_assigned_credential_info_response_dto.py +test/test_admin_connector_info_response_dto.py +test/test_admin_connector_setting_request_dto.py +test/test_admin_connector_setting_response_dto.py +test/test_admin_connector_settings_response_dto.py +test/test_admin_data_import_definition_apidto.py +test/test_admin_data_import_definitions_apidto.py +test/test_admin_data_version_and_date_dto.py +test/test_admin_extractor_setting_apidto.py +test/test_admin_extractor_setting_key_value_apidto.py +test/test_admin_extractor_settings_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_admin_multiple_tenant_data_versions_details_dto.py +test/test_admin_multiple_tenant_data_versions_list_dto.py +test/test_admin_set_connector_setting_request_dto.py +test/test_admin_set_connector_setting_response_dto.py +test/test_admin_set_connector_settings_request_dto.py +test/test_admin_set_connector_settings_response_dto.py +test/test_admin_tenant_connector_settings_request_dto.py test/test_data_and_job_handling_api.py test/test_data_in_assign_connector_credential_request.py test/test_data_in_connector.py @@ -66,89 +66,91 @@ 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_upload_api.py +test/test_designer_adp_auth_params_dto.py +test/test_designer_bamboo_auth_params_dto.py +test/test_designer_basic_s3_auth_params_dto.py +test/test_designer_big_query_auth_params_dto.py +test/test_designer_big_query_service_account_params_dto.py +test/test_designer_copy_s3_auth_params_dto.py +test/test_designer_credential_creation_api_response_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_designer_data_provider_auth_information_dto.py +test/test_designer_data_provider_auth_params_dto.py +test/test_designer_data_provider_basic_information_dto.py +test/test_designer_data_provider_basic_metadata_dto.py +test/test_designer_dayforce_v2_auth_params_dto.py +test/test_designer_dimensions_auth_params_dto.py +test/test_designer_extractor_credential_apidto.py +test/test_designer_extractor_credentials_apidto.py +test/test_designer_fusion_auth_params_dto.py +test/test_designer_gong_auth_params_dto.py +test/test_designer_google_sheets_auth_params_dto.py +test/test_designer_google_workspace_auth_params_dto.py +test/test_designer_greenhouse_auth_params_dto.py +test/test_designer_icims_auth_params_dto.py +test/test_designer_internal_s3_auth_params_dto.py +test/test_designer_jdbc_auth_params_dto.py +test/test_designer_jira_auth_params_dto.py +test/test_designer_jira_connect_params_dto.py +test/test_designer_lever_auth_params_dto.py +test/test_designer_medallia_auth_params_dto.py +test/test_designer_microsoft365_auth_params_dto.py +test/test_designer_my_sql_auth_params_dto.py +test/test_designer_namely_auth_params_dto.py +test/test_designer_oracle_db_auth_params_dto.py +test/test_designer_push_data_column_definition_dto.py +test/test_designer_push_data_source_definition_dto.py +test/test_designer_push_data_source_definitions_dto.py +test/test_designer_qualtrics_auth_params_dto.py +test/test_designer_redshift_auth_params_dto.py +test/test_designer_salesforce_auth_params_dto.py +test/test_designer_salesforce_v2_auth_params_dto.py +test/test_designer_service_now_auth_params_dto.py +test/test_designer_service_now_v2_auth_params_dto.py +test/test_designer_slack_auth_params_dto.py +test/test_designer_snowflake_auth_params_dto.py +test/test_designer_sql_server_auth_params_dto.py +test/test_designer_subject_missing_access_dto.py +test/test_designer_success_factors_auth_params_dto.py +test/test_designer_success_factors_o_auth_params_dto.py +test/test_designer_ultimate_auth_params_dto.py +test/test_designer_willow_auth_params_dto.py +test/test_designer_workday_auth_params_dto.py +test/test_designer_workday_o_auth_params_dto.py +test/test_designer_workday_raas_auth_params_dto.py +test/test_designer_workday_refresh_token_params_dto.py +test/test_designer_zoom_auth_params_dto.py test/test_direct_data_intake_api.py test/test_direct_data_upload_file_response_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_dp_cancel_job_batch_from_job_id_dto.py +test/test_dp_job_cancellation_result_dto.py +test/test_dp_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_upload_response_dto.py test/test_plan_row_data_load_response_dto.py test/test_planning_data_load_api.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_servicing_data_categories_response_dto.py +test/test_servicing_data_category_response_dto.py +test/test_servicing_direct_data_job_config_dto.py +test/test_servicing_direct_data_job_status_response_dto.py +test/test_servicing_direct_data_list_transactions_response_dto.py +test/test_servicing_direct_data_load_config_dto.py +test/test_servicing_direct_data_schema_dto.py +test/test_servicing_direct_data_schema_field_dto.py +test/test_servicing_direct_data_transaction_dto.py +test/test_servicing_direct_data_transaction_start_response_dto.py +test/test_servicing_direct_data_upload_file_response_dto.py +test/test_servicing_job_id_response.py +test/test_servicing_tenant_data_upload_status_response_dto.py +test/test_servicing_tenant_data_upload_update_status_response_dto.py +test/test_servicing_tenant_data_uploads_list_response_dto.py +test/test_servicing_tenant_data_uploads_response_dto.py +test/test_servicing_tenant_data_uploads_update_response_dto.py test/test_status.py tox.ini visier_api_data_in/__init__.py @@ -160,30 +162,30 @@ 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/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_assign_connector_credentials_by_tenant_response_dto.py +visier_api_data_in/models/admin_assign_connector_credentials_response_dto.py +visier_api_data_in/models/admin_assign_connector_with_credentials_response_dto.py +visier_api_data_in/models/admin_assigned_credential_info_response_dto.py +visier_api_data_in/models/admin_connector_info_response_dto.py +visier_api_data_in/models/admin_connector_setting_request_dto.py +visier_api_data_in/models/admin_connector_setting_response_dto.py +visier_api_data_in/models/admin_connector_settings_response_dto.py +visier_api_data_in/models/admin_data_import_definition_apidto.py +visier_api_data_in/models/admin_data_import_definitions_apidto.py +visier_api_data_in/models/admin_data_version_and_date_dto.py +visier_api_data_in/models/admin_extractor_setting_apidto.py +visier_api_data_in/models/admin_extractor_setting_key_value_apidto.py +visier_api_data_in/models/admin_extractor_settings_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/admin_multiple_tenant_data_versions_details_dto.py +visier_api_data_in/models/admin_multiple_tenant_data_versions_list_dto.py +visier_api_data_in/models/admin_set_connector_setting_request_dto.py +visier_api_data_in/models/admin_set_connector_setting_response_dto.py +visier_api_data_in/models/admin_set_connector_settings_request_dto.py +visier_api_data_in/models/admin_set_connector_settings_response_dto.py +visier_api_data_in/models/admin_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 @@ -219,85 +221,87 @@ 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_adp_auth_params_dto.py +visier_api_data_in/models/designer_bamboo_auth_params_dto.py +visier_api_data_in/models/designer_basic_s3_auth_params_dto.py +visier_api_data_in/models/designer_big_query_auth_params_dto.py +visier_api_data_in/models/designer_big_query_service_account_params_dto.py +visier_api_data_in/models/designer_copy_s3_auth_params_dto.py +visier_api_data_in/models/designer_credential_creation_api_response_dto.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/designer_data_provider_auth_information_dto.py +visier_api_data_in/models/designer_data_provider_auth_params_dto.py +visier_api_data_in/models/designer_data_provider_basic_information_dto.py +visier_api_data_in/models/designer_data_provider_basic_metadata_dto.py +visier_api_data_in/models/designer_dayforce_v2_auth_params_dto.py +visier_api_data_in/models/designer_dimensions_auth_params_dto.py +visier_api_data_in/models/designer_extractor_credential_apidto.py +visier_api_data_in/models/designer_extractor_credentials_apidto.py +visier_api_data_in/models/designer_fusion_auth_params_dto.py +visier_api_data_in/models/designer_gong_auth_params_dto.py +visier_api_data_in/models/designer_google_sheets_auth_params_dto.py +visier_api_data_in/models/designer_google_workspace_auth_params_dto.py +visier_api_data_in/models/designer_greenhouse_auth_params_dto.py +visier_api_data_in/models/designer_icims_auth_params_dto.py +visier_api_data_in/models/designer_internal_s3_auth_params_dto.py +visier_api_data_in/models/designer_jdbc_auth_params_dto.py +visier_api_data_in/models/designer_jira_auth_params_dto.py +visier_api_data_in/models/designer_jira_connect_params_dto.py +visier_api_data_in/models/designer_lever_auth_params_dto.py +visier_api_data_in/models/designer_medallia_auth_params_dto.py +visier_api_data_in/models/designer_microsoft365_auth_params_dto.py +visier_api_data_in/models/designer_my_sql_auth_params_dto.py +visier_api_data_in/models/designer_namely_auth_params_dto.py +visier_api_data_in/models/designer_oracle_db_auth_params_dto.py +visier_api_data_in/models/designer_push_data_column_definition_dto.py +visier_api_data_in/models/designer_push_data_source_definition_dto.py +visier_api_data_in/models/designer_push_data_source_definitions_dto.py +visier_api_data_in/models/designer_qualtrics_auth_params_dto.py +visier_api_data_in/models/designer_redshift_auth_params_dto.py +visier_api_data_in/models/designer_salesforce_auth_params_dto.py +visier_api_data_in/models/designer_salesforce_v2_auth_params_dto.py +visier_api_data_in/models/designer_service_now_auth_params_dto.py +visier_api_data_in/models/designer_service_now_v2_auth_params_dto.py +visier_api_data_in/models/designer_slack_auth_params_dto.py +visier_api_data_in/models/designer_snowflake_auth_params_dto.py +visier_api_data_in/models/designer_sql_server_auth_params_dto.py +visier_api_data_in/models/designer_subject_missing_access_dto.py +visier_api_data_in/models/designer_success_factors_auth_params_dto.py +visier_api_data_in/models/designer_success_factors_o_auth_params_dto.py +visier_api_data_in/models/designer_ultimate_auth_params_dto.py +visier_api_data_in/models/designer_willow_auth_params_dto.py +visier_api_data_in/models/designer_workday_auth_params_dto.py +visier_api_data_in/models/designer_workday_o_auth_params_dto.py +visier_api_data_in/models/designer_workday_raas_auth_params_dto.py +visier_api_data_in/models/designer_workday_refresh_token_params_dto.py +visier_api_data_in/models/designer_zoom_auth_params_dto.py visier_api_data_in/models/direct_data_upload_file_response_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/dp_cancel_job_batch_from_job_id_dto.py +visier_api_data_in/models/dp_job_cancellation_result_dto.py +visier_api_data_in/models/dp_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_upload_response_dto.py visier_api_data_in/models/plan_row_data_load_response_dto.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/servicing_data_categories_response_dto.py +visier_api_data_in/models/servicing_data_category_response_dto.py +visier_api_data_in/models/servicing_direct_data_job_config_dto.py +visier_api_data_in/models/servicing_direct_data_job_status_response_dto.py +visier_api_data_in/models/servicing_direct_data_list_transactions_response_dto.py +visier_api_data_in/models/servicing_direct_data_load_config_dto.py +visier_api_data_in/models/servicing_direct_data_schema_dto.py +visier_api_data_in/models/servicing_direct_data_schema_field_dto.py +visier_api_data_in/models/servicing_direct_data_transaction_dto.py +visier_api_data_in/models/servicing_direct_data_transaction_start_response_dto.py +visier_api_data_in/models/servicing_direct_data_upload_file_response_dto.py +visier_api_data_in/models/servicing_job_id_response.py +visier_api_data_in/models/servicing_tenant_data_upload_status_response_dto.py +visier_api_data_in/models/servicing_tenant_data_upload_update_status_response_dto.py +visier_api_data_in/models/servicing_tenant_data_uploads_list_response_dto.py +visier_api_data_in/models/servicing_tenant_data_uploads_response_dto.py +visier_api_data_in/models/servicing_tenant_data_uploads_update_response_dto.py visier_api_data_in/models/status.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 60b65707c0..d3be0dc231 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.1793" +version = "0.99201.1830" 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.1793" +visier-api-core = "~= 0.99201.1830" [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 ebf9a91559..3efff2d87e 100644 --- a/src/visier_api_data_in/requirements.txt +++ b/src/visier_api_data_in/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1793 \ No newline at end of file +visier-api-core ~= 0.99201.1830 \ 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 b61bd273f3..8fb33b7a62 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793" +VERSION = "0.99201.1830" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1793", + "visier-api-core ~= 0.99201.1830", ] setup( diff --git a/src/visier_api_data_in/test/test_admin_assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/test/test_admin_assign_connector_credentials_by_tenant_response_dto.py new file mode 100644 index 0000000000..13169cc2fe --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_assign_connector_credentials_by_tenant_response_dto import AdminAssignConnectorCredentialsByTenantResponseDTO + +class TestAdminAssignConnectorCredentialsByTenantResponseDTO(unittest.TestCase): + """AdminAssignConnectorCredentialsByTenantResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminAssignConnectorCredentialsByTenantResponseDTO: + """Test AdminAssignConnectorCredentialsByTenantResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminAssignConnectorCredentialsByTenantResponseDTO( + connectors = [ + visier_api_data_in.models.admin/assign_connector_with_credentials_response_dto.admin.AssignConnectorWithCredentialsResponseDTO( + connector = None, + credential = None, ) + ], + message = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminAssignConnectorCredentialsByTenantResponseDTO( + ) + + def testAdminAssignConnectorCredentialsByTenantResponseDTO(self): + """Test AdminAssignConnectorCredentialsByTenantResponseDTO""" + def validate_instance(instance): + AdminAssignConnectorCredentialsByTenantResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminAssignConnectorCredentialsByTenantResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_assign_connector_credentials_response_dto.py b/src/visier_api_data_in/test/test_admin_assign_connector_credentials_response_dto.py new file mode 100644 index 0000000000..877cefd666 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_assign_connector_credentials_response_dto import AdminAssignConnectorCredentialsResponseDTO + +class TestAdminAssignConnectorCredentialsResponseDTO(unittest.TestCase): + """AdminAssignConnectorCredentialsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminAssignConnectorCredentialsResponseDTO: + """Test AdminAssignConnectorCredentialsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminAssignConnectorCredentialsResponseDTO( + tenants = [ + visier_api_data_in.models.admin/assign_connector_credentials_by_tenant_response_dto.admin.AssignConnectorCredentialsByTenantResponseDTO( + connectors = [ + visier_api_data_in.models.admin/assign_connector_with_credentials_response_dto.admin.AssignConnectorWithCredentialsResponseDTO( + connector = None, + credential = None, ) + ], + message = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminAssignConnectorCredentialsResponseDTO( + ) + + def testAdminAssignConnectorCredentialsResponseDTO(self): + """Test AdminAssignConnectorCredentialsResponseDTO""" + def validate_instance(instance): + AdminAssignConnectorCredentialsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminAssignConnectorCredentialsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/test/test_admin_assign_connector_with_credentials_response_dto.py new file mode 100644 index 0000000000..fc5f74f52f --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_assign_connector_with_credentials_response_dto import AdminAssignConnectorWithCredentialsResponseDTO + +class TestAdminAssignConnectorWithCredentialsResponseDTO(unittest.TestCase): + """AdminAssignConnectorWithCredentialsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminAssignConnectorWithCredentialsResponseDTO: + """Test AdminAssignConnectorWithCredentialsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminAssignConnectorWithCredentialsResponseDTO( + connector = visier_api_data_in.models.admin/connector_info_response_dto.admin.ConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '', ), + credential = visier_api_data_in.models.admin/assigned_credential_info_response_dto.admin.AssignedCredentialInfoResponseDTO( + credential_id = '', + display_name = '', + message = '', ) + ) + else: + return AdminAssignConnectorWithCredentialsResponseDTO( + ) + + def testAdminAssignConnectorWithCredentialsResponseDTO(self): + """Test AdminAssignConnectorWithCredentialsResponseDTO""" + def validate_instance(instance): + AdminAssignConnectorWithCredentialsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminAssignConnectorWithCredentialsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_assigned_credential_info_response_dto.py b/src/visier_api_data_in/test/test_admin_assigned_credential_info_response_dto.py new file mode 100644 index 0000000000..f6ad778956 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_assigned_credential_info_response_dto import AdminAssignedCredentialInfoResponseDTO + +class TestAdminAssignedCredentialInfoResponseDTO(unittest.TestCase): + """AdminAssignedCredentialInfoResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminAssignedCredentialInfoResponseDTO: + """Test AdminAssignedCredentialInfoResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminAssignedCredentialInfoResponseDTO( + credential_id = '', + display_name = '', + message = '' + ) + else: + return AdminAssignedCredentialInfoResponseDTO( + ) + + def testAdminAssignedCredentialInfoResponseDTO(self): + """Test AdminAssignedCredentialInfoResponseDTO""" + def validate_instance(instance): + AdminAssignedCredentialInfoResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminAssignedCredentialInfoResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_connector_info_response_dto.py b/src/visier_api_data_in/test/test_admin_connector_info_response_dto.py new file mode 100644 index 0000000000..72f51b5db4 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_connector_info_response_dto import AdminConnectorInfoResponseDTO + +class TestAdminConnectorInfoResponseDTO(unittest.TestCase): + """AdminConnectorInfoResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConnectorInfoResponseDTO: + """Test AdminConnectorInfoResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '' + ) + else: + return AdminConnectorInfoResponseDTO( + ) + + def testAdminConnectorInfoResponseDTO(self): + """Test AdminConnectorInfoResponseDTO""" + def validate_instance(instance): + AdminConnectorInfoResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminConnectorInfoResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_admin_connector_setting_request_dto.py new file mode 100644 index 0000000000..6652b24f21 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_connector_setting_request_dto import AdminConnectorSettingRequestDTO + +class TestAdminConnectorSettingRequestDTO(unittest.TestCase): + """AdminConnectorSettingRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConnectorSettingRequestDTO: + """Test AdminConnectorSettingRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConnectorSettingRequestDTO( + setting_key = '', + value = '' + ) + else: + return AdminConnectorSettingRequestDTO( + ) + + def testAdminConnectorSettingRequestDTO(self): + """Test AdminConnectorSettingRequestDTO""" + def validate_instance(instance): + AdminConnectorSettingRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminConnectorSettingRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_admin_connector_setting_response_dto.py new file mode 100644 index 0000000000..a547ede79e --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_connector_setting_response_dto import AdminConnectorSettingResponseDTO + +class TestAdminConnectorSettingResponseDTO(unittest.TestCase): + """AdminConnectorSettingResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConnectorSettingResponseDTO: + """Test AdminConnectorSettingResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConnectorSettingResponseDTO( + key = '', + message = '', + value = '' + ) + else: + return AdminConnectorSettingResponseDTO( + ) + + def testAdminConnectorSettingResponseDTO(self): + """Test AdminConnectorSettingResponseDTO""" + def validate_instance(instance): + AdminConnectorSettingResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminConnectorSettingResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_admin_connector_settings_response_dto.py new file mode 100644 index 0000000000..eb820a3286 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_connector_settings_response_dto import AdminConnectorSettingsResponseDTO + +class TestAdminConnectorSettingsResponseDTO(unittest.TestCase): + """AdminConnectorSettingsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminConnectorSettingsResponseDTO: + """Test AdminConnectorSettingsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminConnectorSettingsResponseDTO( + connector = visier_api_data_in.models.admin/connector_info_response_dto.admin.ConnectorInfoResponseDTO( + connector_id = '', + description = '', + display_name = '', ), + settings = [ + visier_api_data_in.models.admin/connector_setting_response_dto.admin.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ] + ) + else: + return AdminConnectorSettingsResponseDTO( + ) + + def testAdminConnectorSettingsResponseDTO(self): + """Test AdminConnectorSettingsResponseDTO""" + def validate_instance(instance): + AdminConnectorSettingsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminConnectorSettingsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_import_definition_apidto.py b/src/visier_api_data_in/test/test_admin_data_import_definition_apidto.py new file mode 100644 index 0000000000..6c88a3b46b --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_data_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_import_definition_apidto import AdminDataImportDefinitionAPIDTO + +class TestAdminDataImportDefinitionAPIDTO(unittest.TestCase): + """AdminDataImportDefinitionAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDataImportDefinitionAPIDTO: + """Test AdminDataImportDefinitionAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDataImportDefinitionAPIDTO( + connector_id = '', + credential_id = '', + display_name = '' + ) + else: + return AdminDataImportDefinitionAPIDTO( + ) + + def testAdminDataImportDefinitionAPIDTO(self): + """Test AdminDataImportDefinitionAPIDTO""" + def validate_instance(instance): + AdminDataImportDefinitionAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminDataImportDefinitionAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_import_definitions_apidto.py b/src/visier_api_data_in/test/test_admin_data_import_definitions_apidto.py new file mode 100644 index 0000000000..dd564e05b2 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_data_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_import_definitions_apidto import AdminDataImportDefinitionsAPIDTO + +class TestAdminDataImportDefinitionsAPIDTO(unittest.TestCase): + """AdminDataImportDefinitionsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDataImportDefinitionsAPIDTO: + """Test AdminDataImportDefinitionsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDataImportDefinitionsAPIDTO( + data_connectors = [ + visier_api_data_in.models.admin/data/import_definition_apidto.admin.data.ImportDefinitionAPIDTO( + connector_id = '', + credential_id = '', + display_name = '', ) + ], + limit = 56, + start = 56 + ) + else: + return AdminDataImportDefinitionsAPIDTO( + ) + + def testAdminDataImportDefinitionsAPIDTO(self): + """Test AdminDataImportDefinitionsAPIDTO""" + def validate_instance(instance): + AdminDataImportDefinitionsAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminDataImportDefinitionsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_definition_apidto.py b/src/visier_api_data_in/test/test_admin_data_transfers_import_definition_apidto.py deleted file mode 100644 index 66f242738b..0000000000 --- a/src/visier_api_data_in/test/test_admin_data_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 7f05e66ce5..0000000000 --- a/src/visier_api_data_in/test/test_admin_data_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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_data_version_and_date_dto.py b/src/visier_api_data_in/test/test_admin_data_version_and_date_dto.py new file mode 100644 index 0000000000..939834239d --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_version_and_date_dto import AdminDataVersionAndDateDTO + +class TestAdminDataVersionAndDateDTO(unittest.TestCase): + """AdminDataVersionAndDateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminDataVersionAndDateDTO: + """Test AdminDataVersionAndDateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminDataVersionAndDateDTO( + data_version = '', + data_version_date = '' + ) + else: + return AdminDataVersionAndDateDTO( + ) + + def testAdminDataVersionAndDateDTO(self): + """Test AdminDataVersionAndDateDTO""" + def validate_instance(instance): + AdminDataVersionAndDateDTO.model_validate(inst_req_only) + instance_deserialized = AdminDataVersionAndDateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_extractor_setting_apidto.py b/src/visier_api_data_in/test/test_admin_extractor_setting_apidto.py new file mode 100644 index 0000000000..5f2eccee5e --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_extractor_setting_apidto import AdminExtractorSettingAPIDTO + +class TestAdminExtractorSettingAPIDTO(unittest.TestCase): + """AdminExtractorSettingAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminExtractorSettingAPIDTO: + """Test AdminExtractorSettingAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminExtractorSettingAPIDTO( + connector_id = '', + connector_settings = [ + visier_api_data_in.models.admin/extractor_setting_key_value_apidto.admin.ExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '', ) + ], + display_name = '' + ) + else: + return AdminExtractorSettingAPIDTO( + ) + + def testAdminExtractorSettingAPIDTO(self): + """Test AdminExtractorSettingAPIDTO""" + def validate_instance(instance): + AdminExtractorSettingAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminExtractorSettingAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_extractor_setting_key_value_apidto.py b/src/visier_api_data_in/test/test_admin_extractor_setting_key_value_apidto.py new file mode 100644 index 0000000000..e078815f6a --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_extractor_setting_key_value_apidto import AdminExtractorSettingKeyValueAPIDTO + +class TestAdminExtractorSettingKeyValueAPIDTO(unittest.TestCase): + """AdminExtractorSettingKeyValueAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminExtractorSettingKeyValueAPIDTO: + """Test AdminExtractorSettingKeyValueAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '' + ) + else: + return AdminExtractorSettingKeyValueAPIDTO( + ) + + def testAdminExtractorSettingKeyValueAPIDTO(self): + """Test AdminExtractorSettingKeyValueAPIDTO""" + def validate_instance(instance): + AdminExtractorSettingKeyValueAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminExtractorSettingKeyValueAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_extractor_settings_apidto.py b/src/visier_api_data_in/test/test_admin_extractor_settings_apidto.py new file mode 100644 index 0000000000..e1c7500d46 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_extractor_settings_apidto import AdminExtractorSettingsAPIDTO + +class TestAdminExtractorSettingsAPIDTO(unittest.TestCase): + """AdminExtractorSettingsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminExtractorSettingsAPIDTO: + """Test AdminExtractorSettingsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminExtractorSettingsAPIDTO( + connectors = [ + visier_api_data_in.models.admin/extractor_setting_apidto.admin.ExtractorSettingAPIDTO( + connector_id = '', + connector_settings = [ + visier_api_data_in.models.admin/extractor_setting_key_value_apidto.admin.ExtractorSettingKeyValueAPIDTO( + setting_key = '', + value = '', ) + ], + display_name = '', ) + ] + ) + else: + return AdminExtractorSettingsAPIDTO( + ) + + def testAdminExtractorSettingsAPIDTO(self): + """Test AdminExtractorSettingsAPIDTO""" + def validate_instance(instance): + AdminExtractorSettingsAPIDTO.model_validate(inst_req_only) + instance_deserialized = AdminExtractorSettingsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 index 2fdd5d8041..4a38dd969c 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 6ad98a40e1..c32da6e19d 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index a76dcefc40..2fdddf0abb 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_admin_multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/test/test_admin_multiple_tenant_data_versions_details_dto.py new file mode 100644 index 0000000000..a0de81ee5d --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_multiple_tenant_data_versions_details_dto import AdminMultipleTenantDataVersionsDetailsDTO + +class TestAdminMultipleTenantDataVersionsDetailsDTO(unittest.TestCase): + """AdminMultipleTenantDataVersionsDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminMultipleTenantDataVersionsDetailsDTO: + """Test AdminMultipleTenantDataVersionsDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminMultipleTenantDataVersionsDetailsDTO( + data_versions = [ + visier_api_data_in.models.admin/data_version_and_date_dto.admin.DataVersionAndDateDTO( + data_version = '', + data_version_date = '', ) + ], + tenant_code = '' + ) + else: + return AdminMultipleTenantDataVersionsDetailsDTO( + ) + + def testAdminMultipleTenantDataVersionsDetailsDTO(self): + """Test AdminMultipleTenantDataVersionsDetailsDTO""" + def validate_instance(instance): + AdminMultipleTenantDataVersionsDetailsDTO.model_validate(inst_req_only) + instance_deserialized = AdminMultipleTenantDataVersionsDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/test/test_admin_multiple_tenant_data_versions_list_dto.py new file mode 100644 index 0000000000..d05407931a --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_multiple_tenant_data_versions_list_dto import AdminMultipleTenantDataVersionsListDTO + +class TestAdminMultipleTenantDataVersionsListDTO(unittest.TestCase): + """AdminMultipleTenantDataVersionsListDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminMultipleTenantDataVersionsListDTO: + """Test AdminMultipleTenantDataVersionsListDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminMultipleTenantDataVersionsListDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_data_in.models.admin/multiple_tenant_data_versions_details_dto.admin.MultipleTenantDataVersionsDetailsDTO( + data_versions = [ + visier_api_data_in.models.admin/data_version_and_date_dto.admin.DataVersionAndDateDTO( + data_version = '', + data_version_date = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return AdminMultipleTenantDataVersionsListDTO( + ) + + def testAdminMultipleTenantDataVersionsListDTO(self): + """Test AdminMultipleTenantDataVersionsListDTO""" + def validate_instance(instance): + AdminMultipleTenantDataVersionsListDTO.model_validate(inst_req_only) + instance_deserialized = AdminMultipleTenantDataVersionsListDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_set_connector_setting_request_dto.py b/src/visier_api_data_in/test/test_admin_set_connector_setting_request_dto.py new file mode 100644 index 0000000000..6fdc427f97 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_set_connector_setting_request_dto import AdminSetConnectorSettingRequestDTO + +class TestAdminSetConnectorSettingRequestDTO(unittest.TestCase): + """AdminSetConnectorSettingRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSetConnectorSettingRequestDTO: + """Test AdminSetConnectorSettingRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSetConnectorSettingRequestDTO( + connector_id = '', + tenants = [ + visier_api_data_in.models.admin/tenant_connector_settings_request_dto.admin.TenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/connector_setting_request_dto.admin.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '', ) + ] + ) + else: + return AdminSetConnectorSettingRequestDTO( + ) + + def testAdminSetConnectorSettingRequestDTO(self): + """Test AdminSetConnectorSettingRequestDTO""" + def validate_instance(instance): + AdminSetConnectorSettingRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminSetConnectorSettingRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_set_connector_setting_response_dto.py b/src/visier_api_data_in/test/test_admin_set_connector_setting_response_dto.py new file mode 100644 index 0000000000..4671575eaa --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_set_connector_setting_response_dto import AdminSetConnectorSettingResponseDTO + +class TestAdminSetConnectorSettingResponseDTO(unittest.TestCase): + """AdminSetConnectorSettingResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSetConnectorSettingResponseDTO: + """Test AdminSetConnectorSettingResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSetConnectorSettingResponseDTO( + connectors = [ + visier_api_data_in.models.admin/connector_settings_response_dto.admin.ConnectorSettingsResponseDTO( + connector = None, + settings = [ + visier_api_data_in.models.admin/connector_setting_response_dto.admin.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ], ) + ], + message = '', + status = 'Unknown', + tenant_code = '' + ) + else: + return AdminSetConnectorSettingResponseDTO( + ) + + def testAdminSetConnectorSettingResponseDTO(self): + """Test AdminSetConnectorSettingResponseDTO""" + def validate_instance(instance): + AdminSetConnectorSettingResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminSetConnectorSettingResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_set_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_admin_set_connector_settings_request_dto.py new file mode 100644 index 0000000000..614ab235cd --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_set_connector_settings_request_dto import AdminSetConnectorSettingsRequestDTO + +class TestAdminSetConnectorSettingsRequestDTO(unittest.TestCase): + """AdminSetConnectorSettingsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSetConnectorSettingsRequestDTO: + """Test AdminSetConnectorSettingsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSetConnectorSettingsRequestDTO( + connectors = [ + visier_api_data_in.models.admin/set_connector_setting_request_dto.admin.SetConnectorSettingRequestDTO( + connector_id = '', + tenants = [ + visier_api_data_in.models.admin/tenant_connector_settings_request_dto.admin.TenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/connector_setting_request_dto.admin.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '', ) + ], ) + ] + ) + else: + return AdminSetConnectorSettingsRequestDTO( + ) + + def testAdminSetConnectorSettingsRequestDTO(self): + """Test AdminSetConnectorSettingsRequestDTO""" + def validate_instance(instance): + AdminSetConnectorSettingsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminSetConnectorSettingsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_set_connector_settings_response_dto.py b/src/visier_api_data_in/test/test_admin_set_connector_settings_response_dto.py new file mode 100644 index 0000000000..a3063b5976 --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_set_connector_settings_response_dto import AdminSetConnectorSettingsResponseDTO + +class TestAdminSetConnectorSettingsResponseDTO(unittest.TestCase): + """AdminSetConnectorSettingsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminSetConnectorSettingsResponseDTO: + """Test AdminSetConnectorSettingsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminSetConnectorSettingsResponseDTO( + tenants = [ + visier_api_data_in.models.admin/set_connector_setting_response_dto.admin.SetConnectorSettingResponseDTO( + connectors = [ + visier_api_data_in.models.admin/connector_settings_response_dto.admin.ConnectorSettingsResponseDTO( + connector = None, + settings = [ + visier_api_data_in.models.admin/connector_setting_response_dto.admin.ConnectorSettingResponseDTO( + key = '', + message = '', + value = '', ) + ], ) + ], + message = '', + status = 'Unknown', + tenant_code = '', ) + ] + ) + else: + return AdminSetConnectorSettingsResponseDTO( + ) + + def testAdminSetConnectorSettingsResponseDTO(self): + """Test AdminSetConnectorSettingsResponseDTO""" + def validate_instance(instance): + AdminSetConnectorSettingsResponseDTO.model_validate(inst_req_only) + instance_deserialized = AdminSetConnectorSettingsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_tenant_connector_settings_request_dto.py b/src/visier_api_data_in/test/test_admin_tenant_connector_settings_request_dto.py new file mode 100644 index 0000000000..7514f5a1bd --- /dev/null +++ b/src/visier_api_data_in/test/test_admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_connector_settings_request_dto import AdminTenantConnectorSettingsRequestDTO + +class TestAdminTenantConnectorSettingsRequestDTO(unittest.TestCase): + """AdminTenantConnectorSettingsRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdminTenantConnectorSettingsRequestDTO: + """Test AdminTenantConnectorSettingsRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AdminTenantConnectorSettingsRequestDTO( + connector_settings = [ + visier_api_data_in.models.admin/connector_setting_request_dto.admin.ConnectorSettingRequestDTO( + setting_key = '', + value = '', ) + ], + tenant_code = '' + ) + else: + return AdminTenantConnectorSettingsRequestDTO( + ) + + def testAdminTenantConnectorSettingsRequestDTO(self): + """Test AdminTenantConnectorSettingsRequestDTO""" + def validate_instance(instance): + AdminTenantConnectorSettingsRequestDTO.model_validate(inst_req_only) + instance_deserialized = AdminTenantConnectorSettingsRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 deleted file mode 100644 index d45d8d3814..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 484428a138..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 33f967ea84..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 2db083ba66..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 957118cf2c..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 0a5e6c7f6d..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 27238e7fe2..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e1d16394e6..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 50a0e10597..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 2e80586b7d..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 1b3f5d945d..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 931fdf99cc..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 61624e9438..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index aadbaf3d18..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e36f1d04c4..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 4131c6f621..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 136262a1c5..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 74825f25ad..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 59cd229943..0000000000 --- a/src/visier_api_data_in/test/test_admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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_data_and_job_handling_api.py b/src/visier_api_data_in/test/test_data_and_job_handling_api.py index a27c5805a7..ec5cc4148a 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 914f7f1e36..9534d4d9f2 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f85a506caa..3d317246f6 100644 --- a/src/visier_api_data_in/test/test_data_in_connector.py +++ b/src/visier_api_data_in/test/test_data_in_connector.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 8b12d2c72a..3b34985836 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 83c851abd8..778e9c30c0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f1c6d2dec8..0048fe989a 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index e8813cc310..80c562c347 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 8f9548b15f..6454714aa4 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> DataInDataVersionObject: if include_optional: return DataInDataVersionObject( - data_versions = '', + data_version = '', tenant_code = '' ) else: 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 index 748e4f07ec..1cefe6a0f8 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> DataInDisableDVModel: return DataInDisableDVModel( data_version_objects = [ visier_api_data_in.models.data_in/data_version_object.data_in.DataVersionObject( - data_versions = '', + data_version = '', tenant_code = '', ) ] ) 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 index a79e41ad3e..9ef53b2bc7 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -39,7 +39,7 @@ def make_instance(self, include_optional) -> 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 = '', + data_version = '', tenant_code = '', ) ], ) ) 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 index d704b01b27..9839940ece 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index d7d9bc899c..cb0f851636 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index b415f7786a..c03dbbee36 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index d28362b426..9ef338741d 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 31d11f3e5c..12e71e92ea 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 9d3d712781..5169e80c01 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 8b75621a6f..1404da469d 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 65fac8f046..b2eecfd2bb 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 31f1cc0568..94a965086f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 654e129ee0..af555e1502 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 0647408e14..4d510e8ae0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 3fe7c0fd27..465d04c2c4 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 4383bdbdcc..e7884ac0d2 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 21c3f489b5..2235408d97 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index a67188b2d5..a61d8b3720 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 9624e2b997..9deea91da9 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f41f499235..735ac64522 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f5430762f9..f8d67c35f6 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 2ac8ee1daa..74128e40dc 100644 --- a/src/visier_api_data_in/test/test_data_in_result.py +++ b/src/visier_api_data_in/test/test_data_in_result.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index f0d6665b48..16055c93a0 100644 --- a/src/visier_api_data_in/test/test_data_in_source.py +++ b/src/visier_api_data_in/test/test_data_in_source.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 4844a81ea5..3c0be0f360 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index a784cd61b7..f06b2c374f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 0816bdd60e..c0cce8902b 100644 --- a/src/visier_api_data_in/test/test_data_in_tenant.py +++ b/src/visier_api_data_in/test/test_data_in_tenant.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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 5c4796e254..3e111018a0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index a587f8fae8..c732ee9f6e 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index ded2419cb1..d3fae56432 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 fff3cdffb3..756c56c075 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 a9d928beed..c442a3c264 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -28,8 +28,8 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_v1_data_upload_files_filename_put(self) -> None: - """Test case for v1_data_upload_files_filename_put + def test_file_upload(self) -> None: + """Test case for file_upload Upload a data file to Visier """ diff --git a/src/visier_api_data_in/test/test_designer_adp_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_adp_auth_params_dto.py new file mode 100644 index 0000000000..d4461acbb4 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_adp_auth_params_dto import DesignerAdpAuthParamsDTO + +class TestDesignerAdpAuthParamsDTO(unittest.TestCase): + """DesignerAdpAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerAdpAuthParamsDTO: + """Test DesignerAdpAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerAdpAuthParamsDTO( + auth_code = '' + ) + else: + return DesignerAdpAuthParamsDTO( + ) + + def testDesignerAdpAuthParamsDTO(self): + """Test DesignerAdpAuthParamsDTO""" + def validate_instance(instance): + DesignerAdpAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerAdpAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_bamboo_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_bamboo_auth_params_dto.py new file mode 100644 index 0000000000..ae8a8ee06d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_bamboo_auth_params_dto import DesignerBambooAuthParamsDTO + +class TestDesignerBambooAuthParamsDTO(unittest.TestCase): + """DesignerBambooAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerBambooAuthParamsDTO: + """Test DesignerBambooAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerBambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '' + ) + else: + return DesignerBambooAuthParamsDTO( + ) + + def testDesignerBambooAuthParamsDTO(self): + """Test DesignerBambooAuthParamsDTO""" + def validate_instance(instance): + DesignerBambooAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerBambooAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_basic_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_basic_s3_auth_params_dto.py new file mode 100644 index 0000000000..18af0677cb --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_basic_s3_auth_params_dto import DesignerBasicS3AuthParamsDTO + +class TestDesignerBasicS3AuthParamsDTO(unittest.TestCase): + """DesignerBasicS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerBasicS3AuthParamsDTO: + """Test DesignerBasicS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerBasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '' + ) + else: + return DesignerBasicS3AuthParamsDTO( + ) + + def testDesignerBasicS3AuthParamsDTO(self): + """Test DesignerBasicS3AuthParamsDTO""" + def validate_instance(instance): + DesignerBasicS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerBasicS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_big_query_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_big_query_auth_params_dto.py new file mode 100644 index 0000000000..7f86a3557b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_big_query_auth_params_dto import DesignerBigQueryAuthParamsDTO + +class TestDesignerBigQueryAuthParamsDTO(unittest.TestCase): + """DesignerBigQueryAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerBigQueryAuthParamsDTO: + """Test DesignerBigQueryAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerBigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/big_query_service_account_params_dto.designer.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ) + ) + else: + return DesignerBigQueryAuthParamsDTO( + ) + + def testDesignerBigQueryAuthParamsDTO(self): + """Test DesignerBigQueryAuthParamsDTO""" + def validate_instance(instance): + DesignerBigQueryAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerBigQueryAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_big_query_service_account_params_dto.py b/src/visier_api_data_in/test/test_designer_big_query_service_account_params_dto.py new file mode 100644 index 0000000000..88ed617bc5 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_big_query_service_account_params_dto import DesignerBigQueryServiceAccountParamsDTO + +class TestDesignerBigQueryServiceAccountParamsDTO(unittest.TestCase): + """DesignerBigQueryServiceAccountParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerBigQueryServiceAccountParamsDTO: + """Test DesignerBigQueryServiceAccountParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerBigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '' + ) + else: + return DesignerBigQueryServiceAccountParamsDTO( + ) + + def testDesignerBigQueryServiceAccountParamsDTO(self): + """Test DesignerBigQueryServiceAccountParamsDTO""" + def validate_instance(instance): + DesignerBigQueryServiceAccountParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerBigQueryServiceAccountParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_copy_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_copy_s3_auth_params_dto.py new file mode 100644 index 0000000000..b5526a571e --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_copy_s3_auth_params_dto import DesignerCopyS3AuthParamsDTO + +class TestDesignerCopyS3AuthParamsDTO(unittest.TestCase): + """DesignerCopyS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCopyS3AuthParamsDTO: + """Test DesignerCopyS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCopyS3AuthParamsDTO( + iam_role = '' + ) + else: + return DesignerCopyS3AuthParamsDTO( + ) + + def testDesignerCopyS3AuthParamsDTO(self): + """Test DesignerCopyS3AuthParamsDTO""" + def validate_instance(instance): + DesignerCopyS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCopyS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_credential_creation_api_response_dto.py b/src/visier_api_data_in/test/test_designer_credential_creation_api_response_dto.py new file mode 100644 index 0000000000..bd22c324e0 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_credential_creation_api_response_dto import DesignerCredentialCreationAPIResponseDTO + +class TestDesignerCredentialCreationAPIResponseDTO(unittest.TestCase): + """DesignerCredentialCreationAPIResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerCredentialCreationAPIResponseDTO: + """Test DesignerCredentialCreationAPIResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerCredentialCreationAPIResponseDTO( + missing_connection_properties = [ + visier_api_data_in.models.designer/subject_missing_access_dto.designer.SubjectMissingAccessDTO( + attributes = [ + '' + ], + error_message = '', + subject = 'Employee', ) + ], + object_name = '', + symbol_name = '', + uuid = '' + ) + else: + return DesignerCredentialCreationAPIResponseDTO( + ) + + def testDesignerCredentialCreationAPIResponseDTO(self): + """Test DesignerCredentialCreationAPIResponseDTO""" + def validate_instance(instance): + DesignerCredentialCreationAPIResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerCredentialCreationAPIResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 index 0219e264d2..56b98f4417 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index b5e65d006b..b443bf5117 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 41bf1d90fe..4b8511516c 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index 630c2a5d4c..a7eded02bc 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_designer_data_provider_auth_information_dto.py b/src/visier_api_data_in/test/test_designer_data_provider_auth_information_dto.py new file mode 100644 index 0000000000..c5d11a6323 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_provider_auth_information_dto import DesignerDataProviderAuthInformationDTO + +class TestDesignerDataProviderAuthInformationDTO(unittest.TestCase): + """DesignerDataProviderAuthInformationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataProviderAuthInformationDTO: + """Test DesignerDataProviderAuthInformationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataProviderAuthInformationDTO( + data_provider_auth_params = visier_api_data_in.models.designer/data_provider_auth_params_dto.designer.DataProviderAuthParamsDTO( + adp_auth_params = visier_api_data_in.models.designer/adp_auth_params_dto.designer.AdpAuthParamsDTO( + auth_code = '', ), + auth_context = 'DefaultDataExtraction', + bamboo_auth_params = visier_api_data_in.models.designer/bamboo_auth_params_dto.designer.BambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '', ), + big_query_auth_params = visier_api_data_in.models.designer/big_query_auth_params_dto.designer.BigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/big_query_service_account_params_dto.designer.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ), ), + copy_s3_auth_params = visier_api_data_in.models.designer/copy_s3_auth_params_dto.designer.CopyS3AuthParamsDTO( + iam_role = '', ), + dayforce_v2_auth_params = visier_api_data_in.models.designer/dayforce_v2_auth_params_dto.designer.DayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '', ), + dimensions_auth_params = visier_api_data_in.models.designer/dimensions_auth_params_dto.designer.DimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '', ), + empty_auth_params = visier_api_data_in.models.designer/empty_auth_params_dto.designer.EmptyAuthParamsDTO(), + fusion_auth_params = visier_api_data_in.models.designer/fusion_auth_params_dto.designer.FusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + gong_auth_params = visier_api_data_in.models.designer/gong_auth_params_dto.designer.GongAuthParamsDTO( + client_id = '', + client_secret = '', ), + google_sheets_auth_params = visier_api_data_in.models.designer/google_sheets_auth_params_dto.designer.GoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '', ), + google_workspace_auth_params = visier_api_data_in.models.designer/google_workspace_auth_params_dto.designer.GoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '', ), + greenhouse_auth_params = visier_api_data_in.models.designer/greenhouse_auth_params_dto.designer.GreenhouseAuthParamsDTO( + api_key = '', ), + has_updates = True, + icims_auth_params = visier_api_data_in.models.designer/icims_auth_params_dto.designer.IcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '', ), + internal_s3_auth_params = visier_api_data_in.models.designer/internal_s3_auth_params_dto.designer.InternalS3AuthParamsDTO( + bucket_name = '', + path = '', ), + jdbc_auth_params = visier_api_data_in.models.designer/jdbc_auth_params_dto.designer.JdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '', ), + jira_auth_params = visier_api_data_in.models.designer/jira_auth_params_dto.designer.JiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/jira_connect_params_dto.designer.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '', ), + lever_auth_params = visier_api_data_in.models.designer/lever_auth_params_dto.designer.LeverAuthParamsDTO( + api_key = '', ), + medallia_auth_params = visier_api_data_in.models.designer/medallia_auth_params_dto.designer.MedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '', ), + ms365_auth_params = visier_api_data_in.models.designer/microsoft365_auth_params_dto.designer.Microsoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '', ), + my_sql_auth_params = visier_api_data_in.models.designer/my_sql_auth_params_dto.designer.MySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '', ), + namely_auth_params = visier_api_data_in.models.designer/namely_auth_params_dto.designer.NamelyAuthParamsDTO( + auth_code = '', ), + oracle_db_auth_params = visier_api_data_in.models.designer/oracle_db_auth_params_dto.designer.OracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '', ), + provider = 'Bamboo', + qualtrics_auth_params = visier_api_data_in.models.designer/qualtrics_auth_params_dto.designer.QualtricsAuthParamsDTO( + api_token = '', + data_center_id = '', ), + redshift_auth_params = visier_api_data_in.models.designer/redshift_auth_params_dto.designer.RedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + schema = '', + table_prefix = '', + username = '', ), + s3_auth_params = visier_api_data_in.models.designer/basic_s3_auth_params_dto.designer.BasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '', ), + salesforce_auth_params = visier_api_data_in.models.designer/salesforce_auth_params_dto.designer.SalesforceAuthParamsDTO( + client_id = '', + refresh_token = '', ), + salesforce_v2_auth_params = visier_api_data_in.models.designer/salesforce_v2_auth_params_dto.designer.SalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '', ), + service_now_auth_params = visier_api_data_in.models.designer/service_now_auth_params_dto.designer.ServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + service_now_v2_auth_params = visier_api_data_in.models.designer/service_now_v2_auth_params_dto.designer.ServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '', ), + slack_auth_params = visier_api_data_in.models.designer/slack_auth_params_dto.designer.SlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), + snowflake_auth_params = visier_api_data_in.models.designer/snowflake_auth_params_dto.designer.SnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + schema = '', + username = '', + warehouse = '', ), + sql_server_auth_params = visier_api_data_in.models.designer/sql_server_auth_params_dto.designer.SqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '', ), + success_factors_auth_params = visier_api_data_in.models.designer/success_factors_auth_params_dto.designer.SuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/success_factors_o_auth_params_dto.designer.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '', ), + tenant_domain_name = '', + ultimate_auth_params = visier_api_data_in.models.designer/ultimate_auth_params_dto.designer.UltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '', ), + willow_auth_params = visier_api_data_in.models.designer/willow_auth_params_dto.designer.WillowAuthParamsDTO( + api_token = '', + host_name = '', ), + workday_auth_params = visier_api_data_in.models.designer/workday_auth_params_dto.designer.WorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + password = '', + ref_token = visier_api_data_in.models.designer/workday_refresh_token_params_dto.designer.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '', ), + workday_raas_auth_params = visier_api_data_in.models.designer/workday_raas_auth_params_dto.designer.WorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '', ), + zoom_auth_params = visier_api_data_in.models.designer/zoom_auth_params_dto.designer.ZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), ), + data_provider_basic_information = visier_api_data_in.models.designer/data_provider_basic_information_dto.designer.DataProviderBasicInformationDTO( + description = '', + display_name = '', ), + data_provider_metadata = visier_api_data_in.models.designer/data_provider_basic_metadata_dto.designer.DataProviderBasicMetadataDTO( + can_children_inherit = True, ) + ) + else: + return DesignerDataProviderAuthInformationDTO( + ) + + def testDesignerDataProviderAuthInformationDTO(self): + """Test DesignerDataProviderAuthInformationDTO""" + def validate_instance(instance): + DesignerDataProviderAuthInformationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataProviderAuthInformationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_data_provider_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_data_provider_auth_params_dto.py new file mode 100644 index 0000000000..e033f64635 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_provider_auth_params_dto import DesignerDataProviderAuthParamsDTO + +class TestDesignerDataProviderAuthParamsDTO(unittest.TestCase): + """DesignerDataProviderAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataProviderAuthParamsDTO: + """Test DesignerDataProviderAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataProviderAuthParamsDTO( + adp_auth_params = visier_api_data_in.models.designer/adp_auth_params_dto.designer.AdpAuthParamsDTO( + auth_code = '', ), + auth_context = 'DefaultDataExtraction', + bamboo_auth_params = visier_api_data_in.models.designer/bamboo_auth_params_dto.designer.BambooAuthParamsDTO( + access_key = '', + tenant_domain_name = '', ), + big_query_auth_params = visier_api_data_in.models.designer/big_query_auth_params_dto.designer.BigQueryAuthParamsDTO( + client_id = '', + client_secret = '', + dataset_location = '', + default_dataset = '', + project_id = '', + refresh_token = '', + service_account_params = visier_api_data_in.models.designer/big_query_service_account_params_dto.designer.BigQueryServiceAccountParamsDTO( + private_key = '', + service_account_email = '', ), ), + copy_s3_auth_params = visier_api_data_in.models.designer/copy_s3_auth_params_dto.designer.CopyS3AuthParamsDTO( + iam_role = '', ), + dayforce_v2_auth_params = visier_api_data_in.models.designer/dayforce_v2_auth_params_dto.designer.DayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '', ), + dimensions_auth_params = visier_api_data_in.models.designer/dimensions_auth_params_dto.designer.DimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '', ), + empty_auth_params = visier_api_data_in.models.designer/empty_auth_params_dto.designer.EmptyAuthParamsDTO(), + fusion_auth_params = visier_api_data_in.models.designer/fusion_auth_params_dto.designer.FusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + gong_auth_params = visier_api_data_in.models.designer/gong_auth_params_dto.designer.GongAuthParamsDTO( + client_id = '', + client_secret = '', ), + google_sheets_auth_params = visier_api_data_in.models.designer/google_sheets_auth_params_dto.designer.GoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '', ), + google_workspace_auth_params = visier_api_data_in.models.designer/google_workspace_auth_params_dto.designer.GoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '', ), + greenhouse_auth_params = visier_api_data_in.models.designer/greenhouse_auth_params_dto.designer.GreenhouseAuthParamsDTO( + api_key = '', ), + has_updates = True, + icims_auth_params = visier_api_data_in.models.designer/icims_auth_params_dto.designer.IcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '', ), + internal_s3_auth_params = visier_api_data_in.models.designer/internal_s3_auth_params_dto.designer.InternalS3AuthParamsDTO( + bucket_name = '', + path = '', ), + jdbc_auth_params = visier_api_data_in.models.designer/jdbc_auth_params_dto.designer.JdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '', ), + jira_auth_params = visier_api_data_in.models.designer/jira_auth_params_dto.designer.JiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/jira_connect_params_dto.designer.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '', ), + lever_auth_params = visier_api_data_in.models.designer/lever_auth_params_dto.designer.LeverAuthParamsDTO( + api_key = '', ), + medallia_auth_params = visier_api_data_in.models.designer/medallia_auth_params_dto.designer.MedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '', ), + ms365_auth_params = visier_api_data_in.models.designer/microsoft365_auth_params_dto.designer.Microsoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '', ), + my_sql_auth_params = visier_api_data_in.models.designer/my_sql_auth_params_dto.designer.MySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '', ), + namely_auth_params = visier_api_data_in.models.designer/namely_auth_params_dto.designer.NamelyAuthParamsDTO( + auth_code = '', ), + oracle_db_auth_params = visier_api_data_in.models.designer/oracle_db_auth_params_dto.designer.OracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '', ), + provider = 'Bamboo', + qualtrics_auth_params = visier_api_data_in.models.designer/qualtrics_auth_params_dto.designer.QualtricsAuthParamsDTO( + api_token = '', + data_center_id = '', ), + redshift_auth_params = visier_api_data_in.models.designer/redshift_auth_params_dto.designer.RedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + schema = '', + table_prefix = '', + username = '', ), + s3_auth_params = visier_api_data_in.models.designer/basic_s3_auth_params_dto.designer.BasicS3AuthParamsDTO( + access_key = '', + bucket_name = '', + bucket_region = '', + path = '', + secret_key = '', ), + salesforce_auth_params = visier_api_data_in.models.designer/salesforce_auth_params_dto.designer.SalesforceAuthParamsDTO( + client_id = '', + refresh_token = '', ), + salesforce_v2_auth_params = visier_api_data_in.models.designer/salesforce_v2_auth_params_dto.designer.SalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '', ), + service_now_auth_params = visier_api_data_in.models.designer/service_now_auth_params_dto.designer.ServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '', ), + service_now_v2_auth_params = visier_api_data_in.models.designer/service_now_v2_auth_params_dto.designer.ServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '', ), + slack_auth_params = visier_api_data_in.models.designer/slack_auth_params_dto.designer.SlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ), + snowflake_auth_params = visier_api_data_in.models.designer/snowflake_auth_params_dto.designer.SnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + schema = '', + username = '', + warehouse = '', ), + sql_server_auth_params = visier_api_data_in.models.designer/sql_server_auth_params_dto.designer.SqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '', ), + success_factors_auth_params = visier_api_data_in.models.designer/success_factors_auth_params_dto.designer.SuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/success_factors_o_auth_params_dto.designer.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '', ), + tenant_domain_name = '', + ultimate_auth_params = visier_api_data_in.models.designer/ultimate_auth_params_dto.designer.UltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '', ), + willow_auth_params = visier_api_data_in.models.designer/willow_auth_params_dto.designer.WillowAuthParamsDTO( + api_token = '', + host_name = '', ), + workday_auth_params = visier_api_data_in.models.designer/workday_auth_params_dto.designer.WorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + o_auth = visier_api_data_in.models.designer/workday_o_auth_params_dto.designer.WorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + ref_token = visier_api_data_in.models.designer/workday_refresh_token_params_dto.designer.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '', ), + workday_raas_auth_params = visier_api_data_in.models.designer/workday_raas_auth_params_dto.designer.WorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '', ), + zoom_auth_params = visier_api_data_in.models.designer/zoom_auth_params_dto.designer.ZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', ) + ) + else: + return DesignerDataProviderAuthParamsDTO( + ) + + def testDesignerDataProviderAuthParamsDTO(self): + """Test DesignerDataProviderAuthParamsDTO""" + def validate_instance(instance): + DesignerDataProviderAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataProviderAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_data_provider_basic_information_dto.py b/src/visier_api_data_in/test/test_designer_data_provider_basic_information_dto.py new file mode 100644 index 0000000000..570d239ed6 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_provider_basic_information_dto import DesignerDataProviderBasicInformationDTO + +class TestDesignerDataProviderBasicInformationDTO(unittest.TestCase): + """DesignerDataProviderBasicInformationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataProviderBasicInformationDTO: + """Test DesignerDataProviderBasicInformationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataProviderBasicInformationDTO( + description = '', + display_name = '' + ) + else: + return DesignerDataProviderBasicInformationDTO( + ) + + def testDesignerDataProviderBasicInformationDTO(self): + """Test DesignerDataProviderBasicInformationDTO""" + def validate_instance(instance): + DesignerDataProviderBasicInformationDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataProviderBasicInformationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_data_provider_basic_metadata_dto.py b/src/visier_api_data_in/test/test_designer_data_provider_basic_metadata_dto.py new file mode 100644 index 0000000000..a7e5ecefdd --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_provider_basic_metadata_dto import DesignerDataProviderBasicMetadataDTO + +class TestDesignerDataProviderBasicMetadataDTO(unittest.TestCase): + """DesignerDataProviderBasicMetadataDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataProviderBasicMetadataDTO: + """Test DesignerDataProviderBasicMetadataDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataProviderBasicMetadataDTO( + can_children_inherit = True + ) + else: + return DesignerDataProviderBasicMetadataDTO( + ) + + def testDesignerDataProviderBasicMetadataDTO(self): + """Test DesignerDataProviderBasicMetadataDTO""" + def validate_instance(instance): + DesignerDataProviderBasicMetadataDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataProviderBasicMetadataDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_dayforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..975d6043eb --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_dayforce_v2_auth_params_dto import DesignerDayforceV2AuthParamsDTO + +class TestDesignerDayforceV2AuthParamsDTO(unittest.TestCase): + """DesignerDayforceV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDayforceV2AuthParamsDTO: + """Test DesignerDayforceV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDayforceV2AuthParamsDTO( + company_id = '', + host_domain_name = '', + password = '', + token_host = '', + username = '' + ) + else: + return DesignerDayforceV2AuthParamsDTO( + ) + + def testDesignerDayforceV2AuthParamsDTO(self): + """Test DesignerDayforceV2AuthParamsDTO""" + def validate_instance(instance): + DesignerDayforceV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDayforceV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_dimensions_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_dimensions_auth_params_dto.py new file mode 100644 index 0000000000..71daed78b9 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_dimensions_auth_params_dto import DesignerDimensionsAuthParamsDTO + +class TestDesignerDimensionsAuthParamsDTO(unittest.TestCase): + """DesignerDimensionsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDimensionsAuthParamsDTO: + """Test DesignerDimensionsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDimensionsAuthParamsDTO( + app_key = '', + client_id = '', + client_secret = '', + password = '', + username = '', + vanity_url = '' + ) + else: + return DesignerDimensionsAuthParamsDTO( + ) + + def testDesignerDimensionsAuthParamsDTO(self): + """Test DesignerDimensionsAuthParamsDTO""" + def validate_instance(instance): + DesignerDimensionsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDimensionsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_extractor_credential_apidto.py b/src/visier_api_data_in/test/test_designer_extractor_credential_apidto.py new file mode 100644 index 0000000000..780c0a240a --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_extractor_credential_apidto import DesignerExtractorCredentialAPIDTO + +class TestDesignerExtractorCredentialAPIDTO(unittest.TestCase): + """DesignerExtractorCredentialAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerExtractorCredentialAPIDTO: + """Test DesignerExtractorCredentialAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerExtractorCredentialAPIDTO( + auth_context = '', + credential_id = '', + data_provider = '', + display_name = '', + is_inherited = True + ) + else: + return DesignerExtractorCredentialAPIDTO( + ) + + def testDesignerExtractorCredentialAPIDTO(self): + """Test DesignerExtractorCredentialAPIDTO""" + def validate_instance(instance): + DesignerExtractorCredentialAPIDTO.model_validate(inst_req_only) + instance_deserialized = DesignerExtractorCredentialAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_extractor_credentials_apidto.py b/src/visier_api_data_in/test/test_designer_extractor_credentials_apidto.py new file mode 100644 index 0000000000..3c5a964bfa --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_extractor_credentials_apidto import DesignerExtractorCredentialsAPIDTO + +class TestDesignerExtractorCredentialsAPIDTO(unittest.TestCase): + """DesignerExtractorCredentialsAPIDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerExtractorCredentialsAPIDTO: + """Test DesignerExtractorCredentialsAPIDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerExtractorCredentialsAPIDTO( + connector_credentials = [ + visier_api_data_in.models.designer/extractor_credential_apidto.designer.ExtractorCredentialAPIDTO( + auth_context = '', + credential_id = '', + data_provider = '', + display_name = '', + is_inherited = True, ) + ], + limit = 56, + start = 56 + ) + else: + return DesignerExtractorCredentialsAPIDTO( + ) + + def testDesignerExtractorCredentialsAPIDTO(self): + """Test DesignerExtractorCredentialsAPIDTO""" + def validate_instance(instance): + DesignerExtractorCredentialsAPIDTO.model_validate(inst_req_only) + instance_deserialized = DesignerExtractorCredentialsAPIDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_fusion_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_fusion_auth_params_dto.py new file mode 100644 index 0000000000..7e7fda674f --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_fusion_auth_params_dto import DesignerFusionAuthParamsDTO + +class TestDesignerFusionAuthParamsDTO(unittest.TestCase): + """DesignerFusionAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerFusionAuthParamsDTO: + """Test DesignerFusionAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerFusionAuthParamsDTO( + host_domain_name = '', + password = '', + username = '' + ) + else: + return DesignerFusionAuthParamsDTO( + ) + + def testDesignerFusionAuthParamsDTO(self): + """Test DesignerFusionAuthParamsDTO""" + def validate_instance(instance): + DesignerFusionAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerFusionAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_gong_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_gong_auth_params_dto.py new file mode 100644 index 0000000000..ec549a0605 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_gong_auth_params_dto import DesignerGongAuthParamsDTO + +class TestDesignerGongAuthParamsDTO(unittest.TestCase): + """DesignerGongAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerGongAuthParamsDTO: + """Test DesignerGongAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerGongAuthParamsDTO( + client_id = '', + client_secret = '' + ) + else: + return DesignerGongAuthParamsDTO( + ) + + def testDesignerGongAuthParamsDTO(self): + """Test DesignerGongAuthParamsDTO""" + def validate_instance(instance): + DesignerGongAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerGongAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_google_sheets_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_google_sheets_auth_params_dto.py new file mode 100644 index 0000000000..2e886794dd --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_google_sheets_auth_params_dto import DesignerGoogleSheetsAuthParamsDTO + +class TestDesignerGoogleSheetsAuthParamsDTO(unittest.TestCase): + """DesignerGoogleSheetsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerGoogleSheetsAuthParamsDTO: + """Test DesignerGoogleSheetsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerGoogleSheetsAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + configuration = '' + ) + else: + return DesignerGoogleSheetsAuthParamsDTO( + ) + + def testDesignerGoogleSheetsAuthParamsDTO(self): + """Test DesignerGoogleSheetsAuthParamsDTO""" + def validate_instance(instance): + DesignerGoogleSheetsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerGoogleSheetsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_google_workspace_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_google_workspace_auth_params_dto.py new file mode 100644 index 0000000000..75becc58b9 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_google_workspace_auth_params_dto import DesignerGoogleWorkspaceAuthParamsDTO + +class TestDesignerGoogleWorkspaceAuthParamsDTO(unittest.TestCase): + """DesignerGoogleWorkspaceAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerGoogleWorkspaceAuthParamsDTO: + """Test DesignerGoogleWorkspaceAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerGoogleWorkspaceAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + privacy_mode = '', + service_account = '' + ) + else: + return DesignerGoogleWorkspaceAuthParamsDTO( + ) + + def testDesignerGoogleWorkspaceAuthParamsDTO(self): + """Test DesignerGoogleWorkspaceAuthParamsDTO""" + def validate_instance(instance): + DesignerGoogleWorkspaceAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerGoogleWorkspaceAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_greenhouse_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_greenhouse_auth_params_dto.py new file mode 100644 index 0000000000..faa874ca8f --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_greenhouse_auth_params_dto import DesignerGreenhouseAuthParamsDTO + +class TestDesignerGreenhouseAuthParamsDTO(unittest.TestCase): + """DesignerGreenhouseAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerGreenhouseAuthParamsDTO: + """Test DesignerGreenhouseAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerGreenhouseAuthParamsDTO( + api_key = '' + ) + else: + return DesignerGreenhouseAuthParamsDTO( + ) + + def testDesignerGreenhouseAuthParamsDTO(self): + """Test DesignerGreenhouseAuthParamsDTO""" + def validate_instance(instance): + DesignerGreenhouseAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerGreenhouseAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_icims_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_icims_auth_params_dto.py new file mode 100644 index 0000000000..b463006cf1 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_icims_auth_params_dto import DesignerIcimsAuthParamsDTO + +class TestDesignerIcimsAuthParamsDTO(unittest.TestCase): + """DesignerIcimsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerIcimsAuthParamsDTO: + """Test DesignerIcimsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerIcimsAuthParamsDTO( + client_id = '', + client_secret = '', + customer_id = '', + password = '', + region = 'US', + username = '' + ) + else: + return DesignerIcimsAuthParamsDTO( + ) + + def testDesignerIcimsAuthParamsDTO(self): + """Test DesignerIcimsAuthParamsDTO""" + def validate_instance(instance): + DesignerIcimsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerIcimsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_internal_s3_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_internal_s3_auth_params_dto.py new file mode 100644 index 0000000000..1a7d1e39f3 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_internal_s3_auth_params_dto import DesignerInternalS3AuthParamsDTO + +class TestDesignerInternalS3AuthParamsDTO(unittest.TestCase): + """DesignerInternalS3AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerInternalS3AuthParamsDTO: + """Test DesignerInternalS3AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerInternalS3AuthParamsDTO( + bucket_name = '', + path = '' + ) + else: + return DesignerInternalS3AuthParamsDTO( + ) + + def testDesignerInternalS3AuthParamsDTO(self): + """Test DesignerInternalS3AuthParamsDTO""" + def validate_instance(instance): + DesignerInternalS3AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerInternalS3AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_jdbc_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_jdbc_auth_params_dto.py new file mode 100644 index 0000000000..d4a033d28e --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_jdbc_auth_params_dto import DesignerJdbcAuthParamsDTO + +class TestDesignerJdbcAuthParamsDTO(unittest.TestCase): + """DesignerJdbcAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerJdbcAuthParamsDTO: + """Test DesignerJdbcAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerJdbcAuthParamsDTO( + jdbc_connect_string = '', + password = '', + username = '' + ) + else: + return DesignerJdbcAuthParamsDTO( + ) + + def testDesignerJdbcAuthParamsDTO(self): + """Test DesignerJdbcAuthParamsDTO""" + def validate_instance(instance): + DesignerJdbcAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerJdbcAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_jira_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_jira_auth_params_dto.py new file mode 100644 index 0000000000..5acc439e69 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_jira_auth_params_dto import DesignerJiraAuthParamsDTO + +class TestDesignerJiraAuthParamsDTO(unittest.TestCase): + """DesignerJiraAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerJiraAuthParamsDTO: + """Test DesignerJiraAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerJiraAuthParamsDTO( + api_token = '', + connect_params = visier_api_data_in.models.designer/jira_connect_params_dto.designer.JiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '', ), + host_name = '' + ) + else: + return DesignerJiraAuthParamsDTO( + ) + + def testDesignerJiraAuthParamsDTO(self): + """Test DesignerJiraAuthParamsDTO""" + def validate_instance(instance): + DesignerJiraAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerJiraAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_jira_connect_params_dto.py b/src/visier_api_data_in/test/test_designer_jira_connect_params_dto.py new file mode 100644 index 0000000000..87bc1c0659 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_jira_connect_params_dto import DesignerJiraConnectParamsDTO + +class TestDesignerJiraConnectParamsDTO(unittest.TestCase): + """DesignerJiraConnectParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerJiraConnectParamsDTO: + """Test DesignerJiraConnectParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerJiraConnectParamsDTO( + app_key = '', + client_key = '', + shared_secret = '' + ) + else: + return DesignerJiraConnectParamsDTO( + ) + + def testDesignerJiraConnectParamsDTO(self): + """Test DesignerJiraConnectParamsDTO""" + def validate_instance(instance): + DesignerJiraConnectParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerJiraConnectParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_lever_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_lever_auth_params_dto.py new file mode 100644 index 0000000000..68bb48d887 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_lever_auth_params_dto import DesignerLeverAuthParamsDTO + +class TestDesignerLeverAuthParamsDTO(unittest.TestCase): + """DesignerLeverAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerLeverAuthParamsDTO: + """Test DesignerLeverAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerLeverAuthParamsDTO( + api_key = '' + ) + else: + return DesignerLeverAuthParamsDTO( + ) + + def testDesignerLeverAuthParamsDTO(self): + """Test DesignerLeverAuthParamsDTO""" + def validate_instance(instance): + DesignerLeverAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerLeverAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_medallia_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_medallia_auth_params_dto.py new file mode 100644 index 0000000000..66c9edc8ae --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_medallia_auth_params_dto import DesignerMedalliaAuthParamsDTO + +class TestDesignerMedalliaAuthParamsDTO(unittest.TestCase): + """DesignerMedalliaAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerMedalliaAuthParamsDTO: + """Test DesignerMedalliaAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerMedalliaAuthParamsDTO( + client_id = '', + client_secret = '', + instance_url = '', + tenant_domain_name = '' + ) + else: + return DesignerMedalliaAuthParamsDTO( + ) + + def testDesignerMedalliaAuthParamsDTO(self): + """Test DesignerMedalliaAuthParamsDTO""" + def validate_instance(instance): + DesignerMedalliaAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerMedalliaAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_microsoft365_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_microsoft365_auth_params_dto.py new file mode 100644 index 0000000000..9cfece9742 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_microsoft365_auth_params_dto import DesignerMicrosoft365AuthParamsDTO + +class TestDesignerMicrosoft365AuthParamsDTO(unittest.TestCase): + """DesignerMicrosoft365AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerMicrosoft365AuthParamsDTO: + """Test DesignerMicrosoft365AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerMicrosoft365AuthParamsDTO( + client_id = '', + client_secret = '', + o_auth_tenant_id = '', + privacy_mode = '' + ) + else: + return DesignerMicrosoft365AuthParamsDTO( + ) + + def testDesignerMicrosoft365AuthParamsDTO(self): + """Test DesignerMicrosoft365AuthParamsDTO""" + def validate_instance(instance): + DesignerMicrosoft365AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerMicrosoft365AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_my_sql_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_my_sql_auth_params_dto.py new file mode 100644 index 0000000000..190f7d8d92 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_my_sql_auth_params_dto import DesignerMySqlAuthParamsDTO + +class TestDesignerMySqlAuthParamsDTO(unittest.TestCase): + """DesignerMySqlAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerMySqlAuthParamsDTO: + """Test DesignerMySqlAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerMySqlAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + ssl_mode = '', + username = '' + ) + else: + return DesignerMySqlAuthParamsDTO( + ) + + def testDesignerMySqlAuthParamsDTO(self): + """Test DesignerMySqlAuthParamsDTO""" + def validate_instance(instance): + DesignerMySqlAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerMySqlAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_namely_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_namely_auth_params_dto.py new file mode 100644 index 0000000000..7b5834af4e --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_namely_auth_params_dto import DesignerNamelyAuthParamsDTO + +class TestDesignerNamelyAuthParamsDTO(unittest.TestCase): + """DesignerNamelyAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerNamelyAuthParamsDTO: + """Test DesignerNamelyAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerNamelyAuthParamsDTO( + auth_code = '' + ) + else: + return DesignerNamelyAuthParamsDTO( + ) + + def testDesignerNamelyAuthParamsDTO(self): + """Test DesignerNamelyAuthParamsDTO""" + def validate_instance(instance): + DesignerNamelyAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerNamelyAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_oracle_db_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_oracle_db_auth_params_dto.py new file mode 100644 index 0000000000..32e948358c --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_oracle_db_auth_params_dto import DesignerOracleDbAuthParamsDTO + +class TestDesignerOracleDbAuthParamsDTO(unittest.TestCase): + """DesignerOracleDbAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerOracleDbAuthParamsDTO: + """Test DesignerOracleDbAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerOracleDbAuthParamsDTO( + host = '', + password = '', + port = '', + service_name = '', + username = '' + ) + else: + return DesignerOracleDbAuthParamsDTO( + ) + + def testDesignerOracleDbAuthParamsDTO(self): + """Test DesignerOracleDbAuthParamsDTO""" + def validate_instance(instance): + DesignerOracleDbAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerOracleDbAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_push_data_column_definition_dto.py b/src/visier_api_data_in/test/test_designer_push_data_column_definition_dto.py new file mode 100644 index 0000000000..1798964957 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_push_data_column_definition_dto import DesignerPushDataColumnDefinitionDTO + +class TestDesignerPushDataColumnDefinitionDTO(unittest.TestCase): + """DesignerPushDataColumnDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerPushDataColumnDefinitionDTO: + """Test DesignerPushDataColumnDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerPushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True + ) + else: + return DesignerPushDataColumnDefinitionDTO( + ) + + def testDesignerPushDataColumnDefinitionDTO(self): + """Test DesignerPushDataColumnDefinitionDTO""" + def validate_instance(instance): + DesignerPushDataColumnDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DesignerPushDataColumnDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_push_data_source_definition_dto.py b/src/visier_api_data_in/test/test_designer_push_data_source_definition_dto.py new file mode 100644 index 0000000000..66a320366b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_push_data_source_definition_dto import DesignerPushDataSourceDefinitionDTO + +class TestDesignerPushDataSourceDefinitionDTO(unittest.TestCase): + """DesignerPushDataSourceDefinitionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerPushDataSourceDefinitionDTO: + """Test DesignerPushDataSourceDefinitionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerPushDataSourceDefinitionDTO( + columns = [ + visier_api_data_in.models.designer/push_data_column_definition_dto.designer.PushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True, ) + ], + is_inherited = True, + name = '', + source_id = '' + ) + else: + return DesignerPushDataSourceDefinitionDTO( + ) + + def testDesignerPushDataSourceDefinitionDTO(self): + """Test DesignerPushDataSourceDefinitionDTO""" + def validate_instance(instance): + DesignerPushDataSourceDefinitionDTO.model_validate(inst_req_only) + instance_deserialized = DesignerPushDataSourceDefinitionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_push_data_source_definitions_dto.py b/src/visier_api_data_in/test/test_designer_push_data_source_definitions_dto.py new file mode 100644 index 0000000000..1b9e419d03 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_push_data_source_definitions_dto import DesignerPushDataSourceDefinitionsDTO + +class TestDesignerPushDataSourceDefinitionsDTO(unittest.TestCase): + """DesignerPushDataSourceDefinitionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerPushDataSourceDefinitionsDTO: + """Test DesignerPushDataSourceDefinitionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerPushDataSourceDefinitionsDTO( + sources = [ + visier_api_data_in.models.designer/push_data_source_definition_dto.designer.PushDataSourceDefinitionDTO( + columns = [ + visier_api_data_in.models.designer/push_data_column_definition_dto.designer.PushDataColumnDefinitionDTO( + allow_empty = True, + column_name = '', + data_formats = [ + '' + ], + data_type = '', + default_value = '', + is_mandatory = True, ) + ], + is_inherited = True, + name = '', + source_id = '', ) + ] + ) + else: + return DesignerPushDataSourceDefinitionsDTO( + ) + + def testDesignerPushDataSourceDefinitionsDTO(self): + """Test DesignerPushDataSourceDefinitionsDTO""" + def validate_instance(instance): + DesignerPushDataSourceDefinitionsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerPushDataSourceDefinitionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_qualtrics_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_qualtrics_auth_params_dto.py new file mode 100644 index 0000000000..485f7373ae --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_qualtrics_auth_params_dto import DesignerQualtricsAuthParamsDTO + +class TestDesignerQualtricsAuthParamsDTO(unittest.TestCase): + """DesignerQualtricsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerQualtricsAuthParamsDTO: + """Test DesignerQualtricsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerQualtricsAuthParamsDTO( + api_token = '', + data_center_id = '' + ) + else: + return DesignerQualtricsAuthParamsDTO( + ) + + def testDesignerQualtricsAuthParamsDTO(self): + """Test DesignerQualtricsAuthParamsDTO""" + def validate_instance(instance): + DesignerQualtricsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerQualtricsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_redshift_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_redshift_auth_params_dto.py new file mode 100644 index 0000000000..d127550d2d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_redshift_auth_params_dto import DesignerRedshiftAuthParamsDTO + +class TestDesignerRedshiftAuthParamsDTO(unittest.TestCase): + """DesignerRedshiftAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerRedshiftAuthParamsDTO: + """Test DesignerRedshiftAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerRedshiftAuthParamsDTO( + database = '', + endpoint = '', + password = '', + port = '', + var_schema = '', + table_prefix = '', + username = '' + ) + else: + return DesignerRedshiftAuthParamsDTO( + ) + + def testDesignerRedshiftAuthParamsDTO(self): + """Test DesignerRedshiftAuthParamsDTO""" + def validate_instance(instance): + DesignerRedshiftAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerRedshiftAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_salesforce_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_salesforce_auth_params_dto.py new file mode 100644 index 0000000000..53f2489fa5 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_salesforce_auth_params_dto import DesignerSalesforceAuthParamsDTO + +class TestDesignerSalesforceAuthParamsDTO(unittest.TestCase): + """DesignerSalesforceAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSalesforceAuthParamsDTO: + """Test DesignerSalesforceAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSalesforceAuthParamsDTO( + client_id = '', + refresh_token = '' + ) + else: + return DesignerSalesforceAuthParamsDTO( + ) + + def testDesignerSalesforceAuthParamsDTO(self): + """Test DesignerSalesforceAuthParamsDTO""" + def validate_instance(instance): + DesignerSalesforceAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSalesforceAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_salesforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..0410584c84 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_salesforce_v2_auth_params_dto import DesignerSalesforceV2AuthParamsDTO + +class TestDesignerSalesforceV2AuthParamsDTO(unittest.TestCase): + """DesignerSalesforceV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSalesforceV2AuthParamsDTO: + """Test DesignerSalesforceV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSalesforceV2AuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '', + login_host = '' + ) + else: + return DesignerSalesforceV2AuthParamsDTO( + ) + + def testDesignerSalesforceV2AuthParamsDTO(self): + """Test DesignerSalesforceV2AuthParamsDTO""" + def validate_instance(instance): + DesignerSalesforceV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSalesforceV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_service_now_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_service_now_auth_params_dto.py new file mode 100644 index 0000000000..eb011e6725 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_service_now_auth_params_dto import DesignerServiceNowAuthParamsDTO + +class TestDesignerServiceNowAuthParamsDTO(unittest.TestCase): + """DesignerServiceNowAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerServiceNowAuthParamsDTO: + """Test DesignerServiceNowAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerServiceNowAuthParamsDTO( + host_domain_name = '', + password = '', + username = '' + ) + else: + return DesignerServiceNowAuthParamsDTO( + ) + + def testDesignerServiceNowAuthParamsDTO(self): + """Test DesignerServiceNowAuthParamsDTO""" + def validate_instance(instance): + DesignerServiceNowAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerServiceNowAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_service_now_v2_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_service_now_v2_auth_params_dto.py new file mode 100644 index 0000000000..2e0910df67 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_service_now_v2_auth_params_dto import DesignerServiceNowV2AuthParamsDTO + +class TestDesignerServiceNowV2AuthParamsDTO(unittest.TestCase): + """DesignerServiceNowV2AuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerServiceNowV2AuthParamsDTO: + """Test DesignerServiceNowV2AuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerServiceNowV2AuthParamsDTO( + alternate_domain = '', + auth_code = '', + client_id = '', + client_secret = '', + host_domain_name = '' + ) + else: + return DesignerServiceNowV2AuthParamsDTO( + ) + + def testDesignerServiceNowV2AuthParamsDTO(self): + """Test DesignerServiceNowV2AuthParamsDTO""" + def validate_instance(instance): + DesignerServiceNowV2AuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerServiceNowV2AuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_slack_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_slack_auth_params_dto.py new file mode 100644 index 0000000000..e58a471c4d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_slack_auth_params_dto import DesignerSlackAuthParamsDTO + +class TestDesignerSlackAuthParamsDTO(unittest.TestCase): + """DesignerSlackAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSlackAuthParamsDTO: + """Test DesignerSlackAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSlackAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '' + ) + else: + return DesignerSlackAuthParamsDTO( + ) + + def testDesignerSlackAuthParamsDTO(self): + """Test DesignerSlackAuthParamsDTO""" + def validate_instance(instance): + DesignerSlackAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSlackAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_snowflake_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_snowflake_auth_params_dto.py new file mode 100644 index 0000000000..bb17cb44c4 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_snowflake_auth_params_dto import DesignerSnowflakeAuthParamsDTO + +class TestDesignerSnowflakeAuthParamsDTO(unittest.TestCase): + """DesignerSnowflakeAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSnowflakeAuthParamsDTO: + """Test DesignerSnowflakeAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSnowflakeAuthParamsDTO( + account_identifier = '', + database = '', + password = '', + private_key = '', + var_schema = '', + username = '', + warehouse = '' + ) + else: + return DesignerSnowflakeAuthParamsDTO( + ) + + def testDesignerSnowflakeAuthParamsDTO(self): + """Test DesignerSnowflakeAuthParamsDTO""" + def validate_instance(instance): + DesignerSnowflakeAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSnowflakeAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_sql_server_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_sql_server_auth_params_dto.py new file mode 100644 index 0000000000..5f2f41ad9e --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_sql_server_auth_params_dto import DesignerSqlServerAuthParamsDTO + +class TestDesignerSqlServerAuthParamsDTO(unittest.TestCase): + """DesignerSqlServerAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSqlServerAuthParamsDTO: + """Test DesignerSqlServerAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSqlServerAuthParamsDTO( + database = '', + host = '', + password = '', + port = '', + username = '' + ) + else: + return DesignerSqlServerAuthParamsDTO( + ) + + def testDesignerSqlServerAuthParamsDTO(self): + """Test DesignerSqlServerAuthParamsDTO""" + def validate_instance(instance): + DesignerSqlServerAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSqlServerAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_subject_missing_access_dto.py b/src/visier_api_data_in/test/test_designer_subject_missing_access_dto.py new file mode 100644 index 0000000000..a6b9c4d6e5 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_subject_missing_access_dto import DesignerSubjectMissingAccessDTO + +class TestDesignerSubjectMissingAccessDTO(unittest.TestCase): + """DesignerSubjectMissingAccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSubjectMissingAccessDTO: + """Test DesignerSubjectMissingAccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSubjectMissingAccessDTO( + attributes = [ + '' + ], + error_message = '', + subject = 'Employee' + ) + else: + return DesignerSubjectMissingAccessDTO( + ) + + def testDesignerSubjectMissingAccessDTO(self): + """Test DesignerSubjectMissingAccessDTO""" + def validate_instance(instance): + DesignerSubjectMissingAccessDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSubjectMissingAccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_success_factors_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_success_factors_auth_params_dto.py new file mode 100644 index 0000000000..a806de825f --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_success_factors_auth_params_dto import DesignerSuccessFactorsAuthParamsDTO + +class TestDesignerSuccessFactorsAuthParamsDTO(unittest.TestCase): + """DesignerSuccessFactorsAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSuccessFactorsAuthParamsDTO: + """Test DesignerSuccessFactorsAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSuccessFactorsAuthParamsDTO( + company_id = '', + host_domain_name = '', + o_auth = visier_api_data_in.models.designer/success_factors_o_auth_params_dto.designer.SuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + username = '' + ) + else: + return DesignerSuccessFactorsAuthParamsDTO( + ) + + def testDesignerSuccessFactorsAuthParamsDTO(self): + """Test DesignerSuccessFactorsAuthParamsDTO""" + def validate_instance(instance): + DesignerSuccessFactorsAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSuccessFactorsAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_success_factors_o_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_success_factors_o_auth_params_dto.py new file mode 100644 index 0000000000..24c83a4927 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_success_factors_o_auth_params_dto import DesignerSuccessFactorsOAuthParamsDTO + +class TestDesignerSuccessFactorsOAuthParamsDTO(unittest.TestCase): + """DesignerSuccessFactorsOAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerSuccessFactorsOAuthParamsDTO: + """Test DesignerSuccessFactorsOAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerSuccessFactorsOAuthParamsDTO( + api_key = '', + private_x509_key = '', + public_x509_cert = '' + ) + else: + return DesignerSuccessFactorsOAuthParamsDTO( + ) + + def testDesignerSuccessFactorsOAuthParamsDTO(self): + """Test DesignerSuccessFactorsOAuthParamsDTO""" + def validate_instance(instance): + DesignerSuccessFactorsOAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerSuccessFactorsOAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 deleted file mode 100644 index 7a72543967..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index cdf06e7cb3..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 9cc52e1e93..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 3c2cc9ab57..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 9f907c6797..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index ad0a60639f..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 14435054e2..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 30040c01f8..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 2194cce35c..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index cbdf529d6e..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e2c641da51..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 8e0d750ab0..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 02cb71ec02..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 58cae90adf..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index cde630e8a2..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index ca4d081a16..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index bf3a7aab94..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 4c039b51e9..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index fe74a73da6..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index a0cb16d135..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 64ea18edf8..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e29dadd53d..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 68bae12b14..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 0eba1eda67..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index a20fa86363..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index bcf3c4f657..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index b2415a76f6..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 812504f040..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 9b85a7584b..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index acd8b8b107..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 722586656b..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 301cf22891..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index c5e35a1d7b..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index af15cf7df6..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index cda867e956..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 4ecba46370..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e27f78783c..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 38a986eecd..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 532ef0c0f6..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index bef157ce51..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 6243aa582d..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 9169a43882..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index e61282bcb4..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 37e0230b18..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 6578aa4bcc..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 48c86197e0..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 9b083335d1..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index d03a3daff3..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index c23e848d28..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 2a5c5166da..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index b93e407e2b..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 67afcb2b47..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index c46bf92ef8..0000000000 --- a/src/visier_api_data_in/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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_designer_ultimate_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_ultimate_auth_params_dto.py new file mode 100644 index 0000000000..b4c8c036fd --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_ultimate_auth_params_dto import DesignerUltimateAuthParamsDTO + +class TestDesignerUltimateAuthParamsDTO(unittest.TestCase): + """DesignerUltimateAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerUltimateAuthParamsDTO: + """Test DesignerUltimateAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerUltimateAuthParamsDTO( + api_key = '', + host_domain_name = '', + password = '', + user_access_key = '', + username = '' + ) + else: + return DesignerUltimateAuthParamsDTO( + ) + + def testDesignerUltimateAuthParamsDTO(self): + """Test DesignerUltimateAuthParamsDTO""" + def validate_instance(instance): + DesignerUltimateAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerUltimateAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_willow_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_willow_auth_params_dto.py new file mode 100644 index 0000000000..b2346dacdf --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_willow_auth_params_dto import DesignerWillowAuthParamsDTO + +class TestDesignerWillowAuthParamsDTO(unittest.TestCase): + """DesignerWillowAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerWillowAuthParamsDTO: + """Test DesignerWillowAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerWillowAuthParamsDTO( + api_token = '', + host_name = '' + ) + else: + return DesignerWillowAuthParamsDTO( + ) + + def testDesignerWillowAuthParamsDTO(self): + """Test DesignerWillowAuthParamsDTO""" + def validate_instance(instance): + DesignerWillowAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerWillowAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_workday_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_workday_auth_params_dto.py new file mode 100644 index 0000000000..806f99b08b --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_workday_auth_params_dto import DesignerWorkdayAuthParamsDTO + +class TestDesignerWorkdayAuthParamsDTO(unittest.TestCase): + """DesignerWorkdayAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerWorkdayAuthParamsDTO: + """Test DesignerWorkdayAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerWorkdayAuthParamsDTO( + api_key = '', + domain_name = '', + implementation_name = '', + integration_system_id = '', + o_auth = visier_api_data_in.models.designer/workday_o_auth_params_dto.designer.WorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '', ), + password = '', + ref_token = visier_api_data_in.models.designer/workday_refresh_token_params_dto.designer.WorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '', ), + user_id = '' + ) + else: + return DesignerWorkdayAuthParamsDTO( + ) + + def testDesignerWorkdayAuthParamsDTO(self): + """Test DesignerWorkdayAuthParamsDTO""" + def validate_instance(instance): + DesignerWorkdayAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerWorkdayAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_workday_o_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_workday_o_auth_params_dto.py new file mode 100644 index 0000000000..24ef881c52 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_workday_o_auth_params_dto import DesignerWorkdayOAuthParamsDTO + +class TestDesignerWorkdayOAuthParamsDTO(unittest.TestCase): + """DesignerWorkdayOAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerWorkdayOAuthParamsDTO: + """Test DesignerWorkdayOAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerWorkdayOAuthParamsDTO( + api_client_id = '', + private_x509_key = '', + public_x509_cert = '' + ) + else: + return DesignerWorkdayOAuthParamsDTO( + ) + + def testDesignerWorkdayOAuthParamsDTO(self): + """Test DesignerWorkdayOAuthParamsDTO""" + def validate_instance(instance): + DesignerWorkdayOAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerWorkdayOAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_workday_raas_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_workday_raas_auth_params_dto.py new file mode 100644 index 0000000000..687cca3a95 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_workday_raas_auth_params_dto import DesignerWorkdayRaasAuthParamsDTO + +class TestDesignerWorkdayRaasAuthParamsDTO(unittest.TestCase): + """DesignerWorkdayRaasAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerWorkdayRaasAuthParamsDTO: + """Test DesignerWorkdayRaasAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerWorkdayRaasAuthParamsDTO( + domain_name = '', + implementation_name = '', + password = '', + test_report_url = '', + user_id = '' + ) + else: + return DesignerWorkdayRaasAuthParamsDTO( + ) + + def testDesignerWorkdayRaasAuthParamsDTO(self): + """Test DesignerWorkdayRaasAuthParamsDTO""" + def validate_instance(instance): + DesignerWorkdayRaasAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerWorkdayRaasAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_workday_refresh_token_params_dto.py b/src/visier_api_data_in/test/test_designer_workday_refresh_token_params_dto.py new file mode 100644 index 0000000000..4de2b6c24d --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_workday_refresh_token_params_dto import DesignerWorkdayRefreshTokenParamsDTO + +class TestDesignerWorkdayRefreshTokenParamsDTO(unittest.TestCase): + """DesignerWorkdayRefreshTokenParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerWorkdayRefreshTokenParamsDTO: + """Test DesignerWorkdayRefreshTokenParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerWorkdayRefreshTokenParamsDTO( + api_client_id = '', + client_secret = '', + refresh_token = '' + ) + else: + return DesignerWorkdayRefreshTokenParamsDTO( + ) + + def testDesignerWorkdayRefreshTokenParamsDTO(self): + """Test DesignerWorkdayRefreshTokenParamsDTO""" + def validate_instance(instance): + DesignerWorkdayRefreshTokenParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerWorkdayRefreshTokenParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_zoom_auth_params_dto.py b/src/visier_api_data_in/test/test_designer_zoom_auth_params_dto.py new file mode 100644 index 0000000000..63ea188dc4 --- /dev/null +++ b/src/visier_api_data_in/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_zoom_auth_params_dto import DesignerZoomAuthParamsDTO + +class TestDesignerZoomAuthParamsDTO(unittest.TestCase): + """DesignerZoomAuthParamsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerZoomAuthParamsDTO: + """Test DesignerZoomAuthParamsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerZoomAuthParamsDTO( + auth_code = '', + client_id = '', + client_secret = '' + ) + else: + return DesignerZoomAuthParamsDTO( + ) + + def testDesignerZoomAuthParamsDTO(self): + """Test DesignerZoomAuthParamsDTO""" + def validate_instance(instance): + DesignerZoomAuthParamsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerZoomAuthParamsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 177c3bcbb5..5071a6b735 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -49,6 +49,20 @@ def test_job_status(self) -> None: """ pass + def test_list_transactions(self) -> None: + """Test case for list_transactions + + Retrieve a list of open transactions + """ + pass + + def test_load_sample_data(self) -> None: + """Test case for load_sample_data + + Load sample data + """ + pass + def test_object_schema(self) -> None: """Test case for object_schema 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 580c8cec32..5647baf209 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_dp_cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/test/test_dp_cancel_job_batch_from_job_id_dto.py new file mode 100644 index 0000000000..aba90eb06f --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_cancel_job_batch_from_job_id_dto import DpCancelJobBatchFromJobIdDTO + +class TestDpCancelJobBatchFromJobIdDTO(unittest.TestCase): + """DpCancelJobBatchFromJobIdDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpCancelJobBatchFromJobIdDTO: + """Test DpCancelJobBatchFromJobIdDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpCancelJobBatchFromJobIdDTO( + job_ids = [ + '' + ] + ) + else: + return DpCancelJobBatchFromJobIdDTO( + ) + + def testDpCancelJobBatchFromJobIdDTO(self): + """Test DpCancelJobBatchFromJobIdDTO""" + def validate_instance(instance): + DpCancelJobBatchFromJobIdDTO.model_validate(inst_req_only) + instance_deserialized = DpCancelJobBatchFromJobIdDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_job_cancellation_result_dto.py b/src/visier_api_data_in/test/test_dp_job_cancellation_result_dto.py new file mode 100644 index 0000000000..67f02bb19f --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_job_cancellation_result_dto import DpJobCancellationResultDTO + +class TestDpJobCancellationResultDTO(unittest.TestCase): + """DpJobCancellationResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpJobCancellationResultDTO: + """Test DpJobCancellationResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpJobCancellationResultDTO( + cancel_status = 'CANCEL_FAILED', + job_id = '', + job_status = '', + job_type = '', + message = '', + parent_job_id = '', + tenant_code = '' + ) + else: + return DpJobCancellationResultDTO( + ) + + def testDpJobCancellationResultDTO(self): + """Test DpJobCancellationResultDTO""" + def validate_instance(instance): + DpJobCancellationResultDTO.model_validate(inst_req_only) + instance_deserialized = DpJobCancellationResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_job_cancellation_results_dto.py b/src/visier_api_data_in/test/test_dp_job_cancellation_results_dto.py new file mode 100644 index 0000000000..3cae555f65 --- /dev/null +++ b/src/visier_api_data_in/test/test_dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_job_cancellation_results_dto import DpJobCancellationResultsDTO + +class TestDpJobCancellationResultsDTO(unittest.TestCase): + """DpJobCancellationResultsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DpJobCancellationResultsDTO: + """Test DpJobCancellationResultsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DpJobCancellationResultsDTO( + job_cancellation_results = [ + visier_api_data_in.models.dp/job_cancellation_result_dto.dp.JobCancellationResultDTO( + cancel_status = 'CANCEL_FAILED', + job_id = '', + job_status = '', + job_type = '', + message = '', + parent_job_id = '', + tenant_code = '', ) + ] + ) + else: + return DpJobCancellationResultsDTO( + ) + + def testDpJobCancellationResultsDTO(self): + """Test DpJobCancellationResultsDTO""" + def validate_instance(instance): + DpJobCancellationResultsDTO.model_validate(inst_req_only) + instance_deserialized = DpJobCancellationResultsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 deleted file mode 100644 index 09e77404b5..0000000000 --- a/src/visier_api_data_in/test/test_dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 064b6117da..0000000000 --- a/src/visier_api_data_in/test/test_dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 53b126e4c7..0000000000 --- a/src/visier_api_data_in/test/test_dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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_pgp_key_api.py b/src/visier_api_data_in/test/test_pgp_key_api.py index 6fcc69544d..efd7b8a3f8 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 e99b4f6cf7..dcb44196b3 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 0e65a11dc7..41a7942fe5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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_upload_response_dto.py b/src/visier_api_data_in/test/test_plan_data_upload_response_dto.py index 3b555939e3..d1c9f18d7e 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 d7e2986a9d..5edcef5c42 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 b5981498d1..e7b248f597 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_in/test/test_servicing_data_categories_response_dto.py b/src/visier_api_data_in/test/test_servicing_data_categories_response_dto.py new file mode 100644 index 0000000000..015f77076e --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_categories_response_dto import ServicingDataCategoriesResponseDTO + +class TestServicingDataCategoriesResponseDTO(unittest.TestCase): + """ServicingDataCategoriesResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataCategoriesResponseDTO: + """Test ServicingDataCategoriesResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataCategoriesResponseDTO( + categories = [ + visier_api_data_in.models.servicing/data_category_response_dto.servicing.DataCategoryResponseDTO( + id = '', + name = '', ) + ] + ) + else: + return ServicingDataCategoriesResponseDTO( + ) + + def testServicingDataCategoriesResponseDTO(self): + """Test ServicingDataCategoriesResponseDTO""" + def validate_instance(instance): + ServicingDataCategoriesResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataCategoriesResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_data_category_response_dto.py b/src/visier_api_data_in/test/test_servicing_data_category_response_dto.py new file mode 100644 index 0000000000..816e6977be --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_data_category_response_dto import ServicingDataCategoryResponseDTO + +class TestServicingDataCategoryResponseDTO(unittest.TestCase): + """ServicingDataCategoryResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDataCategoryResponseDTO: + """Test ServicingDataCategoryResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDataCategoryResponseDTO( + id = '', + name = '' + ) + else: + return ServicingDataCategoryResponseDTO( + ) + + def testServicingDataCategoryResponseDTO(self): + """Test ServicingDataCategoryResponseDTO""" + def validate_instance(instance): + ServicingDataCategoryResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDataCategoryResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_job_config_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_job_config_dto.py new file mode 100644 index 0000000000..3bb614126d --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_job_config_dto import ServicingDirectDataJobConfigDTO + +class TestServicingDirectDataJobConfigDTO(unittest.TestCase): + """ServicingDirectDataJobConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataJobConfigDTO: + """Test ServicingDirectDataJobConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataJobConfigDTO( + extend_objects = [ + '' + ], + supplemental_mode = 'UNCHANGED' + ) + else: + return ServicingDirectDataJobConfigDTO( + ) + + def testServicingDirectDataJobConfigDTO(self): + """Test ServicingDirectDataJobConfigDTO""" + def validate_instance(instance): + ServicingDirectDataJobConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataJobConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_job_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_job_status_response_dto.py new file mode 100644 index 0000000000..a3ea8f5292 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_job_status_response_dto import ServicingDirectDataJobStatusResponseDTO + +class TestServicingDirectDataJobStatusResponseDTO(unittest.TestCase): + """ServicingDirectDataJobStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataJobStatusResponseDTO: + """Test ServicingDirectDataJobStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataJobStatusResponseDTO( + job_id = '', + message = '', + status = '', + tenant_code = '', + transaction_id = '' + ) + else: + return ServicingDirectDataJobStatusResponseDTO( + ) + + def testServicingDirectDataJobStatusResponseDTO(self): + """Test ServicingDirectDataJobStatusResponseDTO""" + def validate_instance(instance): + ServicingDirectDataJobStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataJobStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_list_transactions_response_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_list_transactions_response_dto.py new file mode 100644 index 0000000000..751feb0792 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_direct_data_list_transactions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_list_transactions_response_dto import ServicingDirectDataListTransactionsResponseDTO + +class TestServicingDirectDataListTransactionsResponseDTO(unittest.TestCase): + """ServicingDirectDataListTransactionsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataListTransactionsResponseDTO: + """Test ServicingDirectDataListTransactionsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataListTransactionsResponseDTO( + transactions = [ + visier_api_data_in.models.servicing/direct_data_transaction_dto.servicing.DirectDataTransactionDTO( + created = '', + status = '', + tenant_code = '', + transaction_id = '', + updated = '', ) + ] + ) + else: + return ServicingDirectDataListTransactionsResponseDTO( + ) + + def testServicingDirectDataListTransactionsResponseDTO(self): + """Test ServicingDirectDataListTransactionsResponseDTO""" + def validate_instance(instance): + ServicingDirectDataListTransactionsResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataListTransactionsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_load_config_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_load_config_dto.py new file mode 100644 index 0000000000..58bdb3ba0a --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_load_config_dto import ServicingDirectDataLoadConfigDTO + +class TestServicingDirectDataLoadConfigDTO(unittest.TestCase): + """ServicingDirectDataLoadConfigDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataLoadConfigDTO: + """Test ServicingDirectDataLoadConfigDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataLoadConfigDTO( + job = visier_api_data_in.models.servicing/direct_data_job_config_dto.servicing.DirectDataJobConfigDTO( + extend_objects = [ + '' + ], + supplemental_mode = 'UNCHANGED', ) + ) + else: + return ServicingDirectDataLoadConfigDTO( + ) + + def testServicingDirectDataLoadConfigDTO(self): + """Test ServicingDirectDataLoadConfigDTO""" + def validate_instance(instance): + ServicingDirectDataLoadConfigDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataLoadConfigDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_schema_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_schema_dto.py new file mode 100644 index 0000000000..68d352bd54 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_schema_dto import ServicingDirectDataSchemaDTO + +class TestServicingDirectDataSchemaDTO(unittest.TestCase): + """ServicingDirectDataSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataSchemaDTO: + """Test ServicingDirectDataSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataSchemaDTO( + var_schema = [ + visier_api_data_in.models.servicing/direct_data_schema_field_dto.servicing.DirectDataSchemaFieldDTO( + data_type = '', + empty_values_allowed = True, + formats = [ + '' + ], + is_mandatory = True, + name = '', ) + ] + ) + else: + return ServicingDirectDataSchemaDTO( + ) + + def testServicingDirectDataSchemaDTO(self): + """Test ServicingDirectDataSchemaDTO""" + def validate_instance(instance): + ServicingDirectDataSchemaDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_schema_field_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_schema_field_dto.py new file mode 100644 index 0000000000..8ad4783e00 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_schema_field_dto import ServicingDirectDataSchemaFieldDTO + +class TestServicingDirectDataSchemaFieldDTO(unittest.TestCase): + """ServicingDirectDataSchemaFieldDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataSchemaFieldDTO: + """Test ServicingDirectDataSchemaFieldDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataSchemaFieldDTO( + data_type = '', + empty_values_allowed = True, + formats = [ + '' + ], + is_mandatory = True, + name = '' + ) + else: + return ServicingDirectDataSchemaFieldDTO( + ) + + def testServicingDirectDataSchemaFieldDTO(self): + """Test ServicingDirectDataSchemaFieldDTO""" + def validate_instance(instance): + ServicingDirectDataSchemaFieldDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataSchemaFieldDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_transaction_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_transaction_dto.py new file mode 100644 index 0000000000..d1c4df979e --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_direct_data_transaction_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_transaction_dto import ServicingDirectDataTransactionDTO + +class TestServicingDirectDataTransactionDTO(unittest.TestCase): + """ServicingDirectDataTransactionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataTransactionDTO: + """Test ServicingDirectDataTransactionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataTransactionDTO( + created = '', + status = '', + tenant_code = '', + transaction_id = '', + updated = '' + ) + else: + return ServicingDirectDataTransactionDTO( + ) + + def testServicingDirectDataTransactionDTO(self): + """Test ServicingDirectDataTransactionDTO""" + def validate_instance(instance): + ServicingDirectDataTransactionDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataTransactionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_transaction_start_response_dto.py new file mode 100644 index 0000000000..0db45712ba --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_transaction_start_response_dto import ServicingDirectDataTransactionStartResponseDTO + +class TestServicingDirectDataTransactionStartResponseDTO(unittest.TestCase): + """ServicingDirectDataTransactionStartResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataTransactionStartResponseDTO: + """Test ServicingDirectDataTransactionStartResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataTransactionStartResponseDTO( + transaction_id = '' + ) + else: + return ServicingDirectDataTransactionStartResponseDTO( + ) + + def testServicingDirectDataTransactionStartResponseDTO(self): + """Test ServicingDirectDataTransactionStartResponseDTO""" + def validate_instance(instance): + ServicingDirectDataTransactionStartResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataTransactionStartResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_direct_data_upload_file_response_dto.py b/src/visier_api_data_in/test/test_servicing_direct_data_upload_file_response_dto.py new file mode 100644 index 0000000000..0017556d06 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_direct_data_upload_file_response_dto import ServicingDirectDataUploadFileResponseDTO + +class TestServicingDirectDataUploadFileResponseDTO(unittest.TestCase): + """ServicingDirectDataUploadFileResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDirectDataUploadFileResponseDTO: + """Test ServicingDirectDataUploadFileResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDirectDataUploadFileResponseDTO( + message = '', + status = '', + transaction_id = '' + ) + else: + return ServicingDirectDataUploadFileResponseDTO( + ) + + def testServicingDirectDataUploadFileResponseDTO(self): + """Test ServicingDirectDataUploadFileResponseDTO""" + def validate_instance(instance): + ServicingDirectDataUploadFileResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDirectDataUploadFileResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_job_id_response.py b/src/visier_api_data_in/test/test_servicing_job_id_response.py new file mode 100644 index 0000000000..2bc5d81abc --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_job_id_response import ServicingJobIdResponse + +class TestServicingJobIdResponse(unittest.TestCase): + """ServicingJobIdResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingJobIdResponse: + """Test ServicingJobIdResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingJobIdResponse( + job_id = '' + ) + else: + return ServicingJobIdResponse( + ) + + def testServicingJobIdResponse(self): + """Test ServicingJobIdResponse""" + def validate_instance(instance): + ServicingJobIdResponse.model_validate(inst_req_only) + instance_deserialized = ServicingJobIdResponse.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 deleted file mode 100644 index 4bae69650e..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 62542ddd55..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 075ea251a5..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 712b66a909..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 254493cfdf..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 979bfbb3a6..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index d86dfe8542..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index fcb7a41089..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index c460eccfbf..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_direct_data_upload_file_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index f8b00a8825..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 7a92acae9d..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 1163af3308..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index ff68af08d0..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index 431da56ddd..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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 deleted file mode 100644 index b29a617611..0000000000 --- a/src/visier_api_data_in/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback 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_servicing_tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_tenant_data_upload_status_response_dto.py new file mode 100644 index 0000000000..15b85fb2fd --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_data_upload_status_response_dto import ServicingTenantDataUploadStatusResponseDTO + +class TestServicingTenantDataUploadStatusResponseDTO(unittest.TestCase): + """ServicingTenantDataUploadStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantDataUploadStatusResponseDTO: + """Test ServicingTenantDataUploadStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantDataUploadStatusResponseDTO( + included = True, + upload_time = '' + ) + else: + return ServicingTenantDataUploadStatusResponseDTO( + ) + + def testServicingTenantDataUploadStatusResponseDTO(self): + """Test ServicingTenantDataUploadStatusResponseDTO""" + def validate_instance(instance): + ServicingTenantDataUploadStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantDataUploadStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/test/test_servicing_tenant_data_upload_update_status_response_dto.py new file mode 100644 index 0000000000..d3bbe6e3e9 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_data_upload_update_status_response_dto import ServicingTenantDataUploadUpdateStatusResponseDTO + +class TestServicingTenantDataUploadUpdateStatusResponseDTO(unittest.TestCase): + """ServicingTenantDataUploadUpdateStatusResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantDataUploadUpdateStatusResponseDTO: + """Test ServicingTenantDataUploadUpdateStatusResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantDataUploadUpdateStatusResponseDTO( + message = '', + status = '', + tenant_code = '', + upload_time = '' + ) + else: + return ServicingTenantDataUploadUpdateStatusResponseDTO( + ) + + def testServicingTenantDataUploadUpdateStatusResponseDTO(self): + """Test ServicingTenantDataUploadUpdateStatusResponseDTO""" + def validate_instance(instance): + ServicingTenantDataUploadUpdateStatusResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantDataUploadUpdateStatusResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/test/test_servicing_tenant_data_uploads_list_response_dto.py new file mode 100644 index 0000000000..50d4ceb833 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_data_uploads_list_response_dto import ServicingTenantDataUploadsListResponseDTO + +class TestServicingTenantDataUploadsListResponseDTO(unittest.TestCase): + """ServicingTenantDataUploadsListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantDataUploadsListResponseDTO: + """Test ServicingTenantDataUploadsListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantDataUploadsListResponseDTO( + limit = 56, + start = 56, + tenants = [ + visier_api_data_in.models.servicing/tenant_data_uploads_response_dto.servicing.TenantDataUploadsResponseDTO( + tenant_code = '', + uploads = [ + visier_api_data_in.models.servicing/tenant_data_upload_status_response_dto.servicing.TenantDataUploadStatusResponseDTO( + included = True, + upload_time = '', ) + ], ) + ] + ) + else: + return ServicingTenantDataUploadsListResponseDTO( + ) + + def testServicingTenantDataUploadsListResponseDTO(self): + """Test ServicingTenantDataUploadsListResponseDTO""" + def validate_instance(instance): + ServicingTenantDataUploadsListResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantDataUploadsListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_tenant_data_uploads_response_dto.py b/src/visier_api_data_in/test/test_servicing_tenant_data_uploads_response_dto.py new file mode 100644 index 0000000000..acce151fb0 --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_data_uploads_response_dto import ServicingTenantDataUploadsResponseDTO + +class TestServicingTenantDataUploadsResponseDTO(unittest.TestCase): + """ServicingTenantDataUploadsResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantDataUploadsResponseDTO: + """Test ServicingTenantDataUploadsResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantDataUploadsResponseDTO( + tenant_code = '', + uploads = [ + visier_api_data_in.models.servicing/tenant_data_upload_status_response_dto.servicing.TenantDataUploadStatusResponseDTO( + included = True, + upload_time = '', ) + ] + ) + else: + return ServicingTenantDataUploadsResponseDTO( + ) + + def testServicingTenantDataUploadsResponseDTO(self): + """Test ServicingTenantDataUploadsResponseDTO""" + def validate_instance(instance): + ServicingTenantDataUploadsResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantDataUploadsResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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_tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/test/test_servicing_tenant_data_uploads_update_response_dto.py new file mode 100644 index 0000000000..0831ea5faa --- /dev/null +++ b/src/visier_api_data_in/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback 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_tenant_data_uploads_update_response_dto import ServicingTenantDataUploadsUpdateResponseDTO + +class TestServicingTenantDataUploadsUpdateResponseDTO(unittest.TestCase): + """ServicingTenantDataUploadsUpdateResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingTenantDataUploadsUpdateResponseDTO: + """Test ServicingTenantDataUploadsUpdateResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingTenantDataUploadsUpdateResponseDTO( + total_failures = 56, + total_success = 56, + uploads = [ + visier_api_data_in.models.servicing/tenant_data_upload_update_status_response_dto.servicing.TenantDataUploadUpdateStatusResponseDTO( + message = '', + status = '', + tenant_code = '', + upload_time = '', ) + ] + ) + else: + return ServicingTenantDataUploadsUpdateResponseDTO( + ) + + def testServicingTenantDataUploadsUpdateResponseDTO(self): + """Test ServicingTenantDataUploadsUpdateResponseDTO""" + def validate_instance(instance): + ServicingTenantDataUploadsUpdateResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingTenantDataUploadsUpdateResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = self.make_instance(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 a907026690..dfef4b3859 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/__init__.py b/src/visier_api_data_in/visier_api_data_in/__init__.py index f0ac7360a4..f1fc61e20f 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1793" +__version__ = "0.99201.1830" # import apis into sdk package from visier_api_data_in.api.data_and_job_handling_api import DataAndJobHandlingApi @@ -28,30 +28,30 @@ # import models into sdk package -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_assign_connector_credentials_by_tenant_response_dto import AdminAssignConnectorCredentialsByTenantResponseDTO +from visier_api_data_in.models.admin_assign_connector_credentials_response_dto import AdminAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_assign_connector_with_credentials_response_dto import AdminAssignConnectorWithCredentialsResponseDTO +from visier_api_data_in.models.admin_assigned_credential_info_response_dto import AdminAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_connector_info_response_dto import AdminConnectorInfoResponseDTO +from visier_api_data_in.models.admin_connector_setting_request_dto import AdminConnectorSettingRequestDTO +from visier_api_data_in.models.admin_connector_setting_response_dto import AdminConnectorSettingResponseDTO +from visier_api_data_in.models.admin_connector_settings_response_dto import AdminConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_data_import_definition_apidto import AdminDataImportDefinitionAPIDTO +from visier_api_data_in.models.admin_data_import_definitions_apidto import AdminDataImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_data_version_and_date_dto import AdminDataVersionAndDateDTO +from visier_api_data_in.models.admin_extractor_setting_apidto import AdminExtractorSettingAPIDTO +from visier_api_data_in.models.admin_extractor_setting_key_value_apidto import AdminExtractorSettingKeyValueAPIDTO +from visier_api_data_in.models.admin_extractor_settings_apidto import AdminExtractorSettingsAPIDTO 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.admin_multiple_tenant_data_versions_details_dto import AdminMultipleTenantDataVersionsDetailsDTO +from visier_api_data_in.models.admin_multiple_tenant_data_versions_list_dto import AdminMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_set_connector_setting_request_dto import AdminSetConnectorSettingRequestDTO +from visier_api_data_in.models.admin_set_connector_setting_response_dto import AdminSetConnectorSettingResponseDTO +from visier_api_data_in.models.admin_set_connector_settings_request_dto import AdminSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_set_connector_settings_response_dto import AdminSetConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_tenant_connector_settings_request_dto import AdminTenantConnectorSettingsRequestDTO 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 @@ -87,84 +87,86 @@ 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_adp_auth_params_dto import DesignerAdpAuthParamsDTO +from visier_api_data_in.models.designer_bamboo_auth_params_dto import DesignerBambooAuthParamsDTO +from visier_api_data_in.models.designer_basic_s3_auth_params_dto import DesignerBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_big_query_auth_params_dto import DesignerBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_big_query_service_account_params_dto import DesignerBigQueryServiceAccountParamsDTO +from visier_api_data_in.models.designer_copy_s3_auth_params_dto import DesignerCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_credential_creation_api_response_dto import DesignerCredentialCreationAPIResponseDTO 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.designer_data_provider_auth_information_dto import DesignerDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_data_provider_auth_params_dto import DesignerDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_data_provider_basic_information_dto import DesignerDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_data_provider_basic_metadata_dto import DesignerDataProviderBasicMetadataDTO +from visier_api_data_in.models.designer_dayforce_v2_auth_params_dto import DesignerDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_dimensions_auth_params_dto import DesignerDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_extractor_credential_apidto import DesignerExtractorCredentialAPIDTO +from visier_api_data_in.models.designer_extractor_credentials_apidto import DesignerExtractorCredentialsAPIDTO +from visier_api_data_in.models.designer_fusion_auth_params_dto import DesignerFusionAuthParamsDTO +from visier_api_data_in.models.designer_gong_auth_params_dto import DesignerGongAuthParamsDTO +from visier_api_data_in.models.designer_google_sheets_auth_params_dto import DesignerGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_google_workspace_auth_params_dto import DesignerGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_greenhouse_auth_params_dto import DesignerGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_icims_auth_params_dto import DesignerIcimsAuthParamsDTO +from visier_api_data_in.models.designer_internal_s3_auth_params_dto import DesignerInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_jdbc_auth_params_dto import DesignerJdbcAuthParamsDTO +from visier_api_data_in.models.designer_jira_auth_params_dto import DesignerJiraAuthParamsDTO +from visier_api_data_in.models.designer_jira_connect_params_dto import DesignerJiraConnectParamsDTO +from visier_api_data_in.models.designer_lever_auth_params_dto import DesignerLeverAuthParamsDTO +from visier_api_data_in.models.designer_medallia_auth_params_dto import DesignerMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_microsoft365_auth_params_dto import DesignerMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_my_sql_auth_params_dto import DesignerMySqlAuthParamsDTO +from visier_api_data_in.models.designer_namely_auth_params_dto import DesignerNamelyAuthParamsDTO +from visier_api_data_in.models.designer_oracle_db_auth_params_dto import DesignerOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_push_data_column_definition_dto import DesignerPushDataColumnDefinitionDTO +from visier_api_data_in.models.designer_push_data_source_definition_dto import DesignerPushDataSourceDefinitionDTO +from visier_api_data_in.models.designer_push_data_source_definitions_dto import DesignerPushDataSourceDefinitionsDTO +from visier_api_data_in.models.designer_qualtrics_auth_params_dto import DesignerQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_redshift_auth_params_dto import DesignerRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_auth_params_dto import DesignerSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_v2_auth_params_dto import DesignerSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_service_now_auth_params_dto import DesignerServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_service_now_v2_auth_params_dto import DesignerServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_slack_auth_params_dto import DesignerSlackAuthParamsDTO +from visier_api_data_in.models.designer_snowflake_auth_params_dto import DesignerSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_sql_server_auth_params_dto import DesignerSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_subject_missing_access_dto import DesignerSubjectMissingAccessDTO +from visier_api_data_in.models.designer_success_factors_auth_params_dto import DesignerSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_success_factors_o_auth_params_dto import DesignerSuccessFactorsOAuthParamsDTO +from visier_api_data_in.models.designer_ultimate_auth_params_dto import DesignerUltimateAuthParamsDTO +from visier_api_data_in.models.designer_willow_auth_params_dto import DesignerWillowAuthParamsDTO +from visier_api_data_in.models.designer_workday_auth_params_dto import DesignerWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_workday_o_auth_params_dto import DesignerWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_workday_raas_auth_params_dto import DesignerWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_workday_refresh_token_params_dto import DesignerWorkdayRefreshTokenParamsDTO +from visier_api_data_in.models.designer_zoom_auth_params_dto import DesignerZoomAuthParamsDTO from visier_api_data_in.models.direct_data_upload_file_response_dto import DirectDataUploadFileResponseDTO -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.dp_cancel_job_batch_from_job_id_dto import DpCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_job_cancellation_result_dto import DpJobCancellationResultDTO +from visier_api_data_in.models.dp_job_cancellation_results_dto import DpJobCancellationResultsDTO 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_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.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.servicing_data_categories_response_dto import ServicingDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_data_category_response_dto import ServicingDataCategoryResponseDTO +from visier_api_data_in.models.servicing_direct_data_job_config_dto import ServicingDirectDataJobConfigDTO +from visier_api_data_in.models.servicing_direct_data_job_status_response_dto import ServicingDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_direct_data_list_transactions_response_dto import ServicingDirectDataListTransactionsResponseDTO +from visier_api_data_in.models.servicing_direct_data_load_config_dto import ServicingDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_direct_data_schema_dto import ServicingDirectDataSchemaDTO +from visier_api_data_in.models.servicing_direct_data_schema_field_dto import ServicingDirectDataSchemaFieldDTO +from visier_api_data_in.models.servicing_direct_data_transaction_dto import ServicingDirectDataTransactionDTO +from visier_api_data_in.models.servicing_direct_data_transaction_start_response_dto import ServicingDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_direct_data_upload_file_response_dto import ServicingDirectDataUploadFileResponseDTO +from visier_api_data_in.models.servicing_job_id_response import ServicingJobIdResponse +from visier_api_data_in.models.servicing_tenant_data_upload_status_response_dto import ServicingTenantDataUploadStatusResponseDTO +from visier_api_data_in.models.servicing_tenant_data_upload_update_status_response_dto import ServicingTenantDataUploadUpdateStatusResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_list_response_dto import ServicingTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_response_dto import ServicingTenantDataUploadsResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_update_response_dto import ServicingTenantDataUploadsUpdateResponseDTO from visier_api_data_in.models.status import Status 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 9f0a41819d..12b271cca7 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -23,15 +23,15 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr from typing import Optional from typing_extensions import Annotated -from visier_api_data_in.models.admin_data_transfers_import_definitions_apidto import AdminDataTransfersImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_assign_connector_credentials_response_dto import AdminAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_data_import_definitions_apidto import AdminDataImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_extractor_settings_apidto import AdminExtractorSettingsAPIDTO 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.admin_multiple_tenant_data_versions_list_dto import AdminMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_set_connector_settings_request_dto import AdminSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_set_connector_settings_response_dto import AdminSetConnectorSettingsResponseDTO 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 @@ -47,15 +47,15 @@ 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 +from visier_api_data_in.models.designer_credential_creation_api_response_dto import DesignerCredentialCreationAPIResponseDTO +from visier_api_data_in.models.designer_data_provider_auth_information_dto import DesignerDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_extractor_credentials_apidto import DesignerExtractorCredentialsAPIDTO +from visier_api_data_in.models.dp_cancel_job_batch_from_job_id_dto import DpCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_job_cancellation_results_dto import DpJobCancellationResultsDTO +from visier_api_data_in.models.servicing_data_categories_response_dto import ServicingDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_job_id_response import ServicingJobIdResponse +from visier_api_data_in.models.servicing_tenant_data_uploads_list_response_dto import ServicingTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_update_response_dto import ServicingTenantDataUploadsUpdateResponseDTO import visier_api_data_in.models @@ -88,7 +88,7 @@ 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, - ) -> ServicingPublicapiTransfersJobIdResponse: + ) -> ServicingJobIdResponse: """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`. @@ -129,7 +129,7 @@ def adhoc_consolidated_analytics_job( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -160,7 +160,7 @@ 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[ServicingPublicapiTransfersJobIdResponse]: + ) -> ApiResponse[ServicingJobIdResponse]: """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`. @@ -201,7 +201,7 @@ def adhoc_consolidated_analytics_job_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -273,7 +273,7 @@ def adhoc_consolidated_analytics_job_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -381,7 +381,7 @@ 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, - ) -> ServicingPublicapiTransfersJobIdResponse: + ) -> ServicingJobIdResponse: """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. @@ -422,7 +422,7 @@ def adhoc_extraction_job( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -453,7 +453,7 @@ 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[ServicingPublicapiTransfersJobIdResponse]: + ) -> ApiResponse[ServicingJobIdResponse]: """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. @@ -494,7 +494,7 @@ def adhoc_extraction_job_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -566,7 +566,7 @@ def adhoc_extraction_job_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -674,7 +674,7 @@ 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, - ) -> ServicingPublicapiTransfersJobIdResponse: + ) -> ServicingJobIdResponse: """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. @@ -715,7 +715,7 @@ def adhoc_processing_jobs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -746,7 +746,7 @@ 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[ServicingPublicapiTransfersJobIdResponse]: + ) -> ApiResponse[ServicingJobIdResponse]: """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. @@ -787,7 +787,7 @@ def adhoc_processing_jobs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -859,7 +859,7 @@ def adhoc_processing_jobs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersJobIdResponse", + '200': "ServicingJobIdResponse", } response_data = self.api_client.call_api( *_param, @@ -967,7 +967,7 @@ 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, - ) -> AdminTransfersAssignConnectorCredentialsResponseDTO: + ) -> AdminAssignConnectorCredentialsResponseDTO: """Assign connector credentials to data connectors Assign a connector credential to a data connector. @@ -1008,7 +1008,7 @@ def assign_connector_credential( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", + '200': "AdminAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1039,7 +1039,7 @@ 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[AdminTransfersAssignConnectorCredentialsResponseDTO]: + ) -> ApiResponse[AdminAssignConnectorCredentialsResponseDTO]: """Assign connector credentials to data connectors Assign a connector credential to a data connector. @@ -1080,7 +1080,7 @@ def assign_connector_credential_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", + '200': "AdminAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1152,7 +1152,7 @@ def assign_connector_credential_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AdminTransfersAssignConnectorCredentialsResponseDTO", + '200': "AdminAssignConnectorCredentialsResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1246,7 +1246,7 @@ def _assign_connector_credential_serialize( @validate_call def cancel_jobs( self, - dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, + dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO, 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, - ) -> DpTransfersJobCancellationResultsDTO: + ) -> DpJobCancellationResultsDTO: """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 dp_transfers_cancel_job_batch_from_job_id_dto: (required) - :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO + :param dp_cancel_job_batch_from_job_id_dto: (required) + :type dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO :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( - dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, + dp_cancel_job_batch_from_job_id_dto=dp_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': "DpTransfersJobCancellationResultsDTO", + '200': "DpJobCancellationResultsDTO", } response_data = self.api_client.call_api( *_param, @@ -1318,7 +1318,7 @@ def cancel_jobs( @validate_call def cancel_jobs_with_http_info( self, - dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, + dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO, 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[DpTransfersJobCancellationResultsDTO]: + ) -> ApiResponse[DpJobCancellationResultsDTO]: """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 dp_transfers_cancel_job_batch_from_job_id_dto: (required) - :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO + :param dp_cancel_job_batch_from_job_id_dto: (required) + :type dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO :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( - dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, + dp_cancel_job_batch_from_job_id_dto=dp_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': "DpTransfersJobCancellationResultsDTO", + '200': "DpJobCancellationResultsDTO", } 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, - dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO, + dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO, 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 dp_transfers_cancel_job_batch_from_job_id_dto: (required) - :type dp_transfers_cancel_job_batch_from_job_id_dto: DpTransfersCancelJobBatchFromJobIdDTO + :param dp_cancel_job_batch_from_job_id_dto: (required) + :type dp_cancel_job_batch_from_job_id_dto: DpCancelJobBatchFromJobIdDTO :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( - dp_transfers_cancel_job_batch_from_job_id_dto=dp_transfers_cancel_job_batch_from_job_id_dto, + dp_cancel_job_batch_from_job_id_dto=dp_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': "DpTransfersJobCancellationResultsDTO", + '200': "DpJobCancellationResultsDTO", } response_data = self.api_client.call_api( *_param, @@ -1456,7 +1456,7 @@ def cancel_jobs_without_preload_content( def _cancel_jobs_serialize( self, - dp_transfers_cancel_job_batch_from_job_id_dto, + dp_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 dp_transfers_cancel_job_batch_from_job_id_dto is not None: - _body_params = dp_transfers_cancel_job_batch_from_job_id_dto + if dp_cancel_job_batch_from_job_id_dto is not None: + _body_params = dp_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, - designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, + designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO, 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, - ) -> DesignerTransfersCredentialCreationAPIResponseDTO: + ) -> DesignerCredentialCreationAPIResponseDTO: """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 designer_transfers_data_provider_auth_information_dto: (required) - :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO + :param designer_data_provider_auth_information_dto: (required) + :type designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO :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( - designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, + designer_data_provider_auth_information_dto=designer_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': "DesignerTransfersCredentialCreationAPIResponseDTO", + '200': "DesignerCredentialCreationAPIResponseDTO", } 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, - designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, + designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO, 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[DesignerTransfersCredentialCreationAPIResponseDTO]: + ) -> ApiResponse[DesignerCredentialCreationAPIResponseDTO]: """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 designer_transfers_data_provider_auth_information_dto: (required) - :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO + :param designer_data_provider_auth_information_dto: (required) + :type designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO :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( - designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, + designer_data_provider_auth_information_dto=designer_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': "DesignerTransfersCredentialCreationAPIResponseDTO", + '200': "DesignerCredentialCreationAPIResponseDTO", } 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, - designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO, + designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO, 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 designer_transfers_data_provider_auth_information_dto: (required) - :type designer_transfers_data_provider_auth_information_dto: DesignerTransfersDataProviderAuthInformationDTO + :param designer_data_provider_auth_information_dto: (required) + :type designer_data_provider_auth_information_dto: DesignerDataProviderAuthInformationDTO :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( - designer_transfers_data_provider_auth_information_dto=designer_transfers_data_provider_auth_information_dto, + designer_data_provider_auth_information_dto=designer_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': "DesignerTransfersCredentialCreationAPIResponseDTO", + '200': "DesignerCredentialCreationAPIResponseDTO", } 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, - designer_transfers_data_provider_auth_information_dto, + designer_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 designer_transfers_data_provider_auth_information_dto is not None: - _body_params = designer_transfers_data_provider_auth_information_dto + if designer_data_provider_auth_information_dto is not None: + _body_params = designer_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, - ) -> DesignerTransfersExtractorCredentialsAPIDTO: + ) -> DesignerExtractorCredentialsAPIDTO: """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': "DesignerTransfersExtractorCredentialsAPIDTO", + '200': "DesignerExtractorCredentialsAPIDTO", } 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[DesignerTransfersExtractorCredentialsAPIDTO]: + ) -> ApiResponse[DesignerExtractorCredentialsAPIDTO]: """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': "DesignerTransfersExtractorCredentialsAPIDTO", + '200': "DesignerExtractorCredentialsAPIDTO", } 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': "DesignerTransfersExtractorCredentialsAPIDTO", + '200': "DesignerExtractorCredentialsAPIDTO", } 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, - ) -> AdminDataTransfersImportDefinitionsAPIDTO: + ) -> AdminDataImportDefinitionsAPIDTO: """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': "AdminDataTransfersImportDefinitionsAPIDTO", + '200': "AdminDataImportDefinitionsAPIDTO", } 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[AdminDataTransfersImportDefinitionsAPIDTO]: + ) -> ApiResponse[AdminDataImportDefinitionsAPIDTO]: """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': "AdminDataTransfersImportDefinitionsAPIDTO", + '200': "AdminDataImportDefinitionsAPIDTO", } 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': "AdminDataTransfersImportDefinitionsAPIDTO", + '200': "AdminDataImportDefinitionsAPIDTO", } response_data = self.api_client.call_api( *_param, @@ -3365,7 +3365,7 @@ 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, - ) -> ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO: + ) -> ServicingTenantDataUploadsUpdateResponseDTO: """Exclude data uploads Exclude either a specified list of data uploads or all data uploads for each analytic tenant. @@ -3406,7 +3406,7 @@ def exclude_data_uplaods( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3437,7 +3437,7 @@ 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[ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO]: + ) -> ApiResponse[ServicingTenantDataUploadsUpdateResponseDTO]: """Exclude data uploads Exclude either a specified list of data uploads or all data uploads for each analytic tenant. @@ -3478,7 +3478,7 @@ def exclude_data_uplaods_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -3550,7 +3550,7 @@ def exclude_data_uplaods_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4006,7 +4006,7 @@ 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, - ) -> ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO: + ) -> ServicingTenantDataUploadsUpdateResponseDTO: """Include data uploads Include either the specified list of data uploads or all data uploads for each analytic tenant. @@ -4047,7 +4047,7 @@ def include_data_uploads( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4078,7 +4078,7 @@ 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[ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO]: + ) -> ApiResponse[ServicingTenantDataUploadsUpdateResponseDTO]: """Include data uploads Include either the specified list of data uploads or all data uploads for each analytic tenant. @@ -4119,7 +4119,7 @@ def include_data_uploads_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -4191,7 +4191,7 @@ def include_data_uploads_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersTenantDataUploadsUpdateResponseDTO", + '200': "ServicingTenantDataUploadsUpdateResponseDTO", } 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, - ) -> AdminTransfersMultipleTenantDataVersionsListDTO: + ) -> AdminMultipleTenantDataVersionsListDTO: """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': "AdminTransfersMultipleTenantDataVersionsListDTO", + '200': "AdminMultipleTenantDataVersionsListDTO", } 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[AdminTransfersMultipleTenantDataVersionsListDTO]: + ) -> ApiResponse[AdminMultipleTenantDataVersionsListDTO]: """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': "AdminTransfersMultipleTenantDataVersionsListDTO", + '200': "AdminMultipleTenantDataVersionsListDTO", } 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': "AdminTransfersMultipleTenantDataVersionsListDTO", + '200': "AdminMultipleTenantDataVersionsListDTO", } 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, - ) -> AdminTransfersExtractorSettingsAPIDTO: + ) -> AdminExtractorSettingsAPIDTO: """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': "AdminTransfersExtractorSettingsAPIDTO", + '200': "AdminExtractorSettingsAPIDTO", } 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[AdminTransfersExtractorSettingsAPIDTO]: + ) -> ApiResponse[AdminExtractorSettingsAPIDTO]: """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': "AdminTransfersExtractorSettingsAPIDTO", + '200': "AdminExtractorSettingsAPIDTO", } 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': "AdminTransfersExtractorSettingsAPIDTO", + '200': "AdminExtractorSettingsAPIDTO", } 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, - ) -> ServicingPublicapiTransfersDataCategoriesResponseDTO: + ) -> ServicingDataCategoriesResponseDTO: """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': "ServicingPublicapiTransfersDataCategoriesResponseDTO", + '200': "ServicingDataCategoriesResponseDTO", } 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[ServicingPublicapiTransfersDataCategoriesResponseDTO]: + ) -> ApiResponse[ServicingDataCategoriesResponseDTO]: """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': "ServicingPublicapiTransfersDataCategoriesResponseDTO", + '200': "ServicingDataCategoriesResponseDTO", } 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': "ServicingPublicapiTransfersDataCategoriesResponseDTO", + '200': "ServicingDataCategoriesResponseDTO", } 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, - ) -> ServicingPublicapiTransfersTenantDataUploadsListResponseDTO: + ) -> ServicingTenantDataUploadsListResponseDTO: """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': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", + '200': "ServicingTenantDataUploadsListResponseDTO", } 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[ServicingPublicapiTransfersTenantDataUploadsListResponseDTO]: + ) -> ApiResponse[ServicingTenantDataUploadsListResponseDTO]: """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': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", + '200': "ServicingTenantDataUploadsListResponseDTO", } 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': "ServicingPublicapiTransfersTenantDataUploadsListResponseDTO", + '200': "ServicingTenantDataUploadsListResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -7469,7 +7469,7 @@ def _retrieve_data_uploads_serialize( @validate_call def set_connector_setting( self, - admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, + admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO, 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, - ) -> AdminTransfersSetConnectorSettingsResponseDTO: + ) -> AdminSetConnectorSettingsResponseDTO: """Update data connector settings Define the settings for one or more data connectors. To find the available settings, see `Retrieve data connector settings`. - :param admin_transfers_set_connector_settings_request_dto: (required) - :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO + :param admin_set_connector_settings_request_dto: (required) + :type admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO :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( - admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, + admin_set_connector_settings_request_dto=admin_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': "AdminTransfersSetConnectorSettingsResponseDTO", + '200': "AdminSetConnectorSettingsResponseDTO", } 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, - admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, + admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO, 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[AdminTransfersSetConnectorSettingsResponseDTO]: + ) -> ApiResponse[AdminSetConnectorSettingsResponseDTO]: """Update data connector settings Define the settings for one or more data connectors. To find the available settings, see `Retrieve data connector settings`. - :param admin_transfers_set_connector_settings_request_dto: (required) - :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO + :param admin_set_connector_settings_request_dto: (required) + :type admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO :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( - admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, + admin_set_connector_settings_request_dto=admin_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': "AdminTransfersSetConnectorSettingsResponseDTO", + '200': "AdminSetConnectorSettingsResponseDTO", } 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, - admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO, + admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO, 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 admin_transfers_set_connector_settings_request_dto: (required) - :type admin_transfers_set_connector_settings_request_dto: AdminTransfersSetConnectorSettingsRequestDTO + :param admin_set_connector_settings_request_dto: (required) + :type admin_set_connector_settings_request_dto: AdminSetConnectorSettingsRequestDTO :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( - admin_transfers_set_connector_settings_request_dto=admin_transfers_set_connector_settings_request_dto, + admin_set_connector_settings_request_dto=admin_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': "AdminTransfersSetConnectorSettingsResponseDTO", + '200': "AdminSetConnectorSettingsResponseDTO", } 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, - admin_transfers_set_connector_settings_request_dto, + admin_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 admin_transfers_set_connector_settings_request_dto is not None: - _body_params = admin_transfers_set_connector_settings_request_dto + if admin_set_connector_settings_request_dto is not None: + _body_params = admin_set_connector_settings_request_dto # 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 bc89d46c08..f025a4b20c 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -28,7 +28,7 @@ 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 +from visier_api_data_in.models.designer_push_data_source_definitions_dto import DesignerPushDataSourceDefinitionsDTO 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, - ) -> DesignerTransfersPushDataSourceDefinitionsDTO: + ) -> DesignerPushDataSourceDefinitionsDTO: """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': "DesignerTransfersPushDataSourceDefinitionsDTO", + '200': "DesignerPushDataSourceDefinitionsDTO", } 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[DesignerTransfersPushDataSourceDefinitionsDTO]: + ) -> ApiResponse[DesignerPushDataSourceDefinitionsDTO]: """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': "DesignerTransfersPushDataSourceDefinitionsDTO", + '200': "DesignerPushDataSourceDefinitionsDTO", } 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': "DesignerTransfersPushDataSourceDefinitionsDTO", + '200': "DesignerPushDataSourceDefinitionsDTO", } 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 bb3d871151..0059e2aa08 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -40,7 +40,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def v1_data_upload_files_filename_put( + def file_upload( self, filename: Annotated[StrictStr, Field(description="The filename of the data file to upload, including the file extension (such as .zip or .csv).")], 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, @@ -90,7 +90,7 @@ def v1_data_upload_files_filename_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_upload_files_filename_put_serialize( + _param = self._file_upload_serialize( filename=filename, target_tenant_id=target_tenant_id, body=body, @@ -116,7 +116,7 @@ def v1_data_upload_files_filename_put( @validate_call - def v1_data_upload_files_filename_put_with_http_info( + def file_upload_with_http_info( self, filename: Annotated[StrictStr, Field(description="The filename of the data file to upload, including the file extension (such as .zip or .csv).")], 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, @@ -166,7 +166,7 @@ def v1_data_upload_files_filename_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_upload_files_filename_put_serialize( + _param = self._file_upload_serialize( filename=filename, target_tenant_id=target_tenant_id, body=body, @@ -192,7 +192,7 @@ def v1_data_upload_files_filename_put_with_http_info( @validate_call - def v1_data_upload_files_filename_put_without_preload_content( + def file_upload_without_preload_content( self, filename: Annotated[StrictStr, Field(description="The filename of the data file to upload, including the file extension (such as .zip or .csv).")], 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, @@ -242,7 +242,7 @@ def v1_data_upload_files_filename_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_upload_files_filename_put_serialize( + _param = self._file_upload_serialize( filename=filename, target_tenant_id=target_tenant_id, body=body, @@ -262,7 +262,7 @@ def v1_data_upload_files_filename_put_without_preload_content( return response_data.response - def _v1_data_upload_files_filename_put_serialize( + def _file_upload_serialize( self, filename, target_tenant_id, 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 55c0161cc3..a664ddb5c4 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,11 +24,12 @@ from typing import Optional, Tuple, Union from typing_extensions import Annotated 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 +from visier_api_data_in.models.servicing_direct_data_job_status_response_dto import ServicingDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_direct_data_list_transactions_response_dto import ServicingDirectDataListTransactionsResponseDTO +from visier_api_data_in.models.servicing_direct_data_load_config_dto import ServicingDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_direct_data_schema_dto import ServicingDirectDataSchemaDTO +from visier_api_data_in.models.servicing_direct_data_transaction_start_response_dto import ServicingDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_direct_data_upload_file_response_dto import ServicingDirectDataUploadFileResponseDTO import visier_api_data_in.models @@ -62,7 +63,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, - ) -> ServicingPublicapiTransfersDirectDataUploadFileResponseDTO: + ) -> ServicingDirectDataUploadFileResponseDTO: """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. @@ -106,7 +107,7 @@ def commit_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -138,7 +139,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[ServicingPublicapiTransfersDirectDataUploadFileResponseDTO]: + ) -> ApiResponse[ServicingDirectDataUploadFileResponseDTO]: """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. @@ -182,7 +183,7 @@ def commit_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -258,7 +259,7 @@ def commit_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -356,7 +357,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, - ) -> ServicingPublicapiTransfersDirectDataLoadConfigDTO: + ) -> ServicingDirectDataLoadConfigDTO: """Get the direct data intake configuration Get the direct data intake configuration. @@ -397,7 +398,7 @@ def get_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -428,7 +429,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[ServicingPublicapiTransfersDirectDataLoadConfigDTO]: + ) -> ApiResponse[ServicingDirectDataLoadConfigDTO]: """Get the direct data intake configuration Get the direct data intake configuration. @@ -469,7 +470,7 @@ def get_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -541,7 +542,7 @@ def get_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -637,7 +638,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, - ) -> ServicingPublicapiTransfersDirectDataJobStatusResponseDTO: + ) -> ServicingDirectDataJobStatusResponseDTO: """Check transaction status Retrieve the status of a committed transaction's processing job. @@ -681,7 +682,7 @@ def job_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", + '200': "ServicingDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -713,7 +714,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[ServicingPublicapiTransfersDirectDataJobStatusResponseDTO]: + ) -> ApiResponse[ServicingDirectDataJobStatusResponseDTO]: """Check transaction status Retrieve the status of a committed transaction's processing job. @@ -757,7 +758,7 @@ def job_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", + '200': "ServicingDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -833,7 +834,7 @@ def job_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataJobStatusResponseDTO", + '200': "ServicingDirectDataJobStatusResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -914,6 +915,613 @@ def _job_status_serialize( + @validate_call + def list_transactions( + self, + draft_id: Annotated[StrictStr, Field(description="Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingDirectDataListTransactionsResponseDTO: + """Retrieve a list of open transactions + + Get a list of all open transactions. Doesn't return committed transactions or rolled back transactions. + + :param draft_id: Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version. (required) + :type draft_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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_transactions_serialize( + draft_id=draft_id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataListTransactionsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_data_in.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def list_transactions_with_http_info( + self, + draft_id: Annotated[StrictStr, Field(description="Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingDirectDataListTransactionsResponseDTO]: + """Retrieve a list of open transactions + + Get a list of all open transactions. Doesn't return committed transactions or rolled back transactions. + + :param draft_id: Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version. (required) + :type draft_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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_transactions_serialize( + draft_id=draft_id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataListTransactionsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_data_in.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def list_transactions_without_preload_content( + self, + draft_id: Annotated[StrictStr, Field(description="Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version.")], + 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, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Retrieve a list of open transactions + + Get a list of all open transactions. Doesn't return committed transactions or rolled back transactions. + + :param draft_id: Optionally specify the unique identifier of a project to retrieve open transactions from. Currently, the only supported value is `prod` to retrieve open transactions for the production version. (required) + :type draft_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. + :type target_tenant_id: str + :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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_transactions_serialize( + draft_id=draft_id, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataListTransactionsResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_transactions_serialize( + self, + draft_id, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if draft_id is not None: + _path_params['draftId'] = draft_id + # process the query parameters + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/data/directloads/{draftId}/transactions', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def load_sample_data( + self, + draft_id: StrictStr, + transaction_id: StrictStr, + object_name: StrictStr, + sample_name: Annotated[Optional[StrictStr], Field(description="The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ServicingDirectDataUploadFileResponseDTO: + """Load sample data + + Load sample data in a previously-created transaction. The data is not processed in Visier until you commit the transaction. Sample data is available for `employee`, `employee_exit`, `employment_start`, and `organization_hierarchy`. + + :param draft_id: (required) + :type draft_id: str + :param transaction_id: (required) + :type transaction_id: str + :param object_name: (required) + :type object_name: str + :param sample_name: The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension. + :type sample_name: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._load_sample_data_serialize( + draft_id=draft_id, + transaction_id=transaction_id, + object_name=object_name, + sample_name=sample_name, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataUploadFileResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_data_in.models, + response_data=response_data, + response_types_map=_response_types_map + ).data + + + @validate_call + def load_sample_data_with_http_info( + self, + draft_id: StrictStr, + transaction_id: StrictStr, + object_name: StrictStr, + sample_name: Annotated[Optional[StrictStr], Field(description="The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ServicingDirectDataUploadFileResponseDTO]: + """Load sample data + + Load sample data in a previously-created transaction. The data is not processed in Visier until you commit the transaction. Sample data is available for `employee`, `employee_exit`, `employment_start`, and `organization_hierarchy`. + + :param draft_id: (required) + :type draft_id: str + :param transaction_id: (required) + :type transaction_id: str + :param object_name: (required) + :type object_name: str + :param sample_name: The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension. + :type sample_name: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._load_sample_data_serialize( + draft_id=draft_id, + transaction_id=transaction_id, + object_name=object_name, + sample_name=sample_name, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataUploadFileResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + model_package=visier_api_data_in.models, + response_data=response_data, + response_types_map=_response_types_map + ) + + + @validate_call + def load_sample_data_without_preload_content( + self, + draft_id: StrictStr, + transaction_id: StrictStr, + object_name: StrictStr, + sample_name: Annotated[Optional[StrictStr], Field(description="The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension.")] = 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[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Load sample data + + Load sample data in a previously-created transaction. The data is not processed in Visier until you commit the transaction. Sample data is available for `employee`, `employee_exit`, `employment_start`, and `organization_hierarchy`. + + :param draft_id: (required) + :type draft_id: str + :param transaction_id: (required) + :type transaction_id: str + :param object_name: (required) + :type object_name: str + :param sample_name: The name of the target object to load sample data. Sample data is available for: * `employee`: The Employee subject. * `employee_exit`: The Employee Exit event. * `employment_start`: The Employment Start event. * `organization_hierarchy`: The Organization Hierarchy dimension. + :type sample_name: 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 _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 + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._load_sample_data_serialize( + draft_id=draft_id, + transaction_id=transaction_id, + object_name=object_name, + sample_name=sample_name, + target_tenant_id=target_tenant_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ServicingDirectDataUploadFileResponseDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _load_sample_data_serialize( + self, + draft_id, + transaction_id, + object_name, + sample_name, + target_tenant_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if draft_id is not None: + _path_params['draftId'] = draft_id + if transaction_id is not None: + _path_params['transactionId'] = transaction_id + if object_name is not None: + _path_params['objectName'] = object_name + # process the query parameters + if sample_name is not None: + + _query_params.append(('sampleName', sample_name)) + + # process the header parameters + if target_tenant_id is not None: + _header_params['TargetTenantID'] = target_tenant_id + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'CookieAuth', + 'ApiKeyAuth', + 'OAuth2Auth', + 'OAuth2Auth', + 'BearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/data/directloads/{draftId}/transactions/{transactionId}/{objectName}/sample-data', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def object_schema( self, @@ -932,7 +1540,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, - ) -> ServicingPublicapiTransfersDirectDataSchemaDTO: + ) -> ServicingDirectDataSchemaDTO: """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. @@ -976,7 +1584,7 @@ def object_schema( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", + '200': "ServicingDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1008,7 +1616,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[ServicingPublicapiTransfersDirectDataSchemaDTO]: + ) -> ApiResponse[ServicingDirectDataSchemaDTO]: """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. @@ -1052,7 +1660,7 @@ def object_schema_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", + '200': "ServicingDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1128,7 +1736,7 @@ def object_schema_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataSchemaDTO", + '200': "ServicingDirectDataSchemaDTO", } response_data = self.api_client.call_api( *_param, @@ -1213,7 +1821,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.")], - servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, + servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO, 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, @@ -1227,15 +1835,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, - ) -> ServicingPublicapiTransfersDirectDataLoadConfigDTO: + ) -> ServicingDirectDataLoadConfigDTO: """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 servicing_publicapi_transfers_direct_data_load_config_dto: (required) - :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO + :param servicing_direct_data_load_config_dto: (required) + :type servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO :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 @@ -1262,7 +1870,7 @@ def put_config( _param = self._put_config_serialize( draft_id=draft_id, - servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, + servicing_direct_data_load_config_dto=servicing_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1271,7 +1879,7 @@ def put_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1289,7 +1897,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.")], - servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, + servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO, 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, @@ -1303,15 +1911,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[ServicingPublicapiTransfersDirectDataLoadConfigDTO]: + ) -> ApiResponse[ServicingDirectDataLoadConfigDTO]: """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 servicing_publicapi_transfers_direct_data_load_config_dto: (required) - :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO + :param servicing_direct_data_load_config_dto: (required) + :type servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO :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 @@ -1338,7 +1946,7 @@ def put_config_with_http_info( _param = self._put_config_serialize( draft_id=draft_id, - servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, + servicing_direct_data_load_config_dto=servicing_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1347,7 +1955,7 @@ def put_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1365,7 +1973,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.")], - servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO, + servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO, 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, @@ -1386,8 +1994,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 servicing_publicapi_transfers_direct_data_load_config_dto: (required) - :type servicing_publicapi_transfers_direct_data_load_config_dto: ServicingPublicapiTransfersDirectDataLoadConfigDTO + :param servicing_direct_data_load_config_dto: (required) + :type servicing_direct_data_load_config_dto: ServicingDirectDataLoadConfigDTO :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 @@ -1414,7 +2022,7 @@ def put_config_without_preload_content( _param = self._put_config_serialize( draft_id=draft_id, - servicing_publicapi_transfers_direct_data_load_config_dto=servicing_publicapi_transfers_direct_data_load_config_dto, + servicing_direct_data_load_config_dto=servicing_direct_data_load_config_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1423,7 +2031,7 @@ def put_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataLoadConfigDTO", + '200': "ServicingDirectDataLoadConfigDTO", } response_data = self.api_client.call_api( *_param, @@ -1435,7 +2043,7 @@ def put_config_without_preload_content( def _put_config_serialize( self, draft_id, - servicing_publicapi_transfers_direct_data_load_config_dto, + servicing_direct_data_load_config_dto, target_tenant_id, _request_auth, _content_type, @@ -1464,8 +2072,8 @@ def _put_config_serialize( _header_params['TargetTenantID'] = target_tenant_id # process the form parameters # process the body parameter - if servicing_publicapi_transfers_direct_data_load_config_dto is not None: - _body_params = servicing_publicapi_transfers_direct_data_load_config_dto + if servicing_direct_data_load_config_dto is not None: + _body_params = servicing_direct_data_load_config_dto # set the HTTP header `Accept` @@ -1535,7 +2143,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, - ) -> ServicingPublicapiTransfersDirectDataUploadFileResponseDTO: + ) -> ServicingDirectDataUploadFileResponseDTO: """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. @@ -1579,7 +2187,7 @@ def rollback_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1611,7 +2219,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[ServicingPublicapiTransfersDirectDataUploadFileResponseDTO]: + ) -> ApiResponse[ServicingDirectDataUploadFileResponseDTO]: """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. @@ -1655,7 +2263,7 @@ def rollback_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1731,7 +2339,7 @@ def rollback_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataUploadFileResponseDTO", + '200': "ServicingDirectDataUploadFileResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1829,7 +2437,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, - ) -> ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO: + ) -> ServicingDirectDataTransactionStartResponseDTO: """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. @@ -1870,7 +2478,7 @@ def start_transaction( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", + '200': "ServicingDirectDataTransactionStartResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -1901,7 +2509,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[ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO]: + ) -> ApiResponse[ServicingDirectDataTransactionStartResponseDTO]: """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. @@ -1942,7 +2550,7 @@ def start_transaction_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", + '200': "ServicingDirectDataTransactionStartResponseDTO", } response_data = self.api_client.call_api( *_param, @@ -2014,7 +2622,7 @@ def start_transaction_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ServicingPublicapiTransfersDirectDataTransactionStartResponseDTO", + '200': "ServicingDirectDataTransactionStartResponseDTO", } 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 21098ab1de..be7aa4f764 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/planning_data_load_api.py b/src/visier_api_data_in/visier_api_data_in/api/planning_data_load_api.py index ef4aa20497..cb2eb858eb 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 bb54e56611..cc046b8adb 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,30 +16,30 @@ # import models into model package -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_assign_connector_credentials_by_tenant_response_dto import AdminAssignConnectorCredentialsByTenantResponseDTO +from visier_api_data_in.models.admin_assign_connector_credentials_response_dto import AdminAssignConnectorCredentialsResponseDTO +from visier_api_data_in.models.admin_assign_connector_with_credentials_response_dto import AdminAssignConnectorWithCredentialsResponseDTO +from visier_api_data_in.models.admin_assigned_credential_info_response_dto import AdminAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_connector_info_response_dto import AdminConnectorInfoResponseDTO +from visier_api_data_in.models.admin_connector_setting_request_dto import AdminConnectorSettingRequestDTO +from visier_api_data_in.models.admin_connector_setting_response_dto import AdminConnectorSettingResponseDTO +from visier_api_data_in.models.admin_connector_settings_response_dto import AdminConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_data_import_definition_apidto import AdminDataImportDefinitionAPIDTO +from visier_api_data_in.models.admin_data_import_definitions_apidto import AdminDataImportDefinitionsAPIDTO +from visier_api_data_in.models.admin_data_version_and_date_dto import AdminDataVersionAndDateDTO +from visier_api_data_in.models.admin_extractor_setting_apidto import AdminExtractorSettingAPIDTO +from visier_api_data_in.models.admin_extractor_setting_key_value_apidto import AdminExtractorSettingKeyValueAPIDTO +from visier_api_data_in.models.admin_extractor_settings_apidto import AdminExtractorSettingsAPIDTO 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.admin_multiple_tenant_data_versions_details_dto import AdminMultipleTenantDataVersionsDetailsDTO +from visier_api_data_in.models.admin_multiple_tenant_data_versions_list_dto import AdminMultipleTenantDataVersionsListDTO +from visier_api_data_in.models.admin_set_connector_setting_request_dto import AdminSetConnectorSettingRequestDTO +from visier_api_data_in.models.admin_set_connector_setting_response_dto import AdminSetConnectorSettingResponseDTO +from visier_api_data_in.models.admin_set_connector_settings_request_dto import AdminSetConnectorSettingsRequestDTO +from visier_api_data_in.models.admin_set_connector_settings_response_dto import AdminSetConnectorSettingsResponseDTO +from visier_api_data_in.models.admin_tenant_connector_settings_request_dto import AdminTenantConnectorSettingsRequestDTO 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 @@ -75,84 +75,86 @@ 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_adp_auth_params_dto import DesignerAdpAuthParamsDTO +from visier_api_data_in.models.designer_bamboo_auth_params_dto import DesignerBambooAuthParamsDTO +from visier_api_data_in.models.designer_basic_s3_auth_params_dto import DesignerBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_big_query_auth_params_dto import DesignerBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_big_query_service_account_params_dto import DesignerBigQueryServiceAccountParamsDTO +from visier_api_data_in.models.designer_copy_s3_auth_params_dto import DesignerCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_credential_creation_api_response_dto import DesignerCredentialCreationAPIResponseDTO 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.designer_data_provider_auth_information_dto import DesignerDataProviderAuthInformationDTO +from visier_api_data_in.models.designer_data_provider_auth_params_dto import DesignerDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_data_provider_basic_information_dto import DesignerDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_data_provider_basic_metadata_dto import DesignerDataProviderBasicMetadataDTO +from visier_api_data_in.models.designer_dayforce_v2_auth_params_dto import DesignerDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_dimensions_auth_params_dto import DesignerDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_extractor_credential_apidto import DesignerExtractorCredentialAPIDTO +from visier_api_data_in.models.designer_extractor_credentials_apidto import DesignerExtractorCredentialsAPIDTO +from visier_api_data_in.models.designer_fusion_auth_params_dto import DesignerFusionAuthParamsDTO +from visier_api_data_in.models.designer_gong_auth_params_dto import DesignerGongAuthParamsDTO +from visier_api_data_in.models.designer_google_sheets_auth_params_dto import DesignerGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_google_workspace_auth_params_dto import DesignerGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_greenhouse_auth_params_dto import DesignerGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_icims_auth_params_dto import DesignerIcimsAuthParamsDTO +from visier_api_data_in.models.designer_internal_s3_auth_params_dto import DesignerInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_jdbc_auth_params_dto import DesignerJdbcAuthParamsDTO +from visier_api_data_in.models.designer_jira_auth_params_dto import DesignerJiraAuthParamsDTO +from visier_api_data_in.models.designer_jira_connect_params_dto import DesignerJiraConnectParamsDTO +from visier_api_data_in.models.designer_lever_auth_params_dto import DesignerLeverAuthParamsDTO +from visier_api_data_in.models.designer_medallia_auth_params_dto import DesignerMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_microsoft365_auth_params_dto import DesignerMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_my_sql_auth_params_dto import DesignerMySqlAuthParamsDTO +from visier_api_data_in.models.designer_namely_auth_params_dto import DesignerNamelyAuthParamsDTO +from visier_api_data_in.models.designer_oracle_db_auth_params_dto import DesignerOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_push_data_column_definition_dto import DesignerPushDataColumnDefinitionDTO +from visier_api_data_in.models.designer_push_data_source_definition_dto import DesignerPushDataSourceDefinitionDTO +from visier_api_data_in.models.designer_push_data_source_definitions_dto import DesignerPushDataSourceDefinitionsDTO +from visier_api_data_in.models.designer_qualtrics_auth_params_dto import DesignerQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_redshift_auth_params_dto import DesignerRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_auth_params_dto import DesignerSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_v2_auth_params_dto import DesignerSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_service_now_auth_params_dto import DesignerServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_service_now_v2_auth_params_dto import DesignerServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_slack_auth_params_dto import DesignerSlackAuthParamsDTO +from visier_api_data_in.models.designer_snowflake_auth_params_dto import DesignerSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_sql_server_auth_params_dto import DesignerSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_subject_missing_access_dto import DesignerSubjectMissingAccessDTO +from visier_api_data_in.models.designer_success_factors_auth_params_dto import DesignerSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_success_factors_o_auth_params_dto import DesignerSuccessFactorsOAuthParamsDTO +from visier_api_data_in.models.designer_ultimate_auth_params_dto import DesignerUltimateAuthParamsDTO +from visier_api_data_in.models.designer_willow_auth_params_dto import DesignerWillowAuthParamsDTO +from visier_api_data_in.models.designer_workday_auth_params_dto import DesignerWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_workday_o_auth_params_dto import DesignerWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_workday_raas_auth_params_dto import DesignerWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_workday_refresh_token_params_dto import DesignerWorkdayRefreshTokenParamsDTO +from visier_api_data_in.models.designer_zoom_auth_params_dto import DesignerZoomAuthParamsDTO from visier_api_data_in.models.direct_data_upload_file_response_dto import DirectDataUploadFileResponseDTO -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.dp_cancel_job_batch_from_job_id_dto import DpCancelJobBatchFromJobIdDTO +from visier_api_data_in.models.dp_job_cancellation_result_dto import DpJobCancellationResultDTO +from visier_api_data_in.models.dp_job_cancellation_results_dto import DpJobCancellationResultsDTO 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_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.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.servicing_data_categories_response_dto import ServicingDataCategoriesResponseDTO +from visier_api_data_in.models.servicing_data_category_response_dto import ServicingDataCategoryResponseDTO +from visier_api_data_in.models.servicing_direct_data_job_config_dto import ServicingDirectDataJobConfigDTO +from visier_api_data_in.models.servicing_direct_data_job_status_response_dto import ServicingDirectDataJobStatusResponseDTO +from visier_api_data_in.models.servicing_direct_data_list_transactions_response_dto import ServicingDirectDataListTransactionsResponseDTO +from visier_api_data_in.models.servicing_direct_data_load_config_dto import ServicingDirectDataLoadConfigDTO +from visier_api_data_in.models.servicing_direct_data_schema_dto import ServicingDirectDataSchemaDTO +from visier_api_data_in.models.servicing_direct_data_schema_field_dto import ServicingDirectDataSchemaFieldDTO +from visier_api_data_in.models.servicing_direct_data_transaction_dto import ServicingDirectDataTransactionDTO +from visier_api_data_in.models.servicing_direct_data_transaction_start_response_dto import ServicingDirectDataTransactionStartResponseDTO +from visier_api_data_in.models.servicing_direct_data_upload_file_response_dto import ServicingDirectDataUploadFileResponseDTO +from visier_api_data_in.models.servicing_job_id_response import ServicingJobIdResponse +from visier_api_data_in.models.servicing_tenant_data_upload_status_response_dto import ServicingTenantDataUploadStatusResponseDTO +from visier_api_data_in.models.servicing_tenant_data_upload_update_status_response_dto import ServicingTenantDataUploadUpdateStatusResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_list_response_dto import ServicingTenantDataUploadsListResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_response_dto import ServicingTenantDataUploadsResponseDTO +from visier_api_data_in.models.servicing_tenant_data_uploads_update_response_dto import ServicingTenantDataUploadsUpdateResponseDTO from visier_api_data_in.models.status import Status diff --git a/src/visier_api_data_in/visier_api_data_in/models/admin_assign_connector_credentials_by_tenant_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_assign_connector_credentials_by_tenant_response_dto.py new file mode 100644 index 0000000000..91b4eb0ddc --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_assign_connector_with_credentials_response_dto import AdminAssignConnectorWithCredentialsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminAssignConnectorCredentialsByTenantResponseDTO(BaseModel): + """ + AdminAssignConnectorCredentialsByTenantResponseDTO + """ # noqa: E501 + connectors: Optional[List[AdminAssignConnectorWithCredentialsResponseDTO]] = 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 AdminAssignConnectorCredentialsByTenantResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminAssignConnectorCredentialsByTenantResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminAssignConnectorWithCredentialsResponseDTO.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_assign_connector_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_assign_connector_credentials_response_dto.py new file mode 100644 index 0000000000..d77b7b8744 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_assign_connector_credentials_by_tenant_response_dto import AdminAssignConnectorCredentialsByTenantResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminAssignConnectorCredentialsResponseDTO(BaseModel): + """ + AdminAssignConnectorCredentialsResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminAssignConnectorCredentialsByTenantResponseDTO]] = 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 AdminAssignConnectorCredentialsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminAssignConnectorCredentialsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminAssignConnectorCredentialsByTenantResponseDTO.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_assign_connector_with_credentials_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_assign_connector_with_credentials_response_dto.py new file mode 100644 index 0000000000..99df4ed3a2 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_assigned_credential_info_response_dto import AdminAssignedCredentialInfoResponseDTO +from visier_api_data_in.models.admin_connector_info_response_dto import AdminConnectorInfoResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminAssignConnectorWithCredentialsResponseDTO(BaseModel): + """ + AdminAssignConnectorWithCredentialsResponseDTO + """ # noqa: E501 + connector: Optional[AdminConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was assigned a connector credential.") + credential: Optional[AdminAssignedCredentialInfoResponseDTO] = 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 AdminAssignConnectorWithCredentialsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminAssignConnectorWithCredentialsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector": AdminConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, + "credential": AdminAssignedCredentialInfoResponseDTO.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_assigned_credential_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_assigned_credential_info_response_dto.py new file mode 100644 index 0000000000..dfe8fb1433 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminAssignedCredentialInfoResponseDTO(BaseModel): + """ + AdminAssignedCredentialInfoResponseDTO + """ # 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 AdminAssignedCredentialInfoResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminAssignedCredentialInfoResponseDTO 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_connector_info_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_connector_info_response_dto.py new file mode 100644 index 0000000000..ff46f18c2b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConnectorInfoResponseDTO(BaseModel): + """ + AdminConnectorInfoResponseDTO + """ # 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 AdminConnectorInfoResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConnectorInfoResponseDTO 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_connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_connector_setting_request_dto.py new file mode 100644 index 0000000000..c6d11a870c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConnectorSettingRequestDTO(BaseModel): + """ + AdminConnectorSettingRequestDTO + """ # 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 AdminConnectorSettingRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConnectorSettingRequestDTO 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_connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_connector_setting_response_dto.py new file mode 100644 index 0000000000..fa2019f1d0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminConnectorSettingResponseDTO(BaseModel): + """ + AdminConnectorSettingResponseDTO + """ # 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 AdminConnectorSettingResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminConnectorSettingResponseDTO 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_connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_connector_settings_response_dto.py new file mode 100644 index 0000000000..a71e3598d1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_connector_info_response_dto import AdminConnectorInfoResponseDTO +from visier_api_data_in.models.admin_connector_setting_response_dto import AdminConnectorSettingResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminConnectorSettingsResponseDTO(BaseModel): + """ + AdminConnectorSettingsResponseDTO + """ # noqa: E501 + connector: Optional[AdminConnectorInfoResponseDTO] = Field(default=None, description="The data connector that was updated in the API request.") + settings: Optional[List[AdminConnectorSettingResponseDTO]] = 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 AdminConnectorSettingsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AdminConnectorSettingsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector": AdminConnectorInfoResponseDTO.from_dict(obj["connector"]) if obj.get("connector") is not None else None, + "settings": [AdminConnectorSettingResponseDTO.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_data_import_definition_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_import_definition_apidto.py new file mode 100644 index 0000000000..26b62fbf8a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_data_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminDataImportDefinitionAPIDTO(BaseModel): + """ + AdminDataImportDefinitionAPIDTO + """ # 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 AdminDataImportDefinitionAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminDataImportDefinitionAPIDTO 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_import_definitions_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_import_definitions_apidto.py new file mode 100644 index 0000000000..37a3101bba --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_data_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_import_definition_apidto import AdminDataImportDefinitionAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminDataImportDefinitionsAPIDTO(BaseModel): + """ + AdminDataImportDefinitionsAPIDTO + """ # noqa: E501 + data_connectors: Optional[List[AdminDataImportDefinitionAPIDTO]] = 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 AdminDataImportDefinitionsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminDataImportDefinitionsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataConnectors": [AdminDataImportDefinitionAPIDTO.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_data_transfers_import_definition_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_import_definition_apidto.py deleted file mode 100644 index 7f235c9cef..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4eaf69a58a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_data_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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_data_version_and_date_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_data_version_and_date_dto.py new file mode 100644 index 0000000000..8e8174b8d7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminDataVersionAndDateDTO(BaseModel): + """ + AdminDataVersionAndDateDTO + """ # 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 AdminDataVersionAndDateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminDataVersionAndDateDTO 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_extractor_setting_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_extractor_setting_apidto.py new file mode 100644 index 0000000000..bce9ecddcb --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_extractor_setting_key_value_apidto import AdminExtractorSettingKeyValueAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminExtractorSettingAPIDTO(BaseModel): + """ + AdminExtractorSettingAPIDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + connector_settings: Optional[List[AdminExtractorSettingKeyValueAPIDTO]] = 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 AdminExtractorSettingAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminExtractorSettingAPIDTO 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": [AdminExtractorSettingKeyValueAPIDTO.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_extractor_setting_key_value_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_extractor_setting_key_value_apidto.py new file mode 100644 index 0000000000..b1d8b0fa23 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AdminExtractorSettingKeyValueAPIDTO(BaseModel): + """ + AdminExtractorSettingKeyValueAPIDTO + """ # 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 AdminExtractorSettingKeyValueAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdminExtractorSettingKeyValueAPIDTO 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_extractor_settings_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_extractor_settings_apidto.py new file mode 100644 index 0000000000..b28e8e1f4b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_extractor_setting_apidto import AdminExtractorSettingAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminExtractorSettingsAPIDTO(BaseModel): + """ + AdminExtractorSettingsAPIDTO + """ # noqa: E501 + connectors: Optional[List[AdminExtractorSettingAPIDTO]] = 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 AdminExtractorSettingsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminExtractorSettingsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminExtractorSettingAPIDTO.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_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 index b94b04776b..a4d0245df5 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 66b67e7f31..5464714df3 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index ebcc25a666..12a75f0ea3 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/admin_multiple_tenant_data_versions_details_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_multiple_tenant_data_versions_details_dto.py new file mode 100644 index 0000000000..4f2bb3d5b0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_data_version_and_date_dto import AdminDataVersionAndDateDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminMultipleTenantDataVersionsDetailsDTO(BaseModel): + """ + AdminMultipleTenantDataVersionsDetailsDTO + """ # noqa: E501 + data_versions: Optional[List[AdminDataVersionAndDateDTO]] = 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 AdminMultipleTenantDataVersionsDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminMultipleTenantDataVersionsDetailsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersions": [AdminDataVersionAndDateDTO.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_multiple_tenant_data_versions_list_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_multiple_tenant_data_versions_list_dto.py new file mode 100644 index 0000000000..16a7677be5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_multiple_tenant_data_versions_details_dto import AdminMultipleTenantDataVersionsDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminMultipleTenantDataVersionsListDTO(BaseModel): + """ + AdminMultipleTenantDataVersionsListDTO + """ # 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[AdminMultipleTenantDataVersionsDetailsDTO]] = 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 AdminMultipleTenantDataVersionsListDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminMultipleTenantDataVersionsListDTO 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": [AdminMultipleTenantDataVersionsDetailsDTO.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_set_connector_setting_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_set_connector_setting_request_dto.py new file mode 100644 index 0000000000..d117218313 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_tenant_connector_settings_request_dto import AdminTenantConnectorSettingsRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminSetConnectorSettingRequestDTO(BaseModel): + """ + AdminSetConnectorSettingRequestDTO + """ # noqa: E501 + connector_id: Optional[StrictStr] = Field(default=None, description="The unique identifier associated with the data connector.", alias="connectorId") + tenants: Optional[List[AdminTenantConnectorSettingsRequestDTO]] = 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 AdminSetConnectorSettingRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminSetConnectorSettingRequestDTO 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": [AdminTenantConnectorSettingsRequestDTO.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_set_connector_setting_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_set_connector_setting_response_dto.py new file mode 100644 index 0000000000..f350062fb1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_connector_settings_response_dto import AdminConnectorSettingsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminSetConnectorSettingResponseDTO(BaseModel): + """ + AdminSetConnectorSettingResponseDTO + """ # noqa: E501 + connectors: Optional[List[AdminConnectorSettingsResponseDTO]] = 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 AdminSetConnectorSettingResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminSetConnectorSettingResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminConnectorSettingsResponseDTO.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_set_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_set_connector_settings_request_dto.py new file mode 100644 index 0000000000..3578ba663c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_set_connector_setting_request_dto import AdminSetConnectorSettingRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminSetConnectorSettingsRequestDTO(BaseModel): + """ + AdminSetConnectorSettingsRequestDTO + """ # noqa: E501 + connectors: Optional[List[AdminSetConnectorSettingRequestDTO]] = 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 AdminSetConnectorSettingsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminSetConnectorSettingsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectors": [AdminSetConnectorSettingRequestDTO.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_set_connector_settings_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_set_connector_settings_response_dto.py new file mode 100644 index 0000000000..310763ba0c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_set_connector_setting_response_dto import AdminSetConnectorSettingResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminSetConnectorSettingsResponseDTO(BaseModel): + """ + AdminSetConnectorSettingsResponseDTO + """ # noqa: E501 + tenants: Optional[List[AdminSetConnectorSettingResponseDTO]] = 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 AdminSetConnectorSettingsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminSetConnectorSettingsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tenants": [AdminSetConnectorSettingResponseDTO.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_tenant_connector_settings_request_dto.py b/src/visier_api_data_in/visier_api_data_in/models/admin_tenant_connector_settings_request_dto.py new file mode 100644 index 0000000000..2e87411d91 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/admin_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_connector_setting_request_dto import AdminConnectorSettingRequestDTO +from typing import Optional, Set +from typing_extensions import Self + +class AdminTenantConnectorSettingsRequestDTO(BaseModel): + """ + AdminTenantConnectorSettingsRequestDTO + """ # noqa: E501 + connector_settings: Optional[List[AdminConnectorSettingRequestDTO]] = 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 AdminTenantConnectorSettingsRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AdminTenantConnectorSettingsRequestDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorSettings": [AdminConnectorSettingRequestDTO.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/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 deleted file mode 100644 index 1318780f6f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 7864502297..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d08124868c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 86c8da454f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4cccf7fdf0..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 1654586db6..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 211047ac97..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0cdff05c9b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a55d7b94f7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 667567961b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 478dfbe842..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 264d0456d5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6115480528..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 6bf054ab74..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 62d3a39aa7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 83a02d0bcc..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 9a4fb3e2c9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index b5d67bc689..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 64bc1cfd9d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/admin_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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/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 index 938e2029bc..8ae13d520f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_connector.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_connector.py index b8eab5309e..b73e121cbb 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_data_load_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_request.py index e9de0d3453..a928159c26 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 15fcb4d18e..546cee3314 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_data_load_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_load_response.py index a568cea105..643be0ec9a 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 53002d722f..0e6c1d153d 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_data_version_object.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_data_version_object.py index 9f4e365e69..20e2996795 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -28,9 +28,9 @@ 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") + data_version: Optional[StrictStr] = Field(default=None, description="The data version to disable for a particular analytic tenant. If not specified, disables the latest enabled data version for the analytic tenant.", alias="dataVersion") 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"] + __properties: ClassVar[List[str]] = ["dataVersion", "tenantCode"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "dataVersions": obj.get("dataVersions"), + "dataVersion": obj.get("dataVersion"), "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 index a498bfb723..9810e4d2f4 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_disable_dv_request.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_request.py index 3d5a010294..59efa34f88 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_disable_dv_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_disable_dv_response.py index c289d3e839..5ba247403f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index ca43c2e9fc..f5b6593e4a 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index ae80b86374..9aaadf1e90 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_extraction_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_extraction_job.py index 3b68987086..02c0f9c06c 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index b23fa9e78b..79178e397b 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 796ba3c2d8..16433ebf04 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 169b54e3e0..0e7682f928 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 663c591017..6e7ba2abb0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_processing_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_processing_job.py index ad96e3d40c..a7d2b441b7 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index dfd7d4c8ec..9269b6eda4 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 21c1c20a59..e5fcedccab 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 8d938e2df4..f88385396f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 306194ffcc..c61b32c2d0 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 0161cfb2dc..40a127ff35 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_push_data_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_push_data_response.py index 1708a78a6d..e19e4778f2 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_receiving_job.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_receiving_job.py index 4ea7a8a43e..db66ef3954 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 66c1dd83c5..fe6cbda6bc 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 135025e33c..4046baba89 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_result.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_result.py index 5ba058037a..b1f06b9e87 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_source.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_source.py index 64d0df6c6b..a6d5316b53 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_start_extraction_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_extraction_response.py index f4dc8eb806..d834fffde8 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_start_transfer_response.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_start_transfer_response.py index 7b8316494c..23c7b3838c 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_tenant.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant.py index fa22ae7436..7ae0695d2f 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_tenant_and_credential.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_tenant_and_credential.py index 224662b49f..319b3c25c4 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_upload_to_exclude.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_exclude.py index ce026cc45d..0453564819 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/data_in_upload_to_include.py b/src/visier_api_data_in/visier_api_data_in/models/data_in_upload_to_include.py index 1ac77ae49c..d884fd3c80 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/designer_adp_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_adp_auth_params_dto.py new file mode 100644 index 0000000000..c3639307b9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerAdpAuthParamsDTO(BaseModel): + """ + DesignerAdpAuthParamsDTO + """ # 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 DesignerAdpAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerAdpAuthParamsDTO 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_bamboo_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_bamboo_auth_params_dto.py new file mode 100644 index 0000000000..916500940a --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerBambooAuthParamsDTO(BaseModel): + """ + DesignerBambooAuthParamsDTO + """ # 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 DesignerBambooAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerBambooAuthParamsDTO 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_basic_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_basic_s3_auth_params_dto.py new file mode 100644 index 0000000000..887b9ecbfa --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerBasicS3AuthParamsDTO(BaseModel): + """ + DesignerBasicS3AuthParamsDTO + """ # 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 DesignerBasicS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerBasicS3AuthParamsDTO 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_big_query_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_big_query_auth_params_dto.py new file mode 100644 index 0000000000..907565e1be --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_big_query_service_account_params_dto import DesignerBigQueryServiceAccountParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerBigQueryAuthParamsDTO(BaseModel): + """ + DesignerBigQueryAuthParamsDTO + """ # 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[DesignerBigQueryServiceAccountParamsDTO] = 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 DesignerBigQueryAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerBigQueryAuthParamsDTO 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": DesignerBigQueryServiceAccountParamsDTO.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_big_query_service_account_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_big_query_service_account_params_dto.py new file mode 100644 index 0000000000..1328758c2f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerBigQueryServiceAccountParamsDTO(BaseModel): + """ + DesignerBigQueryServiceAccountParamsDTO + """ # 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 DesignerBigQueryServiceAccountParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerBigQueryServiceAccountParamsDTO 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_copy_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_copy_s3_auth_params_dto.py new file mode 100644 index 0000000000..c03aa5d6f2 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCopyS3AuthParamsDTO(BaseModel): + """ + DesignerCopyS3AuthParamsDTO + """ # 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 DesignerCopyS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerCopyS3AuthParamsDTO 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_credential_creation_api_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_credential_creation_api_response_dto.py new file mode 100644 index 0000000000..83f6ae55ab --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_subject_missing_access_dto import DesignerSubjectMissingAccessDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerCredentialCreationAPIResponseDTO(BaseModel): + """ + DesignerCredentialCreationAPIResponseDTO + """ # noqa: E501 + missing_connection_properties: Optional[List[DesignerSubjectMissingAccessDTO]] = 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 DesignerCredentialCreationAPIResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerCredentialCreationAPIResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "missingConnectionProperties": [DesignerSubjectMissingAccessDTO.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_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 index 2f95a20d7f..365f60bf4c 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index 6e3907ad46..3fca5b9992 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/designer_crypto_public_key_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_key_dto.py index 189fd574b7..edde799bf9 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/designer_crypto_public_keys_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_crypto_public_keys_dto.py index ae623a7434..2b1ce266ec 100644 --- 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 @@ -5,7 +5,7 @@ Visier APIs for sending data to Visier and running data load jobs. - The version of the OpenAPI document: 22222222.99201.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/designer_data_provider_auth_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_data_provider_auth_information_dto.py new file mode 100644 index 0000000000..9ca9761c8f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_provider_auth_params_dto import DesignerDataProviderAuthParamsDTO +from visier_api_data_in.models.designer_data_provider_basic_information_dto import DesignerDataProviderBasicInformationDTO +from visier_api_data_in.models.designer_data_provider_basic_metadata_dto import DesignerDataProviderBasicMetadataDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataProviderAuthInformationDTO(BaseModel): + """ + DesignerDataProviderAuthInformationDTO + """ # noqa: E501 + data_provider_auth_params: Optional[DesignerDataProviderAuthParamsDTO] = Field(default=None, description="The authentication information for the credential.", alias="dataProviderAuthParams") + data_provider_basic_information: Optional[DesignerDataProviderBasicInformationDTO] = Field(default=None, description="The display name and description for the credential.", alias="dataProviderBasicInformation") + data_provider_metadata: Optional[DesignerDataProviderBasicMetadataDTO] = 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 DesignerDataProviderAuthInformationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerDataProviderAuthInformationDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataProviderAuthParams": DesignerDataProviderAuthParamsDTO.from_dict(obj["dataProviderAuthParams"]) if obj.get("dataProviderAuthParams") is not None else None, + "dataProviderBasicInformation": DesignerDataProviderBasicInformationDTO.from_dict(obj["dataProviderBasicInformation"]) if obj.get("dataProviderBasicInformation") is not None else None, + "dataProviderMetadata": DesignerDataProviderBasicMetadataDTO.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_data_provider_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_data_provider_auth_params_dto.py new file mode 100644 index 0000000000..3df11a6eb0 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_adp_auth_params_dto import DesignerAdpAuthParamsDTO +from visier_api_data_in.models.designer_bamboo_auth_params_dto import DesignerBambooAuthParamsDTO +from visier_api_data_in.models.designer_basic_s3_auth_params_dto import DesignerBasicS3AuthParamsDTO +from visier_api_data_in.models.designer_big_query_auth_params_dto import DesignerBigQueryAuthParamsDTO +from visier_api_data_in.models.designer_copy_s3_auth_params_dto import DesignerCopyS3AuthParamsDTO +from visier_api_data_in.models.designer_dayforce_v2_auth_params_dto import DesignerDayforceV2AuthParamsDTO +from visier_api_data_in.models.designer_dimensions_auth_params_dto import DesignerDimensionsAuthParamsDTO +from visier_api_data_in.models.designer_fusion_auth_params_dto import DesignerFusionAuthParamsDTO +from visier_api_data_in.models.designer_gong_auth_params_dto import DesignerGongAuthParamsDTO +from visier_api_data_in.models.designer_google_sheets_auth_params_dto import DesignerGoogleSheetsAuthParamsDTO +from visier_api_data_in.models.designer_google_workspace_auth_params_dto import DesignerGoogleWorkspaceAuthParamsDTO +from visier_api_data_in.models.designer_greenhouse_auth_params_dto import DesignerGreenhouseAuthParamsDTO +from visier_api_data_in.models.designer_icims_auth_params_dto import DesignerIcimsAuthParamsDTO +from visier_api_data_in.models.designer_internal_s3_auth_params_dto import DesignerInternalS3AuthParamsDTO +from visier_api_data_in.models.designer_jdbc_auth_params_dto import DesignerJdbcAuthParamsDTO +from visier_api_data_in.models.designer_jira_auth_params_dto import DesignerJiraAuthParamsDTO +from visier_api_data_in.models.designer_lever_auth_params_dto import DesignerLeverAuthParamsDTO +from visier_api_data_in.models.designer_medallia_auth_params_dto import DesignerMedalliaAuthParamsDTO +from visier_api_data_in.models.designer_microsoft365_auth_params_dto import DesignerMicrosoft365AuthParamsDTO +from visier_api_data_in.models.designer_my_sql_auth_params_dto import DesignerMySqlAuthParamsDTO +from visier_api_data_in.models.designer_namely_auth_params_dto import DesignerNamelyAuthParamsDTO +from visier_api_data_in.models.designer_oracle_db_auth_params_dto import DesignerOracleDbAuthParamsDTO +from visier_api_data_in.models.designer_qualtrics_auth_params_dto import DesignerQualtricsAuthParamsDTO +from visier_api_data_in.models.designer_redshift_auth_params_dto import DesignerRedshiftAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_auth_params_dto import DesignerSalesforceAuthParamsDTO +from visier_api_data_in.models.designer_salesforce_v2_auth_params_dto import DesignerSalesforceV2AuthParamsDTO +from visier_api_data_in.models.designer_service_now_auth_params_dto import DesignerServiceNowAuthParamsDTO +from visier_api_data_in.models.designer_service_now_v2_auth_params_dto import DesignerServiceNowV2AuthParamsDTO +from visier_api_data_in.models.designer_slack_auth_params_dto import DesignerSlackAuthParamsDTO +from visier_api_data_in.models.designer_snowflake_auth_params_dto import DesignerSnowflakeAuthParamsDTO +from visier_api_data_in.models.designer_sql_server_auth_params_dto import DesignerSqlServerAuthParamsDTO +from visier_api_data_in.models.designer_success_factors_auth_params_dto import DesignerSuccessFactorsAuthParamsDTO +from visier_api_data_in.models.designer_ultimate_auth_params_dto import DesignerUltimateAuthParamsDTO +from visier_api_data_in.models.designer_willow_auth_params_dto import DesignerWillowAuthParamsDTO +from visier_api_data_in.models.designer_workday_auth_params_dto import DesignerWorkdayAuthParamsDTO +from visier_api_data_in.models.designer_workday_raas_auth_params_dto import DesignerWorkdayRaasAuthParamsDTO +from visier_api_data_in.models.designer_zoom_auth_params_dto import DesignerZoomAuthParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataProviderAuthParamsDTO(BaseModel): + """ + DesignerDataProviderAuthParamsDTO + """ # noqa: E501 + adp_auth_params: Optional[DesignerAdpAuthParamsDTO] = Field(default=None, alias="adpAuthParams") + auth_context: Optional[StrictStr] = Field(default=None, alias="authContext") + bamboo_auth_params: Optional[DesignerBambooAuthParamsDTO] = Field(default=None, alias="bambooAuthParams") + big_query_auth_params: Optional[DesignerBigQueryAuthParamsDTO] = Field(default=None, alias="bigQueryAuthParams") + copy_s3_auth_params: Optional[DesignerCopyS3AuthParamsDTO] = Field(default=None, alias="copyS3AuthParams") + dayforce_v2_auth_params: Optional[DesignerDayforceV2AuthParamsDTO] = Field(default=None, alias="dayforceV2AuthParams") + dimensions_auth_params: Optional[DesignerDimensionsAuthParamsDTO] = Field(default=None, alias="dimensionsAuthParams") + empty_auth_params: Optional[Dict[str, Any]] = Field(default=None, alias="emptyAuthParams") + fusion_auth_params: Optional[DesignerFusionAuthParamsDTO] = Field(default=None, alias="fusionAuthParams") + gong_auth_params: Optional[DesignerGongAuthParamsDTO] = Field(default=None, alias="gongAuthParams") + google_sheets_auth_params: Optional[DesignerGoogleSheetsAuthParamsDTO] = Field(default=None, alias="googleSheetsAuthParams") + google_workspace_auth_params: Optional[DesignerGoogleWorkspaceAuthParamsDTO] = Field(default=None, alias="googleWorkspaceAuthParams") + greenhouse_auth_params: Optional[DesignerGreenhouseAuthParamsDTO] = Field(default=None, alias="greenhouseAuthParams") + has_updates: Optional[StrictBool] = Field(default=None, alias="hasUpdates") + icims_auth_params: Optional[DesignerIcimsAuthParamsDTO] = Field(default=None, alias="icimsAuthParams") + internal_s3_auth_params: Optional[DesignerInternalS3AuthParamsDTO] = Field(default=None, alias="internalS3AuthParams") + jdbc_auth_params: Optional[DesignerJdbcAuthParamsDTO] = Field(default=None, alias="jdbcAuthParams") + jira_auth_params: Optional[DesignerJiraAuthParamsDTO] = Field(default=None, alias="jiraAuthParams") + lever_auth_params: Optional[DesignerLeverAuthParamsDTO] = Field(default=None, alias="leverAuthParams") + medallia_auth_params: Optional[DesignerMedalliaAuthParamsDTO] = Field(default=None, alias="medalliaAuthParams") + ms365_auth_params: Optional[DesignerMicrosoft365AuthParamsDTO] = Field(default=None, alias="ms365AuthParams") + my_sql_auth_params: Optional[DesignerMySqlAuthParamsDTO] = Field(default=None, alias="mySqlAuthParams") + namely_auth_params: Optional[DesignerNamelyAuthParamsDTO] = Field(default=None, alias="namelyAuthParams") + oracle_db_auth_params: Optional[DesignerOracleDbAuthParamsDTO] = Field(default=None, alias="oracleDbAuthParams") + provider: Optional[StrictStr] = Field(default=None, description="The data provider associated with the credential.") + qualtrics_auth_params: Optional[DesignerQualtricsAuthParamsDTO] = Field(default=None, alias="qualtricsAuthParams") + redshift_auth_params: Optional[DesignerRedshiftAuthParamsDTO] = Field(default=None, alias="redshiftAuthParams") + s3_auth_params: Optional[DesignerBasicS3AuthParamsDTO] = Field(default=None, alias="s3AuthParams") + salesforce_auth_params: Optional[DesignerSalesforceAuthParamsDTO] = Field(default=None, alias="salesforceAuthParams") + salesforce_v2_auth_params: Optional[DesignerSalesforceV2AuthParamsDTO] = Field(default=None, alias="salesforceV2AuthParams") + service_now_auth_params: Optional[DesignerServiceNowAuthParamsDTO] = Field(default=None, alias="serviceNowAuthParams") + service_now_v2_auth_params: Optional[DesignerServiceNowV2AuthParamsDTO] = Field(default=None, alias="serviceNowV2AuthParams") + slack_auth_params: Optional[DesignerSlackAuthParamsDTO] = Field(default=None, alias="slackAuthParams") + snowflake_auth_params: Optional[DesignerSnowflakeAuthParamsDTO] = Field(default=None, alias="snowflakeAuthParams") + sql_server_auth_params: Optional[DesignerSqlServerAuthParamsDTO] = Field(default=None, alias="sqlServerAuthParams") + success_factors_auth_params: Optional[DesignerSuccessFactorsAuthParamsDTO] = Field(default=None, alias="successFactorsAuthParams") + tenant_domain_name: Optional[StrictStr] = Field(default=None, alias="tenantDomainName") + ultimate_auth_params: Optional[DesignerUltimateAuthParamsDTO] = Field(default=None, alias="ultimateAuthParams") + willow_auth_params: Optional[DesignerWillowAuthParamsDTO] = Field(default=None, alias="willowAuthParams") + workday_auth_params: Optional[DesignerWorkdayAuthParamsDTO] = Field(default=None, alias="workdayAuthParams") + workday_raas_auth_params: Optional[DesignerWorkdayRaasAuthParamsDTO] = Field(default=None, alias="workdayRaasAuthParams") + zoom_auth_params: Optional[DesignerZoomAuthParamsDTO] = 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 DesignerDataProviderAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerDataProviderAuthParamsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adpAuthParams": DesignerAdpAuthParamsDTO.from_dict(obj["adpAuthParams"]) if obj.get("adpAuthParams") is not None else None, + "authContext": obj.get("authContext"), + "bambooAuthParams": DesignerBambooAuthParamsDTO.from_dict(obj["bambooAuthParams"]) if obj.get("bambooAuthParams") is not None else None, + "bigQueryAuthParams": DesignerBigQueryAuthParamsDTO.from_dict(obj["bigQueryAuthParams"]) if obj.get("bigQueryAuthParams") is not None else None, + "copyS3AuthParams": DesignerCopyS3AuthParamsDTO.from_dict(obj["copyS3AuthParams"]) if obj.get("copyS3AuthParams") is not None else None, + "dayforceV2AuthParams": DesignerDayforceV2AuthParamsDTO.from_dict(obj["dayforceV2AuthParams"]) if obj.get("dayforceV2AuthParams") is not None else None, + "dimensionsAuthParams": DesignerDimensionsAuthParamsDTO.from_dict(obj["dimensionsAuthParams"]) if obj.get("dimensionsAuthParams") is not None else None, + "emptyAuthParams": obj.get("emptyAuthParams"), + "fusionAuthParams": DesignerFusionAuthParamsDTO.from_dict(obj["fusionAuthParams"]) if obj.get("fusionAuthParams") is not None else None, + "gongAuthParams": DesignerGongAuthParamsDTO.from_dict(obj["gongAuthParams"]) if obj.get("gongAuthParams") is not None else None, + "googleSheetsAuthParams": DesignerGoogleSheetsAuthParamsDTO.from_dict(obj["googleSheetsAuthParams"]) if obj.get("googleSheetsAuthParams") is not None else None, + "googleWorkspaceAuthParams": DesignerGoogleWorkspaceAuthParamsDTO.from_dict(obj["googleWorkspaceAuthParams"]) if obj.get("googleWorkspaceAuthParams") is not None else None, + "greenhouseAuthParams": DesignerGreenhouseAuthParamsDTO.from_dict(obj["greenhouseAuthParams"]) if obj.get("greenhouseAuthParams") is not None else None, + "hasUpdates": obj.get("hasUpdates"), + "icimsAuthParams": DesignerIcimsAuthParamsDTO.from_dict(obj["icimsAuthParams"]) if obj.get("icimsAuthParams") is not None else None, + "internalS3AuthParams": DesignerInternalS3AuthParamsDTO.from_dict(obj["internalS3AuthParams"]) if obj.get("internalS3AuthParams") is not None else None, + "jdbcAuthParams": DesignerJdbcAuthParamsDTO.from_dict(obj["jdbcAuthParams"]) if obj.get("jdbcAuthParams") is not None else None, + "jiraAuthParams": DesignerJiraAuthParamsDTO.from_dict(obj["jiraAuthParams"]) if obj.get("jiraAuthParams") is not None else None, + "leverAuthParams": DesignerLeverAuthParamsDTO.from_dict(obj["leverAuthParams"]) if obj.get("leverAuthParams") is not None else None, + "medalliaAuthParams": DesignerMedalliaAuthParamsDTO.from_dict(obj["medalliaAuthParams"]) if obj.get("medalliaAuthParams") is not None else None, + "ms365AuthParams": DesignerMicrosoft365AuthParamsDTO.from_dict(obj["ms365AuthParams"]) if obj.get("ms365AuthParams") is not None else None, + "mySqlAuthParams": DesignerMySqlAuthParamsDTO.from_dict(obj["mySqlAuthParams"]) if obj.get("mySqlAuthParams") is not None else None, + "namelyAuthParams": DesignerNamelyAuthParamsDTO.from_dict(obj["namelyAuthParams"]) if obj.get("namelyAuthParams") is not None else None, + "oracleDbAuthParams": DesignerOracleDbAuthParamsDTO.from_dict(obj["oracleDbAuthParams"]) if obj.get("oracleDbAuthParams") is not None else None, + "provider": obj.get("provider"), + "qualtricsAuthParams": DesignerQualtricsAuthParamsDTO.from_dict(obj["qualtricsAuthParams"]) if obj.get("qualtricsAuthParams") is not None else None, + "redshiftAuthParams": DesignerRedshiftAuthParamsDTO.from_dict(obj["redshiftAuthParams"]) if obj.get("redshiftAuthParams") is not None else None, + "s3AuthParams": DesignerBasicS3AuthParamsDTO.from_dict(obj["s3AuthParams"]) if obj.get("s3AuthParams") is not None else None, + "salesforceAuthParams": DesignerSalesforceAuthParamsDTO.from_dict(obj["salesforceAuthParams"]) if obj.get("salesforceAuthParams") is not None else None, + "salesforceV2AuthParams": DesignerSalesforceV2AuthParamsDTO.from_dict(obj["salesforceV2AuthParams"]) if obj.get("salesforceV2AuthParams") is not None else None, + "serviceNowAuthParams": DesignerServiceNowAuthParamsDTO.from_dict(obj["serviceNowAuthParams"]) if obj.get("serviceNowAuthParams") is not None else None, + "serviceNowV2AuthParams": DesignerServiceNowV2AuthParamsDTO.from_dict(obj["serviceNowV2AuthParams"]) if obj.get("serviceNowV2AuthParams") is not None else None, + "slackAuthParams": DesignerSlackAuthParamsDTO.from_dict(obj["slackAuthParams"]) if obj.get("slackAuthParams") is not None else None, + "snowflakeAuthParams": DesignerSnowflakeAuthParamsDTO.from_dict(obj["snowflakeAuthParams"]) if obj.get("snowflakeAuthParams") is not None else None, + "sqlServerAuthParams": DesignerSqlServerAuthParamsDTO.from_dict(obj["sqlServerAuthParams"]) if obj.get("sqlServerAuthParams") is not None else None, + "successFactorsAuthParams": DesignerSuccessFactorsAuthParamsDTO.from_dict(obj["successFactorsAuthParams"]) if obj.get("successFactorsAuthParams") is not None else None, + "tenantDomainName": obj.get("tenantDomainName"), + "ultimateAuthParams": DesignerUltimateAuthParamsDTO.from_dict(obj["ultimateAuthParams"]) if obj.get("ultimateAuthParams") is not None else None, + "willowAuthParams": DesignerWillowAuthParamsDTO.from_dict(obj["willowAuthParams"]) if obj.get("willowAuthParams") is not None else None, + "workdayAuthParams": DesignerWorkdayAuthParamsDTO.from_dict(obj["workdayAuthParams"]) if obj.get("workdayAuthParams") is not None else None, + "workdayRaasAuthParams": DesignerWorkdayRaasAuthParamsDTO.from_dict(obj["workdayRaasAuthParams"]) if obj.get("workdayRaasAuthParams") is not None else None, + "zoomAuthParams": DesignerZoomAuthParamsDTO.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_data_provider_basic_information_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_data_provider_basic_information_dto.py new file mode 100644 index 0000000000..c448168afa --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataProviderBasicInformationDTO(BaseModel): + """ + DesignerDataProviderBasicInformationDTO + """ # 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 DesignerDataProviderBasicInformationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataProviderBasicInformationDTO 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_data_provider_basic_metadata_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_data_provider_basic_metadata_dto.py new file mode 100644 index 0000000000..3cfce03226 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerDataProviderBasicMetadataDTO(BaseModel): + """ + DesignerDataProviderBasicMetadataDTO + """ # 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 DesignerDataProviderBasicMetadataDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataProviderBasicMetadataDTO 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_dayforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_dayforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..99df9850e8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDayforceV2AuthParamsDTO(BaseModel): + """ + DesignerDayforceV2AuthParamsDTO + """ # 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 DesignerDayforceV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDayforceV2AuthParamsDTO 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_dimensions_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_dimensions_auth_params_dto.py new file mode 100644 index 0000000000..582a5d6df4 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDimensionsAuthParamsDTO(BaseModel): + """ + DesignerDimensionsAuthParamsDTO + """ # 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 DesignerDimensionsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDimensionsAuthParamsDTO 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_extractor_credential_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_extractor_credential_apidto.py new file mode 100644 index 0000000000..c512dd438f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerExtractorCredentialAPIDTO(BaseModel): + """ + DesignerExtractorCredentialAPIDTO + """ # 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 DesignerExtractorCredentialAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerExtractorCredentialAPIDTO 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_extractor_credentials_apidto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_extractor_credentials_apidto.py new file mode 100644 index 0000000000..3f0d6c4e1e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_extractor_credential_apidto import DesignerExtractorCredentialAPIDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerExtractorCredentialsAPIDTO(BaseModel): + """ + DesignerExtractorCredentialsAPIDTO + """ # noqa: E501 + connector_credentials: Optional[List[DesignerExtractorCredentialAPIDTO]] = 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 DesignerExtractorCredentialsAPIDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerExtractorCredentialsAPIDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connectorCredentials": [DesignerExtractorCredentialAPIDTO.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_fusion_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_fusion_auth_params_dto.py new file mode 100644 index 0000000000..8e2a6df1e3 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerFusionAuthParamsDTO(BaseModel): + """ + DesignerFusionAuthParamsDTO + """ # 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 DesignerFusionAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerFusionAuthParamsDTO 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_gong_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_gong_auth_params_dto.py new file mode 100644 index 0000000000..9ccb37f010 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerGongAuthParamsDTO(BaseModel): + """ + DesignerGongAuthParamsDTO + """ # 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 DesignerGongAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerGongAuthParamsDTO 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_google_sheets_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_google_sheets_auth_params_dto.py new file mode 100644 index 0000000000..d9219a95ef --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerGoogleSheetsAuthParamsDTO(BaseModel): + """ + DesignerGoogleSheetsAuthParamsDTO + """ # 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 DesignerGoogleSheetsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerGoogleSheetsAuthParamsDTO 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_google_workspace_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_google_workspace_auth_params_dto.py new file mode 100644 index 0000000000..73cfbb8814 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerGoogleWorkspaceAuthParamsDTO(BaseModel): + """ + DesignerGoogleWorkspaceAuthParamsDTO + """ # 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 DesignerGoogleWorkspaceAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerGoogleWorkspaceAuthParamsDTO 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_greenhouse_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_greenhouse_auth_params_dto.py new file mode 100644 index 0000000000..4b886f1be8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerGreenhouseAuthParamsDTO(BaseModel): + """ + DesignerGreenhouseAuthParamsDTO + """ # 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 DesignerGreenhouseAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerGreenhouseAuthParamsDTO 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_icims_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_icims_auth_params_dto.py new file mode 100644 index 0000000000..37e84f6a7c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 DesignerIcimsAuthParamsDTO(BaseModel): + """ + DesignerIcimsAuthParamsDTO + """ # 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 DesignerIcimsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerIcimsAuthParamsDTO 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_internal_s3_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_internal_s3_auth_params_dto.py new file mode 100644 index 0000000000..33d6a454f7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerInternalS3AuthParamsDTO(BaseModel): + """ + DesignerInternalS3AuthParamsDTO + """ # 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 DesignerInternalS3AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerInternalS3AuthParamsDTO 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_jdbc_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_jdbc_auth_params_dto.py new file mode 100644 index 0000000000..fc0a609d46 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerJdbcAuthParamsDTO(BaseModel): + """ + DesignerJdbcAuthParamsDTO + """ # 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 DesignerJdbcAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerJdbcAuthParamsDTO 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_jira_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_jira_auth_params_dto.py new file mode 100644 index 0000000000..8eb140b6d8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_jira_connect_params_dto import DesignerJiraConnectParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerJiraAuthParamsDTO(BaseModel): + """ + DesignerJiraAuthParamsDTO + """ # noqa: E501 + api_token: Optional[StrictStr] = Field(default=None, alias="apiToken") + connect_params: Optional[DesignerJiraConnectParamsDTO] = 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 DesignerJiraAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerJiraAuthParamsDTO 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": DesignerJiraConnectParamsDTO.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_jira_connect_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_jira_connect_params_dto.py new file mode 100644 index 0000000000..1e2ad4c0b9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerJiraConnectParamsDTO(BaseModel): + """ + DesignerJiraConnectParamsDTO + """ # 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 DesignerJiraConnectParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerJiraConnectParamsDTO 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_lever_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_lever_auth_params_dto.py new file mode 100644 index 0000000000..20c1e4e86d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerLeverAuthParamsDTO(BaseModel): + """ + DesignerLeverAuthParamsDTO + """ # 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 DesignerLeverAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerLeverAuthParamsDTO 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_medallia_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_medallia_auth_params_dto.py new file mode 100644 index 0000000000..97e3f56998 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerMedalliaAuthParamsDTO(BaseModel): + """ + DesignerMedalliaAuthParamsDTO + """ # 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 DesignerMedalliaAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerMedalliaAuthParamsDTO 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_microsoft365_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_microsoft365_auth_params_dto.py new file mode 100644 index 0000000000..5ce177f348 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerMicrosoft365AuthParamsDTO(BaseModel): + """ + DesignerMicrosoft365AuthParamsDTO + """ # 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 DesignerMicrosoft365AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerMicrosoft365AuthParamsDTO 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_my_sql_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_my_sql_auth_params_dto.py new file mode 100644 index 0000000000..c5d92fb30f --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerMySqlAuthParamsDTO(BaseModel): + """ + DesignerMySqlAuthParamsDTO + """ # 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 DesignerMySqlAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerMySqlAuthParamsDTO 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_namely_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_namely_auth_params_dto.py new file mode 100644 index 0000000000..171ae62a57 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerNamelyAuthParamsDTO(BaseModel): + """ + DesignerNamelyAuthParamsDTO + """ # 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 DesignerNamelyAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerNamelyAuthParamsDTO 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_oracle_db_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_oracle_db_auth_params_dto.py new file mode 100644 index 0000000000..debde69f07 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerOracleDbAuthParamsDTO(BaseModel): + """ + DesignerOracleDbAuthParamsDTO + """ # 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 DesignerOracleDbAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerOracleDbAuthParamsDTO 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_push_data_column_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_push_data_column_definition_dto.py new file mode 100644 index 0000000000..a25b9bda52 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerPushDataColumnDefinitionDTO(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 DesignerPushDataColumnDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerPushDataColumnDefinitionDTO 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_push_data_source_definition_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_push_data_source_definition_dto.py new file mode 100644 index 0000000000..8a83877d2e --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_push_data_column_definition_dto import DesignerPushDataColumnDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerPushDataSourceDefinitionDTO(BaseModel): + """ + Details of each existing source. + """ # noqa: E501 + columns: Optional[List[DesignerPushDataColumnDefinitionDTO]] = 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 DesignerPushDataSourceDefinitionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerPushDataSourceDefinitionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DesignerPushDataColumnDefinitionDTO.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_push_data_source_definitions_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_push_data_source_definitions_dto.py new file mode 100644 index 0000000000..eb7becf670 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_push_data_source_definition_dto import DesignerPushDataSourceDefinitionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerPushDataSourceDefinitionsDTO(BaseModel): + """ + The existing sources. + """ # noqa: E501 + sources: Optional[List[DesignerPushDataSourceDefinitionDTO]] = 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 DesignerPushDataSourceDefinitionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerPushDataSourceDefinitionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sources": [DesignerPushDataSourceDefinitionDTO.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_qualtrics_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_qualtrics_auth_params_dto.py new file mode 100644 index 0000000000..9ae46418ac --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerQualtricsAuthParamsDTO(BaseModel): + """ + DesignerQualtricsAuthParamsDTO + """ # 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 DesignerQualtricsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerQualtricsAuthParamsDTO 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_redshift_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_redshift_auth_params_dto.py new file mode 100644 index 0000000000..30d0e49b5c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerRedshiftAuthParamsDTO(BaseModel): + """ + DesignerRedshiftAuthParamsDTO + """ # 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 DesignerRedshiftAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerRedshiftAuthParamsDTO 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_salesforce_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_salesforce_auth_params_dto.py new file mode 100644 index 0000000000..a83b873aca --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSalesforceAuthParamsDTO(BaseModel): + """ + DesignerSalesforceAuthParamsDTO + """ # 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 DesignerSalesforceAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSalesforceAuthParamsDTO 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_salesforce_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_salesforce_v2_auth_params_dto.py new file mode 100644 index 0000000000..9e487d4a03 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSalesforceV2AuthParamsDTO(BaseModel): + """ + DesignerSalesforceV2AuthParamsDTO + """ # 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 DesignerSalesforceV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSalesforceV2AuthParamsDTO 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_service_now_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_service_now_auth_params_dto.py new file mode 100644 index 0000000000..487d731cb6 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerServiceNowAuthParamsDTO(BaseModel): + """ + DesignerServiceNowAuthParamsDTO + """ # 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 DesignerServiceNowAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerServiceNowAuthParamsDTO 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_service_now_v2_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_service_now_v2_auth_params_dto.py new file mode 100644 index 0000000000..5aff80d555 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerServiceNowV2AuthParamsDTO(BaseModel): + """ + DesignerServiceNowV2AuthParamsDTO + """ # 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 DesignerServiceNowV2AuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerServiceNowV2AuthParamsDTO 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_slack_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_slack_auth_params_dto.py new file mode 100644 index 0000000000..a0be381116 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSlackAuthParamsDTO(BaseModel): + """ + DesignerSlackAuthParamsDTO + """ # 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 DesignerSlackAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSlackAuthParamsDTO 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_snowflake_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_snowflake_auth_params_dto.py new file mode 100644 index 0000000000..2d1586f532 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSnowflakeAuthParamsDTO(BaseModel): + """ + DesignerSnowflakeAuthParamsDTO + """ # 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 DesignerSnowflakeAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSnowflakeAuthParamsDTO 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_sql_server_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_sql_server_auth_params_dto.py new file mode 100644 index 0000000000..96f7ae7fc9 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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 DesignerSqlServerAuthParamsDTO(BaseModel): + """ + DesignerSqlServerAuthParamsDTO + """ # 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 DesignerSqlServerAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSqlServerAuthParamsDTO 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_subject_missing_access_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_subject_missing_access_dto.py new file mode 100644 index 0000000000..4ef63f53b7 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 DesignerSubjectMissingAccessDTO(BaseModel): + """ + DesignerSubjectMissingAccessDTO + """ # 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 DesignerSubjectMissingAccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSubjectMissingAccessDTO 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_success_factors_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_success_factors_auth_params_dto.py new file mode 100644 index 0000000000..0c54a734cf --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_success_factors_o_auth_params_dto import DesignerSuccessFactorsOAuthParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSuccessFactorsAuthParamsDTO(BaseModel): + """ + DesignerSuccessFactorsAuthParamsDTO + """ # noqa: E501 + company_id: Optional[StrictStr] = Field(default=None, alias="companyID") + host_domain_name: Optional[StrictStr] = Field(default=None, alias="hostDomainName") + o_auth: Optional[DesignerSuccessFactorsOAuthParamsDTO] = 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 DesignerSuccessFactorsAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerSuccessFactorsAuthParamsDTO 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": DesignerSuccessFactorsOAuthParamsDTO.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_success_factors_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_success_factors_o_auth_params_dto.py new file mode 100644 index 0000000000..4cbde42f7d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerSuccessFactorsOAuthParamsDTO(BaseModel): + """ + DesignerSuccessFactorsOAuthParamsDTO + """ # 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 DesignerSuccessFactorsOAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerSuccessFactorsOAuthParamsDTO 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_adp_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_adp_auth_params_dto.py deleted file mode 100644 index ad9d48646d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 74078d02fd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 73d3d139bb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 602c26544a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 50655e54c8..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 585068a287..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6e65a0763c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c49a024198..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5142c4f9a5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 761d6e5232..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 322f343225..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 564d9a9946..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2e918c0cd8..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 58f8b64d6d..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a8f9714cb9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7838f8b59e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 263d1d00e5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2179a4d1b1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index c7254995dd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6d23c67e3a..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 678563c298..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 7e36f94913..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4d5fa730b8..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4b140414de..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c8ebc516c7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 41b6dc63cd..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 31c01f642b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 47625034fe..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f720ede115..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 3ed3f18950..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 6140946af9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index fbc34e2c89..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 20dae5d06e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 0d8157be4c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 0da72723a4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ceaacfe83b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 345fbc7936..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 466e6415c3..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4de1a405da..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 0169ac9cbb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 5c41f9f3a1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ee0c5943ae..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 5fc86c0f24..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index d8ef2dd368..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index be19140e93..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 2aea3051f4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index f3f01edb21..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 197e457761..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4cdcb92025..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index a365a7b71e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 148e8949a4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index baf76ca7f0..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index d23deaf96f..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/designer_ultimate_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_ultimate_auth_params_dto.py new file mode 100644 index 0000000000..e1c6422cb5 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerUltimateAuthParamsDTO(BaseModel): + """ + DesignerUltimateAuthParamsDTO + """ # 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 DesignerUltimateAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerUltimateAuthParamsDTO 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_willow_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_willow_auth_params_dto.py new file mode 100644 index 0000000000..814ca6440d --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerWillowAuthParamsDTO(BaseModel): + """ + DesignerWillowAuthParamsDTO + """ # 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 DesignerWillowAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerWillowAuthParamsDTO 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_workday_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_workday_auth_params_dto.py new file mode 100644 index 0000000000..7bed8a8255 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_workday_o_auth_params_dto import DesignerWorkdayOAuthParamsDTO +from visier_api_data_in.models.designer_workday_refresh_token_params_dto import DesignerWorkdayRefreshTokenParamsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerWorkdayAuthParamsDTO(BaseModel): + """ + DesignerWorkdayAuthParamsDTO + """ # 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[DesignerWorkdayOAuthParamsDTO] = Field(default=None, alias="oAuth") + password: Optional[StrictStr] = None + ref_token: Optional[DesignerWorkdayRefreshTokenParamsDTO] = 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 DesignerWorkdayAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerWorkdayAuthParamsDTO 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": DesignerWorkdayOAuthParamsDTO.from_dict(obj["oAuth"]) if obj.get("oAuth") is not None else None, + "password": obj.get("password"), + "refToken": DesignerWorkdayRefreshTokenParamsDTO.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_workday_o_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_workday_o_auth_params_dto.py new file mode 100644 index 0000000000..c854c329ef --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerWorkdayOAuthParamsDTO(BaseModel): + """ + DesignerWorkdayOAuthParamsDTO + """ # 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 DesignerWorkdayOAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerWorkdayOAuthParamsDTO 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_workday_raas_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_workday_raas_auth_params_dto.py new file mode 100644 index 0000000000..76139319ad --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerWorkdayRaasAuthParamsDTO(BaseModel): + """ + DesignerWorkdayRaasAuthParamsDTO + """ # 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 DesignerWorkdayRaasAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerWorkdayRaasAuthParamsDTO 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_workday_refresh_token_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_workday_refresh_token_params_dto.py new file mode 100644 index 0000000000..c8cb62c674 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerWorkdayRefreshTokenParamsDTO(BaseModel): + """ + DesignerWorkdayRefreshTokenParamsDTO + """ # 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 DesignerWorkdayRefreshTokenParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerWorkdayRefreshTokenParamsDTO 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_zoom_auth_params_dto.py b/src/visier_api_data_in/visier_api_data_in/models/designer_zoom_auth_params_dto.py new file mode 100644 index 0000000000..34f79fa650 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerZoomAuthParamsDTO(BaseModel): + """ + DesignerZoomAuthParamsDTO + """ # 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 DesignerZoomAuthParamsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerZoomAuthParamsDTO 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/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 da3deb9b8e..36a0089cef 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/dp_cancel_job_batch_from_job_id_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_cancel_job_batch_from_job_id_dto.py new file mode 100644 index 0000000000..71d5dfe749 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DpCancelJobBatchFromJobIdDTO(BaseModel): + """ + DpCancelJobBatchFromJobIdDTO + """ # 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 DpCancelJobBatchFromJobIdDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpCancelJobBatchFromJobIdDTO 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_job_cancellation_result_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_job_cancellation_result_dto.py new file mode 100644 index 0000000000..879505e6e6 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 DpJobCancellationResultDTO(BaseModel): + """ + DpJobCancellationResultDTO + """ # 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 DpJobCancellationResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DpJobCancellationResultDTO 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_job_cancellation_results_dto.py b/src/visier_api_data_in/visier_api_data_in/models/dp_job_cancellation_results_dto.py new file mode 100644 index 0000000000..440f8381f6 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/dp_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_job_cancellation_result_dto import DpJobCancellationResultDTO +from typing import Optional, Set +from typing_extensions import Self + +class DpJobCancellationResultsDTO(BaseModel): + """ + DpJobCancellationResultsDTO + """ # noqa: E501 + job_cancellation_results: Optional[List[DpJobCancellationResultDTO]] = 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 DpJobCancellationResultsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DpJobCancellationResultsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "jobCancellationResults": [DpJobCancellationResultDTO.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/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 deleted file mode 100644 index ce6b372075..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 5b565bbd8b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 2cf06fcf13..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/dp_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/plan_data_load_change_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_load_change_dto.py index 2bbf7cc37d..c4142ffc34 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 ed5e2f0447..4412bd87bc 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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_upload_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/plan_data_upload_response_dto.py index 685801fbbc..bc4212df40 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -30,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[PlanningTransfersPlanDataLoadErrorDTO]] = Field(default=None, description="The collection of errors encountered during the data load process.") + errors: Optional[List[PlanningPlanDataLoadErrorDTO]] = 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"] @@ -101,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": [PlanningTransfersPlanDataLoadErrorDTO.from_dict(_item) for _item in obj["errors"]] if obj.get("errors") is not None else None, + "errors": [PlanningPlanDataLoadErrorDTO.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 bd4e4f4e2d..cd12df2077 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -29,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[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.") + custom_members: Optional[List[PlanningPlanSegmentLevelMemberDTO]] = Field(default=None, description="The custom members and their corresponding IDs in the plan.", alias="customMembers") + errors: Optional[List[PlanningPlanDataLoadErrorDTO]] = 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") @@ -102,8 +102,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "addedRowsCount": obj.get("addedRowsCount"), - "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, + "customMembers": [PlanningPlanSegmentLevelMemberDTO.from_dict(_item) for _item in obj["customMembers"]] if obj.get("customMembers") is not None else None, + "errors": [PlanningPlanDataLoadErrorDTO.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/servicing_data_categories_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_data_categories_response_dto.py new file mode 100644 index 0000000000..cbad3c7fd2 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_data_category_response_dto import ServicingDataCategoryResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataCategoriesResponseDTO(BaseModel): + """ + A list of data categories. + """ # noqa: E501 + categories: Optional[List[ServicingDataCategoryResponseDTO]] = 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 ServicingDataCategoriesResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingDataCategoriesResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": [ServicingDataCategoryResponseDTO.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_data_category_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_data_category_response_dto.py new file mode 100644 index 0000000000..5e32bc1bbe --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDataCategoryResponseDTO(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 ServicingDataCategoryResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDataCategoryResponseDTO 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_direct_data_job_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_job_config_dto.py new file mode 100644 index 0000000000..e4ecacb6fa --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 ServicingDirectDataJobConfigDTO(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 ServicingDirectDataJobConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataJobConfigDTO 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_direct_data_job_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_job_status_response_dto.py new file mode 100644 index 0000000000..990c28eed8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataJobStatusResponseDTO(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 ServicingDirectDataJobStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataJobStatusResponseDTO 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_direct_data_list_transactions_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_list_transactions_response_dto.py new file mode 100644 index 0000000000..c5a6095580 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_list_transactions_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_direct_data_transaction_dto import ServicingDirectDataTransactionDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataListTransactionsResponseDTO(BaseModel): + """ + A list of all currently open transactions. + """ # noqa: E501 + transactions: Optional[List[ServicingDirectDataTransactionDTO]] = Field(default=None, description="The list of open transactions.") + __properties: ClassVar[List[str]] = ["transactions"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingDirectDataListTransactionsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in transactions (list) + _items = [] + if self.transactions: + for _item_transactions in self.transactions: + if _item_transactions: + _items.append(_item_transactions.to_dict()) + _dict['transactions'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataListTransactionsResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "transactions": [ServicingDirectDataTransactionDTO.from_dict(_item) for _item in obj["transactions"]] if obj.get("transactions") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_load_config_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_load_config_dto.py new file mode 100644 index 0000000000..8779a92f50 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_direct_data_job_config_dto import ServicingDirectDataJobConfigDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataLoadConfigDTO(BaseModel): + """ + The configuration for the direct data intake, such as the direct data intake job type. + """ # noqa: E501 + job: Optional[ServicingDirectDataJobConfigDTO] = 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 ServicingDirectDataLoadConfigDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingDirectDataLoadConfigDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "job": ServicingDirectDataJobConfigDTO.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_direct_data_schema_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_schema_dto.py new file mode 100644 index 0000000000..7b4709a702 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_direct_data_schema_field_dto import ServicingDirectDataSchemaFieldDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataSchemaDTO(BaseModel): + """ + Public API Direct Intake schema response object + """ # noqa: E501 + var_schema: Optional[List[ServicingDirectDataSchemaFieldDTO]] = 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 ServicingDirectDataSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingDirectDataSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "schema": [ServicingDirectDataSchemaFieldDTO.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_direct_data_schema_field_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_schema_field_dto.py new file mode 100644 index 0000000000..a08f6281ca --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingDirectDataSchemaFieldDTO(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 ServicingDirectDataSchemaFieldDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataSchemaFieldDTO 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_direct_data_transaction_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_transaction_dto.py new file mode 100644 index 0000000000..f7e348c9f1 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_transaction_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataTransactionDTO(BaseModel): + """ + An open transaction. + """ # noqa: E501 + created: Optional[StrictStr] = Field(default=None, description="The transaction's creation date and time. The format is YYYY-MM-DDTHH:mm:ss.SSSZ (ISO 8601).") + status: Optional[StrictStr] = Field(default=None, description="The status of the transaction, such as open, progressing, or committed.") + 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 transaction's unique identifier.", alias="transactionId") + updated: Optional[StrictStr] = Field(default=None, description="The transaction's last update date and time. The format is YYYY-MM-DDTHH:mm:ss.SSSZ (ISO 8601).") + __properties: ClassVar[List[str]] = ["created", "status", "tenantCode", "transactionId", "updated"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServicingDirectDataTransactionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataTransactionDTO 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"), + "status": obj.get("status"), + "tenantCode": obj.get("tenantCode"), + "transactionId": obj.get("transactionId"), + "updated": obj.get("updated") + }) + return _obj + + diff --git a/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_transaction_start_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_transaction_start_response_dto.py new file mode 100644 index 0000000000..5cabd3cdc8 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataTransactionStartResponseDTO(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 ServicingDirectDataTransactionStartResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataTransactionStartResponseDTO 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_direct_data_upload_file_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_direct_data_upload_file_response_dto.py new file mode 100644 index 0000000000..cd3f32499c --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDirectDataUploadFileResponseDTO(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 ServicingDirectDataUploadFileResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDirectDataUploadFileResponseDTO 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_job_id_response.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_job_id_response.py new file mode 100644 index 0000000000..efdf2378ee --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingJobIdResponse(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 ServicingJobIdResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingJobIdResponse 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_data_categories_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_data_categories_response_dto.py deleted file mode 100644 index d6b044fa4c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 0e214118a5..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 91d20398c4..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index e8036552b7..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 89ee3ff950..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1929ed2525..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 0937b73fc9..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1a5b3890a1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a904977834..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_direct_data_upload_file_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 9a9e079589..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 58729a3fe1..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 5e391c656c..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 258252647b..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a76b40c66e..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 58136eb8bb..0000000000 --- a/src/visier_api_data_in/visier_api_data_in/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/servicing_tenant_data_upload_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_tenant_data_upload_status_response_dto.py new file mode 100644 index 0000000000..608802cd8b --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 ServicingTenantDataUploadStatusResponseDTO(BaseModel): + """ + ServicingTenantDataUploadStatusResponseDTO + """ # 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 ServicingTenantDataUploadStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingTenantDataUploadStatusResponseDTO 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_tenant_data_upload_update_status_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_tenant_data_upload_update_status_response_dto.py new file mode 100644 index 0000000000..ab31092275 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingTenantDataUploadUpdateStatusResponseDTO(BaseModel): + """ + ServicingTenantDataUploadUpdateStatusResponseDTO + """ # 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 ServicingTenantDataUploadUpdateStatusResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingTenantDataUploadUpdateStatusResponseDTO 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_tenant_data_uploads_list_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_tenant_data_uploads_list_response_dto.py new file mode 100644 index 0000000000..ef17cc7b56 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_data_uploads_response_dto import ServicingTenantDataUploadsResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingTenantDataUploadsListResponseDTO(BaseModel): + """ + ServicingTenantDataUploadsListResponseDTO + """ # 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[ServicingTenantDataUploadsResponseDTO]] = 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 ServicingTenantDataUploadsListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingTenantDataUploadsListResponseDTO 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": [ServicingTenantDataUploadsResponseDTO.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_tenant_data_uploads_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_tenant_data_uploads_response_dto.py new file mode 100644 index 0000000000..a64586c5e6 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_tenant_data_upload_status_response_dto import ServicingTenantDataUploadStatusResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingTenantDataUploadsResponseDTO(BaseModel): + """ + ServicingTenantDataUploadsResponseDTO + """ # 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[ServicingTenantDataUploadStatusResponseDTO]] = 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 ServicingTenantDataUploadsResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingTenantDataUploadsResponseDTO 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": [ServicingTenantDataUploadStatusResponseDTO.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_tenant_data_uploads_update_response_dto.py b/src/visier_api_data_in/visier_api_data_in/models/servicing_tenant_data_uploads_update_response_dto.py new file mode 100644 index 0000000000..2664b01f58 --- /dev/null +++ b/src/visier_api_data_in/visier_api_data_in/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_tenant_data_upload_update_status_response_dto import ServicingTenantDataUploadUpdateStatusResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingTenantDataUploadsUpdateResponseDTO(BaseModel): + """ + ServicingTenantDataUploadsUpdateResponseDTO + """ # 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[ServicingTenantDataUploadUpdateStatusResponseDTO]] = 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 ServicingTenantDataUploadsUpdateResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingTenantDataUploadsUpdateResponseDTO 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": [ServicingTenantDataUploadUpdateStatusResponseDTO.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/status.py b/src/visier_api_data_in/visier_api_data_in/models/status.py index dedfd09801..ee6a2345e9 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/.openapi-generator/FILES b/src/visier_api_data_out/.openapi-generator/FILES index c321a0414c..38583b6048 100644 --- a/src/visier_api_data_out/.openapi-generator/FILES +++ b/src/visier_api_data_out/.openapi-generator/FILES @@ -4,102 +4,106 @@ setup.cfg setup.py test-requirements.txt test/__init__.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_analysis_common_report_create_request_dto.py +test/test_analysis_common_report_delete_success_dto.py +test/test_analysis_common_report_dto.py +test/test_analysis_common_report_list_response_dto.py +test/test_analysis_common_vee_clarification_dto.py +test/test_analysis_common_vee_conversation_state_dto.py +test/test_analysis_common_vee_corrections_dto.py +test/test_analysis_common_vee_data_dto.py +test/test_analysis_common_vee_feedback_dto.py +test/test_analysis_common_vee_options_dto.py +test/test_analysis_common_vee_question_dto.py +test/test_analysis_common_vee_response_dto.py +test/test_analysis_common_vee_response_schema_dto.py +test/test_analysis_common_vee_response_schema_reference_dto.py +test/test_analysis_common_vee_sample_question_dto.py +test/test_analysis_common_vee_sample_question_library_dto.py +test/test_analysis_common_vee_status_code_dto.py +test/test_analysis_common_vee_visual_dto.py +test/test_analysis_common_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_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_dataservices_datamodel_dimension_reference_dto.py +test/test_dataservices_datamodel_property_reference_dto.py +test/test_dataservices_datamodel_selection_concept_reference_dto.py +test/test_dataservices_query_aggregation_query_dto.py +test/test_dataservices_query_aggregation_query_execution_dto.py +test/test_dataservices_query_aggregation_query_source_dto.py +test/test_dataservices_query_aggregation_query_source_metric_dto.py +test/test_dataservices_query_aggregation_query_source_metrics_dto.py +test/test_dataservices_query_aggregation_type_parameter_value_dto.py +test/test_dataservices_query_cell_distribution_bin_dto.py +test/test_dataservices_query_cell_distribution_options_dto.py +test/test_dataservices_query_cell_dto.py +test/test_dataservices_query_cell_set_axis_dto.py +test/test_dataservices_query_cell_set_axis_position_dto.py +test/test_dataservices_query_cell_set_dto.py +test/test_dataservices_query_cell_set_or_error_dto.py +test/test_dataservices_query_cohort_filter_dto.py +test/test_dataservices_query_internal_query_execution_options_dto.py +test/test_dataservices_query_key_group_filter_dto.py +test/test_dataservices_query_key_group_filter_item_dto.py +test/test_dataservices_query_lineage_dto.py +test/test_dataservices_query_list_query_execution_dto.py +test/test_dataservices_query_list_query_execution_options_dto.py +test/test_dataservices_query_list_query_source_dto.py +test/test_dataservices_query_member_filter_dto.py +test/test_dataservices_query_member_parameter_value_dto.py +test/test_dataservices_query_numeric_parameter_value_dto.py +test/test_dataservices_query_plan_parameter_value_dto.py +test/test_dataservices_query_property_column_dto.py +test/test_dataservices_query_query_axis_dto.py +test/test_dataservices_query_query_axis_options_dto.py +test/test_dataservices_query_query_dimension_data_member_selection_dto.py +test/test_dataservices_query_query_dimension_leaf_selection_dto.py +test/test_dataservices_query_query_dimension_level_property_dto.py +test/test_dataservices_query_query_dimension_level_selection_dto.py +test/test_dataservices_query_query_dimension_member_selection_dto.py +test/test_dataservices_query_query_execution_error_details_dto.py +test/test_dataservices_query_query_execution_error_dto.py +test/test_dataservices_query_query_execution_errors_dto.py +test/test_dataservices_query_query_execution_options_dto.py +test/test_dataservices_query_query_filter_dto.py +test/test_dataservices_query_query_member_map_property_dto.py +test/test_dataservices_query_query_member_map_selection_dto.py +test/test_dataservices_query_query_numeric_ranges_dto.py +test/test_dataservices_query_query_parameter_value_dto.py +test/test_dataservices_query_query_property_dto.py +test/test_dataservices_query_query_time_interval_dto.py +test/test_dataservices_query_query_time_intervals_dto.py +test/test_dataservices_query_snapshot_query_execution_dto.py +test/test_dataservices_query_snapshot_query_execution_options_dto.py +test/test_dataservices_query_sort_option_dto.py +test/test_dataservices_query_sql_like_query_execution_dto.py +test/test_dataservices_query_time_shift_dto.py +test/test_designer_data_version_export_column_dto.py +test/test_designer_data_version_export_data_version_summary_dto.py +test/test_designer_data_version_export_data_versions_dto.py +test/test_designer_data_version_export_dto.py +test/test_designer_data_version_export_file_dto.py +test/test_designer_data_version_export_job_status_dto.py +test/test_designer_data_version_export_part_file_dto.py +test/test_designer_data_version_export_schedule_job_request_dto.py +test/test_designer_data_version_export_schedule_job_response_dto.py +test/test_designer_data_version_export_table_dto.py +test/test_designer_data_version_exports_dto.py +test/test_designer_download_source_files_dto.py +test/test_designer_download_source_files_response_dto.py test/test_dv_export_status.py test/test_google_protobuf_any.py test/test_reporting_api.py test/test_search_api.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_servicing_document_search_link_dto.py +test/test_servicing_simple_document_header_search_response_dto.py +test/test_servicing_simple_document_header_search_result_dto.py test/test_source_files_download_api.py test/test_status.py -test/test_systemstatus_publicapi_transfers_vee_status_dto.py +test/test_systemstatus_vee_status_dto.py test/test_table_response_dto.py test/test_vee_api.py tox.ini @@ -112,97 +116,101 @@ 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/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/analysis_common_report_create_request_dto.py +visier_api_data_out/models/analysis_common_report_delete_success_dto.py +visier_api_data_out/models/analysis_common_report_dto.py +visier_api_data_out/models/analysis_common_report_list_response_dto.py +visier_api_data_out/models/analysis_common_vee_clarification_dto.py +visier_api_data_out/models/analysis_common_vee_conversation_state_dto.py +visier_api_data_out/models/analysis_common_vee_corrections_dto.py +visier_api_data_out/models/analysis_common_vee_data_dto.py +visier_api_data_out/models/analysis_common_vee_feedback_dto.py +visier_api_data_out/models/analysis_common_vee_options_dto.py +visier_api_data_out/models/analysis_common_vee_question_dto.py +visier_api_data_out/models/analysis_common_vee_response_dto.py +visier_api_data_out/models/analysis_common_vee_response_schema_dto.py +visier_api_data_out/models/analysis_common_vee_response_schema_reference_dto.py +visier_api_data_out/models/analysis_common_vee_sample_question_dto.py +visier_api_data_out/models/analysis_common_vee_sample_question_library_dto.py +visier_api_data_out/models/analysis_common_vee_status_code_dto.py +visier_api_data_out/models/analysis_common_vee_visual_dto.py +visier_api_data_out/models/analysis_common_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/dataservices_datamodel_dimension_reference_dto.py +visier_api_data_out/models/dataservices_datamodel_property_reference_dto.py +visier_api_data_out/models/dataservices_datamodel_selection_concept_reference_dto.py +visier_api_data_out/models/dataservices_query_aggregation_query_dto.py +visier_api_data_out/models/dataservices_query_aggregation_query_execution_dto.py +visier_api_data_out/models/dataservices_query_aggregation_query_source_dto.py +visier_api_data_out/models/dataservices_query_aggregation_query_source_metric_dto.py +visier_api_data_out/models/dataservices_query_aggregation_query_source_metrics_dto.py +visier_api_data_out/models/dataservices_query_aggregation_type_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_cell_distribution_bin_dto.py +visier_api_data_out/models/dataservices_query_cell_distribution_options_dto.py +visier_api_data_out/models/dataservices_query_cell_dto.py +visier_api_data_out/models/dataservices_query_cell_set_axis_dto.py +visier_api_data_out/models/dataservices_query_cell_set_axis_position_dto.py +visier_api_data_out/models/dataservices_query_cell_set_dto.py +visier_api_data_out/models/dataservices_query_cell_set_or_error_dto.py +visier_api_data_out/models/dataservices_query_cohort_filter_dto.py +visier_api_data_out/models/dataservices_query_internal_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_key_group_filter_dto.py +visier_api_data_out/models/dataservices_query_key_group_filter_item_dto.py +visier_api_data_out/models/dataservices_query_lineage_dto.py +visier_api_data_out/models/dataservices_query_list_query_execution_dto.py +visier_api_data_out/models/dataservices_query_list_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_list_query_source_dto.py +visier_api_data_out/models/dataservices_query_member_filter_dto.py +visier_api_data_out/models/dataservices_query_member_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_numeric_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_plan_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_property_column_dto.py +visier_api_data_out/models/dataservices_query_query_axis_dto.py +visier_api_data_out/models/dataservices_query_query_axis_options_dto.py +visier_api_data_out/models/dataservices_query_query_dimension_data_member_selection_dto.py +visier_api_data_out/models/dataservices_query_query_dimension_leaf_selection_dto.py +visier_api_data_out/models/dataservices_query_query_dimension_level_property_dto.py +visier_api_data_out/models/dataservices_query_query_dimension_level_selection_dto.py +visier_api_data_out/models/dataservices_query_query_dimension_member_selection_dto.py +visier_api_data_out/models/dataservices_query_query_execution_error_details_dto.py +visier_api_data_out/models/dataservices_query_query_execution_error_dto.py +visier_api_data_out/models/dataservices_query_query_execution_errors_dto.py +visier_api_data_out/models/dataservices_query_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_query_filter_dto.py +visier_api_data_out/models/dataservices_query_query_member_map_property_dto.py +visier_api_data_out/models/dataservices_query_query_member_map_selection_dto.py +visier_api_data_out/models/dataservices_query_query_numeric_ranges_dto.py +visier_api_data_out/models/dataservices_query_query_parameter_value_dto.py +visier_api_data_out/models/dataservices_query_query_property_dto.py +visier_api_data_out/models/dataservices_query_query_time_interval_dto.py +visier_api_data_out/models/dataservices_query_query_time_intervals_dto.py +visier_api_data_out/models/dataservices_query_snapshot_query_execution_dto.py +visier_api_data_out/models/dataservices_query_snapshot_query_execution_options_dto.py +visier_api_data_out/models/dataservices_query_sort_option_dto.py +visier_api_data_out/models/dataservices_query_sql_like_query_execution_dto.py +visier_api_data_out/models/dataservices_query_time_shift_dto.py +visier_api_data_out/models/designer_data_version_export_column_dto.py +visier_api_data_out/models/designer_data_version_export_data_version_summary_dto.py +visier_api_data_out/models/designer_data_version_export_data_versions_dto.py +visier_api_data_out/models/designer_data_version_export_dto.py +visier_api_data_out/models/designer_data_version_export_file_dto.py +visier_api_data_out/models/designer_data_version_export_job_status_dto.py +visier_api_data_out/models/designer_data_version_export_part_file_dto.py +visier_api_data_out/models/designer_data_version_export_schedule_job_request_dto.py +visier_api_data_out/models/designer_data_version_export_schedule_job_response_dto.py +visier_api_data_out/models/designer_data_version_export_table_dto.py +visier_api_data_out/models/designer_data_version_exports_dto.py +visier_api_data_out/models/designer_download_source_files_dto.py +visier_api_data_out/models/designer_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/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/servicing_document_search_link_dto.py +visier_api_data_out/models/servicing_simple_document_header_search_response_dto.py +visier_api_data_out/models/servicing_simple_document_header_search_result_dto.py visier_api_data_out/models/sql_like200_response.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/systemstatus_vee_status_dto.py visier_api_data_out/models/table_response_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 39da4b64ed..75577c7d05 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.1793" +version = "0.99201.1830" 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.1793" +visier-api-core = "~= 0.99201.1830" [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 ebf9a91559..3efff2d87e 100644 --- a/src/visier_api_data_out/requirements.txt +++ b/src/visier_api_data_out/requirements.txt @@ -1 +1 @@ -visier-api-core ~= 0.99201.1793 \ No newline at end of file +visier-api-core ~= 0.99201.1830 \ 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 c74ec1a756..5c1f9aefc0 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.1793" +VERSION = "0.99201.1830" PYTHON_REQUIRES = ">=3.8" REQUIRES = [ - "visier-api-core ~= 0.99201.1793", + "visier-api-core ~= 0.99201.1830", ] setup( diff --git a/src/visier_api_data_out/test/test_analysis_common_report_create_request_dto.py b/src/visier_api_data_out/test/test_analysis_common_report_create_request_dto.py new file mode 100644 index 0000000000..424db665f8 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_report_create_request_dto import AnalysisCommonReportCreateRequestDTO + +class TestAnalysisCommonReportCreateRequestDTO(unittest.TestCase): + """AnalysisCommonReportCreateRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonReportCreateRequestDTO: + """Test AnalysisCommonReportCreateRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonReportCreateRequestDTO( + description = '', + title = '' + ) + else: + return AnalysisCommonReportCreateRequestDTO( + ) + + def testAnalysisCommonReportCreateRequestDTO(self): + """Test AnalysisCommonReportCreateRequestDTO""" + def validate_instance(instance): + AnalysisCommonReportCreateRequestDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonReportCreateRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_report_delete_success_dto.py b/src/visier_api_data_out/test/test_analysis_common_report_delete_success_dto.py new file mode 100644 index 0000000000..8471246b38 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_report_delete_success_dto import AnalysisCommonReportDeleteSuccessDTO + +class TestAnalysisCommonReportDeleteSuccessDTO(unittest.TestCase): + """AnalysisCommonReportDeleteSuccessDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonReportDeleteSuccessDTO: + """Test AnalysisCommonReportDeleteSuccessDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonReportDeleteSuccessDTO( + id = '' + ) + else: + return AnalysisCommonReportDeleteSuccessDTO( + ) + + def testAnalysisCommonReportDeleteSuccessDTO(self): + """Test AnalysisCommonReportDeleteSuccessDTO""" + def validate_instance(instance): + AnalysisCommonReportDeleteSuccessDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonReportDeleteSuccessDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_report_dto.py b/src/visier_api_data_out/test/test_analysis_common_report_dto.py new file mode 100644 index 0000000000..d0d10a2bc7 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_report_dto import AnalysisCommonReportDTO + +class TestAnalysisCommonReportDTO(unittest.TestCase): + """AnalysisCommonReportDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonReportDTO: + """Test AnalysisCommonReportDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonReportDTO( + allowed_actions = [ + 'duplicate' + ], + description = '', + id = '', + is_owned_by_user = True, + is_published_report = True, + link = '', + owner = '', + title = '', + updated_time = '' + ) + else: + return AnalysisCommonReportDTO( + ) + + def testAnalysisCommonReportDTO(self): + """Test AnalysisCommonReportDTO""" + def validate_instance(instance): + AnalysisCommonReportDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonReportDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_report_list_response_dto.py b/src/visier_api_data_out/test/test_analysis_common_report_list_response_dto.py new file mode 100644 index 0000000000..8b5d4a9f2b --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_report_list_response_dto import AnalysisCommonReportListResponseDTO + +class TestAnalysisCommonReportListResponseDTO(unittest.TestCase): + """AnalysisCommonReportListResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonReportListResponseDTO: + """Test AnalysisCommonReportListResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonReportListResponseDTO( + reports = [ + visier_api_data_out.models.analysis/common/report_dto.analysis.common.ReportDTO( + allowed_actions = [ + 'duplicate' + ], + description = '', + id = '', + is_owned_by_user = True, + is_published_report = True, + link = '', + owner = '', + title = '', + updated_time = '', ) + ] + ) + else: + return AnalysisCommonReportListResponseDTO( + ) + + def testAnalysisCommonReportListResponseDTO(self): + """Test AnalysisCommonReportListResponseDTO""" + def validate_instance(instance): + AnalysisCommonReportListResponseDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonReportListResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 deleted file mode 100644 index f062027966..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 1f55801149..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 9dcc801fdc..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 663fa174c9..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 34a7c00410..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 3efa3e0da0..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index e66055a973..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 2569b1eba6..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 54b818d23e..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index f03eeea0dc..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index d0f3cbf77a..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 4534ea8e24..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index ed0ca28959..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index de1d7721ea..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 8e318c9bf7..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index d5c7d6c3b7..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 2ae9a32097..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 0aa1f979d9..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index a7a5ecd498..0000000000 --- a/src/visier_api_data_out/test/test_analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_analysis_common_vee_clarification_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_clarification_dto.py new file mode 100644 index 0000000000..6858ca850a --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_clarification_dto import AnalysisCommonVeeClarificationDTO + +class TestAnalysisCommonVeeClarificationDTO(unittest.TestCase): + """AnalysisCommonVeeClarificationDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeClarificationDTO: + """Test AnalysisCommonVeeClarificationDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ] + ) + else: + return AnalysisCommonVeeClarificationDTO( + ) + + def testAnalysisCommonVeeClarificationDTO(self): + """Test AnalysisCommonVeeClarificationDTO""" + def validate_instance(instance): + AnalysisCommonVeeClarificationDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeClarificationDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_conversation_state_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_conversation_state_dto.py new file mode 100644 index 0000000000..d54db48f79 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_conversation_state_dto import AnalysisCommonVeeConversationStateDTO + +class TestAnalysisCommonVeeConversationStateDTO(unittest.TestCase): + """AnalysisCommonVeeConversationStateDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeConversationStateDTO: + """Test AnalysisCommonVeeConversationStateDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeConversationStateDTO( + question_state = [ + '' + ] + ) + else: + return AnalysisCommonVeeConversationStateDTO( + ) + + def testAnalysisCommonVeeConversationStateDTO(self): + """Test AnalysisCommonVeeConversationStateDTO""" + def validate_instance(instance): + AnalysisCommonVeeConversationStateDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeConversationStateDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_corrections_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_corrections_dto.py new file mode 100644 index 0000000000..2881ba054e --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_corrections_dto import AnalysisCommonVeeCorrectionsDTO + +class TestAnalysisCommonVeeCorrectionsDTO(unittest.TestCase): + """AnalysisCommonVeeCorrectionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeCorrectionsDTO: + """Test AnalysisCommonVeeCorrectionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/vee_clarification_dto.analysis.common.VeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ], ) + ], + warning = [ + 'VEE_NO_WARNING' + ] + ) + else: + return AnalysisCommonVeeCorrectionsDTO( + ) + + def testAnalysisCommonVeeCorrectionsDTO(self): + """Test AnalysisCommonVeeCorrectionsDTO""" + def validate_instance(instance): + AnalysisCommonVeeCorrectionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeCorrectionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_data_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_data_dto.py new file mode 100644 index 0000000000..c5b595e953 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_data_dto import AnalysisCommonVeeDataDTO + +class TestAnalysisCommonVeeDataDTO(unittest.TestCase): + """AnalysisCommonVeeDataDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeDataDTO: + """Test AnalysisCommonVeeDataDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeDataDTO( + context = '', + data_json = '' + ) + else: + return AnalysisCommonVeeDataDTO( + ) + + def testAnalysisCommonVeeDataDTO(self): + """Test AnalysisCommonVeeDataDTO""" + def validate_instance(instance): + AnalysisCommonVeeDataDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeDataDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_feedback_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_feedback_dto.py new file mode 100644 index 0000000000..2de2fde639 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_feedback_dto import AnalysisCommonVeeFeedbackDTO + +class TestAnalysisCommonVeeFeedbackDTO(unittest.TestCase): + """AnalysisCommonVeeFeedbackDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeFeedbackDTO: + """Test AnalysisCommonVeeFeedbackDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeFeedbackDTO( + description = '', + is_approved = True, + response = visier_api_data_out.models.analysis/common/vee_response_dto.analysis.common.VeeResponseDTO( + chart_url = '', + conversation_state = None, + corrections = [ + visier_api_data_out.models.analysis/common/vee_corrections_dto.analysis.common.VeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/vee_clarification_dto.analysis.common.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 AnalysisCommonVeeFeedbackDTO( + ) + + def testAnalysisCommonVeeFeedbackDTO(self): + """Test AnalysisCommonVeeFeedbackDTO""" + def validate_instance(instance): + AnalysisCommonVeeFeedbackDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeFeedbackDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_options_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_options_dto.py new file mode 100644 index 0000000000..aba09a4a8a --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_options_dto import AnalysisCommonVeeOptionsDTO + +class TestAnalysisCommonVeeOptionsDTO(unittest.TestCase): + """AnalysisCommonVeeOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeOptionsDTO: + """Test AnalysisCommonVeeOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeOptionsDTO( + data_format = 'json', + include_data = True, + include_reworded_question = True, + include_visual = True, + visual_options = visier_api_data_out.models.analysis/common/vee_visual_options_dto.analysis.common.VeeVisualOptionsDTO( + height = 56, + width = 56, ) + ) + else: + return AnalysisCommonVeeOptionsDTO( + ) + + def testAnalysisCommonVeeOptionsDTO(self): + """Test AnalysisCommonVeeOptionsDTO""" + def validate_instance(instance): + AnalysisCommonVeeOptionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_question_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_question_dto.py new file mode 100644 index 0000000000..82b1eadb51 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_question_dto import AnalysisCommonVeeQuestionDTO + +class TestAnalysisCommonVeeQuestionDTO(unittest.TestCase): + """AnalysisCommonVeeQuestionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeQuestionDTO: + """Test AnalysisCommonVeeQuestionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeQuestionDTO( + conversation_state = visier_api_data_out.models.analysis/common/vee_conversation_state_dto.analysis.common.VeeConversationStateDTO( + question_state = [ + '' + ], ), + max_view_details_members = 56, + options = visier_api_data_out.models.analysis/common/vee_options_dto.analysis.common.VeeOptionsDTO( + data_format = 'json', + include_data = True, + include_reworded_question = True, + include_visual = True, + visual_options = None, ), + question = '' + ) + else: + return AnalysisCommonVeeQuestionDTO( + ) + + def testAnalysisCommonVeeQuestionDTO(self): + """Test AnalysisCommonVeeQuestionDTO""" + def validate_instance(instance): + AnalysisCommonVeeQuestionDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeQuestionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_response_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_response_dto.py new file mode 100644 index 0000000000..f8d21725dd --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_response_dto import AnalysisCommonVeeResponseDTO + +class TestAnalysisCommonVeeResponseDTO(unittest.TestCase): + """AnalysisCommonVeeResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeResponseDTO: + """Test AnalysisCommonVeeResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeResponseDTO( + chart_url = '', + conversation_state = visier_api_data_out.models.analysis/common/vee_conversation_state_dto.analysis.common.VeeConversationStateDTO( + question_state = [ + '' + ], ), + corrections = [ + visier_api_data_out.models.analysis/common/vee_corrections_dto.analysis.common.VeeCorrectionsDTO( + clarifications = [ + visier_api_data_out.models.analysis/common/vee_clarification_dto.analysis.common.VeeClarificationDTO( + attributes = [ + '' + ], + dimensions = [ + '' + ], + filters = [ + '' + ], + message = '', + metrics = [ + '' + ], + questions = [ + '' + ], ) + ], + warning = [ + 'VEE_NO_WARNING' + ], ) + ], + data = visier_api_data_out.models.analysis/common/vee_data_dto.analysis.common.VeeDataDTO( + context = '', + data_json = '', ), + narrative = '', + reworded_question = '', + var_schema = visier_api_data_out.models.analysis/common/vee_response_schema_dto.analysis.common.VeeResponseSchemaDTO( + concepts = [ + visier_api_data_out.models.analysis/common/vee_response_schema_reference_dto.analysis.common.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + dimensions = [ + visier_api_data_out.models.analysis/common/vee_response_schema_reference_dto.analysis.common.VeeResponseSchemaReferenceDTO( + name = '', ) + ], + metrics = [ + '' + ], ), + status_code = visier_api_data_out.models.analysis/common/vee_status_code_dto.analysis.common.VeeStatusCodeDTO( + status_code = 'UNDEFINED', + status_msg = '', ), + visual = visier_api_data_out.models.analysis/common/vee_visual_dto.analysis.common.VeeVisualDTO( + context = '', + image = '', + title = '', ) + ) + else: + return AnalysisCommonVeeResponseDTO( + ) + + def testAnalysisCommonVeeResponseDTO(self): + """Test AnalysisCommonVeeResponseDTO""" + def validate_instance(instance): + AnalysisCommonVeeResponseDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_response_schema_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_response_schema_dto.py new file mode 100644 index 0000000000..69327b7220 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_response_schema_dto import AnalysisCommonVeeResponseSchemaDTO + +class TestAnalysisCommonVeeResponseSchemaDTO(unittest.TestCase): + """AnalysisCommonVeeResponseSchemaDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeResponseSchemaDTO: + """Test AnalysisCommonVeeResponseSchemaDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeResponseSchemaDTO( + concepts = [ + visier_api_data_out.models.analysis/common/vee_response_schema_reference_dto.analysis.common.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + dimensions = [ + visier_api_data_out.models.analysis/common/vee_response_schema_reference_dto.analysis.common.VeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ], ) + ], + metrics = [ + '' + ] + ) + else: + return AnalysisCommonVeeResponseSchemaDTO( + ) + + def testAnalysisCommonVeeResponseSchemaDTO(self): + """Test AnalysisCommonVeeResponseSchemaDTO""" + def validate_instance(instance): + AnalysisCommonVeeResponseSchemaDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeResponseSchemaDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_response_schema_reference_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_response_schema_reference_dto.py new file mode 100644 index 0000000000..dc0dccf162 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_response_schema_reference_dto import AnalysisCommonVeeResponseSchemaReferenceDTO + +class TestAnalysisCommonVeeResponseSchemaReferenceDTO(unittest.TestCase): + """AnalysisCommonVeeResponseSchemaReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeResponseSchemaReferenceDTO: + """Test AnalysisCommonVeeResponseSchemaReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeResponseSchemaReferenceDTO( + name = '', + paths = [ + '' + ] + ) + else: + return AnalysisCommonVeeResponseSchemaReferenceDTO( + ) + + def testAnalysisCommonVeeResponseSchemaReferenceDTO(self): + """Test AnalysisCommonVeeResponseSchemaReferenceDTO""" + def validate_instance(instance): + AnalysisCommonVeeResponseSchemaReferenceDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeResponseSchemaReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_sample_question_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_sample_question_dto.py new file mode 100644 index 0000000000..af16419bc1 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_sample_question_dto import AnalysisCommonVeeSampleQuestionDTO + +class TestAnalysisCommonVeeSampleQuestionDTO(unittest.TestCase): + """AnalysisCommonVeeSampleQuestionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeSampleQuestionDTO: + """Test AnalysisCommonVeeSampleQuestionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeSampleQuestionDTO( + category_id = '', + is_assigned_to_user = True, + question = '', + question_id = '' + ) + else: + return AnalysisCommonVeeSampleQuestionDTO( + ) + + def testAnalysisCommonVeeSampleQuestionDTO(self): + """Test AnalysisCommonVeeSampleQuestionDTO""" + def validate_instance(instance): + AnalysisCommonVeeSampleQuestionDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeSampleQuestionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_sample_question_library_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_sample_question_library_dto.py new file mode 100644 index 0000000000..506887923b --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_sample_question_library_dto import AnalysisCommonVeeSampleQuestionLibraryDTO + +class TestAnalysisCommonVeeSampleQuestionLibraryDTO(unittest.TestCase): + """AnalysisCommonVeeSampleQuestionLibraryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeSampleQuestionLibraryDTO: + """Test AnalysisCommonVeeSampleQuestionLibraryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeSampleQuestionLibraryDTO( + questions = [ + visier_api_data_out.models.analysis/common/vee_sample_question_dto.analysis.common.VeeSampleQuestionDTO( + category_id = '', + is_assigned_to_user = True, + question = '', + question_id = '', ) + ] + ) + else: + return AnalysisCommonVeeSampleQuestionLibraryDTO( + ) + + def testAnalysisCommonVeeSampleQuestionLibraryDTO(self): + """Test AnalysisCommonVeeSampleQuestionLibraryDTO""" + def validate_instance(instance): + AnalysisCommonVeeSampleQuestionLibraryDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeSampleQuestionLibraryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_status_code_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_status_code_dto.py new file mode 100644 index 0000000000..60cfe652a6 --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_status_code_dto import AnalysisCommonVeeStatusCodeDTO + +class TestAnalysisCommonVeeStatusCodeDTO(unittest.TestCase): + """AnalysisCommonVeeStatusCodeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeStatusCodeDTO: + """Test AnalysisCommonVeeStatusCodeDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeStatusCodeDTO( + status_code = 'UNDEFINED', + status_msg = '' + ) + else: + return AnalysisCommonVeeStatusCodeDTO( + ) + + def testAnalysisCommonVeeStatusCodeDTO(self): + """Test AnalysisCommonVeeStatusCodeDTO""" + def validate_instance(instance): + AnalysisCommonVeeStatusCodeDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeStatusCodeDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_visual_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_visual_dto.py new file mode 100644 index 0000000000..e8ab42c44f --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_visual_dto import AnalysisCommonVeeVisualDTO + +class TestAnalysisCommonVeeVisualDTO(unittest.TestCase): + """AnalysisCommonVeeVisualDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeVisualDTO: + """Test AnalysisCommonVeeVisualDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeVisualDTO( + context = '', + image = '', + title = '' + ) + else: + return AnalysisCommonVeeVisualDTO( + ) + + def testAnalysisCommonVeeVisualDTO(self): + """Test AnalysisCommonVeeVisualDTO""" + def validate_instance(instance): + AnalysisCommonVeeVisualDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeVisualDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_vee_visual_options_dto.py b/src/visier_api_data_out/test/test_analysis_common_vee_visual_options_dto.py new file mode 100644 index 0000000000..a8070f736e --- /dev/null +++ b/src/visier_api_data_out/test/test_analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_visual_options_dto import AnalysisCommonVeeVisualOptionsDTO + +class TestAnalysisCommonVeeVisualOptionsDTO(unittest.TestCase): + """AnalysisCommonVeeVisualOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AnalysisCommonVeeVisualOptionsDTO: + """Test AnalysisCommonVeeVisualOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return AnalysisCommonVeeVisualOptionsDTO( + height = 56, + width = 56 + ) + else: + return AnalysisCommonVeeVisualOptionsDTO( + ) + + def testAnalysisCommonVeeVisualOptionsDTO(self): + """Test AnalysisCommonVeeVisualOptionsDTO""" + def validate_instance(instance): + AnalysisCommonVeeVisualOptionsDTO.model_validate(inst_req_only) + instance_deserialized = AnalysisCommonVeeVisualOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 index 7725845aa0..117388d5bd 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 7836065ba7..1ec82ad42c 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 46380d23c4..0aeef70f64 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index fe8f94d087..2a200a250e 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 index bf9111408c..c3ff90900e 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_dataservices_datamodel_dimension_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_dimension_reference_dto.py new file mode 100644 index 0000000000..3ea851459e --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO + +class TestDataservicesDatamodelDimensionReferenceDTO(unittest.TestCase): + """DataservicesDatamodelDimensionReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelDimensionReferenceDTO: + """Test DataservicesDatamodelDimensionReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelDimensionReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelDimensionReferenceDTO( + ) + + def testDataservicesDatamodelDimensionReferenceDTO(self): + """Test DataservicesDatamodelDimensionReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelDimensionReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelDimensionReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_property_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_property_reference_dto.py new file mode 100644 index 0000000000..fdbd1c8e82 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO + +class TestDataservicesDatamodelPropertyReferenceDTO(unittest.TestCase): + """DataservicesDatamodelPropertyReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelPropertyReferenceDTO: + """Test DataservicesDatamodelPropertyReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelPropertyReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelPropertyReferenceDTO( + ) + + def testDataservicesDatamodelPropertyReferenceDTO(self): + """Test DataservicesDatamodelPropertyReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelPropertyReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelPropertyReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_selection_concept_reference_dto.py b/src/visier_api_data_out/test/test_dataservices_datamodel_selection_concept_reference_dto.py new file mode 100644 index 0000000000..35f64808ad --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO + +class TestDataservicesDatamodelSelectionConceptReferenceDTO(unittest.TestCase): + """DataservicesDatamodelSelectionConceptReferenceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesDatamodelSelectionConceptReferenceDTO: + """Test DataservicesDatamodelSelectionConceptReferenceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesDatamodelSelectionConceptReferenceDTO( + name = '', + qualifying_path = '' + ) + else: + return DataservicesDatamodelSelectionConceptReferenceDTO( + ) + + def testDataservicesDatamodelSelectionConceptReferenceDTO(self): + """Test DataservicesDatamodelSelectionConceptReferenceDTO""" + def validate_instance(instance): + DataservicesDatamodelSelectionConceptReferenceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesDatamodelSelectionConceptReferenceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 deleted file mode 100644 index 8e4fae73a5..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index dd2961fe3a..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 47dca149d9..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_aggregation_query_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_query_dto.py new file mode 100644 index 0000000000..c18da7bfbf --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_query_dto import DataservicesQueryAggregationQueryDTO + +class TestDataservicesQueryAggregationQueryDTO(unittest.TestCase): + """DataservicesQueryAggregationQueryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationQueryDTO: + """Test DataservicesQueryAggregationQueryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationQueryDTO( + axes = [ + visier_api_data_out.models.dataservices/query/query_axis_dto.dataservices.query.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/query_filter_dto.dataservices.query.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + parameter_values = [ + visier_api_data_out.models.dataservices/query/query_parameter_value_dto.dataservices.query.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + source = visier_api_data_out.models.dataservices/query/aggregation_query_source_dto.dataservices.query.AggregationQuerySourceDTO( + formula = '', + metric = '', + metrics = None, ), + time_intervals = visier_api_data_out.models.dataservices/query/query_time_intervals_dto.dataservices.query.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 DataservicesQueryAggregationQueryDTO( + ) + + def testDataservicesQueryAggregationQueryDTO(self): + """Test DataservicesQueryAggregationQueryDTO""" + def validate_instance(instance): + DataservicesQueryAggregationQueryDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationQueryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_aggregation_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_query_execution_dto.py new file mode 100644 index 0000000000..93a20a2d55 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_query_execution_dto import DataservicesQueryAggregationQueryExecutionDTO + +class TestDataservicesQueryAggregationQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryAggregationQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationQueryExecutionDTO: + """Test DataservicesQueryAggregationQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationQueryExecutionDTO( + options = visier_api_data_out.models.dataservices/query/query_execution_options_dto.dataservices.query.QueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/cell_distribution_options_dto.dataservices.query.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/internal_query_execution_options_dto.dataservices.query.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/aggregation_query_dto.dataservices.query.AggregationQueryDTO( + axes = [ + visier_api_data_out.models.dataservices/query/query_axis_dto.dataservices.query.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/query_filter_dto.dataservices.query.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + parameter_values = [ + visier_api_data_out.models.dataservices/query/query_parameter_value_dto.dataservices.query.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + source = None, + time_intervals = None, ) + ) + else: + return DataservicesQueryAggregationQueryExecutionDTO( + ) + + def testDataservicesQueryAggregationQueryExecutionDTO(self): + """Test DataservicesQueryAggregationQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryAggregationQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_aggregation_query_source_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_query_source_dto.py new file mode 100644 index 0000000000..a7b5c9f7db --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_query_source_dto import DataservicesQueryAggregationQuerySourceDTO + +class TestDataservicesQueryAggregationQuerySourceDTO(unittest.TestCase): + """DataservicesQueryAggregationQuerySourceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationQuerySourceDTO: + """Test DataservicesQueryAggregationQuerySourceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationQuerySourceDTO( + formula = '', + metric = '', + metrics = visier_api_data_out.models.dataservices/query/aggregation_query_source_metrics_dto.dataservices.query.AggregationQuerySourceMetricsDTO( + columns = [ + visier_api_data_out.models.dataservices/query/aggregation_query_source_metric_dto.dataservices.query.AggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '', ) + ], ) + ) + else: + return DataservicesQueryAggregationQuerySourceDTO( + ) + + def testDataservicesQueryAggregationQuerySourceDTO(self): + """Test DataservicesQueryAggregationQuerySourceDTO""" + def validate_instance(instance): + DataservicesQueryAggregationQuerySourceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationQuerySourceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_aggregation_query_source_metric_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_query_source_metric_dto.py new file mode 100644 index 0000000000..bf478ff609 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_query_source_metric_dto import DataservicesQueryAggregationQuerySourceMetricDTO + +class TestDataservicesQueryAggregationQuerySourceMetricDTO(unittest.TestCase): + """DataservicesQueryAggregationQuerySourceMetricDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationQuerySourceMetricDTO: + """Test DataservicesQueryAggregationQuerySourceMetricDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '' + ) + else: + return DataservicesQueryAggregationQuerySourceMetricDTO( + ) + + def testDataservicesQueryAggregationQuerySourceMetricDTO(self): + """Test DataservicesQueryAggregationQuerySourceMetricDTO""" + def validate_instance(instance): + DataservicesQueryAggregationQuerySourceMetricDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationQuerySourceMetricDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_query_source_metrics_dto.py new file mode 100644 index 0000000000..d40cb4b209 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_query_source_metrics_dto import DataservicesQueryAggregationQuerySourceMetricsDTO + +class TestDataservicesQueryAggregationQuerySourceMetricsDTO(unittest.TestCase): + """DataservicesQueryAggregationQuerySourceMetricsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationQuerySourceMetricsDTO: + """Test DataservicesQueryAggregationQuerySourceMetricsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationQuerySourceMetricsDTO( + columns = [ + visier_api_data_out.models.dataservices/query/aggregation_query_source_metric_dto.dataservices.query.AggregationQuerySourceMetricDTO( + column_name = '', + formula = '', + id = '', + qualifying_path = '', ) + ] + ) + else: + return DataservicesQueryAggregationQuerySourceMetricsDTO( + ) + + def testDataservicesQueryAggregationQuerySourceMetricsDTO(self): + """Test DataservicesQueryAggregationQuerySourceMetricsDTO""" + def validate_instance(instance): + DataservicesQueryAggregationQuerySourceMetricsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationQuerySourceMetricsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_aggregation_type_parameter_value_dto.py new file mode 100644 index 0000000000..2090cf0304 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_aggregation_type_parameter_value_dto import DataservicesQueryAggregationTypeParameterValueDTO + +class TestDataservicesQueryAggregationTypeParameterValueDTO(unittest.TestCase): + """DataservicesQueryAggregationTypeParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryAggregationTypeParameterValueDTO: + """Test DataservicesQueryAggregationTypeParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryAggregationTypeParameterValueDTO( + aggregation_option_id = '', + parameter_id = '' + ) + else: + return DataservicesQueryAggregationTypeParameterValueDTO( + ) + + def testDataservicesQueryAggregationTypeParameterValueDTO(self): + """Test DataservicesQueryAggregationTypeParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryAggregationTypeParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryAggregationTypeParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_distribution_bin_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_distribution_bin_dto.py new file mode 100644 index 0000000000..27e03cace3 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_distribution_bin_dto import DataservicesQueryCellDistributionBinDTO + +class TestDataservicesQueryCellDistributionBinDTO(unittest.TestCase): + """DataservicesQueryCellDistributionBinDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellDistributionBinDTO: + """Test DataservicesQueryCellDistributionBinDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellDistributionBinDTO( + support = '', + value = '' + ) + else: + return DataservicesQueryCellDistributionBinDTO( + ) + + def testDataservicesQueryCellDistributionBinDTO(self): + """Test DataservicesQueryCellDistributionBinDTO""" + def validate_instance(instance): + DataservicesQueryCellDistributionBinDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellDistributionBinDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_distribution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_distribution_options_dto.py new file mode 100644 index 0000000000..a9299b69e0 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_distribution_options_dto import DataservicesQueryCellDistributionOptionsDTO + +class TestDataservicesQueryCellDistributionOptionsDTO(unittest.TestCase): + """DataservicesQueryCellDistributionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellDistributionOptionsDTO: + """Test DataservicesQueryCellDistributionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellDistributionOptionsDTO( + bin_count = 56 + ) + else: + return DataservicesQueryCellDistributionOptionsDTO( + ) + + def testDataservicesQueryCellDistributionOptionsDTO(self): + """Test DataservicesQueryCellDistributionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryCellDistributionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellDistributionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_dto.py new file mode 100644 index 0000000000..9c06e56328 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_dto import DataservicesQueryCellDTO + +class TestDataservicesQueryCellDTO(unittest.TestCase): + """DataservicesQueryCellDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellDTO: + """Test DataservicesQueryCellDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/cell_distribution_bin_dto.dataservices.query.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '' + ) + else: + return DataservicesQueryCellDTO( + ) + + def testDataservicesQueryCellDTO(self): + """Test DataservicesQueryCellDTO""" + def validate_instance(instance): + DataservicesQueryCellDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_set_axis_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_set_axis_dto.py new file mode 100644 index 0000000000..b89c45e091 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_set_axis_dto import DataservicesQueryCellSetAxisDTO + +class TestDataservicesQueryCellSetAxisDTO(unittest.TestCase): + """DataservicesQueryCellSetAxisDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellSetAxisDTO: + """Test DataservicesQueryCellSetAxisDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellSetAxisDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + positions = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_position_dto.dataservices.query.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ] + ) + else: + return DataservicesQueryCellSetAxisDTO( + ) + + def testDataservicesQueryCellSetAxisDTO(self): + """Test DataservicesQueryCellSetAxisDTO""" + def validate_instance(instance): + DataservicesQueryCellSetAxisDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellSetAxisDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_set_axis_position_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_set_axis_position_dto.py new file mode 100644 index 0000000000..4c34782c79 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_set_axis_position_dto import DataservicesQueryCellSetAxisPositionDTO + +class TestDataservicesQueryCellSetAxisPositionDTO(unittest.TestCase): + """DataservicesQueryCellSetAxisPositionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellSetAxisPositionDTO: + """Test DataservicesQueryCellSetAxisPositionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ] + ) + else: + return DataservicesQueryCellSetAxisPositionDTO( + ) + + def testDataservicesQueryCellSetAxisPositionDTO(self): + """Test DataservicesQueryCellSetAxisPositionDTO""" + def validate_instance(instance): + DataservicesQueryCellSetAxisPositionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellSetAxisPositionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_set_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_set_dto.py new file mode 100644 index 0000000000..42dab7f78f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_set_dto import DataservicesQueryCellSetDTO + +class TestDataservicesQueryCellSetDTO(unittest.TestCase): + """DataservicesQueryCellSetDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellSetDTO: + """Test DataservicesQueryCellSetDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_dto.dataservices.query.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_position_dto.dataservices.query.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/cell_dto.dataservices.query.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/cell_distribution_bin_dto.dataservices.query.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = visier_api_data_out.models.dataservices/query/lineage_dto.dataservices.query.LineageDTO( + cell_sets = [ + visier_api_data_out.models.dataservices/query/cell_set_dto.dataservices.query.CellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_dto.dataservices.query.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_position_dto.dataservices.query.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/cell_dto.dataservices.query.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/cell_distribution_bin_dto.dataservices.query.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = None, ) + ], + op = '', ) + ) + else: + return DataservicesQueryCellSetDTO( + ) + + def testDataservicesQueryCellSetDTO(self): + """Test DataservicesQueryCellSetDTO""" + def validate_instance(instance): + DataservicesQueryCellSetDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellSetDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cell_set_or_error_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cell_set_or_error_dto.py new file mode 100644 index 0000000000..aa08b04d3c --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_cell_set_or_error_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cell_set_or_error_dto import DataservicesQueryCellSetOrErrorDTO + +class TestDataservicesQueryCellSetOrErrorDTO(unittest.TestCase): + """DataservicesQueryCellSetOrErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCellSetOrErrorDTO: + """Test DataservicesQueryCellSetOrErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCellSetOrErrorDTO( + cell_set = visier_api_data_out.models.dataservices/query/cell_set_dto.dataservices.query.CellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_dto.dataservices.query.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_position_dto.dataservices.query.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/cell_dto.dataservices.query.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/cell_distribution_bin_dto.dataservices.query.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = None, ), + error = visier_api_data_out.models.dataservices/query/query_execution_error_dto.dataservices.query.QueryExecutionErrorDTO( + all_errors = [ + visier_api_data_out.models.dataservices/query/query_execution_errors_dto.dataservices.query.QueryExecutionErrorsDTO( + all_error_details = [ + visier_api_data_out.models.dataservices/query/query_execution_error_details_dto.dataservices.query.QueryExecutionErrorDetailsDTO( + column_index = 56, + error = '', + object_type = '', + query_index = 56, ) + ], + error_code = '', + message = '', ) + ], + error_code = '', + message = '', ) + ) + else: + return DataservicesQueryCellSetOrErrorDTO( + ) + + def testDataservicesQueryCellSetOrErrorDTO(self): + """Test DataservicesQueryCellSetOrErrorDTO""" + def validate_instance(instance): + DataservicesQueryCellSetOrErrorDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCellSetOrErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_cohort_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_cohort_filter_dto.py new file mode 100644 index 0000000000..d7a94ce2db --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_cohort_filter_dto import DataservicesQueryCohortFilterDTO + +class TestDataservicesQueryCohortFilterDTO(unittest.TestCase): + """DataservicesQueryCohortFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryCohortFilterDTO: + """Test DataservicesQueryCohortFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryCohortFilterDTO( + exclude = True, + key_group = visier_api_data_out.models.dataservices/query/key_group_filter_dto.dataservices.query.KeyGroupFilterDTO( + filters = [ + visier_api_data_out.models.dataservices/query/key_group_filter_item_dto.dataservices.query.KeyGroupFilterItemDTO( + formula = '', + member_set = None, + selection_concept = None, ) + ], ), + time_interval = visier_api_data_out.models.dataservices/query/query_time_interval_dto.dataservices.query.QueryTimeIntervalDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, ) + ) + else: + return DataservicesQueryCohortFilterDTO( + ) + + def testDataservicesQueryCohortFilterDTO(self): + """Test DataservicesQueryCohortFilterDTO""" + def validate_instance(instance): + DataservicesQueryCohortFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryCohortFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_internal_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_internal_query_execution_options_dto.py new file mode 100644 index 0000000000..3c18997136 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_internal_query_execution_options_dto import DataservicesQueryInternalQueryExecutionOptionsDTO + +class TestDataservicesQueryInternalQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryInternalQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryInternalQueryExecutionOptionsDTO: + """Test DataservicesQueryInternalQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryInternalQueryExecutionOptionsDTO( + align_time_axis_to_period_end = True, + sparse_handling_mode = 'ALLOW' + ) + else: + return DataservicesQueryInternalQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryInternalQueryExecutionOptionsDTO(self): + """Test DataservicesQueryInternalQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryInternalQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryInternalQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_key_group_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_key_group_filter_dto.py new file mode 100644 index 0000000000..97cefb200f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_key_group_filter_dto import DataservicesQueryKeyGroupFilterDTO + +class TestDataservicesQueryKeyGroupFilterDTO(unittest.TestCase): + """DataservicesQueryKeyGroupFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryKeyGroupFilterDTO: + """Test DataservicesQueryKeyGroupFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryKeyGroupFilterDTO( + filters = [ + visier_api_data_out.models.dataservices/query/key_group_filter_item_dto.dataservices.query.KeyGroupFilterItemDTO( + formula = '', + member_set = None, + selection_concept = None, ) + ] + ) + else: + return DataservicesQueryKeyGroupFilterDTO( + ) + + def testDataservicesQueryKeyGroupFilterDTO(self): + """Test DataservicesQueryKeyGroupFilterDTO""" + def validate_instance(instance): + DataservicesQueryKeyGroupFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryKeyGroupFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_key_group_filter_item_dto.py b/src/visier_api_data_out/test/test_dataservices_query_key_group_filter_item_dto.py new file mode 100644 index 0000000000..9c3ca2c2ba --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_key_group_filter_item_dto import DataservicesQueryKeyGroupFilterItemDTO + +class TestDataservicesQueryKeyGroupFilterItemDTO(unittest.TestCase): + """DataservicesQueryKeyGroupFilterItemDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryKeyGroupFilterItemDTO: + """Test DataservicesQueryKeyGroupFilterItemDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryKeyGroupFilterItemDTO( + formula = '', + member_set = visier_api_data_out.models.dataservices/query/member_filter_dto.dataservices.query.MemberFilterDTO( + dimension = None, + values = None, ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/selection_concept_reference_dto.dataservices.datamodel.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryKeyGroupFilterItemDTO( + ) + + def testDataservicesQueryKeyGroupFilterItemDTO(self): + """Test DataservicesQueryKeyGroupFilterItemDTO""" + def validate_instance(instance): + DataservicesQueryKeyGroupFilterItemDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryKeyGroupFilterItemDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_lineage_dto.py b/src/visier_api_data_out/test/test_dataservices_query_lineage_dto.py new file mode 100644 index 0000000000..cd7919243d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_lineage_dto import DataservicesQueryLineageDTO + +class TestDataservicesQueryLineageDTO(unittest.TestCase): + """DataservicesQueryLineageDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryLineageDTO: + """Test DataservicesQueryLineageDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryLineageDTO( + cell_sets = [ + visier_api_data_out.models.dataservices/query/cell_set_dto.dataservices.query.CellSetDTO( + axes = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_dto.dataservices.query.CellSetAxisDTO( + dimension = None, + positions = [ + visier_api_data_out.models.dataservices/query/cell_set_axis_position_dto.dataservices.query.CellSetAxisPositionDTO( + display_name = '', + display_name_path = [ + '' + ], + path = [ + '' + ], ) + ], ) + ], + cells = [ + visier_api_data_out.models.dataservices/query/cell_dto.dataservices.query.CellDTO( + coordinates = [ + 56 + ], + distribution = [ + visier_api_data_out.models.dataservices/query/cell_distribution_bin_dto.dataservices.query.CellDistributionBinDTO( + support = '', + value = '', ) + ], + support = '', + value = '', ) + ], + lineage = None, ) + ], + op = '' + ) + else: + return DataservicesQueryLineageDTO( + ) + + def testDataservicesQueryLineageDTO(self): + """Test DataservicesQueryLineageDTO""" + def validate_instance(instance): + DataservicesQueryLineageDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryLineageDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_list_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_list_query_execution_dto.py new file mode 100644 index 0000000000..71605f7239 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_list_query_execution_dto import DataservicesQueryListQueryExecutionDTO + +class TestDataservicesQueryListQueryExecutionDTO(unittest.TestCase): + """DataservicesQueryListQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryListQueryExecutionDTO: + """Test DataservicesQueryListQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryListQueryExecutionDTO( + columns = [ + visier_api_data_out.models.dataservices/query/property_column_dto.dataservices.query.PropertyColumnDTO( + column_definition = None, + column_name = '', ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/query_filter_dto.dataservices.query.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + options = visier_api_data_out.models.dataservices/query/list_query_execution_options_dto.dataservices.query.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/query_parameter_value_dto.dataservices.query.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + sort_options = [ + visier_api_data_out.models.dataservices/query/sort_option_dto.dataservices.query.SortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING', ) + ], + source = visier_api_data_out.models.dataservices/query/list_query_source_dto.dataservices.query.ListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '', ), + time_interval = visier_api_data_out.models.dataservices/query/query_time_interval_dto.dataservices.query.QueryTimeIntervalDTO( + direction = 'BACKWARD', + dynamic_date_from = 'SOURCE', + from_date_time = '', + from_instant = '', + interval_period_count = 56, + interval_period_type = 'MONTH', + shift = None, ) + ) + else: + return DataservicesQueryListQueryExecutionDTO( + ) + + def testDataservicesQueryListQueryExecutionDTO(self): + """Test DataservicesQueryListQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQueryListQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryListQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_list_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_list_query_execution_options_dto.py new file mode 100644 index 0000000000..feeef3d6aa --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_list_query_execution_options_dto import DataservicesQueryListQueryExecutionOptionsDTO + +class TestDataservicesQueryListQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryListQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryListQueryExecutionOptionsDTO: + """Test DataservicesQueryListQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryListQueryExecutionOptionsDTO( + 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 DataservicesQueryListQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryListQueryExecutionOptionsDTO(self): + """Test DataservicesQueryListQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryListQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryListQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_list_query_source_dto.py b/src/visier_api_data_out/test/test_dataservices_query_list_query_source_dto.py new file mode 100644 index 0000000000..89ef46edea --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_list_query_source_dto import DataservicesQueryListQuerySourceDTO + +class TestDataservicesQueryListQuerySourceDTO(unittest.TestCase): + """DataservicesQueryListQuerySourceDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryListQuerySourceDTO: + """Test DataservicesQueryListQuerySourceDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '' + ) + else: + return DataservicesQueryListQuerySourceDTO( + ) + + def testDataservicesQueryListQuerySourceDTO(self): + """Test DataservicesQueryListQuerySourceDTO""" + def validate_instance(instance): + DataservicesQueryListQuerySourceDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryListQuerySourceDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_member_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_member_filter_dto.py new file mode 100644 index 0000000000..8470363edd --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_member_filter_dto import DataservicesQueryMemberFilterDTO + +class TestDataservicesQueryMemberFilterDTO(unittest.TestCase): + """DataservicesQueryMemberFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryMemberFilterDTO: + """Test DataservicesQueryMemberFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryMemberFilterDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.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 DataservicesQueryMemberFilterDTO( + ) + + def testDataservicesQueryMemberFilterDTO(self): + """Test DataservicesQueryMemberFilterDTO""" + def validate_instance(instance): + DataservicesQueryMemberFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryMemberFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_member_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_member_parameter_value_dto.py new file mode 100644 index 0000000000..d06dcfefdf --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_member_parameter_value_dto import DataservicesQueryMemberParameterValueDTO + +class TestDataservicesQueryMemberParameterValueDTO(unittest.TestCase): + """DataservicesQueryMemberParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryMemberParameterValueDTO: + """Test DataservicesQueryMemberParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryMemberParameterValueDTO( + 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 DataservicesQueryMemberParameterValueDTO( + ) + + def testDataservicesQueryMemberParameterValueDTO(self): + """Test DataservicesQueryMemberParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryMemberParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryMemberParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_numeric_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_numeric_parameter_value_dto.py new file mode 100644 index 0000000000..ebfb5974c1 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_numeric_parameter_value_dto import DataservicesQueryNumericParameterValueDTO + +class TestDataservicesQueryNumericParameterValueDTO(unittest.TestCase): + """DataservicesQueryNumericParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryNumericParameterValueDTO: + """Test DataservicesQueryNumericParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryNumericParameterValueDTO( + parameter_id = '', + value = 1.337 + ) + else: + return DataservicesQueryNumericParameterValueDTO( + ) + + def testDataservicesQueryNumericParameterValueDTO(self): + """Test DataservicesQueryNumericParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryNumericParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryNumericParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_plan_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_plan_parameter_value_dto.py new file mode 100644 index 0000000000..d00dfcf92d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_plan_parameter_value_dto import DataservicesQueryPlanParameterValueDTO + +class TestDataservicesQueryPlanParameterValueDTO(unittest.TestCase): + """DataservicesQueryPlanParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryPlanParameterValueDTO: + """Test DataservicesQueryPlanParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryPlanParameterValueDTO( + parameter_id = '', + plan_id = '', + scenario_id = '', + snapshot_id = '' + ) + else: + return DataservicesQueryPlanParameterValueDTO( + ) + + def testDataservicesQueryPlanParameterValueDTO(self): + """Test DataservicesQueryPlanParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryPlanParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryPlanParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_property_column_dto.py b/src/visier_api_data_out/test/test_dataservices_query_property_column_dto.py new file mode 100644 index 0000000000..c3475fb9f9 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_property_column_dto import DataservicesQueryPropertyColumnDTO + +class TestDataservicesQueryPropertyColumnDTO(unittest.TestCase): + """DataservicesQueryPropertyColumnDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryPropertyColumnDTO: + """Test DataservicesQueryPropertyColumnDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryPropertyColumnDTO( + column_definition = visier_api_data_out.models.dataservices/query/query_property_dto.dataservices.query.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 DataservicesQueryPropertyColumnDTO( + ) + + def testDataservicesQueryPropertyColumnDTO(self): + """Test DataservicesQueryPropertyColumnDTO""" + def validate_instance(instance): + DataservicesQueryPropertyColumnDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryPropertyColumnDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_axis_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_axis_dto.py new file mode 100644 index 0000000000..ae1b25fe05 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_axis_dto import DataservicesQueryQueryAxisDTO + +class TestDataservicesQueryQueryAxisDTO(unittest.TestCase): + """DataservicesQueryQueryAxisDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryAxisDTO: + """Test DataservicesQueryQueryAxisDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryAxisDTO( + dimension_data_member_selection = visier_api_data_out.models.dataservices/query/query_dimension_data_member_selection_dto.dataservices.query.QueryDimensionDataMemberSelectionDTO( + dimension = None, ), + dimension_leaf_member_selection = visier_api_data_out.models.dataservices/query/query_dimension_leaf_selection_dto.dataservices.query.QueryDimensionLeafSelectionDTO( + dimension = None, ), + dimension_level_selection = visier_api_data_out.models.dataservices/query/query_dimension_level_selection_dto.dataservices.query.QueryDimensionLevelSelectionDTO( + dimension = None, + level_ids = [ + '' + ], ), + dimension_level_with_uncategorized_value_selection = visier_api_data_out.models.dataservices/query/query_dimension_level_selection_dto.dataservices.query.QueryDimensionLevelSelectionDTO( + dimension = None, + level_ids = [ + '' + ], ), + dimension_member_selection = visier_api_data_out.models.dataservices/query/query_dimension_member_selection_dto.dataservices.query.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/query_member_map_selection_dto.dataservices.query.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/query_numeric_ranges_dto.dataservices.query.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/selection_concept_reference_dto.dataservices.datamodel.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ), + table_axis_options = visier_api_data_out.models.dataservices/query/query_axis_options_dto.dataservices.query.QueryAxisOptionsDTO( + column_name = '', + member_display_mode = 'UNCHANGED', ) + ) + else: + return DataservicesQueryQueryAxisDTO( + ) + + def testDataservicesQueryQueryAxisDTO(self): + """Test DataservicesQueryQueryAxisDTO""" + def validate_instance(instance): + DataservicesQueryQueryAxisDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryAxisDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_axis_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_axis_options_dto.py new file mode 100644 index 0000000000..680b0264f6 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_axis_options_dto import DataservicesQueryQueryAxisOptionsDTO + +class TestDataservicesQueryQueryAxisOptionsDTO(unittest.TestCase): + """DataservicesQueryQueryAxisOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryAxisOptionsDTO: + """Test DataservicesQueryQueryAxisOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryAxisOptionsDTO( + column_name = '', + member_display_mode = 'UNCHANGED' + ) + else: + return DataservicesQueryQueryAxisOptionsDTO( + ) + + def testDataservicesQueryQueryAxisOptionsDTO(self): + """Test DataservicesQueryQueryAxisOptionsDTO""" + def validate_instance(instance): + DataservicesQueryQueryAxisOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryAxisOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_dimension_data_member_selection_dto.py new file mode 100644 index 0000000000..20af060ea7 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_dimension_data_member_selection_dto import DataservicesQueryQueryDimensionDataMemberSelectionDTO + +class TestDataservicesQueryQueryDimensionDataMemberSelectionDTO(unittest.TestCase): + """DataservicesQueryQueryDimensionDataMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryDimensionDataMemberSelectionDTO: + """Test DataservicesQueryQueryDimensionDataMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryDimensionDataMemberSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryQueryDimensionDataMemberSelectionDTO( + ) + + def testDataservicesQueryQueryDimensionDataMemberSelectionDTO(self): + """Test DataservicesQueryQueryDimensionDataMemberSelectionDTO""" + def validate_instance(instance): + DataservicesQueryQueryDimensionDataMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryDimensionDataMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_dimension_leaf_selection_dto.py new file mode 100644 index 0000000000..bd876998f4 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_dimension_leaf_selection_dto import DataservicesQueryQueryDimensionLeafSelectionDTO + +class TestDataservicesQueryQueryDimensionLeafSelectionDTO(unittest.TestCase): + """DataservicesQueryQueryDimensionLeafSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryDimensionLeafSelectionDTO: + """Test DataservicesQueryQueryDimensionLeafSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryDimensionLeafSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryQueryDimensionLeafSelectionDTO( + ) + + def testDataservicesQueryQueryDimensionLeafSelectionDTO(self): + """Test DataservicesQueryQueryDimensionLeafSelectionDTO""" + def validate_instance(instance): + DataservicesQueryQueryDimensionLeafSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryDimensionLeafSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_dimension_level_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_dimension_level_property_dto.py new file mode 100644 index 0000000000..2472e0df39 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_dimension_level_property_dto import DataservicesQueryQueryDimensionLevelPropertyDTO + +class TestDataservicesQueryQueryDimensionLevelPropertyDTO(unittest.TestCase): + """DataservicesQueryQueryDimensionLevelPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryDimensionLevelPropertyDTO: + """Test DataservicesQueryQueryDimensionLevelPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryDimensionLevelPropertyDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + level_depth = 56, + level_id = '', + member_value_mode = 'NAME' + ) + else: + return DataservicesQueryQueryDimensionLevelPropertyDTO( + ) + + def testDataservicesQueryQueryDimensionLevelPropertyDTO(self): + """Test DataservicesQueryQueryDimensionLevelPropertyDTO""" + def validate_instance(instance): + DataservicesQueryQueryDimensionLevelPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryDimensionLevelPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_dimension_level_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_dimension_level_selection_dto.py new file mode 100644 index 0000000000..c903bffbf0 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_dimension_level_selection_dto import DataservicesQueryQueryDimensionLevelSelectionDTO + +class TestDataservicesQueryQueryDimensionLevelSelectionDTO(unittest.TestCase): + """DataservicesQueryQueryDimensionLevelSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryDimensionLevelSelectionDTO: + """Test DataservicesQueryQueryDimensionLevelSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryDimensionLevelSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + level_ids = [ + '' + ] + ) + else: + return DataservicesQueryQueryDimensionLevelSelectionDTO( + ) + + def testDataservicesQueryQueryDimensionLevelSelectionDTO(self): + """Test DataservicesQueryQueryDimensionLevelSelectionDTO""" + def validate_instance(instance): + DataservicesQueryQueryDimensionLevelSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryDimensionLevelSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_dimension_member_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_dimension_member_selection_dto.py new file mode 100644 index 0000000000..b552d406c3 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_dimension_member_selection_dto import DataservicesQueryQueryDimensionMemberSelectionDTO + +class TestDataservicesQueryQueryDimensionMemberSelectionDTO(unittest.TestCase): + """DataservicesQueryQueryDimensionMemberSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryDimensionMemberSelectionDTO: + """Test DataservicesQueryQueryDimensionMemberSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryDimensionMemberSelectionDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + members = [ + visier_api_data_out.models.dataservices/common/dimension_member_reference_dto.dataservices.common.DimensionMemberReferenceDTO( + path = [ + '' + ], ) + ] + ) + else: + return DataservicesQueryQueryDimensionMemberSelectionDTO( + ) + + def testDataservicesQueryQueryDimensionMemberSelectionDTO(self): + """Test DataservicesQueryQueryDimensionMemberSelectionDTO""" + def validate_instance(instance): + DataservicesQueryQueryDimensionMemberSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryDimensionMemberSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_execution_error_details_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_execution_error_details_dto.py new file mode 100644 index 0000000000..7d892de21e --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_query_execution_error_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_execution_error_details_dto import DataservicesQueryQueryExecutionErrorDetailsDTO + +class TestDataservicesQueryQueryExecutionErrorDetailsDTO(unittest.TestCase): + """DataservicesQueryQueryExecutionErrorDetailsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryExecutionErrorDetailsDTO: + """Test DataservicesQueryQueryExecutionErrorDetailsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryExecutionErrorDetailsDTO( + column_index = 56, + error = '', + object_type = '', + query_index = 56 + ) + else: + return DataservicesQueryQueryExecutionErrorDetailsDTO( + ) + + def testDataservicesQueryQueryExecutionErrorDetailsDTO(self): + """Test DataservicesQueryQueryExecutionErrorDetailsDTO""" + def validate_instance(instance): + DataservicesQueryQueryExecutionErrorDetailsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryExecutionErrorDetailsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_execution_error_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_execution_error_dto.py new file mode 100644 index 0000000000..7586310e65 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_query_execution_error_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_execution_error_dto import DataservicesQueryQueryExecutionErrorDTO + +class TestDataservicesQueryQueryExecutionErrorDTO(unittest.TestCase): + """DataservicesQueryQueryExecutionErrorDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryExecutionErrorDTO: + """Test DataservicesQueryQueryExecutionErrorDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryExecutionErrorDTO( + all_errors = [ + visier_api_data_out.models.dataservices/query/query_execution_errors_dto.dataservices.query.QueryExecutionErrorsDTO( + all_error_details = [ + visier_api_data_out.models.dataservices/query/query_execution_error_details_dto.dataservices.query.QueryExecutionErrorDetailsDTO( + column_index = 56, + error = '', + object_type = '', + query_index = 56, ) + ], + error_code = '', + message = '', ) + ], + error_code = '', + message = '' + ) + else: + return DataservicesQueryQueryExecutionErrorDTO( + ) + + def testDataservicesQueryQueryExecutionErrorDTO(self): + """Test DataservicesQueryQueryExecutionErrorDTO""" + def validate_instance(instance): + DataservicesQueryQueryExecutionErrorDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryExecutionErrorDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_execution_errors_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_execution_errors_dto.py new file mode 100644 index 0000000000..1288032957 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_query_execution_errors_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_execution_errors_dto import DataservicesQueryQueryExecutionErrorsDTO + +class TestDataservicesQueryQueryExecutionErrorsDTO(unittest.TestCase): + """DataservicesQueryQueryExecutionErrorsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryExecutionErrorsDTO: + """Test DataservicesQueryQueryExecutionErrorsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryExecutionErrorsDTO( + all_error_details = [ + visier_api_data_out.models.dataservices/query/query_execution_error_details_dto.dataservices.query.QueryExecutionErrorDetailsDTO( + column_index = 56, + error = '', + object_type = '', + query_index = 56, ) + ], + error_code = '', + message = '' + ) + else: + return DataservicesQueryQueryExecutionErrorsDTO( + ) + + def testDataservicesQueryQueryExecutionErrorsDTO(self): + """Test DataservicesQueryQueryExecutionErrorsDTO""" + def validate_instance(instance): + DataservicesQueryQueryExecutionErrorsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryExecutionErrorsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_execution_options_dto.py new file mode 100644 index 0000000000..44aa8d83cf --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_execution_options_dto import DataservicesQueryQueryExecutionOptionsDTO + +class TestDataservicesQueryQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQueryQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryExecutionOptionsDTO: + """Test DataservicesQueryQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/cell_distribution_options_dto.dataservices.query.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/internal_query_execution_options_dto.dataservices.query.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 DataservicesQueryQueryExecutionOptionsDTO( + ) + + def testDataservicesQueryQueryExecutionOptionsDTO(self): + """Test DataservicesQueryQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQueryQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_filter_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_filter_dto.py new file mode 100644 index 0000000000..08e5d205f8 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_filter_dto import DataservicesQueryQueryFilterDTO + +class TestDataservicesQueryQueryFilterDTO(unittest.TestCase): + """DataservicesQueryQueryFilterDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryFilterDTO: + """Test DataservicesQueryQueryFilterDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryFilterDTO( + cohort = visier_api_data_out.models.dataservices/query/cohort_filter_dto.dataservices.query.CohortFilterDTO( + exclude = True, + key_group = None, + time_interval = None, ), + formula = '', + member_set = visier_api_data_out.models.dataservices/query/member_filter_dto.dataservices.query.MemberFilterDTO( + dimension = None, + values = None, ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/selection_concept_reference_dto.dataservices.datamodel.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryQueryFilterDTO( + ) + + def testDataservicesQueryQueryFilterDTO(self): + """Test DataservicesQueryQueryFilterDTO""" + def validate_instance(instance): + DataservicesQueryQueryFilterDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryFilterDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_member_map_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_member_map_property_dto.py new file mode 100644 index 0000000000..b4c1577e81 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_member_map_property_dto import DataservicesQueryQueryMemberMapPropertyDTO + +class TestDataservicesQueryQueryMemberMapPropertyDTO(unittest.TestCase): + """DataservicesQueryQueryMemberMapPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryMemberMapPropertyDTO: + """Test DataservicesQueryQueryMemberMapPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryMemberMapPropertyDTO( + member_map = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + target_dimension_name = '' + ) + else: + return DataservicesQueryQueryMemberMapPropertyDTO( + ) + + def testDataservicesQueryQueryMemberMapPropertyDTO(self): + """Test DataservicesQueryQueryMemberMapPropertyDTO""" + def validate_instance(instance): + DataservicesQueryQueryMemberMapPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryMemberMapPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_member_map_selection_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_member_map_selection_dto.py new file mode 100644 index 0000000000..13053f0043 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_member_map_selection_dto import DataservicesQueryQueryMemberMapSelectionDTO + +class TestDataservicesQueryQueryMemberMapSelectionDTO(unittest.TestCase): + """DataservicesQueryQueryMemberMapSelectionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryMemberMapSelectionDTO: + """Test DataservicesQueryQueryMemberMapSelectionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryMemberMapSelectionDTO( + member_map = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.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 DataservicesQueryQueryMemberMapSelectionDTO( + ) + + def testDataservicesQueryQueryMemberMapSelectionDTO(self): + """Test DataservicesQueryQueryMemberMapSelectionDTO""" + def validate_instance(instance): + DataservicesQueryQueryMemberMapSelectionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryMemberMapSelectionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_numeric_ranges_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_numeric_ranges_dto.py new file mode 100644 index 0000000000..364ec52062 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_numeric_ranges_dto import DataservicesQueryQueryNumericRangesDTO + +class TestDataservicesQueryQueryNumericRangesDTO(unittest.TestCase): + """DataservicesQueryQueryNumericRangesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryNumericRangesDTO: + """Test DataservicesQueryQueryNumericRangesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryNumericRangesDTO( + include_all_member = True, + include_independent_zero_range = True, + include_negative = True, + var_property = visier_api_data_out.models.dataservices/query/query_property_dto.dataservices.query.QueryPropertyDTO( + dimension = None, + dimension_level_selection = None, + effective_date_property = None, + formula = '', + member_map_property = None, + property = None, + selection_concept = None, ), + ranges = '' + ) + else: + return DataservicesQueryQueryNumericRangesDTO( + ) + + def testDataservicesQueryQueryNumericRangesDTO(self): + """Test DataservicesQueryQueryNumericRangesDTO""" + def validate_instance(instance): + DataservicesQueryQueryNumericRangesDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryNumericRangesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_parameter_value_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_parameter_value_dto.py new file mode 100644 index 0000000000..95966203d2 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO + +class TestDataservicesQueryQueryParameterValueDTO(unittest.TestCase): + """DataservicesQueryQueryParameterValueDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryParameterValueDTO: + """Test DataservicesQueryQueryParameterValueDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryParameterValueDTO( + aggregation_type_value = visier_api_data_out.models.dataservices/query/aggregation_type_parameter_value_dto.dataservices.query.AggregationTypeParameterValueDTO( + aggregation_option_id = '', + parameter_id = '', ), + member_value = visier_api_data_out.models.dataservices/query/member_parameter_value_dto.dataservices.query.MemberParameterValueDTO( + dimension_id = '', + parameter_id = '', + reference_path = [ + '' + ], + values = None, ), + numeric_value = visier_api_data_out.models.dataservices/query/numeric_parameter_value_dto.dataservices.query.NumericParameterValueDTO( + parameter_id = '', + value = 1.337, ), + plan_value = visier_api_data_out.models.dataservices/query/plan_parameter_value_dto.dataservices.query.PlanParameterValueDTO( + parameter_id = '', + plan_id = '', + scenario_id = '', + snapshot_id = '', ) + ) + else: + return DataservicesQueryQueryParameterValueDTO( + ) + + def testDataservicesQueryQueryParameterValueDTO(self): + """Test DataservicesQueryQueryParameterValueDTO""" + def validate_instance(instance): + DataservicesQueryQueryParameterValueDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryParameterValueDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_property_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_property_dto.py new file mode 100644 index 0000000000..e26d2c3298 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_property_dto import DataservicesQueryQueryPropertyDTO + +class TestDataservicesQueryQueryPropertyDTO(unittest.TestCase): + """DataservicesQueryQueryPropertyDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryPropertyDTO: + """Test DataservicesQueryQueryPropertyDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryPropertyDTO( + dimension = visier_api_data_out.models.dataservices/datamodel/dimension_reference_dto.dataservices.datamodel.DimensionReferenceDTO( + name = '', + qualifying_path = '', ), + dimension_level_selection = visier_api_data_out.models.dataservices/query/query_dimension_level_property_dto.dataservices.query.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/query_member_map_property_dto.dataservices.query.QueryMemberMapPropertyDTO( + member_map = None, + target_dimension_name = '', ), + var_property = visier_api_data_out.models.dataservices/datamodel/property_reference_dto.dataservices.datamodel.PropertyReferenceDTO( + name = '', + qualifying_path = '', ), + selection_concept = visier_api_data_out.models.dataservices/datamodel/selection_concept_reference_dto.dataservices.datamodel.SelectionConceptReferenceDTO( + name = '', + qualifying_path = '', ) + ) + else: + return DataservicesQueryQueryPropertyDTO( + ) + + def testDataservicesQueryQueryPropertyDTO(self): + """Test DataservicesQueryQueryPropertyDTO""" + def validate_instance(instance): + DataservicesQueryQueryPropertyDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryPropertyDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_time_interval_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_time_interval_dto.py new file mode 100644 index 0000000000..3be620834d --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_time_interval_dto import DataservicesQueryQueryTimeIntervalDTO + +class TestDataservicesQueryQueryTimeIntervalDTO(unittest.TestCase): + """DataservicesQueryQueryTimeIntervalDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryTimeIntervalDTO: + """Test DataservicesQueryQueryTimeIntervalDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryTimeIntervalDTO( + 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/time_shift_dto.dataservices.query.TimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH', ) + ) + else: + return DataservicesQueryQueryTimeIntervalDTO( + ) + + def testDataservicesQueryQueryTimeIntervalDTO(self): + """Test DataservicesQueryQueryTimeIntervalDTO""" + def validate_instance(instance): + DataservicesQueryQueryTimeIntervalDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryTimeIntervalDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_query_time_intervals_dto.py b/src/visier_api_data_out/test/test_dataservices_query_query_time_intervals_dto.py new file mode 100644 index 0000000000..ef911faa8f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_query_time_intervals_dto import DataservicesQueryQueryTimeIntervalsDTO + +class TestDataservicesQueryQueryTimeIntervalsDTO(unittest.TestCase): + """DataservicesQueryQueryTimeIntervalsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryQueryTimeIntervalsDTO: + """Test DataservicesQueryQueryTimeIntervalsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryQueryTimeIntervalsDTO( + 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/time_shift_dto.dataservices.query.TimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH', ), + trailing_period_count = 56, + trailing_period_type = 'MONTH' + ) + else: + return DataservicesQueryQueryTimeIntervalsDTO( + ) + + def testDataservicesQueryQueryTimeIntervalsDTO(self): + """Test DataservicesQueryQueryTimeIntervalsDTO""" + def validate_instance(instance): + DataservicesQueryQueryTimeIntervalsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryQueryTimeIntervalsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_snapshot_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_snapshot_query_execution_dto.py new file mode 100644 index 0000000000..64d3584a21 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_snapshot_query_execution_dto import DataservicesQuerySnapshotQueryExecutionDTO + +class TestDataservicesQuerySnapshotQueryExecutionDTO(unittest.TestCase): + """DataservicesQuerySnapshotQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQuerySnapshotQueryExecutionDTO: + """Test DataservicesQuerySnapshotQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQuerySnapshotQueryExecutionDTO( + columns = [ + visier_api_data_out.models.dataservices/query/property_column_dto.dataservices.query.PropertyColumnDTO( + column_definition = None, + column_name = '', ) + ], + filters = [ + visier_api_data_out.models.dataservices/query/query_filter_dto.dataservices.query.QueryFilterDTO( + cohort = None, + formula = '', + member_set = None, + selection_concept = None, ) + ], + options = visier_api_data_out.models.dataservices/query/snapshot_query_execution_options_dto.dataservices.query.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/query_parameter_value_dto.dataservices.query.QueryParameterValueDTO( + aggregation_type_value = None, + member_value = None, + numeric_value = None, + plan_value = None, ) + ], + sort_options = [ + visier_api_data_out.models.dataservices/query/sort_option_dto.dataservices.query.SortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING', ) + ], + source = visier_api_data_out.models.dataservices/query/list_query_source_dto.dataservices.query.ListQuerySourceDTO( + analytic_object = '', + formula = '', + metric = '', + text_concept = '', ), + time_intervals = visier_api_data_out.models.dataservices/query/query_time_intervals_dto.dataservices.query.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 DataservicesQuerySnapshotQueryExecutionDTO( + ) + + def testDataservicesQuerySnapshotQueryExecutionDTO(self): + """Test DataservicesQuerySnapshotQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQuerySnapshotQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQuerySnapshotQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_snapshot_query_execution_options_dto.py b/src/visier_api_data_out/test/test_dataservices_query_snapshot_query_execution_options_dto.py new file mode 100644 index 0000000000..b5c9c0da3f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_snapshot_query_execution_options_dto import DataservicesQuerySnapshotQueryExecutionOptionsDTO + +class TestDataservicesQuerySnapshotQueryExecutionOptionsDTO(unittest.TestCase): + """DataservicesQuerySnapshotQueryExecutionOptionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQuerySnapshotQueryExecutionOptionsDTO: + """Test DataservicesQuerySnapshotQueryExecutionOptionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQuerySnapshotQueryExecutionOptionsDTO( + 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 DataservicesQuerySnapshotQueryExecutionOptionsDTO( + ) + + def testDataservicesQuerySnapshotQueryExecutionOptionsDTO(self): + """Test DataservicesQuerySnapshotQueryExecutionOptionsDTO""" + def validate_instance(instance): + DataservicesQuerySnapshotQueryExecutionOptionsDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQuerySnapshotQueryExecutionOptionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_sort_option_dto.py b/src/visier_api_data_out/test/test_dataservices_query_sort_option_dto.py new file mode 100644 index 0000000000..abc79c9c73 --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_sort_option_dto import DataservicesQuerySortOptionDTO + +class TestDataservicesQuerySortOptionDTO(unittest.TestCase): + """DataservicesQuerySortOptionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQuerySortOptionDTO: + """Test DataservicesQuerySortOptionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQuerySortOptionDTO( + column_index = 56, + sort_direction = 'SORT_ASCENDING' + ) + else: + return DataservicesQuerySortOptionDTO( + ) + + def testDataservicesQuerySortOptionDTO(self): + """Test DataservicesQuerySortOptionDTO""" + def validate_instance(instance): + DataservicesQuerySortOptionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQuerySortOptionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_sql_like_query_execution_dto.py b/src/visier_api_data_out/test/test_dataservices_query_sql_like_query_execution_dto.py new file mode 100644 index 0000000000..c512253a9f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_sql_like_query_execution_dto import DataservicesQuerySqlLikeQueryExecutionDTO + +class TestDataservicesQuerySqlLikeQueryExecutionDTO(unittest.TestCase): + """DataservicesQuerySqlLikeQueryExecutionDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQuerySqlLikeQueryExecutionDTO: + """Test DataservicesQuerySqlLikeQueryExecutionDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQuerySqlLikeQueryExecutionDTO( + options = visier_api_data_out.models.dataservices/query/query_execution_options_dto.dataservices.query.QueryExecutionOptionsDTO( + axes_overall_value_mode = 'NONE', + axis_visibility = 'SIMPLE', + calendar_type = 'TENANT_CALENDAR', + cell_distribution_options = visier_api_data_out.models.dataservices/query/cell_distribution_options_dto.dataservices.query.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/internal_query_execution_options_dto.dataservices.query.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 DataservicesQuerySqlLikeQueryExecutionDTO( + ) + + def testDataservicesQuerySqlLikeQueryExecutionDTO(self): + """Test DataservicesQuerySqlLikeQueryExecutionDTO""" + def validate_instance(instance): + DataservicesQuerySqlLikeQueryExecutionDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQuerySqlLikeQueryExecutionDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_time_shift_dto.py b/src/visier_api_data_out/test/test_dataservices_query_time_shift_dto.py new file mode 100644 index 0000000000..f969c1235f --- /dev/null +++ b/src/visier_api_data_out/test/test_dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_time_shift_dto import DataservicesQueryTimeShiftDTO + +class TestDataservicesQueryTimeShiftDTO(unittest.TestCase): + """DataservicesQueryTimeShiftDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataservicesQueryTimeShiftDTO: + """Test DataservicesQueryTimeShiftDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DataservicesQueryTimeShiftDTO( + direction = 'BACKWARD', + period_count = 56, + period_type = 'MONTH' + ) + else: + return DataservicesQueryTimeShiftDTO( + ) + + def testDataservicesQueryTimeShiftDTO(self): + """Test DataservicesQueryTimeShiftDTO""" + def validate_instance(instance): + DataservicesQueryTimeShiftDTO.model_validate(inst_req_only) + instance_deserialized = DataservicesQueryTimeShiftDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 deleted file mode 100644 index 5c7aeb14ee..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 1292c6b101..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 2f7e225809..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 43cc41642d..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 467f3fec18..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index bac516ccda..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 43cfaf5bdd..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 10072d7a4f..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 78b1f481d2..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index db78756681..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 7ffc269024..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 25b11581b7..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 3aa1d46989..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 79369d0188..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 5d36ebebe0..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 56776fe6ec..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 7188a5649d..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index a25561608a..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index c4d778bccb..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 567c59ad0d..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 60ceeb62bc..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index c38ce9307b..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 73f11b0129..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 9651c2d28a..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 659fa4bade..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 1a1158a7d8..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index e680ec70f7..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 998ac38562..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 7c442c0752..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 65357e28c3..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index e858b4a773..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 37f6a78867..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index d9d45f5384..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 573ee317a8..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 17197efa12..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 4b0a351101..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index cf1d716897..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 91d9e54b9f..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 10c36b65c6..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 35638d6c3a..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index bc1cafce1e..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 08d2212dad..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 66727e843b..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 18fc085a7f..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 6d5f18940b..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index fd728a04ec..0000000000 --- a/src/visier_api_data_out/test/test_dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_data_version_export_column_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_column_dto.py new file mode 100644 index 0000000000..2c6315fa43 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_column_dto import DesignerDataVersionExportColumnDTO + +class TestDesignerDataVersionExportColumnDTO(unittest.TestCase): + """DesignerDataVersionExportColumnDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportColumnDTO: + """Test DesignerDataVersionExportColumnDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '' + ) + else: + return DesignerDataVersionExportColumnDTO( + ) + + def testDesignerDataVersionExportColumnDTO(self): + """Test DesignerDataVersionExportColumnDTO""" + def validate_instance(instance): + DesignerDataVersionExportColumnDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportColumnDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_data_version_summary_dto.py new file mode 100644 index 0000000000..4370e3e549 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_data_version_summary_dto import DesignerDataVersionExportDataVersionSummaryDTO + +class TestDesignerDataVersionExportDataVersionSummaryDTO(unittest.TestCase): + """DesignerDataVersionExportDataVersionSummaryDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportDataVersionSummaryDTO: + """Test DesignerDataVersionExportDataVersionSummaryDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportDataVersionSummaryDTO( + created = '', + data_category = '', + data_version = '' + ) + else: + return DesignerDataVersionExportDataVersionSummaryDTO( + ) + + def testDesignerDataVersionExportDataVersionSummaryDTO(self): + """Test DesignerDataVersionExportDataVersionSummaryDTO""" + def validate_instance(instance): + DesignerDataVersionExportDataVersionSummaryDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportDataVersionSummaryDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_data_versions_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_data_versions_dto.py new file mode 100644 index 0000000000..065d6c2cf6 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_data_versions_dto import DesignerDataVersionExportDataVersionsDTO + +class TestDesignerDataVersionExportDataVersionsDTO(unittest.TestCase): + """DesignerDataVersionExportDataVersionsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportDataVersionsDTO: + """Test DesignerDataVersionExportDataVersionsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportDataVersionsDTO( + data_versions = [ + visier_api_data_out.models.designer/data_version_export_data_version_summary_dto.designer.DataVersionExportDataVersionSummaryDTO( + created = '', + data_category = '', + data_version = '', ) + ] + ) + else: + return DesignerDataVersionExportDataVersionsDTO( + ) + + def testDesignerDataVersionExportDataVersionsDTO(self): + """Test DesignerDataVersionExportDataVersionsDTO""" + def validate_instance(instance): + DesignerDataVersionExportDataVersionsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportDataVersionsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_dto.py new file mode 100644 index 0000000000..eae3a3232d --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_dto import DesignerDataVersionExportDTO + +class TestDesignerDataVersionExportDTO(unittest.TestCase): + """DesignerDataVersionExportDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportDTO: + """Test DesignerDataVersionExportDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportDTO( + base_data_version_number = '', + data_version_number = '', + deleted_tables = [ + '' + ], + new_tables = [ + '' + ], + tables = [ + visier_api_data_out.models.designer/data_version_export_table_dto.designer.DataVersionExportTableDTO( + common_columns = None, + deleted_columns = [ + '' + ], + name = '', + new_columns = None, ) + ], + timestamp = '', + uuid = '' + ) + else: + return DesignerDataVersionExportDTO( + ) + + def testDesignerDataVersionExportDTO(self): + """Test DesignerDataVersionExportDTO""" + def validate_instance(instance): + DesignerDataVersionExportDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_file_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_file_dto.py new file mode 100644 index 0000000000..45e579085e --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_file_dto import DesignerDataVersionExportFileDTO + +class TestDesignerDataVersionExportFileDTO(unittest.TestCase): + """DesignerDataVersionExportFileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportFileDTO: + """Test DesignerDataVersionExportFileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/data_version_export_column_dto.designer.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/data_version_export_part_file_dto.designer.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ] + ) + else: + return DesignerDataVersionExportFileDTO( + ) + + def testDesignerDataVersionExportFileDTO(self): + """Test DesignerDataVersionExportFileDTO""" + def validate_instance(instance): + DesignerDataVersionExportFileDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportFileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_job_status_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_job_status_dto.py new file mode 100644 index 0000000000..f88c2f8066 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_job_status_dto import DesignerDataVersionExportJobStatusDTO + +class TestDesignerDataVersionExportJobStatusDTO(unittest.TestCase): + """DesignerDataVersionExportJobStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportJobStatusDTO: + """Test DesignerDataVersionExportJobStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportJobStatusDTO( + completed = True, + export_uuid = '', + failed = True, + job_uuid = '' + ) + else: + return DesignerDataVersionExportJobStatusDTO( + ) + + def testDesignerDataVersionExportJobStatusDTO(self): + """Test DesignerDataVersionExportJobStatusDTO""" + def validate_instance(instance): + DesignerDataVersionExportJobStatusDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportJobStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_part_file_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_part_file_dto.py new file mode 100644 index 0000000000..6011def054 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_part_file_dto import DesignerDataVersionExportPartFileDTO + +class TestDesignerDataVersionExportPartFileDTO(unittest.TestCase): + """DesignerDataVersionExportPartFileDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportPartFileDTO: + """Test DesignerDataVersionExportPartFileDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportPartFileDTO( + file_id = 56, + filename = '' + ) + else: + return DesignerDataVersionExportPartFileDTO( + ) + + def testDesignerDataVersionExportPartFileDTO(self): + """Test DesignerDataVersionExportPartFileDTO""" + def validate_instance(instance): + DesignerDataVersionExportPartFileDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportPartFileDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_schedule_job_request_dto.py new file mode 100644 index 0000000000..d002c82b4a --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_schedule_job_request_dto import DesignerDataVersionExportScheduleJobRequestDTO + +class TestDesignerDataVersionExportScheduleJobRequestDTO(unittest.TestCase): + """DesignerDataVersionExportScheduleJobRequestDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportScheduleJobRequestDTO: + """Test DesignerDataVersionExportScheduleJobRequestDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportScheduleJobRequestDTO( + base_data_version_number = '', + data_version_number = '' + ) + else: + return DesignerDataVersionExportScheduleJobRequestDTO( + ) + + def testDesignerDataVersionExportScheduleJobRequestDTO(self): + """Test DesignerDataVersionExportScheduleJobRequestDTO""" + def validate_instance(instance): + DesignerDataVersionExportScheduleJobRequestDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportScheduleJobRequestDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_schedule_job_response_dto.py new file mode 100644 index 0000000000..cbd568b822 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_schedule_job_response_dto import DesignerDataVersionExportScheduleJobResponseDTO + +class TestDesignerDataVersionExportScheduleJobResponseDTO(unittest.TestCase): + """DesignerDataVersionExportScheduleJobResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportScheduleJobResponseDTO: + """Test DesignerDataVersionExportScheduleJobResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportScheduleJobResponseDTO( + job_uuid = '' + ) + else: + return DesignerDataVersionExportScheduleJobResponseDTO( + ) + + def testDesignerDataVersionExportScheduleJobResponseDTO(self): + """Test DesignerDataVersionExportScheduleJobResponseDTO""" + def validate_instance(instance): + DesignerDataVersionExportScheduleJobResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportScheduleJobResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_export_table_dto.py b/src/visier_api_data_out/test/test_designer_data_version_export_table_dto.py new file mode 100644 index 0000000000..fcd9f924a9 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_export_table_dto import DesignerDataVersionExportTableDTO + +class TestDesignerDataVersionExportTableDTO(unittest.TestCase): + """DesignerDataVersionExportTableDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportTableDTO: + """Test DesignerDataVersionExportTableDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportTableDTO( + common_columns = visier_api_data_out.models.designer/data_version_export_file_dto.designer.DataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/data_version_export_column_dto.designer.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/data_version_export_part_file_dto.designer.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ], ), + deleted_columns = [ + '' + ], + name = '', + new_columns = visier_api_data_out.models.designer/data_version_export_file_dto.designer.DataVersionExportFileDTO( + columns = [ + visier_api_data_out.models.designer/data_version_export_column_dto.designer.DataVersionExportColumnDTO( + allows_null = True, + data_type = '', + is_primary_key_component = True, + name = '', ) + ], + files = [ + visier_api_data_out.models.designer/data_version_export_part_file_dto.designer.DataVersionExportPartFileDTO( + file_id = 56, + filename = '', ) + ], ) + ) + else: + return DesignerDataVersionExportTableDTO( + ) + + def testDesignerDataVersionExportTableDTO(self): + """Test DesignerDataVersionExportTableDTO""" + def validate_instance(instance): + DesignerDataVersionExportTableDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportTableDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_data_version_exports_dto.py b/src/visier_api_data_out/test/test_designer_data_version_exports_dto.py new file mode 100644 index 0000000000..f3b299c8c5 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_data_version_exports_dto import DesignerDataVersionExportsDTO + +class TestDesignerDataVersionExportsDTO(unittest.TestCase): + """DesignerDataVersionExportsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDataVersionExportsDTO: + """Test DesignerDataVersionExportsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDataVersionExportsDTO( + data_version_exports = [ + visier_api_data_out.models.designer/data_version_export_dto.designer.DataVersionExportDTO( + base_data_version_number = '', + data_version_number = '', + deleted_tables = [ + '' + ], + new_tables = [ + '' + ], + tables = [ + visier_api_data_out.models.designer/data_version_export_table_dto.designer.DataVersionExportTableDTO( + common_columns = None, + deleted_columns = [ + '' + ], + name = '', + new_columns = None, ) + ], + timestamp = '', + uuid = '', ) + ] + ) + else: + return DesignerDataVersionExportsDTO( + ) + + def testDesignerDataVersionExportsDTO(self): + """Test DesignerDataVersionExportsDTO""" + def validate_instance(instance): + DesignerDataVersionExportsDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDataVersionExportsDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_download_source_files_dto.py b/src/visier_api_data_out/test/test_designer_download_source_files_dto.py new file mode 100644 index 0000000000..60b4e4ea76 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_download_source_files_dto import DesignerDownloadSourceFilesDTO + +class TestDesignerDownloadSourceFilesDTO(unittest.TestCase): + """DesignerDownloadSourceFilesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDownloadSourceFilesDTO: + """Test DesignerDownloadSourceFilesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDownloadSourceFilesDTO( + download_all = True, + max_timestamp = '', + min_timestamp = '', + source_ids = [ + '' + ], + sources = [ + '' + ] + ) + else: + return DesignerDownloadSourceFilesDTO( + ) + + def testDesignerDownloadSourceFilesDTO(self): + """Test DesignerDownloadSourceFilesDTO""" + def validate_instance(instance): + DesignerDownloadSourceFilesDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDownloadSourceFilesDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_download_source_files_response_dto.py b/src/visier_api_data_out/test/test_designer_download_source_files_response_dto.py new file mode 100644 index 0000000000..06d8d23bc4 --- /dev/null +++ b/src/visier_api_data_out/test/test_designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_download_source_files_response_dto import DesignerDownloadSourceFilesResponseDTO + +class TestDesignerDownloadSourceFilesResponseDTO(unittest.TestCase): + """DesignerDownloadSourceFilesResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DesignerDownloadSourceFilesResponseDTO: + """Test DesignerDownloadSourceFilesResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return DesignerDownloadSourceFilesResponseDTO( + messages = '', + status = '' + ) + else: + return DesignerDownloadSourceFilesResponseDTO( + ) + + def testDesignerDownloadSourceFilesResponseDTO(self): + """Test DesignerDownloadSourceFilesResponseDTO""" + def validate_instance(instance): + DesignerDownloadSourceFilesResponseDTO.model_validate(inst_req_only) + instance_deserialized = DesignerDownloadSourceFilesResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 deleted file mode 100644 index c3c80a99e6..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 01063277d3..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 4303dd7c86..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 1b417a0ce0..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index a572f7a009..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 954c0d5dc4..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index dfc6fa7f51..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 818ae57768..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 6a573f6203..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 5932280413..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 636d5e6af9..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index d94959bad1..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 9af597d009..0000000000 --- a/src/visier_api_data_out/test/test_designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_dv_export_status.py b/src/visier_api_data_out/test/test_dv_export_status.py index 7ce0646b69..e26aa362e7 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 1c82d57015..e4a84373d1 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 161fe2d8e4..2a8c9692f0 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 85d3561265..15628588d8 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_servicing_document_search_link_dto.py b/src/visier_api_data_out/test/test_servicing_document_search_link_dto.py new file mode 100644 index 0000000000..7c41da0252 --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_document_search_link_dto import ServicingDocumentSearchLinkDTO + +class TestServicingDocumentSearchLinkDTO(unittest.TestCase): + """ServicingDocumentSearchLinkDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingDocumentSearchLinkDTO: + """Test ServicingDocumentSearchLinkDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingDocumentSearchLinkDTO( + href = '', + verb = '' + ) + else: + return ServicingDocumentSearchLinkDTO( + ) + + def testServicingDocumentSearchLinkDTO(self): + """Test ServicingDocumentSearchLinkDTO""" + def validate_instance(instance): + ServicingDocumentSearchLinkDTO.model_validate(inst_req_only) + instance_deserialized = ServicingDocumentSearchLinkDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 deleted file mode 100644 index 396c13b9cd..0000000000 --- a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index 06635e8a30..0000000000 --- a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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 deleted file mode 100644 index efad687dc5..0000000000 --- a/src/visier_api_data_out/test/test_servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_servicing_simple_document_header_search_response_dto.py b/src/visier_api_data_out/test/test_servicing_simple_document_header_search_response_dto.py new file mode 100644 index 0000000000..11d994fcfe --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_simple_document_header_search_response_dto import ServicingSimpleDocumentHeaderSearchResponseDTO + +class TestServicingSimpleDocumentHeaderSearchResponseDTO(unittest.TestCase): + """ServicingSimpleDocumentHeaderSearchResponseDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSimpleDocumentHeaderSearchResponseDTO: + """Test ServicingSimpleDocumentHeaderSearchResponseDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSimpleDocumentHeaderSearchResponseDTO( + document_headers = [ + visier_api_data_out.models.servicing/simple_document_header_search_result_dto.servicing.SimpleDocumentHeaderSearchResultDTO( + description = '', + display_name = '', + relevance = 1.337, + view_link = None, ) + ] + ) + else: + return ServicingSimpleDocumentHeaderSearchResponseDTO( + ) + + def testServicingSimpleDocumentHeaderSearchResponseDTO(self): + """Test ServicingSimpleDocumentHeaderSearchResponseDTO""" + def validate_instance(instance): + ServicingSimpleDocumentHeaderSearchResponseDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSimpleDocumentHeaderSearchResponseDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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_simple_document_header_search_result_dto.py b/src/visier_api_data_out/test/test_servicing_simple_document_header_search_result_dto.py new file mode 100644 index 0000000000..13e1b31871 --- /dev/null +++ b/src/visier_api_data_out/test/test_servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_simple_document_header_search_result_dto import ServicingSimpleDocumentHeaderSearchResultDTO + +class TestServicingSimpleDocumentHeaderSearchResultDTO(unittest.TestCase): + """ServicingSimpleDocumentHeaderSearchResultDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServicingSimpleDocumentHeaderSearchResultDTO: + """Test ServicingSimpleDocumentHeaderSearchResultDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return ServicingSimpleDocumentHeaderSearchResultDTO( + description = '', + display_name = '', + relevance = 1.337, + view_link = visier_api_data_out.models.servicing/document_search_link_dto.servicing.DocumentSearchLinkDTO( + href = '', + verb = '', ) + ) + else: + return ServicingSimpleDocumentHeaderSearchResultDTO( + ) + + def testServicingSimpleDocumentHeaderSearchResultDTO(self): + """Test ServicingSimpleDocumentHeaderSearchResultDTO""" + def validate_instance(instance): + ServicingSimpleDocumentHeaderSearchResultDTO.model_validate(inst_req_only) + instance_deserialized = ServicingSimpleDocumentHeaderSearchResultDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 0f440cff07..10930c1843 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. diff --git a/src/visier_api_data_out/test/test_status.py b/src/visier_api_data_out/test/test_status.py index 1b88304319..20dceacb69 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 deleted file mode 100644 index 529b3ba008..0000000000 --- a/src/visier_api_data_out/test/test_systemstatus_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in 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_systemstatus_vee_status_dto.py b/src/visier_api_data_out/test/test_systemstatus_vee_status_dto.py new file mode 100644 index 0000000000..1b269fd7cb --- /dev/null +++ b/src/visier_api_data_out/test/test_systemstatus_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in 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_vee_status_dto import SystemstatusVeeStatusDTO + +class TestSystemstatusVeeStatusDTO(unittest.TestCase): + """SystemstatusVeeStatusDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SystemstatusVeeStatusDTO: + """Test SystemstatusVeeStatusDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + + if include_optional: + return SystemstatusVeeStatusDTO( + overall = '' + ) + else: + return SystemstatusVeeStatusDTO( + ) + + def testSystemstatusVeeStatusDTO(self): + """Test SystemstatusVeeStatusDTO""" + def validate_instance(instance): + SystemstatusVeeStatusDTO.model_validate(inst_req_only) + instance_deserialized = SystemstatusVeeStatusDTO.from_dict(instance.to_dict()) + assert instance == instance_deserialized + + inst_req_only = self.make_instance(include_optional=False) + validate_instance(inst_req_only) + + inst_req_and_optional = 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 63dabfa2f6..37a7362a89 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. 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 338ee7ddd5..204362f642 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/__init__.py b/src/visier_api_data_out/visier_api_data_out/__init__.py index be3e2b44a1..40a9190cd4 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,7 +16,7 @@ """ # noqa: E501 -__version__ = "0.99201.1793" +__version__ = "0.99201.1830" # import apis into sdk package from visier_api_data_out.api.data_query_api import DataQueryApi @@ -28,96 +28,100 @@ # import models into sdk package -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.analysis_common_report_create_request_dto import AnalysisCommonReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_report_dto import AnalysisCommonReportDTO +from visier_api_data_out.models.analysis_common_report_delete_success_dto import AnalysisCommonReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_report_list_response_dto import AnalysisCommonReportListResponseDTO +from visier_api_data_out.models.analysis_common_vee_clarification_dto import AnalysisCommonVeeClarificationDTO +from visier_api_data_out.models.analysis_common_vee_conversation_state_dto import AnalysisCommonVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_vee_corrections_dto import AnalysisCommonVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_vee_data_dto import AnalysisCommonVeeDataDTO +from visier_api_data_out.models.analysis_common_vee_feedback_dto import AnalysisCommonVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_vee_options_dto import AnalysisCommonVeeOptionsDTO +from visier_api_data_out.models.analysis_common_vee_question_dto import AnalysisCommonVeeQuestionDTO +from visier_api_data_out.models.analysis_common_vee_response_dto import AnalysisCommonVeeResponseDTO +from visier_api_data_out.models.analysis_common_vee_response_schema_dto import AnalysisCommonVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_vee_response_schema_reference_dto import AnalysisCommonVeeResponseSchemaReferenceDTO +from visier_api_data_out.models.analysis_common_vee_sample_question_dto import AnalysisCommonVeeSampleQuestionDTO +from visier_api_data_out.models.analysis_common_vee_sample_question_library_dto import AnalysisCommonVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_vee_status_code_dto import AnalysisCommonVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_vee_visual_dto import AnalysisCommonVeeVisualDTO +from visier_api_data_out.models.analysis_common_vee_visual_options_dto import AnalysisCommonVeeVisualOptionsDTO 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.dataservices_datamodel_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_dto import DataservicesQueryAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_execution_dto import DataservicesQueryAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_dto import DataservicesQueryAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_metric_dto import DataservicesQueryAggregationQuerySourceMetricDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_metrics_dto import DataservicesQueryAggregationQuerySourceMetricsDTO +from visier_api_data_out.models.dataservices_query_aggregation_type_parameter_value_dto import DataservicesQueryAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_cell_dto import DataservicesQueryCellDTO +from visier_api_data_out.models.dataservices_query_cell_distribution_bin_dto import DataservicesQueryCellDistributionBinDTO +from visier_api_data_out.models.dataservices_query_cell_distribution_options_dto import DataservicesQueryCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_dto import DataservicesQueryCellSetAxisDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_position_dto import DataservicesQueryCellSetAxisPositionDTO +from visier_api_data_out.models.dataservices_query_cell_set_dto import DataservicesQueryCellSetDTO +from visier_api_data_out.models.dataservices_query_cell_set_or_error_dto import DataservicesQueryCellSetOrErrorDTO +from visier_api_data_out.models.dataservices_query_cohort_filter_dto import DataservicesQueryCohortFilterDTO +from visier_api_data_out.models.dataservices_query_internal_query_execution_options_dto import DataservicesQueryInternalQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_key_group_filter_dto import DataservicesQueryKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_key_group_filter_item_dto import DataservicesQueryKeyGroupFilterItemDTO +from visier_api_data_out.models.dataservices_query_lineage_dto import DataservicesQueryLineageDTO +from visier_api_data_out.models.dataservices_query_list_query_execution_dto import DataservicesQueryListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_list_query_execution_options_dto import DataservicesQueryListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_list_query_source_dto import DataservicesQueryListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_member_filter_dto import DataservicesQueryMemberFilterDTO +from visier_api_data_out.models.dataservices_query_member_parameter_value_dto import DataservicesQueryMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_numeric_parameter_value_dto import DataservicesQueryNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_plan_parameter_value_dto import DataservicesQueryPlanParameterValueDTO +from visier_api_data_out.models.dataservices_query_property_column_dto import DataservicesQueryPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_query_axis_dto import DataservicesQueryQueryAxisDTO +from visier_api_data_out.models.dataservices_query_query_axis_options_dto import DataservicesQueryQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_query_dimension_data_member_selection_dto import DataservicesQueryQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_leaf_selection_dto import DataservicesQueryQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_property_dto import DataservicesQueryQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_selection_dto import DataservicesQueryQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_member_selection_dto import DataservicesQueryQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_execution_error_dto import DataservicesQueryQueryExecutionErrorDTO +from visier_api_data_out.models.dataservices_query_query_execution_error_details_dto import DataservicesQueryQueryExecutionErrorDetailsDTO +from visier_api_data_out.models.dataservices_query_query_execution_errors_dto import DataservicesQueryQueryExecutionErrorsDTO +from visier_api_data_out.models.dataservices_query_query_execution_options_dto import DataservicesQueryQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_query_filter_dto import DataservicesQueryQueryFilterDTO +from visier_api_data_out.models.dataservices_query_query_member_map_property_dto import DataservicesQueryQueryMemberMapPropertyDTO +from visier_api_data_out.models.dataservices_query_query_member_map_selection_dto import DataservicesQueryQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_query_numeric_ranges_dto import DataservicesQueryQueryNumericRangesDTO +from visier_api_data_out.models.dataservices_query_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_query_property_dto import DataservicesQueryQueryPropertyDTO +from visier_api_data_out.models.dataservices_query_query_time_interval_dto import DataservicesQueryQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_query_time_intervals_dto import DataservicesQueryQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_dto import DataservicesQuerySnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_options_dto import DataservicesQuerySnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_sort_option_dto import DataservicesQuerySortOptionDTO +from visier_api_data_out.models.dataservices_query_sql_like_query_execution_dto import DataservicesQuerySqlLikeQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_time_shift_dto import DataservicesQueryTimeShiftDTO +from visier_api_data_out.models.designer_data_version_export_column_dto import DesignerDataVersionExportColumnDTO +from visier_api_data_out.models.designer_data_version_export_dto import DesignerDataVersionExportDTO +from visier_api_data_out.models.designer_data_version_export_data_version_summary_dto import DesignerDataVersionExportDataVersionSummaryDTO +from visier_api_data_out.models.designer_data_version_export_data_versions_dto import DesignerDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_data_version_export_file_dto import DesignerDataVersionExportFileDTO +from visier_api_data_out.models.designer_data_version_export_job_status_dto import DesignerDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_data_version_export_part_file_dto import DesignerDataVersionExportPartFileDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_request_dto import DesignerDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_response_dto import DesignerDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_data_version_export_table_dto import DesignerDataVersionExportTableDTO +from visier_api_data_out.models.designer_data_version_exports_dto import DesignerDataVersionExportsDTO +from visier_api_data_out.models.designer_download_source_files_dto import DesignerDownloadSourceFilesDTO +from visier_api_data_out.models.designer_download_source_files_response_dto import DesignerDownloadSourceFilesResponseDTO 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.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.servicing_document_search_link_dto import ServicingDocumentSearchLinkDTO +from visier_api_data_out.models.servicing_simple_document_header_search_response_dto import ServicingSimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_simple_document_header_search_result_dto import ServicingSimpleDocumentHeaderSearchResultDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response 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.systemstatus_vee_status_dto import SystemstatusVeeStatusDTO from visier_api_data_out.models.table_response_dto import TableResponseDTO 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 9dd0486bc5..96b3a63bf5 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -24,11 +24,11 @@ from typing import Optional from typing_extensions import Annotated 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.dataservices_query_aggregation_query_execution_dto import DataservicesQueryAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_cell_set_or_error_dto import DataservicesQueryCellSetOrErrorDTO +from visier_api_data_out.models.dataservices_query_list_query_execution_dto import DataservicesQueryListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_dto import DataservicesQuerySnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_sql_like_query_execution_dto import DataservicesQuerySqlLikeQueryExecutionDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response import visier_api_data_out.models @@ -48,7 +48,7 @@ def __init__(self, api_client=None) -> None: @validate_call def aggregate( self, - dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, + dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO, 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, - ) -> DataservicesQueryTransfersCellSetDTO: + ) -> DataservicesQueryCellSetOrErrorDTO: """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 dataservices_query_transfers_aggregation_query_execution_dto: (required) - :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO + :param dataservices_query_aggregation_query_execution_dto: (required) + :type dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO :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( - dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, + dataservices_query_aggregation_query_execution_dto=dataservices_query_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': "DataservicesQueryTransfersCellSetDTO", + '200': "DataservicesQueryCellSetOrErrorDTO", } response_data = self.api_client.call_api( *_param, @@ -120,7 +120,7 @@ def aggregate( @validate_call def aggregate_with_http_info( self, - dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, + dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO, 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[DataservicesQueryTransfersCellSetDTO]: + ) -> ApiResponse[DataservicesQueryCellSetOrErrorDTO]: """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 dataservices_query_transfers_aggregation_query_execution_dto: (required) - :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO + :param dataservices_query_aggregation_query_execution_dto: (required) + :type dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO :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( - dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, + dataservices_query_aggregation_query_execution_dto=dataservices_query_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': "DataservicesQueryTransfersCellSetDTO", + '200': "DataservicesQueryCellSetOrErrorDTO", } 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, - dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO, + dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO, 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 dataservices_query_transfers_aggregation_query_execution_dto: (required) - :type dataservices_query_transfers_aggregation_query_execution_dto: DataservicesQueryTransfersAggregationQueryExecutionDTO + :param dataservices_query_aggregation_query_execution_dto: (required) + :type dataservices_query_aggregation_query_execution_dto: DataservicesQueryAggregationQueryExecutionDTO :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( - dataservices_query_transfers_aggregation_query_execution_dto=dataservices_query_transfers_aggregation_query_execution_dto, + dataservices_query_aggregation_query_execution_dto=dataservices_query_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': "DataservicesQueryTransfersCellSetDTO", + '200': "DataservicesQueryCellSetOrErrorDTO", } response_data = self.api_client.call_api( *_param, @@ -258,7 +258,7 @@ def aggregate_without_preload_content( def _aggregate_serialize( self, - dataservices_query_transfers_aggregation_query_execution_dto, + dataservices_query_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 dataservices_query_transfers_aggregation_query_execution_dto is not None: - _body_params = dataservices_query_transfers_aggregation_query_execution_dto + if dataservices_query_aggregation_query_execution_dto is not None: + _body_params = dataservices_query_aggregation_query_execution_dto # set the HTTP header `Accept` @@ -343,7 +343,7 @@ def _aggregate_serialize( @validate_call def list( self, - dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, + dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO, 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, @@ -362,8 +362,8 @@ def list( 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 dataservices_query_transfers_list_query_execution_dto: (required) - :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO + :param dataservices_query_list_query_execution_dto: (required) + :type dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO :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( - dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, + dataservices_query_list_query_execution_dto=dataservices_query_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -415,7 +415,7 @@ def list( @validate_call def list_with_http_info( self, - dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, + dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO, 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, @@ -434,8 +434,8 @@ def list_with_http_info( 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 dataservices_query_transfers_list_query_execution_dto: (required) - :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO + :param dataservices_query_list_query_execution_dto: (required) + :type dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO :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( - dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, + dataservices_query_list_query_execution_dto=dataservices_query_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -487,7 +487,7 @@ def list_with_http_info( @validate_call def list_without_preload_content( self, - dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO, + dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO, 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 dataservices_query_transfers_list_query_execution_dto: (required) - :type dataservices_query_transfers_list_query_execution_dto: DataservicesQueryTransfersListQueryExecutionDTO + :param dataservices_query_list_query_execution_dto: (required) + :type dataservices_query_list_query_execution_dto: DataservicesQueryListQueryExecutionDTO :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( - dataservices_query_transfers_list_query_execution_dto=dataservices_query_transfers_list_query_execution_dto, + dataservices_query_list_query_execution_dto=dataservices_query_list_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -553,7 +553,7 @@ def list_without_preload_content( def _list_serialize( self, - dataservices_query_transfers_list_query_execution_dto, + dataservices_query_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 dataservices_query_transfers_list_query_execution_dto is not None: - _body_params = dataservices_query_transfers_list_query_execution_dto + if dataservices_query_list_query_execution_dto is not None: + _body_params = dataservices_query_list_query_execution_dto # set the HTTP header `Accept` @@ -638,7 +638,7 @@ def _list_serialize( @validate_call def query_snapshot( self, - dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, + dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO, 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,8 +657,8 @@ def query_snapshot( 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 dataservices_query_transfers_snapshot_query_execution_dto: (required) - :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO + :param dataservices_query_snapshot_query_execution_dto: (required) + :type dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO :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( - dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, + dataservices_query_snapshot_query_execution_dto=dataservices_query_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -710,7 +710,7 @@ def query_snapshot( @validate_call def query_snapshot_with_http_info( self, - dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, + dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO, 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,8 +729,8 @@ def query_snapshot_with_http_info( 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 dataservices_query_transfers_snapshot_query_execution_dto: (required) - :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO + :param dataservices_query_snapshot_query_execution_dto: (required) + :type dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO :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( - dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, + dataservices_query_snapshot_query_execution_dto=dataservices_query_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -782,7 +782,7 @@ def query_snapshot_with_http_info( @validate_call def query_snapshot_without_preload_content( self, - dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO, + dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO, 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 dataservices_query_transfers_snapshot_query_execution_dto: (required) - :type dataservices_query_transfers_snapshot_query_execution_dto: DataservicesQueryTransfersSnapshotQueryExecutionDTO + :param dataservices_query_snapshot_query_execution_dto: (required) + :type dataservices_query_snapshot_query_execution_dto: DataservicesQuerySnapshotQueryExecutionDTO :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( - dataservices_query_transfers_snapshot_query_execution_dto=dataservices_query_transfers_snapshot_query_execution_dto, + dataservices_query_snapshot_query_execution_dto=dataservices_query_snapshot_query_execution_dto, target_tenant_id=target_tenant_id, _request_auth=_request_auth, _content_type=_content_type, @@ -848,7 +848,7 @@ def query_snapshot_without_preload_content( def _query_snapshot_serialize( self, - dataservices_query_transfers_snapshot_query_execution_dto, + dataservices_query_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 dataservices_query_transfers_snapshot_query_execution_dto is not None: - _body_params = dataservices_query_transfers_snapshot_query_execution_dto + if dataservices_query_snapshot_query_execution_dto is not None: + _body_params = dataservices_query_snapshot_query_execution_dto # set the HTTP header `Accept` @@ -933,7 +933,7 @@ def _query_snapshot_serialize( @validate_call def sql_like( self, - dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, + dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO, 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 dataservices_query_transfers_sql_like_query_execution_dto: (required) - :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO + :param dataservices_query_sql_like_query_execution_dto: (required) + :type dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO :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( - dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, + dataservices_query_sql_like_query_execution_dto=dataservices_query_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, - dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, + dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO, 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 dataservices_query_transfers_sql_like_query_execution_dto: (required) - :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO + :param dataservices_query_sql_like_query_execution_dto: (required) + :type dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO :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( - dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, + dataservices_query_sql_like_query_execution_dto=dataservices_query_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, - dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO, + dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO, 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 dataservices_query_transfers_sql_like_query_execution_dto: (required) - :type dataservices_query_transfers_sql_like_query_execution_dto: DataservicesQueryTransfersSqlLikeQueryExecutionDTO + :param dataservices_query_sql_like_query_execution_dto: (required) + :type dataservices_query_sql_like_query_execution_dto: DataservicesQuerySqlLikeQueryExecutionDTO :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( - dataservices_query_transfers_sql_like_query_execution_dto=dataservices_query_transfers_sql_like_query_execution_dto, + dataservices_query_sql_like_query_execution_dto=dataservices_query_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, - dataservices_query_transfers_sql_like_query_execution_dto, + dataservices_query_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 dataservices_query_transfers_sql_like_query_execution_dto is not None: - _body_params = dataservices_query_transfers_sql_like_query_execution_dto + if dataservices_query_sql_like_query_execution_dto is not None: + _body_params = dataservices_query_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 ebecfec114..c923feb7d9 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_data_out.models.designer_data_version_export_dto import DesignerDataVersionExportDTO +from visier_api_data_out.models.designer_data_version_export_data_versions_dto import DesignerDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_data_version_export_job_status_dto import DesignerDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_request_dto import DesignerDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_response_dto import DesignerDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_data_version_exports_dto import DesignerDataVersionExportsDTO 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, - ) -> DesignerTransfersDataVersionExportDataVersionsDTO: + ) -> DesignerDataVersionExportDataVersionsDTO: """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': "DesignerTransfersDataVersionExportDataVersionsDTO", + '200': "DesignerDataVersionExportDataVersionsDTO", } 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[DesignerTransfersDataVersionExportDataVersionsDTO]: + ) -> ApiResponse[DesignerDataVersionExportDataVersionsDTO]: """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': "DesignerTransfersDataVersionExportDataVersionsDTO", + '200': "DesignerDataVersionExportDataVersionsDTO", } 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': "DesignerTransfersDataVersionExportDataVersionsDTO", + '200': "DesignerDataVersionExportDataVersionsDTO", } 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, - ) -> DesignerTransfersDataVersionExportsDTO: + ) -> DesignerDataVersionExportsDTO: """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': "DesignerTransfersDataVersionExportsDTO", + '200': "DesignerDataVersionExportsDTO", } 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[DesignerTransfersDataVersionExportsDTO]: + ) -> ApiResponse[DesignerDataVersionExportsDTO]: """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': "DesignerTransfersDataVersionExportsDTO", + '200': "DesignerDataVersionExportsDTO", } 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': "DesignerTransfersDataVersionExportsDTO", + '200': "DesignerDataVersionExportsDTO", } 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, - ) -> DesignerTransfersDataVersionExportDTO: + ) -> DesignerDataVersionExportDTO: """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': "DesignerTransfersDataVersionExportDTO", + '200': "DesignerDataVersionExportDTO", } 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[DesignerTransfersDataVersionExportDTO]: + ) -> ApiResponse[DesignerDataVersionExportDTO]: """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': "DesignerTransfersDataVersionExportDTO", + '200': "DesignerDataVersionExportDTO", } 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': "DesignerTransfersDataVersionExportDTO", + '200': "DesignerDataVersionExportDTO", } 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, - ) -> DesignerTransfersDataVersionExportJobStatusDTO: + ) -> DesignerDataVersionExportJobStatusDTO: """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': "DesignerTransfersDataVersionExportJobStatusDTO", + '200': "DesignerDataVersionExportJobStatusDTO", } 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[DesignerTransfersDataVersionExportJobStatusDTO]: + ) -> ApiResponse[DesignerDataVersionExportJobStatusDTO]: """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': "DesignerTransfersDataVersionExportJobStatusDTO", + '200': "DesignerDataVersionExportJobStatusDTO", } 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': "DesignerTransfersDataVersionExportJobStatusDTO", + '200': "DesignerDataVersionExportJobStatusDTO", } 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, - designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, + designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO, 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, - ) -> DesignerTransfersDataVersionExportScheduleJobResponseDTO: + ) -> DesignerDataVersionExportScheduleJobResponseDTO: """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 designer_transfers_data_version_export_schedule_job_request_dto: (required) - :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO + :param designer_data_version_export_schedule_job_request_dto: (required) + :type designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO :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( - designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, + designer_data_version_export_schedule_job_request_dto=designer_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': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", + '200': "DesignerDataVersionExportScheduleJobResponseDTO", } 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, - designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, + designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO, 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[DesignerTransfersDataVersionExportScheduleJobResponseDTO]: + ) -> ApiResponse[DesignerDataVersionExportScheduleJobResponseDTO]: """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 designer_transfers_data_version_export_schedule_job_request_dto: (required) - :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO + :param designer_data_version_export_schedule_job_request_dto: (required) + :type designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO :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( - designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, + designer_data_version_export_schedule_job_request_dto=designer_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': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", + '200': "DesignerDataVersionExportScheduleJobResponseDTO", } 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, - designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO, + designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO, 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 designer_transfers_data_version_export_schedule_job_request_dto: (required) - :type designer_transfers_data_version_export_schedule_job_request_dto: DesignerTransfersDataVersionExportScheduleJobRequestDTO + :param designer_data_version_export_schedule_job_request_dto: (required) + :type designer_data_version_export_schedule_job_request_dto: DesignerDataVersionExportScheduleJobRequestDTO :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( - designer_transfers_data_version_export_schedule_job_request_dto=designer_transfers_data_version_export_schedule_job_request_dto, + designer_data_version_export_schedule_job_request_dto=designer_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': "DesignerTransfersDataVersionExportScheduleJobResponseDTO", + '200': "DesignerDataVersionExportScheduleJobResponseDTO", } 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, - designer_transfers_data_version_export_schedule_job_request_dto, + designer_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 designer_transfers_data_version_export_schedule_job_request_dto is not None: - _body_params = designer_transfers_data_version_export_schedule_job_request_dto + if designer_data_version_export_schedule_job_request_dto is not None: + _body_params = designer_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 2f4ac04b5c..03c68e9748 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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_report_create_request_dto import AnalysisCommonReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_report_dto import AnalysisCommonReportDTO +from visier_api_data_out.models.analysis_common_report_delete_success_dto import AnalysisCommonReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_report_list_response_dto import AnalysisCommonReportListResponseDTO import visier_api_data_out.models @@ -45,7 +45,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_report( self, - analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, + analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO, 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, - ) -> AnalysisCommonTransfersReportDTO: + ) -> AnalysisCommonReportDTO: """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 analysis_common_transfers_report_create_request_dto: (required) - :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO + :param analysis_common_report_create_request_dto: (required) + :type analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO :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( - analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, + analysis_common_report_create_request_dto=analysis_common_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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } response_data = self.api_client.call_api( *_param, @@ -117,7 +117,7 @@ def create_report( @validate_call def create_report_with_http_info( self, - analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, + analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO, 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[AnalysisCommonTransfersReportDTO]: + ) -> ApiResponse[AnalysisCommonReportDTO]: """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 analysis_common_transfers_report_create_request_dto: (required) - :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO + :param analysis_common_report_create_request_dto: (required) + :type analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO :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( - analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, + analysis_common_report_create_request_dto=analysis_common_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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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, - analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO, + analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO, 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 analysis_common_transfers_report_create_request_dto: (required) - :type analysis_common_transfers_report_create_request_dto: AnalysisCommonTransfersReportCreateRequestDTO + :param analysis_common_report_create_request_dto: (required) + :type analysis_common_report_create_request_dto: AnalysisCommonReportCreateRequestDTO :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( - analysis_common_transfers_report_create_request_dto=analysis_common_transfers_report_create_request_dto, + analysis_common_report_create_request_dto=analysis_common_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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } response_data = self.api_client.call_api( *_param, @@ -255,7 +255,7 @@ def create_report_without_preload_content( def _create_report_serialize( self, - analysis_common_transfers_report_create_request_dto, + analysis_common_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 analysis_common_transfers_report_create_request_dto is not None: - _body_params = analysis_common_transfers_report_create_request_dto + if analysis_common_report_create_request_dto is not None: + _body_params = analysis_common_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, - ) -> AnalysisCommonTransfersReportDeleteSuccessDTO: + ) -> AnalysisCommonReportDeleteSuccessDTO: """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': "AnalysisCommonTransfersReportDeleteSuccessDTO", + '200': "AnalysisCommonReportDeleteSuccessDTO", } 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[AnalysisCommonTransfersReportDeleteSuccessDTO]: + ) -> ApiResponse[AnalysisCommonReportDeleteSuccessDTO]: """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': "AnalysisCommonTransfersReportDeleteSuccessDTO", + '200': "AnalysisCommonReportDeleteSuccessDTO", } 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': "AnalysisCommonTransfersReportDeleteSuccessDTO", + '200': "AnalysisCommonReportDeleteSuccessDTO", } 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, - ) -> AnalysisCommonTransfersReportDTO: + ) -> AnalysisCommonReportDTO: """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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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[AnalysisCommonTransfersReportDTO]: + ) -> ApiResponse[AnalysisCommonReportDTO]: """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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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, - ) -> AnalysisCommonTransfersReportDTO: + ) -> AnalysisCommonReportDTO: """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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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[AnalysisCommonTransfersReportDTO]: + ) -> ApiResponse[AnalysisCommonReportDTO]: """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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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': "AnalysisCommonTransfersReportDTO", + '200': "AnalysisCommonReportDTO", } 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, - ) -> AnalysisCommonTransfersReportListResponseDTO: + ) -> AnalysisCommonReportListResponseDTO: """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': "AnalysisCommonTransfersReportListResponseDTO", + '200': "AnalysisCommonReportListResponseDTO", } 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[AnalysisCommonTransfersReportListResponseDTO]: + ) -> ApiResponse[AnalysisCommonReportListResponseDTO]: """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': "AnalysisCommonTransfersReportListResponseDTO", + '200': "AnalysisCommonReportListResponseDTO", } 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': "AnalysisCommonTransfersReportListResponseDTO", + '200': "AnalysisCommonReportListResponseDTO", } 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 1859be5e10..a93c94db05 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.servicing_publicapi_transfers_simple_document_header_search_response_dto import ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_simple_document_header_search_response_dto import ServicingSimpleDocumentHeaderSearchResponseDTO 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, - ) -> ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO: + ) -> ServicingSimpleDocumentHeaderSearchResponseDTO: """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': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingSimpleDocumentHeaderSearchResponseDTO", } 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[ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO]: + ) -> ApiResponse[ServicingSimpleDocumentHeaderSearchResponseDTO]: """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': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingSimpleDocumentHeaderSearchResponseDTO", } 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': "ServicingPublicapiTransfersSimpleDocumentHeaderSearchResponseDTO", + '200': "ServicingSimpleDocumentHeaderSearchResponseDTO", } 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 f04b3cc97d..2e37555d89 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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.designer_download_source_files_dto import DesignerDownloadSourceFilesDTO +from visier_api_data_out.models.designer_download_source_files_response_dto import DesignerDownloadSourceFilesResponseDTO import visier_api_data_out.models @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call def download_source_files( self, - designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, + designer_download_source_files_dto: DesignerDownloadSourceFilesDTO, 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, - ) -> DesignerTransfersDownloadSourceFilesResponseDTO: + ) -> DesignerDownloadSourceFilesResponseDTO: """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 designer_transfers_download_source_files_dto: (required) - :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO + :param designer_download_source_files_dto: (required) + :type designer_download_source_files_dto: DesignerDownloadSourceFilesDTO :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( - designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, + designer_download_source_files_dto=designer_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': "DesignerTransfersDownloadSourceFilesResponseDTO", + '200': "DesignerDownloadSourceFilesResponseDTO", } 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, - designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, + designer_download_source_files_dto: DesignerDownloadSourceFilesDTO, 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[DesignerTransfersDownloadSourceFilesResponseDTO]: + ) -> ApiResponse[DesignerDownloadSourceFilesResponseDTO]: """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 designer_transfers_download_source_files_dto: (required) - :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO + :param designer_download_source_files_dto: (required) + :type designer_download_source_files_dto: DesignerDownloadSourceFilesDTO :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( - designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, + designer_download_source_files_dto=designer_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': "DesignerTransfersDownloadSourceFilesResponseDTO", + '200': "DesignerDownloadSourceFilesResponseDTO", } 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, - designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO, + designer_download_source_files_dto: DesignerDownloadSourceFilesDTO, 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 designer_transfers_download_source_files_dto: (required) - :type designer_transfers_download_source_files_dto: DesignerTransfersDownloadSourceFilesDTO + :param designer_download_source_files_dto: (required) + :type designer_download_source_files_dto: DesignerDownloadSourceFilesDTO :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( - designer_transfers_download_source_files_dto=designer_transfers_download_source_files_dto, + designer_download_source_files_dto=designer_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': "DesignerTransfersDownloadSourceFilesResponseDTO", + '200': "DesignerDownloadSourceFilesResponseDTO", } 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, - designer_transfers_download_source_files_dto, + designer_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 designer_transfers_download_source_files_dto is not None: - _body_params = designer_transfers_download_source_files_dto + if designer_download_source_files_dto is not None: + _body_params = designer_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 7c7e52cda0..9ade7b081f 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.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 +from visier_api_data_out.models.analysis_common_vee_feedback_dto import AnalysisCommonVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_vee_question_dto import AnalysisCommonVeeQuestionDTO +from visier_api_data_out.models.analysis_common_vee_response_dto import AnalysisCommonVeeResponseDTO +from visier_api_data_out.models.analysis_common_vee_sample_question_library_dto import AnalysisCommonVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_vee_status_code_dto import AnalysisCommonVeeStatusCodeDTO +from visier_api_data_out.models.systemstatus_vee_status_dto import SystemstatusVeeStatusDTO import visier_api_data_out.models @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def vee_feedback( self, - analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, + analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO, 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, - ) -> AnalysisCommonTransfersVeeStatusCodeDTO: + ) -> AnalysisCommonVeeStatusCodeDTO: """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 analysis_common_transfers_vee_feedback_dto: (required) - :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO + :param analysis_common_vee_feedback_dto: (required) + :type analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO :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( - analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, + analysis_common_vee_feedback_dto=analysis_common_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': "AnalysisCommonTransfersVeeStatusCodeDTO", + '200': "AnalysisCommonVeeStatusCodeDTO", } response_data = self.api_client.call_api( *_param, @@ -119,7 +119,7 @@ def vee_feedback( @validate_call def vee_feedback_with_http_info( self, - analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, + analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO, 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[AnalysisCommonTransfersVeeStatusCodeDTO]: + ) -> ApiResponse[AnalysisCommonVeeStatusCodeDTO]: """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 analysis_common_transfers_vee_feedback_dto: (required) - :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO + :param analysis_common_vee_feedback_dto: (required) + :type analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO :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( - analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, + analysis_common_vee_feedback_dto=analysis_common_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': "AnalysisCommonTransfersVeeStatusCodeDTO", + '200': "AnalysisCommonVeeStatusCodeDTO", } 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, - analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO, + analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO, 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 analysis_common_transfers_vee_feedback_dto: (required) - :type analysis_common_transfers_vee_feedback_dto: AnalysisCommonTransfersVeeFeedbackDTO + :param analysis_common_vee_feedback_dto: (required) + :type analysis_common_vee_feedback_dto: AnalysisCommonVeeFeedbackDTO :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( - analysis_common_transfers_vee_feedback_dto=analysis_common_transfers_vee_feedback_dto, + analysis_common_vee_feedback_dto=analysis_common_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': "AnalysisCommonTransfersVeeStatusCodeDTO", + '200': "AnalysisCommonVeeStatusCodeDTO", } response_data = self.api_client.call_api( *_param, @@ -257,7 +257,7 @@ def vee_feedback_without_preload_content( def _vee_feedback_serialize( self, - analysis_common_transfers_vee_feedback_dto, + analysis_common_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 analysis_common_transfers_vee_feedback_dto is not None: - _body_params = analysis_common_transfers_vee_feedback_dto + if analysis_common_vee_feedback_dto is not None: + _body_params = analysis_common_vee_feedback_dto # set the HTTP header `Accept` @@ -340,7 +340,7 @@ def _vee_feedback_serialize( @validate_call def vee_question_request( self, - analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, + analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO, 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, - ) -> AnalysisCommonTransfersVeeResponseDTO: + ) -> AnalysisCommonVeeResponseDTO: """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 analysis_common_transfers_vee_question_dto: (required) - :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO + :param analysis_common_vee_question_dto: (required) + :type analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO :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( - analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, + analysis_common_vee_question_dto=analysis_common_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': "AnalysisCommonTransfersVeeResponseDTO", + '200': "AnalysisCommonVeeResponseDTO", } 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, - analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, + analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO, 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[AnalysisCommonTransfersVeeResponseDTO]: + ) -> ApiResponse[AnalysisCommonVeeResponseDTO]: """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 analysis_common_transfers_vee_question_dto: (required) - :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO + :param analysis_common_vee_question_dto: (required) + :type analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO :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( - analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, + analysis_common_vee_question_dto=analysis_common_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': "AnalysisCommonTransfersVeeResponseDTO", + '200': "AnalysisCommonVeeResponseDTO", } 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, - analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO, + analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO, 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 analysis_common_transfers_vee_question_dto: (required) - :type analysis_common_transfers_vee_question_dto: AnalysisCommonTransfersVeeQuestionDTO + :param analysis_common_vee_question_dto: (required) + :type analysis_common_vee_question_dto: AnalysisCommonVeeQuestionDTO :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( - analysis_common_transfers_vee_question_dto=analysis_common_transfers_vee_question_dto, + analysis_common_vee_question_dto=analysis_common_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': "AnalysisCommonTransfersVeeResponseDTO", + '200': "AnalysisCommonVeeResponseDTO", } 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, - analysis_common_transfers_vee_question_dto, + analysis_common_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 analysis_common_transfers_vee_question_dto is not None: - _body_params = analysis_common_transfers_vee_question_dto + if analysis_common_vee_question_dto is not None: + _body_params = analysis_common_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, - ) -> AnalysisCommonTransfersVeeSampleQuestionLibraryDTO: + ) -> AnalysisCommonVeeSampleQuestionLibraryDTO: """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': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonVeeSampleQuestionLibraryDTO", } 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[AnalysisCommonTransfersVeeSampleQuestionLibraryDTO]: + ) -> ApiResponse[AnalysisCommonVeeSampleQuestionLibraryDTO]: """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': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonVeeSampleQuestionLibraryDTO", } 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': "AnalysisCommonTransfersVeeSampleQuestionLibraryDTO", + '200': "AnalysisCommonVeeSampleQuestionLibraryDTO", } 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, - ) -> SystemstatusPublicapiTransfersVeeStatusDTO: + ) -> SystemstatusVeeStatusDTO: """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': "SystemstatusPublicapiTransfersVeeStatusDTO", + '200': "SystemstatusVeeStatusDTO", } 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[SystemstatusPublicapiTransfersVeeStatusDTO]: + ) -> ApiResponse[SystemstatusVeeStatusDTO]: """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': "SystemstatusPublicapiTransfersVeeStatusDTO", + '200': "SystemstatusVeeStatusDTO", } 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': "SystemstatusPublicapiTransfersVeeStatusDTO", + '200': "SystemstatusVeeStatusDTO", } 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 7438102a0d..1ebc91360c 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta. @@ -16,96 +16,100 @@ # import models into model package -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.analysis_common_report_create_request_dto import AnalysisCommonReportCreateRequestDTO +from visier_api_data_out.models.analysis_common_report_dto import AnalysisCommonReportDTO +from visier_api_data_out.models.analysis_common_report_delete_success_dto import AnalysisCommonReportDeleteSuccessDTO +from visier_api_data_out.models.analysis_common_report_list_response_dto import AnalysisCommonReportListResponseDTO +from visier_api_data_out.models.analysis_common_vee_clarification_dto import AnalysisCommonVeeClarificationDTO +from visier_api_data_out.models.analysis_common_vee_conversation_state_dto import AnalysisCommonVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_vee_corrections_dto import AnalysisCommonVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_vee_data_dto import AnalysisCommonVeeDataDTO +from visier_api_data_out.models.analysis_common_vee_feedback_dto import AnalysisCommonVeeFeedbackDTO +from visier_api_data_out.models.analysis_common_vee_options_dto import AnalysisCommonVeeOptionsDTO +from visier_api_data_out.models.analysis_common_vee_question_dto import AnalysisCommonVeeQuestionDTO +from visier_api_data_out.models.analysis_common_vee_response_dto import AnalysisCommonVeeResponseDTO +from visier_api_data_out.models.analysis_common_vee_response_schema_dto import AnalysisCommonVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_vee_response_schema_reference_dto import AnalysisCommonVeeResponseSchemaReferenceDTO +from visier_api_data_out.models.analysis_common_vee_sample_question_dto import AnalysisCommonVeeSampleQuestionDTO +from visier_api_data_out.models.analysis_common_vee_sample_question_library_dto import AnalysisCommonVeeSampleQuestionLibraryDTO +from visier_api_data_out.models.analysis_common_vee_status_code_dto import AnalysisCommonVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_vee_visual_dto import AnalysisCommonVeeVisualDTO +from visier_api_data_out.models.analysis_common_vee_visual_options_dto import AnalysisCommonVeeVisualOptionsDTO 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.dataservices_datamodel_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_dto import DataservicesQueryAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_execution_dto import DataservicesQueryAggregationQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_dto import DataservicesQueryAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_metric_dto import DataservicesQueryAggregationQuerySourceMetricDTO +from visier_api_data_out.models.dataservices_query_aggregation_query_source_metrics_dto import DataservicesQueryAggregationQuerySourceMetricsDTO +from visier_api_data_out.models.dataservices_query_aggregation_type_parameter_value_dto import DataservicesQueryAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_cell_dto import DataservicesQueryCellDTO +from visier_api_data_out.models.dataservices_query_cell_distribution_bin_dto import DataservicesQueryCellDistributionBinDTO +from visier_api_data_out.models.dataservices_query_cell_distribution_options_dto import DataservicesQueryCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_dto import DataservicesQueryCellSetAxisDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_position_dto import DataservicesQueryCellSetAxisPositionDTO +from visier_api_data_out.models.dataservices_query_cell_set_dto import DataservicesQueryCellSetDTO +from visier_api_data_out.models.dataservices_query_cell_set_or_error_dto import DataservicesQueryCellSetOrErrorDTO +from visier_api_data_out.models.dataservices_query_cohort_filter_dto import DataservicesQueryCohortFilterDTO +from visier_api_data_out.models.dataservices_query_internal_query_execution_options_dto import DataservicesQueryInternalQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_key_group_filter_dto import DataservicesQueryKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_key_group_filter_item_dto import DataservicesQueryKeyGroupFilterItemDTO +from visier_api_data_out.models.dataservices_query_lineage_dto import DataservicesQueryLineageDTO +from visier_api_data_out.models.dataservices_query_list_query_execution_dto import DataservicesQueryListQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_list_query_execution_options_dto import DataservicesQueryListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_list_query_source_dto import DataservicesQueryListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_member_filter_dto import DataservicesQueryMemberFilterDTO +from visier_api_data_out.models.dataservices_query_member_parameter_value_dto import DataservicesQueryMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_numeric_parameter_value_dto import DataservicesQueryNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_plan_parameter_value_dto import DataservicesQueryPlanParameterValueDTO +from visier_api_data_out.models.dataservices_query_property_column_dto import DataservicesQueryPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_query_axis_dto import DataservicesQueryQueryAxisDTO +from visier_api_data_out.models.dataservices_query_query_axis_options_dto import DataservicesQueryQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_query_dimension_data_member_selection_dto import DataservicesQueryQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_leaf_selection_dto import DataservicesQueryQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_property_dto import DataservicesQueryQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_selection_dto import DataservicesQueryQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_member_selection_dto import DataservicesQueryQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_execution_error_dto import DataservicesQueryQueryExecutionErrorDTO +from visier_api_data_out.models.dataservices_query_query_execution_error_details_dto import DataservicesQueryQueryExecutionErrorDetailsDTO +from visier_api_data_out.models.dataservices_query_query_execution_errors_dto import DataservicesQueryQueryExecutionErrorsDTO +from visier_api_data_out.models.dataservices_query_query_execution_options_dto import DataservicesQueryQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_query_filter_dto import DataservicesQueryQueryFilterDTO +from visier_api_data_out.models.dataservices_query_query_member_map_property_dto import DataservicesQueryQueryMemberMapPropertyDTO +from visier_api_data_out.models.dataservices_query_query_member_map_selection_dto import DataservicesQueryQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_query_numeric_ranges_dto import DataservicesQueryQueryNumericRangesDTO +from visier_api_data_out.models.dataservices_query_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_query_property_dto import DataservicesQueryQueryPropertyDTO +from visier_api_data_out.models.dataservices_query_query_time_interval_dto import DataservicesQueryQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_query_time_intervals_dto import DataservicesQueryQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_dto import DataservicesQuerySnapshotQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_options_dto import DataservicesQuerySnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_sort_option_dto import DataservicesQuerySortOptionDTO +from visier_api_data_out.models.dataservices_query_sql_like_query_execution_dto import DataservicesQuerySqlLikeQueryExecutionDTO +from visier_api_data_out.models.dataservices_query_time_shift_dto import DataservicesQueryTimeShiftDTO +from visier_api_data_out.models.designer_data_version_export_column_dto import DesignerDataVersionExportColumnDTO +from visier_api_data_out.models.designer_data_version_export_dto import DesignerDataVersionExportDTO +from visier_api_data_out.models.designer_data_version_export_data_version_summary_dto import DesignerDataVersionExportDataVersionSummaryDTO +from visier_api_data_out.models.designer_data_version_export_data_versions_dto import DesignerDataVersionExportDataVersionsDTO +from visier_api_data_out.models.designer_data_version_export_file_dto import DesignerDataVersionExportFileDTO +from visier_api_data_out.models.designer_data_version_export_job_status_dto import DesignerDataVersionExportJobStatusDTO +from visier_api_data_out.models.designer_data_version_export_part_file_dto import DesignerDataVersionExportPartFileDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_request_dto import DesignerDataVersionExportScheduleJobRequestDTO +from visier_api_data_out.models.designer_data_version_export_schedule_job_response_dto import DesignerDataVersionExportScheduleJobResponseDTO +from visier_api_data_out.models.designer_data_version_export_table_dto import DesignerDataVersionExportTableDTO +from visier_api_data_out.models.designer_data_version_exports_dto import DesignerDataVersionExportsDTO +from visier_api_data_out.models.designer_download_source_files_dto import DesignerDownloadSourceFilesDTO +from visier_api_data_out.models.designer_download_source_files_response_dto import DesignerDownloadSourceFilesResponseDTO 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.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.servicing_document_search_link_dto import ServicingDocumentSearchLinkDTO +from visier_api_data_out.models.servicing_simple_document_header_search_response_dto import ServicingSimpleDocumentHeaderSearchResponseDTO +from visier_api_data_out.models.servicing_simple_document_header_search_result_dto import ServicingSimpleDocumentHeaderSearchResultDTO from visier_api_data_out.models.sql_like200_response import SqlLike200Response 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.systemstatus_vee_status_dto import SystemstatusVeeStatusDTO from visier_api_data_out.models.table_response_dto import TableResponseDTO diff --git a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_report_create_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_report_create_request_dto.py new file mode 100644 index 0000000000..3e382b689b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonReportCreateRequestDTO(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 AnalysisCommonReportCreateRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonReportCreateRequestDTO 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_report_delete_success_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_report_delete_success_dto.py new file mode 100644 index 0000000000..0d96d960a1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonReportDeleteSuccessDTO(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 AnalysisCommonReportDeleteSuccessDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonReportDeleteSuccessDTO 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_report_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_report_dto.py new file mode 100644 index 0000000000..a23b7feb82 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AnalysisCommonReportDTO(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 AnalysisCommonReportDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonReportDTO 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_report_list_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_report_list_response_dto.py new file mode 100644 index 0000000000..a0c7a805bf --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_report_dto import AnalysisCommonReportDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonReportListResponseDTO(BaseModel): + """ + The information of all the reports you have access to in your tenant. + """ # noqa: E501 + reports: Optional[List[AnalysisCommonReportDTO]] = 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 AnalysisCommonReportListResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AnalysisCommonReportListResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reports": [AnalysisCommonReportDTO.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_report_create_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_report_create_request_dto.py deleted file mode 100644 index 0f7d80b69a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index e49f1aff02..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 21df74d17a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 492b6d62d2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 1a9da981ae..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 985f9dedc8..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 38b9199c61..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 0f9c056f5d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 1bc2ad0a02..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7b1b7611d2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 649b8deecb..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a11945e7b9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index bf4a222f5b..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index fb6af8b5bc..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 2f65d73590..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ad325c39e2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 079c0de479..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 7ff7c51ff4..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 26c29f9561..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/analysis_common_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/analysis_common_vee_clarification_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_clarification_dto.py new file mode 100644 index 0000000000..3bef5f482a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeClarificationDTO(BaseModel): + """ + AnalysisCommonVeeClarificationDTO + """ # 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="Additional questions you can ask that are similar or related to your question.") + __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 AnalysisCommonVeeClarificationDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeClarificationDTO 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_vee_conversation_state_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_conversation_state_dto.py new file mode 100644 index 0000000000..01bd2b188b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeConversationStateDTO(BaseModel): + """ + AnalysisCommonVeeConversationStateDTO + """ # 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 AnalysisCommonVeeConversationStateDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeConversationStateDTO 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_vee_corrections_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_corrections_dto.py new file mode 100644 index 0000000000..3bf4e0681a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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_vee_clarification_dto import AnalysisCommonVeeClarificationDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeCorrectionsDTO(BaseModel): + """ + AnalysisCommonVeeCorrectionsDTO + """ # noqa: E501 + clarifications: Optional[List[AnalysisCommonVeeClarificationDTO]] = 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 AnalysisCommonVeeCorrectionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AnalysisCommonVeeCorrectionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "clarifications": [AnalysisCommonVeeClarificationDTO.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_vee_data_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_data_dto.py new file mode 100644 index 0000000000..3d3ac00d3f --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeDataDTO(BaseModel): + """ + AnalysisCommonVeeDataDTO + """ # 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 AnalysisCommonVeeDataDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeDataDTO 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_vee_feedback_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_feedback_dto.py new file mode 100644 index 0000000000..ee9a7c2ddb --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_response_dto import AnalysisCommonVeeResponseDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeFeedbackDTO(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[AnalysisCommonVeeResponseDTO] = 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 AnalysisCommonVeeFeedbackDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AnalysisCommonVeeFeedbackDTO 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": AnalysisCommonVeeResponseDTO.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_vee_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_options_dto.py new file mode 100644 index 0000000000..c9dd0094bf --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_visual_options_dto import AnalysisCommonVeeVisualOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeOptionsDTO(BaseModel): + """ + AnalysisCommonVeeOptionsDTO + """ # 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[AnalysisCommonVeeVisualOptionsDTO] = 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 AnalysisCommonVeeOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AnalysisCommonVeeOptionsDTO 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": AnalysisCommonVeeVisualOptionsDTO.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_vee_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_question_dto.py new file mode 100644 index 0000000000..6826aa2faa --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_conversation_state_dto import AnalysisCommonVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_vee_options_dto import AnalysisCommonVeeOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeQuestionDTO(BaseModel): + """ + The request body fields to ask Vee a question. + """ # noqa: E501 + conversation_state: Optional[AnalysisCommonVeeConversationStateDTO] = 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="The maximum number of members to return in Detailed View.", alias="maxViewDetailsMembers") + options: Optional[AnalysisCommonVeeOptionsDTO] = 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 AnalysisCommonVeeQuestionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AnalysisCommonVeeQuestionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "conversationState": AnalysisCommonVeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, + "maxViewDetailsMembers": obj.get("maxViewDetailsMembers"), + "options": AnalysisCommonVeeOptionsDTO.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_vee_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_response_dto.py new file mode 100644 index 0000000000..2be8bd661e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_vee_conversation_state_dto import AnalysisCommonVeeConversationStateDTO +from visier_api_data_out.models.analysis_common_vee_corrections_dto import AnalysisCommonVeeCorrectionsDTO +from visier_api_data_out.models.analysis_common_vee_data_dto import AnalysisCommonVeeDataDTO +from visier_api_data_out.models.analysis_common_vee_response_schema_dto import AnalysisCommonVeeResponseSchemaDTO +from visier_api_data_out.models.analysis_common_vee_status_code_dto import AnalysisCommonVeeStatusCodeDTO +from visier_api_data_out.models.analysis_common_vee_visual_dto import AnalysisCommonVeeVisualDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeResponseDTO(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[AnalysisCommonVeeConversationStateDTO] = 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[AnalysisCommonVeeCorrectionsDTO]] = Field(default=None, description="A list of corrections and clarifications if the question was ambiguous or Vee was unsure in the answer.") + data: Optional[AnalysisCommonVeeDataDTO] = 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[AnalysisCommonVeeResponseSchemaDTO] = Field(default=None, description="The metrics, dimensions, and concepts that contribute to Vee's answer.", alias="schema") + status_code: Optional[AnalysisCommonVeeStatusCodeDTO] = Field(default=None, description="A status code indicating whether or not Vee successfully answered the question.", alias="statusCode") + visual: Optional[AnalysisCommonVeeVisualDTO] = 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 AnalysisCommonVeeResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 AnalysisCommonVeeResponseDTO 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": AnalysisCommonVeeConversationStateDTO.from_dict(obj["conversationState"]) if obj.get("conversationState") is not None else None, + "corrections": [AnalysisCommonVeeCorrectionsDTO.from_dict(_item) for _item in obj["corrections"]] if obj.get("corrections") is not None else None, + "data": AnalysisCommonVeeDataDTO.from_dict(obj["data"]) if obj.get("data") is not None else None, + "narrative": obj.get("narrative"), + "rewordedQuestion": obj.get("rewordedQuestion"), + "schema": AnalysisCommonVeeResponseSchemaDTO.from_dict(obj["schema"]) if obj.get("schema") is not None else None, + "statusCode": AnalysisCommonVeeStatusCodeDTO.from_dict(obj["statusCode"]) if obj.get("statusCode") is not None else None, + "visual": AnalysisCommonVeeVisualDTO.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_vee_response_schema_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_response_schema_dto.py new file mode 100644 index 0000000000..64b48885ac --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_vee_response_schema_reference_dto import AnalysisCommonVeeResponseSchemaReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeResponseSchemaDTO(BaseModel): + """ + AnalysisCommonVeeResponseSchemaDTO + """ # noqa: E501 + concepts: Optional[List[AnalysisCommonVeeResponseSchemaReferenceDTO]] = Field(default=None, description="A list of the concepts that contribute to Vee's answer.") + dimensions: Optional[List[AnalysisCommonVeeResponseSchemaReferenceDTO]] = 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 AnalysisCommonVeeResponseSchemaDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AnalysisCommonVeeResponseSchemaDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "concepts": [AnalysisCommonVeeResponseSchemaReferenceDTO.from_dict(_item) for _item in obj["concepts"]] if obj.get("concepts") is not None else None, + "dimensions": [AnalysisCommonVeeResponseSchemaReferenceDTO.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_vee_response_schema_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_response_schema_reference_dto.py new file mode 100644 index 0000000000..eb9c8f8218 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeResponseSchemaReferenceDTO(BaseModel): + """ + AnalysisCommonVeeResponseSchemaReferenceDTO + """ # 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 AnalysisCommonVeeResponseSchemaReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeResponseSchemaReferenceDTO 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_vee_sample_question_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_sample_question_dto.py new file mode 100644 index 0000000000..5c13924927 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AnalysisCommonVeeSampleQuestionDTO(BaseModel): + """ + AnalysisCommonVeeSampleQuestionDTO + """ # 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 AnalysisCommonVeeSampleQuestionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeSampleQuestionDTO 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_vee_sample_question_library_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_sample_question_library_dto.py new file mode 100644 index 0000000000..6204a551af --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_vee_sample_question_dto import AnalysisCommonVeeSampleQuestionDTO +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeSampleQuestionLibraryDTO(BaseModel): + """ + A list of sample questions to ask Vee. + """ # noqa: E501 + questions: Optional[List[AnalysisCommonVeeSampleQuestionDTO]] = 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 AnalysisCommonVeeSampleQuestionLibraryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 AnalysisCommonVeeSampleQuestionLibraryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "questions": [AnalysisCommonVeeSampleQuestionDTO.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_vee_status_code_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_status_code_dto.py new file mode 100644 index 0000000000..22b7c191af --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 AnalysisCommonVeeStatusCodeDTO(BaseModel): + """ + AnalysisCommonVeeStatusCodeDTO + """ # 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 AnalysisCommonVeeStatusCodeDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeStatusCodeDTO 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_vee_visual_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_visual_dto.py new file mode 100644 index 0000000000..22a9d64687 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AnalysisCommonVeeVisualDTO(BaseModel): + """ + AnalysisCommonVeeVisualDTO + """ # 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 AnalysisCommonVeeVisualDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeVisualDTO 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_vee_visual_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_vee_visual_options_dto.py new file mode 100644 index 0000000000..cf5d1bc262 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/analysis_common_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 AnalysisCommonVeeVisualOptionsDTO(BaseModel): + """ + AnalysisCommonVeeVisualOptionsDTO + """ # 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 AnalysisCommonVeeVisualOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AnalysisCommonVeeVisualOptionsDTO 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/data_out_list_response.py b/src/visier_api_data_out/visier_api_data_out/models/data_out_list_response.py index 4703a73ddd..e90bbcc41d 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 index e6cafcfe34..c1c8741462 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/dataservices_common_member_values_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_common_member_values_dto.py index a8ae504400..005023032a 100644 --- 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 @@ -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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/dataservices_datamodel_dimension_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_dimension_reference_dto.py new file mode 100644 index 0000000000..f97b4cf6f4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelDimensionReferenceDTO(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 DataservicesDatamodelDimensionReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelDimensionReferenceDTO 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_property_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_property_reference_dto.py new file mode 100644 index 0000000000..7b38187c75 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelPropertyReferenceDTO(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 DataservicesDatamodelPropertyReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelPropertyReferenceDTO 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_selection_concept_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_selection_concept_reference_dto.py new file mode 100644 index 0000000000..f6a22558f0 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesDatamodelSelectionConceptReferenceDTO(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 DataservicesDatamodelSelectionConceptReferenceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesDatamodelSelectionConceptReferenceDTO 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_dimension_reference_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_dimension_reference_dto.py deleted file mode 100644 index 396c989098..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 243d75c7a8..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 4357ac223a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_datamodel_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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_aggregation_query_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_query_dto.py new file mode 100644 index 0000000000..6d6e62f87b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_aggregation_query_source_dto import DataservicesQueryAggregationQuerySourceDTO +from visier_api_data_out.models.dataservices_query_query_axis_dto import DataservicesQueryQueryAxisDTO +from visier_api_data_out.models.dataservices_query_query_filter_dto import DataservicesQueryQueryFilterDTO +from visier_api_data_out.models.dataservices_query_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_query_time_intervals_dto import DataservicesQueryQueryTimeIntervalsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationQueryDTO(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[DataservicesQueryQueryAxisDTO]] = 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[DataservicesQueryQueryFilterDTO]] = 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[DataservicesQueryQueryParameterValueDTO]] = Field(default=None, description="The values associated with parameters, if defined.", alias="parameterValues") + source: Optional[DataservicesQueryAggregationQuerySourceDTO] = Field(default=None, description="The source data, such as a metric or formula, to query.") + time_intervals: Optional[DataservicesQueryQueryTimeIntervalsDTO] = 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 DataservicesQueryAggregationQueryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryAggregationQueryDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "axes": [DataservicesQueryQueryAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, + "filters": [DataservicesQueryQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "parameterValues": [DataservicesQueryQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "source": DataservicesQueryAggregationQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeIntervals": DataservicesQueryQueryTimeIntervalsDTO.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_aggregation_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_query_execution_dto.py new file mode 100644 index 0000000000..06e7d57291 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_aggregation_query_dto import DataservicesQueryAggregationQueryDTO +from visier_api_data_out.models.dataservices_query_query_execution_options_dto import DataservicesQueryQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationQueryExecutionDTO(BaseModel): + """ + An AggregationQueryExecution provides instructions to perform your aggregation query. + """ # noqa: E501 + options: Optional[DataservicesQueryQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + query: Optional[DataservicesQueryAggregationQueryDTO] = 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 DataservicesQueryAggregationQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryAggregationQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "options": DataservicesQueryQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "query": DataservicesQueryAggregationQueryDTO.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_aggregation_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_query_source_dto.py new file mode 100644 index 0000000000..a4fde2838e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_aggregation_query_source_metrics_dto import DataservicesQueryAggregationQuerySourceMetricsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationQuerySourceDTO(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[DataservicesQueryAggregationQuerySourceMetricsDTO] = 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 DataservicesQueryAggregationQuerySourceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryAggregationQuerySourceDTO 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": DataservicesQueryAggregationQuerySourceMetricsDTO.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_aggregation_query_source_metric_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_query_source_metric_dto.py new file mode 100644 index 0000000000..360479e634 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationQuerySourceMetricDTO(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 DataservicesQueryAggregationQuerySourceMetricDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryAggregationQuerySourceMetricDTO 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_aggregation_query_source_metrics_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_query_source_metrics_dto.py new file mode 100644 index 0000000000..b88bd2b5d7 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_aggregation_query_source_metric_dto import DataservicesQueryAggregationQuerySourceMetricDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationQuerySourceMetricsDTO(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[DataservicesQueryAggregationQuerySourceMetricDTO]] = 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 DataservicesQueryAggregationQuerySourceMetricsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryAggregationQuerySourceMetricsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryAggregationQuerySourceMetricDTO.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_aggregation_type_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_aggregation_type_parameter_value_dto.py new file mode 100644 index 0000000000..68fbd263ee --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryAggregationTypeParameterValueDTO(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 DataservicesQueryAggregationTypeParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryAggregationTypeParameterValueDTO 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_cell_distribution_bin_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_distribution_bin_dto.py new file mode 100644 index 0000000000..60b9546421 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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 DataservicesQueryCellDistributionBinDTO(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 DataservicesQueryCellDistributionBinDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryCellDistributionBinDTO 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_cell_distribution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_distribution_options_dto.py new file mode 100644 index 0000000000..4262907901 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryCellDistributionOptionsDTO(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 DataservicesQueryCellDistributionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryCellDistributionOptionsDTO 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_cell_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_dto.py new file mode 100644 index 0000000000..4824dbfe75 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_cell_distribution_bin_dto import DataservicesQueryCellDistributionBinDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCellDTO(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[DataservicesQueryCellDistributionBinDTO]] = 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 DataservicesQueryCellDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryCellDTO 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": [DataservicesQueryCellDistributionBinDTO.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_cell_set_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_axis_dto.py new file mode 100644 index 0000000000..128a8bbc4a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_position_dto import DataservicesQueryCellSetAxisPositionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCellSetAxisDTO(BaseModel): + """ + The axis of a cell set associated with a dimension. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelDimensionReferenceDTO] = Field(default=None, description="The dimension associated with the axis.") + positions: Optional[List[DataservicesQueryCellSetAxisPositionDTO]] = 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 DataservicesQueryCellSetAxisDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryCellSetAxisDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "positions": [DataservicesQueryCellSetAxisPositionDTO.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_cell_set_axis_position_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_axis_position_dto.py new file mode 100644 index 0000000000..4f8af97ed2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCellSetAxisPositionDTO(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 DataservicesQueryCellSetAxisPositionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryCellSetAxisPositionDTO 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_cell_set_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_dto.py new file mode 100644 index 0000000000..483b344545 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_cell_dto import DataservicesQueryCellDTO +from visier_api_data_out.models.dataservices_query_cell_set_axis_dto import DataservicesQueryCellSetAxisDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCellSetDTO(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[DataservicesQueryCellSetAxisDTO]] = Field(default=None, description="The set of axes for the cell set that represent the objects the data is grouped by.") + cells: Optional[List[DataservicesQueryCellDTO]] = Field(default=None, description="The set of cells that represent the result of your query.") + lineage: Optional[DataservicesQueryLineageDTO] = 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 DataservicesQueryCellSetDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryCellSetDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "axes": [DataservicesQueryCellSetAxisDTO.from_dict(_item) for _item in obj["axes"]] if obj.get("axes") is not None else None, + "cells": [DataservicesQueryCellDTO.from_dict(_item) for _item in obj["cells"]] if obj.get("cells") is not None else None, + "lineage": DataservicesQueryLineageDTO.from_dict(obj["lineage"]) if obj.get("lineage") is not None else None + }) + return _obj + +from visier_api_data_out.models.dataservices_query_lineage_dto import DataservicesQueryLineageDTO +# TODO: Rewrite to not use raise_errors +DataservicesQueryCellSetDTO.model_rebuild(raise_errors=False) + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_or_error_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_or_error_dto.py new file mode 100644 index 0000000000..4e2ab833ff --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cell_set_or_error_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_cell_set_dto import DataservicesQueryCellSetDTO +from visier_api_data_out.models.dataservices_query_query_execution_error_dto import DataservicesQueryQueryExecutionErrorDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCellSetOrErrorDTO(BaseModel): + """ + A result that is either a cell set for a successful query execution, or an error for a failed query execution. + """ # noqa: E501 + cell_set: Optional[DataservicesQueryCellSetDTO] = Field(default=None, description="The resulting cell set from a successful query execution.", alias="cellSet") + error: Optional[DataservicesQueryQueryExecutionErrorDTO] = Field(default=None, description="An error for a failed query execution.") + __properties: ClassVar[List[str]] = ["cellSet", "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 DataservicesQueryCellSetOrErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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_set + if self.cell_set: + _dict['cellSet'] = self.cell_set.to_dict() + # 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 DataservicesQueryCellSetOrErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cellSet": DataservicesQueryCellSetDTO.from_dict(obj["cellSet"]) if obj.get("cellSet") is not None else None, + "error": DataservicesQueryQueryExecutionErrorDTO.from_dict(obj["error"]) if obj.get("error") is not None else None + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cohort_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_cohort_filter_dto.py new file mode 100644 index 0000000000..5e4ff14329 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_key_group_filter_dto import DataservicesQueryKeyGroupFilterDTO +from visier_api_data_out.models.dataservices_query_query_time_interval_dto import DataservicesQueryQueryTimeIntervalDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryCohortFilterDTO(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[DataservicesQueryKeyGroupFilterDTO] = 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[DataservicesQueryQueryTimeIntervalDTO] = 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 DataservicesQueryCohortFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryCohortFilterDTO 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": DataservicesQueryKeyGroupFilterDTO.from_dict(obj["keyGroup"]) if obj.get("keyGroup") is not None else None, + "timeInterval": DataservicesQueryQueryTimeIntervalDTO.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_internal_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_internal_query_execution_options_dto.py new file mode 100644 index 0000000000..85ffd17adc --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryInternalQueryExecutionOptionsDTO(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 DataservicesQueryInternalQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryInternalQueryExecutionOptionsDTO 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_key_group_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_key_group_filter_dto.py new file mode 100644 index 0000000000..f1777097ec --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any 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_key_group_filter_item_dto import DataservicesQueryKeyGroupFilterItemDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryKeyGroupFilterDTO(BaseModel): + """ + A collection of related filters that define a key group. + """ # noqa: E501 + filters: Optional[List[DataservicesQueryKeyGroupFilterItemDTO]] = 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 DataservicesQueryKeyGroupFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryKeyGroupFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "filters": [DataservicesQueryKeyGroupFilterItemDTO.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_key_group_filter_item_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_key_group_filter_item_dto.py new file mode 100644 index 0000000000..625795f22e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_member_filter_dto import DataservicesQueryMemberFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryKeyGroupFilterItemDTO(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[DataservicesQueryMemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") + selection_concept: Optional[DataservicesDatamodelSelectionConceptReferenceDTO] = 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 DataservicesQueryKeyGroupFilterItemDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryKeyGroupFilterItemDTO 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": DataservicesQueryMemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, + "selectionConcept": DataservicesDatamodelSelectionConceptReferenceDTO.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_lineage_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_lineage_dto.py new file mode 100644 index 0000000000..b4693ce6ae --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryLineageDTO(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[DataservicesQueryCellSetDTO]] = 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 DataservicesQueryLineageDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryLineageDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cellSets": [DataservicesQueryCellSetDTO.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_cell_set_dto import DataservicesQueryCellSetDTO +# TODO: Rewrite to not use raise_errors +DataservicesQueryLineageDTO.model_rebuild(raise_errors=False) + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_list_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_list_query_execution_dto.py new file mode 100644 index 0000000000..6413307f5c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_list_query_execution_options_dto import DataservicesQueryListQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_list_query_source_dto import DataservicesQueryListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_property_column_dto import DataservicesQueryPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_query_filter_dto import DataservicesQueryQueryFilterDTO +from visier_api_data_out.models.dataservices_query_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_query_time_interval_dto import DataservicesQueryQueryTimeIntervalDTO +from visier_api_data_out.models.dataservices_query_sort_option_dto import DataservicesQuerySortOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryListQueryExecutionDTO(BaseModel): + """ + A ListQueryExecution provides instructions to perform a list query. + """ # noqa: E501 + columns: Optional[List[DataservicesQueryPropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") + filters: Optional[List[DataservicesQueryQueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") + options: Optional[DataservicesQueryListQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + parameter_values: Optional[List[DataservicesQueryQueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") + sort_options: Optional[List[DataservicesQuerySortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") + source: Optional[DataservicesQueryListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") + time_interval: Optional[DataservicesQueryQueryTimeIntervalDTO] = 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 DataservicesQueryListQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQueryListQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryPropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "filters": [DataservicesQueryQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "options": DataservicesQueryListQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "parameterValues": [DataservicesQueryQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "sortOptions": [DataservicesQuerySortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, + "source": DataservicesQueryListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeInterval": DataservicesQueryQueryTimeIntervalDTO.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_list_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_list_query_execution_options_dto.py new file mode 100644 index 0000000000..49b968b239 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryListQueryExecutionOptionsDTO(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 DataservicesQueryListQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryListQueryExecutionOptionsDTO 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_list_query_source_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_list_query_source_dto.py new file mode 100644 index 0000000000..5299c212f2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryListQuerySourceDTO(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 DataservicesQueryListQuerySourceDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryListQuerySourceDTO 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_member_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_member_filter_dto.py new file mode 100644 index 0000000000..98661ea3b9 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryMemberFilterDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryMemberFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryMemberFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_member_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_member_parameter_value_dto.py new file mode 100644 index 0000000000..5f30c51dcf --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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 DataservicesQueryMemberParameterValueDTO(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 DataservicesQueryMemberParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryMemberParameterValueDTO 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_numeric_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_numeric_parameter_value_dto.py new file mode 100644 index 0000000000..80d28074ad --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryNumericParameterValueDTO(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 DataservicesQueryNumericParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryNumericParameterValueDTO 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_plan_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_plan_parameter_value_dto.py new file mode 100644 index 0000000000..87bcdb276a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryPlanParameterValueDTO(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 DataservicesQueryPlanParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryPlanParameterValueDTO 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_property_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_property_column_dto.py new file mode 100644 index 0000000000..75a16ba1a6 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_query_property_dto import DataservicesQueryQueryPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryPropertyColumnDTO(BaseModel): + """ + A named, result column of a list query. + """ # noqa: E501 + column_definition: Optional[DataservicesQueryQueryPropertyDTO] = 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 DataservicesQueryPropertyColumnDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryPropertyColumnDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columnDefinition": DataservicesQueryQueryPropertyDTO.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_query_axis_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_axis_dto.py new file mode 100644 index 0000000000..c29e8d6f0c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_query_axis_options_dto import DataservicesQueryQueryAxisOptionsDTO +from visier_api_data_out.models.dataservices_query_query_dimension_data_member_selection_dto import DataservicesQueryQueryDimensionDataMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_leaf_selection_dto import DataservicesQueryQueryDimensionLeafSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_selection_dto import DataservicesQueryQueryDimensionLevelSelectionDTO +from visier_api_data_out.models.dataservices_query_query_dimension_member_selection_dto import DataservicesQueryQueryDimensionMemberSelectionDTO +from visier_api_data_out.models.dataservices_query_query_member_map_selection_dto import DataservicesQueryQueryMemberMapSelectionDTO +from visier_api_data_out.models.dataservices_query_query_numeric_ranges_dto import DataservicesQueryQueryNumericRangesDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryAxisDTO(BaseModel): + """ + An axis of a query used to group data points. + """ # noqa: E501 + dimension_data_member_selection: Optional[DataservicesQueryQueryDimensionDataMemberSelectionDTO] = 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[DataservicesQueryQueryDimensionLeafSelectionDTO] = 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[DataservicesQueryQueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses levels of existing dimensions in Visier.", alias="dimensionLevelSelection") + dimension_level_with_uncategorized_value_selection: Optional[DataservicesQueryQueryDimensionLevelSelectionDTO] = Field(default=None, description="An axis that uses existing dimension levels in Visier, including uncategorized levels.", alias="dimensionLevelWithUncategorizedValueSelection") + dimension_member_selection: Optional[DataservicesQueryQueryDimensionMemberSelectionDTO] = 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[DataservicesQueryQueryMemberMapSelectionDTO] = Field(default=None, description="An axis that uses an existing member map in Visier.", alias="memberMapSelection") + numeric_ranges: Optional[DataservicesQueryQueryNumericRangesDTO] = 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[DataservicesDatamodelSelectionConceptReferenceDTO] = 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[DataservicesQueryQueryAxisOptionsDTO] = 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 DataservicesQueryQueryAxisDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryAxisDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimensionDataMemberSelection": DataservicesQueryQueryDimensionDataMemberSelectionDTO.from_dict(obj["dimensionDataMemberSelection"]) if obj.get("dimensionDataMemberSelection") is not None else None, + "dimensionLeafMemberSelection": DataservicesQueryQueryDimensionLeafSelectionDTO.from_dict(obj["dimensionLeafMemberSelection"]) if obj.get("dimensionLeafMemberSelection") is not None else None, + "dimensionLevelSelection": DataservicesQueryQueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, + "dimensionLevelWithUncategorizedValueSelection": DataservicesQueryQueryDimensionLevelSelectionDTO.from_dict(obj["dimensionLevelWithUncategorizedValueSelection"]) if obj.get("dimensionLevelWithUncategorizedValueSelection") is not None else None, + "dimensionMemberSelection": DataservicesQueryQueryDimensionMemberSelectionDTO.from_dict(obj["dimensionMemberSelection"]) if obj.get("dimensionMemberSelection") is not None else None, + "formula": obj.get("formula"), + "memberMapSelection": DataservicesQueryQueryMemberMapSelectionDTO.from_dict(obj["memberMapSelection"]) if obj.get("memberMapSelection") is not None else None, + "numericRanges": DataservicesQueryQueryNumericRangesDTO.from_dict(obj["numericRanges"]) if obj.get("numericRanges") is not None else None, + "selectionConcept": DataservicesDatamodelSelectionConceptReferenceDTO.from_dict(obj["selectionConcept"]) if obj.get("selectionConcept") is not None else None, + "tableAxisOptions": DataservicesQueryQueryAxisOptionsDTO.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_query_axis_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_axis_options_dto.py new file mode 100644 index 0000000000..94ad385dc4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered 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 DataservicesQueryQueryAxisOptionsDTO(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 DataservicesQueryQueryAxisOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryQueryAxisOptionsDTO 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_query_dimension_data_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_dimension_data_member_selection_dto.py new file mode 100644 index 0000000000..889bea5963 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryDimensionDataMemberSelectionDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryDimensionDataMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryDimensionDataMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_query_dimension_leaf_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_dimension_leaf_selection_dto.py new file mode 100644 index 0000000000..1780d48c76 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryDimensionLeafSelectionDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryDimensionLeafSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryDimensionLeafSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_query_dimension_level_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_dimension_level_property_dto.py new file mode 100644 index 0000000000..33ed285714 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryDimensionLevelPropertyDTO(BaseModel): + """ + A QueryDimensionLevelPropertyDTO defines an existing dimension level and its dimension to query. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryDimensionLevelPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryDimensionLevelPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_query_dimension_level_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_dimension_level_selection_dto.py new file mode 100644 index 0000000000..44155cb1b7 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryDimensionLevelSelectionDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryDimensionLevelSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryDimensionLevelSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_query_dimension_member_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_dimension_member_selection_dto.py new file mode 100644 index 0000000000..bb71418232 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryDimensionMemberSelectionDTO(BaseModel): + """ + A QueryDimensionMemberSelection defines dimension members to select in the query. + """ # noqa: E501 + dimension: Optional[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryDimensionMemberSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryDimensionMemberSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.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_query_execution_error_details_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_error_details_dto.py new file mode 100644 index 0000000000..080e365db9 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_error_details_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryQueryExecutionErrorDetailsDTO(BaseModel): + """ + The details of a error that occurred during query execution. + """ # noqa: E501 + column_index: Optional[StrictInt] = Field(default=None, description="The position of the column within the request column list.", alias="columnIndex") + error: Optional[StrictStr] = Field(default=None, description="The details of the error.") + object_type: Optional[StrictStr] = Field(default=None, description="Query request object type.", alias="objectType") + query_index: Optional[StrictInt] = Field(default=None, description="The position of the query within the request query list.", alias="queryIndex") + __properties: ClassVar[List[str]] = ["columnIndex", "error", "objectType", "queryIndex"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataservicesQueryQueryExecutionErrorDetailsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryQueryExecutionErrorDetailsDTO 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"), + "error": obj.get("error"), + "objectType": obj.get("objectType"), + "queryIndex": obj.get("queryIndex") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_error_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_error_dto.py new file mode 100644 index 0000000000..6694f9d9b4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_error_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_query_execution_errors_dto import DataservicesQueryQueryExecutionErrorsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryExecutionErrorDTO(BaseModel): + """ + An error that occurred during query execution. A QueryExecutionError returns as part of a successful batch aggregation query for any queries that failed. This is different from errors, which return for failed requests. + """ # noqa: E501 + all_errors: Optional[List[DataservicesQueryQueryExecutionErrorsDTO]] = Field(default=None, description="All errors", alias="allErrors") + error_code: Optional[StrictStr] = Field(default=None, description="A brief identifier of the type of error.", alias="errorCode") + message: Optional[StrictStr] = Field(default=None, description="The details of the error.") + __properties: ClassVar[List[str]] = ["allErrors", "errorCode", "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 DataservicesQueryQueryExecutionErrorDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in all_errors (list) + _items = [] + if self.all_errors: + for _item_all_errors in self.all_errors: + if _item_all_errors: + _items.append(_item_all_errors.to_dict()) + _dict['allErrors'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryQueryExecutionErrorDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allErrors": [DataservicesQueryQueryExecutionErrorsDTO.from_dict(_item) for _item in obj["allErrors"]] if obj.get("allErrors") is not None else None, + "errorCode": obj.get("errorCode"), + "message": obj.get("message") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_errors_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_errors_dto.py new file mode 100644 index 0000000000..d5d02a8472 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_errors_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_query_execution_error_details_dto import DataservicesQueryQueryExecutionErrorDetailsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryExecutionErrorsDTO(BaseModel): + """ + The errors that occurred during query execution. + """ # noqa: E501 + all_error_details: Optional[List[DataservicesQueryQueryExecutionErrorDetailsDTO]] = Field(default=None, description="The list of the error details.", alias="allErrorDetails") + error_code: Optional[StrictStr] = Field(default=None, description="A brief identifier of the type of error.", alias="errorCode") + message: Optional[StrictStr] = Field(default=None, description="The message of the error.") + __properties: ClassVar[List[str]] = ["allErrorDetails", "errorCode", "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 DataservicesQueryQueryExecutionErrorsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in all_error_details (list) + _items = [] + if self.all_error_details: + for _item_all_error_details in self.all_error_details: + if _item_all_error_details: + _items.append(_item_all_error_details.to_dict()) + _dict['allErrorDetails'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryQueryExecutionErrorsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allErrorDetails": [DataservicesQueryQueryExecutionErrorDetailsDTO.from_dict(_item) for _item in obj["allErrorDetails"]] if obj.get("allErrorDetails") is not None else None, + "errorCode": obj.get("errorCode"), + "message": obj.get("message") + }) + return _obj + + diff --git a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_execution_options_dto.py new file mode 100644 index 0000000000..c3ffdacce2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_cell_distribution_options_dto import DataservicesQueryCellDistributionOptionsDTO +from visier_api_data_out.models.dataservices_query_internal_query_execution_options_dto import DataservicesQueryInternalQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryExecutionOptionsDTO(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[DataservicesQueryCellDistributionOptionsDTO] = 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[DataservicesQueryInternalQueryExecutionOptionsDTO] = 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 DataservicesQueryQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryExecutionOptionsDTO 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": DataservicesQueryCellDistributionOptionsDTO.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": DataservicesQueryInternalQueryExecutionOptionsDTO.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_query_filter_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_filter_dto.py new file mode 100644 index 0000000000..c322d8dc0a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_cohort_filter_dto import DataservicesQueryCohortFilterDTO +from visier_api_data_out.models.dataservices_query_member_filter_dto import DataservicesQueryMemberFilterDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryFilterDTO(BaseModel): + """ + A QueryFilter selects specific data points within a population. + """ # noqa: E501 + cohort: Optional[DataservicesQueryCohortFilterDTO] = 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[DataservicesQueryMemberFilterDTO] = Field(default=None, description="A filter that includes or excludes dimension members.", alias="memberSet") + selection_concept: Optional[DataservicesDatamodelSelectionConceptReferenceDTO] = 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 DataservicesQueryQueryFilterDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryFilterDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cohort": DataservicesQueryCohortFilterDTO.from_dict(obj["cohort"]) if obj.get("cohort") is not None else None, + "formula": obj.get("formula"), + "memberSet": DataservicesQueryMemberFilterDTO.from_dict(obj["memberSet"]) if obj.get("memberSet") is not None else None, + "selectionConcept": DataservicesDatamodelSelectionConceptReferenceDTO.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_query_member_map_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_member_map_property_dto.py new file mode 100644 index 0000000000..b1a3d68aa1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryMemberMapPropertyDTO(BaseModel): + """ + A QueryMemberMapProperty defines an existing member map and its dimension to query. + """ # noqa: E501 + member_map: Optional[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryMemberMapPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryMemberMapPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memberMap": DataservicesDatamodelDimensionReferenceDTO.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_query_member_map_selection_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_member_map_selection_dto.py new file mode 100644 index 0000000000..09cd3bf731 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryMemberMapSelectionDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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 DataservicesQueryQueryMemberMapSelectionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryMemberMapSelectionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "memberMap": DataservicesDatamodelDimensionReferenceDTO.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_query_numeric_ranges_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_numeric_ranges_dto.py new file mode 100644 index 0000000000..7acfb27ff1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_query_property_dto import DataservicesQueryQueryPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryNumericRangesDTO(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[DataservicesQueryQueryPropertyDTO] = 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 DataservicesQueryQueryNumericRangesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryNumericRangesDTO 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": DataservicesQueryQueryPropertyDTO.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_query_parameter_value_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_parameter_value_dto.py new file mode 100644 index 0000000000..e714adf5a2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_aggregation_type_parameter_value_dto import DataservicesQueryAggregationTypeParameterValueDTO +from visier_api_data_out.models.dataservices_query_member_parameter_value_dto import DataservicesQueryMemberParameterValueDTO +from visier_api_data_out.models.dataservices_query_numeric_parameter_value_dto import DataservicesQueryNumericParameterValueDTO +from visier_api_data_out.models.dataservices_query_plan_parameter_value_dto import DataservicesQueryPlanParameterValueDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryParameterValueDTO(BaseModel): + """ + An object that contains parameter values for either member or numeric parameters. + """ # noqa: E501 + aggregation_type_value: Optional[DataservicesQueryAggregationTypeParameterValueDTO] = Field(default=None, description="A value for an aggregation parameter.", alias="aggregationTypeValue") + member_value: Optional[DataservicesQueryMemberParameterValueDTO] = Field(default=None, description="A value for a member parameter.", alias="memberValue") + numeric_value: Optional[DataservicesQueryNumericParameterValueDTO] = Field(default=None, description="A value for a numeric parameter.", alias="numericValue") + plan_value: Optional[DataservicesQueryPlanParameterValueDTO] = 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 DataservicesQueryQueryParameterValueDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryParameterValueDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregationTypeValue": DataservicesQueryAggregationTypeParameterValueDTO.from_dict(obj["aggregationTypeValue"]) if obj.get("aggregationTypeValue") is not None else None, + "memberValue": DataservicesQueryMemberParameterValueDTO.from_dict(obj["memberValue"]) if obj.get("memberValue") is not None else None, + "numericValue": DataservicesQueryNumericParameterValueDTO.from_dict(obj["numericValue"]) if obj.get("numericValue") is not None else None, + "planValue": DataservicesQueryPlanParameterValueDTO.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_query_property_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_property_dto.py new file mode 100644 index 0000000000..26ea437ebd --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_dimension_reference_dto import DataservicesDatamodelDimensionReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_property_reference_dto import DataservicesDatamodelPropertyReferenceDTO +from visier_api_data_out.models.dataservices_datamodel_selection_concept_reference_dto import DataservicesDatamodelSelectionConceptReferenceDTO +from visier_api_data_out.models.dataservices_query_query_dimension_level_property_dto import DataservicesQueryQueryDimensionLevelPropertyDTO +from visier_api_data_out.models.dataservices_query_query_member_map_property_dto import DataservicesQueryQueryMemberMapPropertyDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryPropertyDTO(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[DataservicesDatamodelDimensionReferenceDTO] = 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[DataservicesQueryQueryDimensionLevelPropertyDTO] = 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[DataservicesQueryQueryMemberMapPropertyDTO] = Field(default=None, description="A member map-based property that uses an existing member map in Visier.", alias="memberMapProperty") + var_property: Optional[DataservicesDatamodelPropertyReferenceDTO] = Field(default=None, description="A property reference.", alias="property") + selection_concept: Optional[DataservicesDatamodelSelectionConceptReferenceDTO] = 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 DataservicesQueryQueryPropertyDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryPropertyDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dimension": DataservicesDatamodelDimensionReferenceDTO.from_dict(obj["dimension"]) if obj.get("dimension") is not None else None, + "dimensionLevelSelection": DataservicesQueryQueryDimensionLevelPropertyDTO.from_dict(obj["dimensionLevelSelection"]) if obj.get("dimensionLevelSelection") is not None else None, + "effectiveDateProperty": obj.get("effectiveDateProperty"), + "formula": obj.get("formula"), + "memberMapProperty": DataservicesQueryQueryMemberMapPropertyDTO.from_dict(obj["memberMapProperty"]) if obj.get("memberMapProperty") is not None else None, + "property": DataservicesDatamodelPropertyReferenceDTO.from_dict(obj["property"]) if obj.get("property") is not None else None, + "selectionConcept": DataservicesDatamodelSelectionConceptReferenceDTO.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_query_time_interval_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_time_interval_dto.py new file mode 100644 index 0000000000..fd0f2c4b6e --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_time_shift_dto import DataservicesQueryTimeShiftDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryTimeIntervalDTO(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[DataservicesQueryTimeShiftDTO] = 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 DataservicesQueryQueryTimeIntervalDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryTimeIntervalDTO 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": DataservicesQueryTimeShiftDTO.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_query_time_intervals_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_query_time_intervals_dto.py new file mode 100644 index 0000000000..6c246d20ac --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_time_shift_dto import DataservicesQueryTimeShiftDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQueryQueryTimeIntervalsDTO(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[DataservicesQueryTimeShiftDTO] = 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 DataservicesQueryQueryTimeIntervalsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQueryQueryTimeIntervalsDTO 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": DataservicesQueryTimeShiftDTO.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_snapshot_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_snapshot_query_execution_dto.py new file mode 100644 index 0000000000..0a4d81b1b1 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_list_query_source_dto import DataservicesQueryListQuerySourceDTO +from visier_api_data_out.models.dataservices_query_property_column_dto import DataservicesQueryPropertyColumnDTO +from visier_api_data_out.models.dataservices_query_query_filter_dto import DataservicesQueryQueryFilterDTO +from visier_api_data_out.models.dataservices_query_query_parameter_value_dto import DataservicesQueryQueryParameterValueDTO +from visier_api_data_out.models.dataservices_query_query_time_intervals_dto import DataservicesQueryQueryTimeIntervalsDTO +from visier_api_data_out.models.dataservices_query_snapshot_query_execution_options_dto import DataservicesQuerySnapshotQueryExecutionOptionsDTO +from visier_api_data_out.models.dataservices_query_sort_option_dto import DataservicesQuerySortOptionDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQuerySnapshotQueryExecutionDTO(BaseModel): + """ + DataservicesQuerySnapshotQueryExecutionDTO + """ # noqa: E501 + columns: Optional[List[DataservicesQueryPropertyColumnDTO]] = Field(default=None, description="The columns to include in the result. This must contain at least one column.") + filters: Optional[List[DataservicesQueryQueryFilterDTO]] = Field(default=None, description="The filters of this query. Omit `filters` if no filtering is required.") + options: Optional[DataservicesQuerySnapshotQueryExecutionOptionsDTO] = Field(default=None, description="Additional instructions for your query, such as a calendar type or conversion information.") + parameter_values: Optional[List[DataservicesQueryQueryParameterValueDTO]] = Field(default=None, description="The parameter values for either member or numeric parameters.", alias="parameterValues") + sort_options: Optional[List[DataservicesQuerySortOptionDTO]] = Field(default=None, description="The index and direction to sort a column in the `columns` array.", alias="sortOptions") + source: Optional[DataservicesQueryListQuerySourceDTO] = Field(default=None, description="The source data that you want to query.") + time_intervals: Optional[DataservicesQueryQueryTimeIntervalsDTO] = 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 DataservicesQuerySnapshotQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DataservicesQuerySnapshotQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DataservicesQueryPropertyColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "filters": [DataservicesQueryQueryFilterDTO.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None, + "options": DataservicesQuerySnapshotQueryExecutionOptionsDTO.from_dict(obj["options"]) if obj.get("options") is not None else None, + "parameterValues": [DataservicesQueryQueryParameterValueDTO.from_dict(_item) for _item in obj["parameterValues"]] if obj.get("parameterValues") is not None else None, + "sortOptions": [DataservicesQuerySortOptionDTO.from_dict(_item) for _item in obj["sortOptions"]] if obj.get("sortOptions") is not None else None, + "source": DataservicesQueryListQuerySourceDTO.from_dict(obj["source"]) if obj.get("source") is not None else None, + "timeIntervals": DataservicesQueryQueryTimeIntervalsDTO.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_snapshot_query_execution_options_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_snapshot_query_execution_options_dto.py new file mode 100644 index 0000000000..cbba25ab92 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQuerySnapshotQueryExecutionOptionsDTO(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 DataservicesQuerySnapshotQueryExecutionOptionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQuerySnapshotQueryExecutionOptionsDTO 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_sort_option_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_sort_option_dto.py new file mode 100644 index 0000000000..e438af9e61 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQuerySortOptionDTO(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 DataservicesQuerySortOptionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQuerySortOptionDTO 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_sql_like_query_execution_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_sql_like_query_execution_dto.py new file mode 100644 index 0000000000..270c472617 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_query_execution_options_dto import DataservicesQueryQueryExecutionOptionsDTO +from typing import Optional, Set +from typing_extensions import Self + +class DataservicesQuerySqlLikeQueryExecutionDTO(BaseModel): + """ + * Request body for SQL-like query executions + """ # noqa: E501 + options: Optional[DataservicesQueryQueryExecutionOptionsDTO] = 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 DataservicesQuerySqlLikeQueryExecutionDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DataservicesQuerySqlLikeQueryExecutionDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "options": DataservicesQueryQueryExecutionOptionsDTO.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_time_shift_dto.py b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_time_shift_dto.py new file mode 100644 index 0000000000..11923d7c6f --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DataservicesQueryTimeShiftDTO(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 DataservicesQueryTimeShiftDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataservicesQueryTimeShiftDTO 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/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 deleted file mode 100644 index f933ef09f5..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index adb565824a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 8e97eedd7f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ac942d6ae4..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 3e76e09de0..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 4db23079db..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 7f586cc3b1..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index d9baa05eb0..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7fb4a6642c..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 2a691e2d41..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6ca86abf9d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 37207861a1..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d56d931b45..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 40d151a479..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d84612ba37..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any 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 deleted file mode 100644 index 2a662a1768..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index c9dbd28f1c..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a969c8120d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 62d26b4755..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c0658b7956..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 9dca86abc1..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7ab3ef889e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 6dbda4869f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index f77f539e98..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index ce12ccbfe7..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ae45264caa..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 41dc9586ed..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered 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 deleted file mode 100644 index 975f3d1d87..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c819bb8ded..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ace2f151e6..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c052788228..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 8ee001fcb8..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index ebba97243c..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 6fe2fe76b6..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index bec1519a61..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ae5dc1a465..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index bdc94bb974..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index efc63bcf1a..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 52deeee91b..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index e53fe186fb..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7b2f2d3c28..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 2f6c6a0979..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 821305b3c7..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a600beda3d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 7ee8074c21..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index a5c5ff050e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/dataservices_query_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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_data_version_export_column_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_column_dto.py new file mode 100644 index 0000000000..e81e197aa5 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerDataVersionExportColumnDTO(BaseModel): + """ + DesignerDataVersionExportColumnDTO + """ # 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 DesignerDataVersionExportColumnDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportColumnDTO 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_data_version_export_data_version_summary_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_data_version_summary_dto.py new file mode 100644 index 0000000000..7fcd55cb8c --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportDataVersionSummaryDTO(BaseModel): + """ + DesignerDataVersionExportDataVersionSummaryDTO + """ # 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 DesignerDataVersionExportDataVersionSummaryDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportDataVersionSummaryDTO 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_data_version_export_data_versions_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_data_versions_dto.py new file mode 100644 index 0000000000..1eb42c3fee --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_version_export_data_version_summary_dto import DesignerDataVersionExportDataVersionSummaryDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportDataVersionsDTO(BaseModel): + """ + DesignerDataVersionExportDataVersionsDTO + """ # noqa: E501 + data_versions: Optional[List[DesignerDataVersionExportDataVersionSummaryDTO]] = 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 DesignerDataVersionExportDataVersionsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerDataVersionExportDataVersionsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersions": [DesignerDataVersionExportDataVersionSummaryDTO.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_data_version_export_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_dto.py new file mode 100644 index 0000000000..89be00b3e4 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_data_version_export_table_dto import DesignerDataVersionExportTableDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportDTO(BaseModel): + """ + DesignerDataVersionExportDTO + """ # 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[DesignerDataVersionExportTableDTO]] = 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 DesignerDataVersionExportDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerDataVersionExportDTO 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": [DesignerDataVersionExportTableDTO.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_data_version_export_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_file_dto.py new file mode 100644 index 0000000000..a487f45e5b --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_version_export_column_dto import DesignerDataVersionExportColumnDTO +from visier_api_data_out.models.designer_data_version_export_part_file_dto import DesignerDataVersionExportPartFileDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportFileDTO(BaseModel): + """ + DesignerDataVersionExportFileDTO + """ # noqa: E501 + columns: Optional[List[DesignerDataVersionExportColumnDTO]] = Field(default=None, description="Information about a table's columns.") + files: Optional[List[DesignerDataVersionExportPartFileDTO]] = 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 DesignerDataVersionExportFileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerDataVersionExportFileDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "columns": [DesignerDataVersionExportColumnDTO.from_dict(_item) for _item in obj["columns"]] if obj.get("columns") is not None else None, + "files": [DesignerDataVersionExportPartFileDTO.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_data_version_export_job_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_job_status_dto.py new file mode 100644 index 0000000000..04f7d14631 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerDataVersionExportJobStatusDTO(BaseModel): + """ + DesignerDataVersionExportJobStatusDTO + """ # 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 DesignerDataVersionExportJobStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportJobStatusDTO 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_data_version_export_part_file_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_part_file_dto.py new file mode 100644 index 0000000000..92519c1e95 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerDataVersionExportPartFileDTO(BaseModel): + """ + DesignerDataVersionExportPartFileDTO + """ # 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 DesignerDataVersionExportPartFileDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportPartFileDTO 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_data_version_export_schedule_job_request_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_schedule_job_request_dto.py new file mode 100644 index 0000000000..a2bd9402b5 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportScheduleJobRequestDTO(BaseModel): + """ + DesignerDataVersionExportScheduleJobRequestDTO + """ # 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 DesignerDataVersionExportScheduleJobRequestDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportScheduleJobRequestDTO 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_data_version_export_schedule_job_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_schedule_job_response_dto.py new file mode 100644 index 0000000000..08c1722666 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportScheduleJobResponseDTO(BaseModel): + """ + DesignerDataVersionExportScheduleJobResponseDTO + """ # 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 DesignerDataVersionExportScheduleJobResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDataVersionExportScheduleJobResponseDTO 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_data_version_export_table_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_export_table_dto.py new file mode 100644 index 0000000000..69d7f44ec8 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +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_data_version_export_file_dto import DesignerDataVersionExportFileDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportTableDTO(BaseModel): + """ + DesignerDataVersionExportTableDTO + """ # noqa: E501 + common_columns: Optional[DesignerDataVersionExportFileDTO] = 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[DesignerDataVersionExportFileDTO] = 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 DesignerDataVersionExportTableDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 DesignerDataVersionExportTableDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commonColumns": DesignerDataVersionExportFileDTO.from_dict(obj["commonColumns"]) if obj.get("commonColumns") is not None else None, + "deletedColumns": obj.get("deletedColumns"), + "name": obj.get("name"), + "newColumns": DesignerDataVersionExportFileDTO.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_data_version_exports_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_data_version_exports_dto.py new file mode 100644 index 0000000000..50585a8d0d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_data_version_export_dto import DesignerDataVersionExportDTO +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDataVersionExportsDTO(BaseModel): + """ + DesignerDataVersionExportsDTO + """ # noqa: E501 + data_version_exports: Optional[List[DesignerDataVersionExportDTO]] = 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 DesignerDataVersionExportsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 DesignerDataVersionExportsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataVersionExports": [DesignerDataVersionExportDTO.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_download_source_files_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_download_source_files_dto.py new file mode 100644 index 0000000000..afd135773d --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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 DesignerDownloadSourceFilesDTO(BaseModel): + """ + DesignerDownloadSourceFilesDTO + """ # 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 DesignerDownloadSourceFilesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDownloadSourceFilesDTO 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_download_source_files_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/designer_download_source_files_response_dto.py new file mode 100644 index 0000000000..9b17db92a2 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/designer_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DesignerDownloadSourceFilesResponseDTO(BaseModel): + """ + DesignerDownloadSourceFilesResponseDTO + """ # 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 DesignerDownloadSourceFilesResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DesignerDownloadSourceFilesResponseDTO 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/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 deleted file mode 100644 index c19600362f..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index dd1c5c4f78..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 1c21463f64..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index a8514dc9a2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index ae9b38c156..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index c787f1ff4b..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index f795181620..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 30bfb4a8f9..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 7f28411057..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index 12eccf62ff..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -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 deleted file mode 100644 index 0f004a62e2..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index d08f26702d..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 906201b9a1..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/designer_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/dv_export_status.py b/src/visier_api_data_out/visier_api_data_out/models/dv_export_status.py index f676a9d73a..2ff348cc08 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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 5f82b41cef..8747bbe230 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/servicing_document_search_link_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_document_search_link_dto.py new file mode 100644 index 0000000000..f824340d6a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ServicingDocumentSearchLinkDTO(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 ServicingDocumentSearchLinkDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ServicingDocumentSearchLinkDTO 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_document_search_link_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_document_search_link_dto.py deleted file mode 100644 index 3d711fe7c4..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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 deleted file mode 100644 index a2f14f8a07..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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 deleted file mode 100644 index 888cc089db..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/servicing_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues 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/servicing_simple_document_header_search_response_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_simple_document_header_search_response_dto.py new file mode 100644 index 0000000000..3299b46baf --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_simple_document_header_search_result_dto import ServicingSimpleDocumentHeaderSearchResultDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSimpleDocumentHeaderSearchResponseDTO(BaseModel): + """ + The response body structure for Simple document header search operations. + """ # noqa: E501 + document_headers: Optional[List[ServicingSimpleDocumentHeaderSearchResultDTO]] = 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 ServicingSimpleDocumentHeaderSearchResponseDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_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 ServicingSimpleDocumentHeaderSearchResponseDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "documentHeaders": [ServicingSimpleDocumentHeaderSearchResultDTO.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_simple_document_header_search_result_dto.py b/src/visier_api_data_out/visier_api_data_out/models/servicing_simple_document_header_search_result_dto.py new file mode 100644 index 0000000000..a735374043 --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/servicing_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues 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_document_search_link_dto import ServicingDocumentSearchLinkDTO +from typing import Optional, Set +from typing_extensions import Self + +class ServicingSimpleDocumentHeaderSearchResultDTO(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[ServicingDocumentSearchLinkDTO] = 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 ServicingSimpleDocumentHeaderSearchResultDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _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 ServicingSimpleDocumentHeaderSearchResultDTO 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": ServicingDocumentSearchLinkDTO.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/sql_like200_response.py b/src/visier_api_data_out/visier_api_data_out/models/sql_like200_response.py index 19f710ea54..a5714006b9 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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.dataservices_query_transfers_cell_set_dto import DataservicesQueryTransfersCellSetDTO +from visier_api_data_out.models.dataservices_query_cell_set_dto import DataservicesQueryCellSetDTO 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 = ["DataservicesQueryTransfersCellSetDTO", "TableResponseDTO"] +SQLLIKE200RESPONSE_ONE_OF_SCHEMAS = ["DataservicesQueryCellSetDTO", "TableResponseDTO"] class SqlLike200Response(BaseModel): """ @@ -33,11 +33,11 @@ class SqlLike200Response(BaseModel): """ # data type: TableResponseDTO oneof_schema_1_validator: Optional[TableResponseDTO] = None - # 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() } + # data type: DataservicesQueryCellSetDTO + oneof_schema_2_validator: Optional[DataservicesQueryCellSetDTO] = None + actual_instance: Optional[Union[DataservicesQueryCellSetDTO, TableResponseDTO]] = None + one_of_schemas: Set[str] = { "DataservicesQueryCellSetDTO", "TableResponseDTO" } + _default_values: ClassVar[Dict[str, Any]] = { "DataservicesQueryCellSetDTO": DataservicesQueryCellSetDTO(), "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: DataservicesQueryTransfersCellSetDTO - if not isinstance(v, DataservicesQueryTransfersCellSetDTO): - error_messages.append(f"Error! Input type `{type(v)}` is not `DataservicesQueryTransfersCellSetDTO`") + # validate data type: DataservicesQueryCellSetDTO + if not isinstance(v, DataservicesQueryCellSetDTO): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataservicesQueryCellSetDTO`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in SqlLike200Response with oneOf schemas: DataservicesQueryCellSetDTO, 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 DataservicesQueryTransfersCellSetDTO + # deserialize data into DataservicesQueryCellSetDTO try: - actual_instance = DataservicesQueryTransfersCellSetDTO.from_json(json_str) - if actual_instance and actual_instance != cls._default_values[DataservicesQueryTransfersCellSetDTO.__name__]: + actual_instance = DataservicesQueryCellSetDTO.from_json(json_str) + if actual_instance and actual_instance != cls._default_values[DataservicesQueryCellSetDTO.__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: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into SqlLike200Response with oneOf schemas: DataservicesQueryCellSetDTO, 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: DataservicesQueryTransfersCellSetDTO, TableResponseDTO. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into SqlLike200Response with oneOf schemas: DataservicesQueryCellSetDTO, 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], DataservicesQueryTransfersCellSetDTO, TableResponseDTO]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], DataservicesQueryCellSetDTO, 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/status.py b/src/visier_api_data_out/visier_api_data_out/models/status.py index f8ea090adc..807f6f9520 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 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/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 deleted file mode 100644 index 009638e65e..0000000000 --- a/src/visier_api_data_out/visier_api_data_out/models/systemstatus_publicapi_transfers_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.1793 - Contact: alpine@visier.com - - Please note that this SDK is currently in beta. - Functionality and behavior may change in future releases. - We encourage you to provide feedback and report any issues encountered during your use. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic 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/systemstatus_vee_status_dto.py b/src/visier_api_data_out/visier_api_data_out/models/systemstatus_vee_status_dto.py new file mode 100644 index 0000000000..7b8eae5b2a --- /dev/null +++ b/src/visier_api_data_out/visier_api_data_out/models/systemstatus_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.1830 + Contact: alpine@visier.com + + Please note that this SDK is currently in beta. + Functionality and behavior may change in future releases. + We encourage you to provide feedback and report any issues encountered during your use. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SystemstatusVeeStatusDTO(BaseModel): + """ + SystemstatusVeeStatusDTO + """ # 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 SystemstatusVeeStatusDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SystemstatusVeeStatusDTO 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 aa86dc2fb1..708fe4660e 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.1793 + The version of the OpenAPI document: 22222222.99201.1830 Contact: alpine@visier.com Please note that this SDK is currently in beta.