field-manager-python-client 4.4.82rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- field-manager-python-client/__init__.py +8 -0
- field-manager-python-client/api/__init__.py +1 -0
- field-manager-python-client/api/bff/__init__.py +0 -0
- field-manager-python-client/api/bff/get_files_in_project_projects_project_id_bff_files_get.py +222 -0
- field-manager-python-client/api/bff/get_location_summaries_projects_project_id_location_summaries_get.py +198 -0
- field-manager-python-client/api/bff/get_project_location_methodtypes_summary_organizations_organization_id_projectlocationmethodtypes_get.py +194 -0
- field-manager-python-client/api/bff/get_project_summaries_project_summaries_get.py +243 -0
- field-manager-python-client/api/comments/__init__.py +0 -0
- field-manager-python-client/api/comments/delete_comment_projects_project_id_locations_location_id_comments_comment_id_delete.py +246 -0
- field-manager-python-client/api/comments/get_comments_projects_project_id_locations_location_id_comments_get.py +235 -0
- field-manager-python-client/api/comments/get_likes_projects_project_id_locations_location_id_comments_comment_id_likes_get.py +248 -0
- field-manager-python-client/api/comments/like_comment_projects_project_id_locations_location_id_comments_comment_id_likes_post.py +242 -0
- field-manager-python-client/api/comments/modify_comment_projects_project_id_locations_location_id_comments_comment_id_text_put.py +255 -0
- field-manager-python-client/api/comments/submit_comment_projects_project_id_locations_location_id_comments_post.py +250 -0
- field-manager-python-client/api/comments/unlike_comment_projects_project_id_locations_location_id_comments_comment_id_likes_like_id_delete.py +247 -0
- field-manager-python-client/api/export/__init__.py +0 -0
- field-manager-python-client/api/export/export_files_projects_project_id_export_files_get.py +225 -0
- field-manager-python-client/api/export/export_projects_project_id_export_post.py +290 -0
- field-manager-python-client/api/files/__init__.py +0 -0
- field-manager-python-client/api/files/change_file_metadata_projects_project_id_files_file_id_put.py +220 -0
- field-manager-python-client/api/files/download_file_projects_project_id_files_file_id_download_get.py +246 -0
- field-manager-python-client/api/files/download_file_via_token_download_projects_project_id_file_get.py +248 -0
- field-manager-python-client/api/files/download_file_with_temporary_project_token_download_projects_project_id_file_file_id_get.py +261 -0
- field-manager-python-client/api/files/export_files_via_token_download_projects_project_id_export_files_get.py +240 -0
- field-manager-python-client/api/files/file_token_projects_project_id_files_file_id_token_get.py +198 -0
- field-manager-python-client/api/files/parse_project_file_projects_project_id_files_file_id_parse_post.py +275 -0
- field-manager-python-client/api/files/project_token_projects_project_id_token_get.py +180 -0
- field-manager-python-client/api/gis/__init__.py +0 -0
- field-manager-python-client/api/gis/get_locations_in_project_projects_project_id_gis_onshore_get.py +236 -0
- field-manager-python-client/api/location_types/__init__.py +0 -0
- field-manager-python-client/api/location_types/get_location_iogp_type_location_iogp_types_iogp_type_id_get.py +177 -0
- field-manager-python-client/api/location_types/get_location_iogp_types_location_iogp_types_get.py +154 -0
- field-manager-python-client/api/location_types/get_location_type_location_types_location_type_id_get.py +185 -0
- field-manager-python-client/api/location_types/get_location_types_location_types_get.py +107 -0
- field-manager-python-client/api/locations/__init__.py +0 -0
- field-manager-python-client/api/locations/add_location_to_project_projects_project_id_locations_post.py +214 -0
- field-manager-python-client/api/locations/delete_file_projects_project_id_locations_location_id_files_file_id_delete.py +223 -0
- field-manager-python-client/api/locations/delete_location_in_project_projects_project_id_locations_location_id_delete.py +194 -0
- field-manager-python-client/api/locations/delete_locations_in_project_projects_project_id_locations_delete.py +208 -0
- field-manager-python-client/api/locations/export_projects_project_id_locations_location_id_export_get.py +258 -0
- field-manager-python-client/api/locations/get_files_in_location_in_project_projects_project_id_locations_location_id_files_get.py +236 -0
- field-manager-python-client/api/locations/get_location_in_project_by_name_projects_project_id_locations_get_by_name_name_get.py +197 -0
- field-manager-python-client/api/locations/get_location_in_project_projects_project_id_locations_location_id_get.py +198 -0
- field-manager-python-client/api/locations/get_locations_in_project_projects_project_id_locations_get.py +307 -0
- field-manager-python-client/api/locations/queue_locations_to_project_projects_project_id_locations_queue_post.py +317 -0
- field-manager-python-client/api/locations/update_location_in_project_projects_project_id_locations_location_id_put.py +220 -0
- field-manager-python-client/api/locations/update_locations_in_project_projects_project_id_locations_put.py +217 -0
- field-manager-python-client/api/locations/upload_file_to_location_projects_project_id_locations_location_id_upload_post.py +505 -0
- field-manager-python-client/api/locations/upload_locations_to_project_projects_project_id_locations_upload_post.py +315 -0
- field-manager-python-client/api/map_layouts/__init__.py +0 -0
- field-manager-python-client/api/map_layouts/add_map_layout_to_project_projects_project_id_map_layouts_post.py +206 -0
- field-manager-python-client/api/map_layouts/add_map_layout_version_projects_project_id_map_layouts_map_layout_id_versions_post.py +220 -0
- field-manager-python-client/api/map_layouts/delete_map_layout_in_project_projects_project_id_map_layouts_map_layout_id_delete.py +194 -0
- field-manager-python-client/api/map_layouts/delete_map_layout_version_projects_project_id_map_layouts_map_layout_id_versions_map_layout_version_id_delete.py +207 -0
- field-manager-python-client/api/map_layouts/delete_map_layouts_in_project_projects_project_id_map_layouts_delete.py +212 -0
- field-manager-python-client/api/map_layouts/get_map_layout_in_project_projects_project_id_map_layouts_map_layout_id_get.py +198 -0
- field-manager-python-client/api/map_layouts/get_map_layouts_in_project_projects_project_id_map_layouts_get.py +190 -0
- field-manager-python-client/api/map_layouts/update_map_layout_in_project_projects_project_id_map_layouts_map_layout_id_put.py +220 -0
- field-manager-python-client/api/map_layouts/update_map_layout_version_projects_project_id_map_layouts_map_layout_id_versions_map_layout_version_id_put.py +237 -0
- field-manager-python-client/api/method_types/__init__.py +0 -0
- field-manager-python-client/api/method_types/get_method_type_method_types_method_type_id_get.py +176 -0
- field-manager-python-client/api/method_types/get_method_types_method_types_get.py +154 -0
- field-manager-python-client/api/methods/__init__.py +0 -0
- field-manager-python-client/api/methods/add_method_to_location_projects_project_id_locations_location_id_methods_post.py +587 -0
- field-manager-python-client/api/methods/create_data_row_projects_project_id_locations_location_id_methods_method_id_data_post.py +396 -0
- field-manager-python-client/api/methods/delete_data_row_projects_project_id_locations_location_id_methods_method_id_data_method_data_id_delete.py +220 -0
- field-manager-python-client/api/methods/delete_file_projects_project_id_locations_location_id_methods_method_id_files_file_id_delete.py +240 -0
- field-manager-python-client/api/methods/delete_method_for_location_projects_project_id_locations_location_id_methods_method_id_delete.py +207 -0
- field-manager-python-client/api/methods/export_projects_project_id_locations_location_id_methods_method_id_export_get.py +283 -0
- field-manager-python-client/api/methods/get_files_for_method_projects_project_id_locations_location_id_methods_method_id_files_get.py +249 -0
- field-manager-python-client/api/methods/get_method_projects_project_id_locations_location_id_methods_method_id_get.py +483 -0
- field-manager-python-client/api/methods/get_methods_data_projects_project_id_locations_location_id_methods_method_id_data_get.py +335 -0
- field-manager-python-client/api/methods/get_methods_for_location_of_type_projects_project_id_locations_location_id_methods_type_method_type_name_get.py +528 -0
- field-manager-python-client/api/methods/get_methods_for_location_projects_project_id_locations_location_id_methods_get.py +518 -0
- field-manager-python-client/api/methods/update_data_row_projects_project_id_locations_location_id_methods_method_id_data_method_data_id_put.py +402 -0
- field-manager-python-client/api/methods/update_method_for_location_projects_project_id_locations_location_id_methods_method_id_put.py +600 -0
- field-manager-python-client/api/methods/upload_file_projects_project_id_locations_location_id_methods_method_id_upload_post.py +538 -0
- field-manager-python-client/api/organizations/__init__.py +0 -0
- field-manager-python-client/api/organizations/add_organization_organizations_post.py +193 -0
- field-manager-python-client/api/organizations/delete_file_organizations_organization_id_files_file_id_delete.py +194 -0
- field-manager-python-client/api/organizations/download_file_organizations_organization_id_files_file_id_download_get.py +222 -0
- field-manager-python-client/api/organizations/get_files_in_organization_organizations_organization_id_files_get.py +246 -0
- field-manager-python-client/api/organizations/get_organization_by_external_id_organizations_get_by_external_id_external_id_get.py +184 -0
- field-manager-python-client/api/organizations/get_organization_organizations_organization_id_get.py +184 -0
- field-manager-python-client/api/organizations/get_organization_projects_organizations_organization_id_projects_get.py +228 -0
- field-manager-python-client/api/organizations/get_organization_users_organizations_organization_id_users_get.py +182 -0
- field-manager-python-client/api/organizations/get_organizations_organizations_get.py +215 -0
- field-manager-python-client/api/organizations/move_organization_project_organizations_organization_id_projects_project_id_move_post.py +228 -0
- field-manager-python-client/api/organizations/update_organization_organizations_organization_id_put.py +206 -0
- field-manager-python-client/api/organizations/upload_file_to_organization_organizations_organization_id_upload_post.py +205 -0
- field-manager-python-client/api/piezometers/__init__.py +0 -0
- field-manager-python-client/api/piezometers/create_piezometer_model_projects_project_id_piezometers_models_post.py +206 -0
- field-manager-python-client/api/piezometers/get_piezometer_model_projects_project_id_piezometers_models_model_id_get.py +190 -0
- field-manager-python-client/api/piezometers/get_piezometer_models_projects_project_id_piezometers_models_get.py +182 -0
- field-manager-python-client/api/piezometers/get_piezometer_units_piezometers_units_get.py +170 -0
- field-manager-python-client/api/piezometers/get_piezometer_vendor_projects_project_id_piezometers_vendors_vendor_id_get.py +190 -0
- field-manager-python-client/api/piezometers/get_piezometer_vendors_projects_project_id_piezometers_vendors_get.py +182 -0
- field-manager-python-client/api/piezometers/update_piezometer_model_projects_project_id_piezometers_models_model_id_put.py +220 -0
- field-manager-python-client/api/plots/__init__.py +0 -0
- field-manager-python-client/api/plots/get_plot_from_sequence_plots_project_project_id_format_post.py +216 -0
- field-manager-python-client/api/plots/get_plot_sequence_plots_project_project_id_plot_sequence_format_post.py +218 -0
- field-manager-python-client/api/projects/__init__.py +0 -0
- field-manager-python-client/api/projects/add_project_projects_post.py +245 -0
- field-manager-python-client/api/projects/delete_file_projects_project_id_files_file_id_delete.py +194 -0
- field-manager-python-client/api/projects/delete_files_projects_project_id_files_delete.py +224 -0
- field-manager-python-client/api/projects/delete_project_projects_project_id_delete.py +180 -0
- field-manager-python-client/api/projects/delete_projects_projects_delete.py +195 -0
- field-manager-python-client/api/projects/download_logo_projects_project_id_logo_get.py +200 -0
- field-manager-python-client/api/projects/get_file_in_project_projects_project_id_files_file_id_get.py +198 -0
- field-manager-python-client/api/projects/get_files_in_project_projects_project_id_files_get.py +256 -0
- field-manager-python-client/api/projects/get_linked_projects_projects_project_id_linked_projects_get.py +190 -0
- field-manager-python-client/api/projects/get_project_projects_project_id_get.py +176 -0
- field-manager-python-client/api/projects/get_project_summary_projects_project_id_summary_get.py +192 -0
- field-manager-python-client/api/projects/get_project_users_projects_project_id_users_get.py +169 -0
- field-manager-python-client/api/projects/get_projects_projects_get.py +235 -0
- field-manager-python-client/api/projects/link_linked_project_projects_project_id_linked_projects_linked_project_id_post.py +198 -0
- field-manager-python-client/api/projects/search_projects_projects_search_post.py +228 -0
- field-manager-python-client/api/projects/unlink_linked_project_projects_project_id_linked_projects_linked_project_id_delete.py +198 -0
- field-manager-python-client/api/projects/update_project_favorite_projects_project_id_favorite_delete.py +184 -0
- field-manager-python-client/api/projects/update_project_favorite_projects_project_id_favorite_post.py +184 -0
- field-manager-python-client/api/projects/update_project_favorite_projects_project_id_favorite_put.py +184 -0
- field-manager-python-client/api/projects/update_project_projects_project_id_put.py +222 -0
- field-manager-python-client/api/projects/upload_file_to_project_projects_project_id_upload_post.py +276 -0
- field-manager-python-client/api/public/__init__.py +0 -0
- field-manager-python-client/api/public/get_organization_by_email_address_public_organizations_email_address_get.py +198 -0
- field-manager-python-client/api/public/get_organization_information_public_organizations_organization_id_information_get.py +185 -0
- field-manager-python-client/api/sample_containers/__init__.py +0 -0
- field-manager-python-client/api/sample_containers/get_sample_container_sample_containers_sample_container_type_id_get.py +176 -0
- field-manager-python-client/api/sample_containers/get_sample_containers_sample_containers_get.py +154 -0
- field-manager-python-client/api/sample_materials/__init__.py +0 -0
- field-manager-python-client/api/sample_materials/get_sample_material_sample_materials_sample_material_id_get.py +176 -0
- field-manager-python-client/api/sample_materials/get_sample_materials_sample_materials_get.py +154 -0
- field-manager-python-client/api/sampler_types/__init__.py +0 -0
- field-manager-python-client/api/sampler_types/get_sampler_type_sampler_types_sampler_type_id_get.py +176 -0
- field-manager-python-client/api/sampler_types/get_sampler_types_sampler_types_get.py +154 -0
- field-manager-python-client/api/sampling_techniques/__init__.py +0 -0
- field-manager-python-client/api/sampling_techniques/get_sampling_technique_sampling_techniques_sampling_technique_id_get.py +176 -0
- field-manager-python-client/api/sampling_techniques/get_sampling_techniques_sampling_techniques_get.py +154 -0
- field-manager-python-client/api/standards/__init__.py +0 -0
- field-manager-python-client/api/standards/get_project_standards_standards_get.py +154 -0
- field-manager-python-client/api/standards/get_standard_standards_standard_id_get.py +176 -0
- field-manager-python-client/api/users/__init__.py +0 -0
- field-manager-python-client/api/users/add_user_role_users_user_id_roles_post.py +192 -0
- field-manager-python-client/api/users/add_user_users_post.py +202 -0
- field-manager-python-client/api/users/get_user_users_user_id_get.py +170 -0
- field-manager-python-client/api/users/get_users_users_get.py +131 -0
- field-manager-python-client/api/users/remove_user_role_users_user_id_roles_delete.py +223 -0
- field-manager-python-client/api/version/__init__.py +0 -0
- field-manager-python-client/api/version/get_version_version_get.py +105 -0
- field-manager-python-client/client.py +268 -0
- field-manager-python-client/errors.py +14 -0
- field-manager-python-client/models/__init__.py +669 -0
- field-manager-python-client/models/application_class_enum.py +12 -0
- field-manager-python-client/models/background_map_layer.py +12 -0
- field-manager-python-client/models/bedrock_info.py +122 -0
- field-manager-python-client/models/bedrock_type.py +9 -0
- field-manager-python-client/models/bff_file.py +233 -0
- field-manager-python-client/models/bff_location.py +84 -0
- field-manager-python-client/models/bff_location_summary.py +376 -0
- field-manager-python-client/models/bff_method.py +103 -0
- field-manager-python-client/models/bff_method_summary.py +434 -0
- field-manager-python-client/models/bff_project_summary.py +254 -0
- field-manager-python-client/models/body_queue_locations_to_project_projects_project_id_locations_queue_post.py +132 -0
- field-manager-python-client/models/body_upload_file_projects_project_id_locations_location_id_methods_method_id_upload_post.py +132 -0
- field-manager-python-client/models/body_upload_file_to_location_projects_project_id_locations_location_id_upload_post.py +132 -0
- field-manager-python-client/models/body_upload_file_to_organization_organizations_organization_id_upload_post.py +132 -0
- field-manager-python-client/models/body_upload_file_to_project_projects_project_id_upload_post.py +132 -0
- field-manager-python-client/models/body_upload_locations_to_project_projects_project_id_locations_upload_post.py +132 -0
- field-manager-python-client/models/color_mode.py +8 -0
- field-manager-python-client/models/comment.py +233 -0
- field-manager-python-client/models/comment_create.py +72 -0
- field-manager-python-client/models/comment_update.py +72 -0
- field-manager-python-client/models/cpt_options.py +96 -0
- field-manager-python-client/models/date_format.py +8 -0
- field-manager-python-client/models/dp_type.py +11 -0
- field-manager-python-client/models/export.py +270 -0
- field-manager-python-client/models/export_type.py +14 -0
- field-manager-python-client/models/file.py +338 -0
- field-manager-python-client/models/file_extended.py +395 -0
- field-manager-python-client/models/file_extension.py +81 -0
- field-manager-python-client/models/file_type.py +10 -0
- field-manager-python-client/models/file_update.py +109 -0
- field-manager-python-client/models/fm_plot_options.py +168 -0
- field-manager-python-client/models/height_reference.py +12 -0
- field-manager-python-client/models/http_validation_error.py +97 -0
- field-manager-python-client/models/image_size.py +10 -0
- field-manager-python-client/models/iogp_type.py +100 -0
- field-manager-python-client/models/iogp_type_enum.py +33 -0
- field-manager-python-client/models/language.py +10 -0
- field-manager-python-client/models/like.py +139 -0
- field-manager-python-client/models/linked_project_info.py +441 -0
- field-manager-python-client/models/location.py +849 -0
- field-manager-python-client/models/location_coordinates.py +130 -0
- field-manager-python-client/models/location_create.py +840 -0
- field-manager-python-client/models/location_gis.py +481 -0
- field-manager-python-client/models/location_info.py +166 -0
- field-manager-python-client/models/location_min.py +111 -0
- field-manager-python-client/models/location_summary.py +381 -0
- field-manager-python-client/models/location_type.py +8 -0
- field-manager-python-client/models/location_type_enum.py +8 -0
- field-manager-python-client/models/location_update.py +1180 -0
- field-manager-python-client/models/map_layout.py +195 -0
- field-manager-python-client/models/map_layout_create.py +138 -0
- field-manager-python-client/models/map_layout_update.py +154 -0
- field-manager-python-client/models/map_layout_version.py +502 -0
- field-manager-python-client/models/map_layout_version_create.py +488 -0
- field-manager-python-client/models/map_layout_version_update.py +616 -0
- field-manager-python-client/models/map_scale.py +13 -0
- field-manager-python-client/models/method_ad.py +330 -0
- field-manager-python-client/models/method_ad_create.py +344 -0
- field-manager-python-client/models/method_ad_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_ad_method_type_id.py +7 -0
- field-manager-python-client/models/method_ad_update.py +309 -0
- field-manager-python-client/models/method_ad_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_cd.py +688 -0
- field-manager-python-client/models/method_cd_create.py +524 -0
- field-manager-python-client/models/method_cd_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_cd_method_type_id.py +7 -0
- field-manager-python-client/models/method_cd_update.py +477 -0
- field-manager-python-client/models/method_cd_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt.py +618 -0
- field-manager-python-client/models/method_cpt_create.py +559 -0
- field-manager-python-client/models/method_cpt_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt_data.py +417 -0
- field-manager-python-client/models/method_cpt_data_create.py +511 -0
- field-manager-python-client/models/method_cpt_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt_data_update.py +132 -0
- field-manager-python-client/models/method_cpt_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt_method_type_id.py +7 -0
- field-manager-python-client/models/method_cpt_update.py +524 -0
- field-manager-python-client/models/method_cpt_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_dp.py +510 -0
- field-manager-python-client/models/method_dp_create.py +512 -0
- field-manager-python-client/models/method_dp_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_dp_data.py +312 -0
- field-manager-python-client/models/method_dp_data_create.py +406 -0
- field-manager-python-client/models/method_dp_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_dp_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_dp_method_type_id.py +7 -0
- field-manager-python-client/models/method_dp_update.py +309 -0
- field-manager-python-client/models/method_dp_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt.py +479 -0
- field-manager-python-client/models/method_dt_create.py +492 -0
- field-manager-python-client/models/method_dt_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt_data.py +241 -0
- field-manager-python-client/models/method_dt_data_create.py +330 -0
- field-manager-python-client/models/method_dt_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt_data_update.py +195 -0
- field-manager-python-client/models/method_dt_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt_method_type_id.py +7 -0
- field-manager-python-client/models/method_dt_update.py +456 -0
- field-manager-python-client/models/method_dt_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_esa.py +330 -0
- field-manager-python-client/models/method_esa_create.py +344 -0
- field-manager-python-client/models/method_esa_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_esa_method_type_id.py +7 -0
- field-manager-python-client/models/method_esa_update.py +309 -0
- field-manager-python-client/models/method_esa_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_export_type.py +7 -0
- field-manager-python-client/models/method_inc.py +331 -0
- field-manager-python-client/models/method_inc_create.py +344 -0
- field-manager-python-client/models/method_inc_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_inc_method_type_id.py +7 -0
- field-manager-python-client/models/method_inc_update.py +309 -0
- field-manager-python-client/models/method_inc_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_info.py +325 -0
- field-manager-python-client/models/method_iw.py +330 -0
- field-manager-python-client/models/method_iw_create.py +344 -0
- field-manager-python-client/models/method_iw_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_iw_method_type_id.py +7 -0
- field-manager-python-client/models/method_iw_update.py +309 -0
- field-manager-python-client/models/method_iw_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_min.py +111 -0
- field-manager-python-client/models/method_other.py +331 -0
- field-manager-python-client/models/method_other_create.py +344 -0
- field-manager-python-client/models/method_other_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_other_method_type_id.py +7 -0
- field-manager-python-client/models/method_other_update.py +309 -0
- field-manager-python-client/models/method_other_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_pt.py +331 -0
- field-manager-python-client/models/method_pt_create.py +344 -0
- field-manager-python-client/models/method_pt_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_pt_method_type_id.py +7 -0
- field-manager-python-client/models/method_pt_update.py +309 -0
- field-manager-python-client/models/method_pt_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz.py +824 -0
- field-manager-python-client/models/method_pz_create.py +738 -0
- field-manager-python-client/models/method_pz_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz_data.py +306 -0
- field-manager-python-client/models/method_pz_data_create.py +353 -0
- field-manager-python-client/models/method_pz_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz_data_update.py +242 -0
- field-manager-python-client/models/method_pz_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz_method_type_id.py +7 -0
- field-manager-python-client/models/method_pz_update.py +704 -0
- field-manager-python-client/models/method_pz_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd.py +457 -0
- field-manager-python-client/models/method_rcd_create.py +365 -0
- field-manager-python-client/models/method_rcd_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd_data.py +207 -0
- field-manager-python-client/models/method_rcd_data_create.py +301 -0
- field-manager-python-client/models/method_rcd_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd_data_update.py +173 -0
- field-manager-python-client/models/method_rcd_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd_method_type_id.py +7 -0
- field-manager-python-client/models/method_rcd_update.py +330 -0
- field-manager-python-client/models/method_rcd_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_ro.py +331 -0
- field-manager-python-client/models/method_ro_create.py +344 -0
- field-manager-python-client/models/method_ro_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_ro_method_type_id.py +7 -0
- field-manager-python-client/models/method_ro_update.py +309 -0
- field-manager-python-client/models/method_ro_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp.py +415 -0
- field-manager-python-client/models/method_rp_create.py +367 -0
- field-manager-python-client/models/method_rp_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp_data.py +333 -0
- field-manager-python-client/models/method_rp_data_create.py +426 -0
- field-manager-python-client/models/method_rp_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp_data_update.py +131 -0
- field-manager-python-client/models/method_rp_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp_method_type_id.py +7 -0
- field-manager-python-client/models/method_rp_update.py +331 -0
- field-manager-python-client/models/method_rp_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rs.py +331 -0
- field-manager-python-client/models/method_rs_create.py +344 -0
- field-manager-python-client/models/method_rs_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rs_method_type_id.py +7 -0
- field-manager-python-client/models/method_rs_update.py +309 -0
- field-manager-python-client/models/method_rs_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_rws.py +331 -0
- field-manager-python-client/models/method_rws_create.py +344 -0
- field-manager-python-client/models/method_rws_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_rws_method_type_id.py +7 -0
- field-manager-python-client/models/method_rws_update.py +309 -0
- field-manager-python-client/models/method_rws_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_sa.py +513 -0
- field-manager-python-client/models/method_sa_create.py +506 -0
- field-manager-python-client/models/method_sa_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_sa_method_type_id.py +7 -0
- field-manager-python-client/models/method_sa_update.py +471 -0
- field-manager-python-client/models/method_sa_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_spt.py +331 -0
- field-manager-python-client/models/method_spt_create.py +344 -0
- field-manager-python-client/models/method_spt_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_spt_method_type_id.py +7 -0
- field-manager-python-client/models/method_spt_update.py +309 -0
- field-manager-python-client/models/method_spt_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_sr.py +331 -0
- field-manager-python-client/models/method_sr_create.py +344 -0
- field-manager-python-client/models/method_sr_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_sr_method_type_id.py +7 -0
- field-manager-python-client/models/method_sr_update.py +309 -0
- field-manager-python-client/models/method_sr_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs.py +546 -0
- field-manager-python-client/models/method_srs_create.py +446 -0
- field-manager-python-client/models/method_srs_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs_data.py +396 -0
- field-manager-python-client/models/method_srs_data_create.py +490 -0
- field-manager-python-client/models/method_srs_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs_data_update.py +362 -0
- field-manager-python-client/models/method_srs_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs_method_type_id.py +7 -0
- field-manager-python-client/models/method_srs_update.py +418 -0
- field-manager-python-client/models/method_srs_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss.py +394 -0
- field-manager-python-client/models/method_ss_create.py +365 -0
- field-manager-python-client/models/method_ss_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss_data.py +228 -0
- field-manager-python-client/models/method_ss_data_create.py +329 -0
- field-manager-python-client/models/method_ss_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss_data_update.py +194 -0
- field-manager-python-client/models/method_ss_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss_method_type_id.py +7 -0
- field-manager-python-client/models/method_ss_update.py +330 -0
- field-manager-python-client/models/method_ss_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_status_enum.py +11 -0
- field-manager-python-client/models/method_summary.py +466 -0
- field-manager-python-client/models/method_svt.py +469 -0
- field-manager-python-client/models/method_svt_create.py +482 -0
- field-manager-python-client/models/method_svt_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_svt_data.py +333 -0
- field-manager-python-client/models/method_svt_data_create.py +364 -0
- field-manager-python-client/models/method_svt_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_svt_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_svt_data_update.py +236 -0
- field-manager-python-client/models/method_svt_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_svt_method_type_id.py +7 -0
- field-manager-python-client/models/method_svt_update.py +447 -0
- field-manager-python-client/models/method_svt_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot.py +478 -0
- field-manager-python-client/models/method_tot_create.py +366 -0
- field-manager-python-client/models/method_tot_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot_data.py +375 -0
- field-manager-python-client/models/method_tot_data_create.py +469 -0
- field-manager-python-client/models/method_tot_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot_data_update.py +132 -0
- field-manager-python-client/models/method_tot_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot_method_type_id.py +7 -0
- field-manager-python-client/models/method_tot_update.py +331 -0
- field-manager-python-client/models/method_tot_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_tp.py +331 -0
- field-manager-python-client/models/method_tp_create.py +344 -0
- field-manager-python-client/models/method_tp_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_tp_method_type_id.py +7 -0
- field-manager-python-client/models/method_tp_update.py +309 -0
- field-manager-python-client/models/method_tp_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_type.py +162 -0
- field-manager-python-client/models/method_type_enum.py +31 -0
- field-manager-python-client/models/method_type_enum_str.py +31 -0
- field-manager-python-client/models/method_wst.py +390 -0
- field-manager-python-client/models/method_wst_create.py +369 -0
- field-manager-python-client/models/method_wst_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_wst_data.py +249 -0
- field-manager-python-client/models/method_wst_data_create.py +343 -0
- field-manager-python-client/models/method_wst_data_create_method_type_id.py +7 -0
- field-manager-python-client/models/method_wst_data_method_type_id.py +7 -0
- field-manager-python-client/models/method_wst_data_update.py +215 -0
- field-manager-python-client/models/method_wst_data_update_method_type_id.py +7 -0
- field-manager-python-client/models/method_wst_method_type_id.py +7 -0
- field-manager-python-client/models/method_wst_update.py +343 -0
- field-manager-python-client/models/method_wst_update_method_type_id.py +7 -0
- field-manager-python-client/models/operation.py +8 -0
- field-manager-python-client/models/options.py +170 -0
- field-manager-python-client/models/organization.py +378 -0
- field-manager-python-client/models/organization_create.py +355 -0
- field-manager-python-client/models/organization_information.py +172 -0
- field-manager-python-client/models/organization_min.py +129 -0
- field-manager-python-client/models/organization_update.py +355 -0
- field-manager-python-client/models/orientation.py +8 -0
- field-manager-python-client/models/page_number_prefix_by_method.py +277 -0
- field-manager-python-client/models/page_number_start_per_method.py +277 -0
- field-manager-python-client/models/paper_size.py +17 -0
- field-manager-python-client/models/pdf_options.py +392 -0
- field-manager-python-client/models/pdf_options_date_format.py +8 -0
- field-manager-python-client/models/pdf_options_lang.py +8 -0
- field-manager-python-client/models/pdf_options_paper_size.py +8 -0
- field-manager-python-client/models/pdf_options_sort_figures_by.py +8 -0
- field-manager-python-client/models/pdf_page_info.py +323 -0
- field-manager-python-client/models/piezometer_model.py +199 -0
- field-manager-python-client/models/piezometer_model_create.py +204 -0
- field-manager-python-client/models/piezometer_model_update.py +206 -0
- field-manager-python-client/models/piezometer_type.py +9 -0
- field-manager-python-client/models/piezometer_vendor.py +141 -0
- field-manager-python-client/models/pizeometer_units.py +163 -0
- field-manager-python-client/models/plot_data_stats.py +152 -0
- field-manager-python-client/models/plot_data_stats_percentiles.py +73 -0
- field-manager-python-client/models/plot_format.py +11 -0
- field-manager-python-client/models/plot_info_object.py +353 -0
- field-manager-python-client/models/plot_info_object_stats_type_0.py +77 -0
- field-manager-python-client/models/plot_sequence.py +116 -0
- field-manager-python-client/models/plot_sequence_options.py +109 -0
- field-manager-python-client/models/plot_type.py +17 -0
- field-manager-python-client/models/project.py +312 -0
- field-manager-python-client/models/project_create.py +325 -0
- field-manager-python-client/models/project_info.py +428 -0
- field-manager-python-client/models/project_location_method_types.py +255 -0
- field-manager-python-client/models/project_search.py +112 -0
- field-manager-python-client/models/project_summary.py +455 -0
- field-manager-python-client/models/project_update.py +277 -0
- field-manager-python-client/models/reading_type.py +9 -0
- field-manager-python-client/models/role.py +147 -0
- field-manager-python-client/models/role_entity_enum.py +8 -0
- field-manager-python-client/models/role_enum.py +10 -0
- field-manager-python-client/models/sample_container_type.py +96 -0
- field-manager-python-client/models/sample_material.py +96 -0
- field-manager-python-client/models/sampler_type.py +96 -0
- field-manager-python-client/models/sampling_technique.py +96 -0
- field-manager-python-client/models/scales.py +26 -0
- field-manager-python-client/models/scaling_mode.py +9 -0
- field-manager-python-client/models/sounding_class.py +10 -0
- field-manager-python-client/models/standard.py +133 -0
- field-manager-python-client/models/standard_type.py +10 -0
- field-manager-python-client/models/transformation_type.py +9 -0
- field-manager-python-client/models/user.py +195 -0
- field-manager-python-client/models/validation_error.py +105 -0
- field-manager-python-client/py.typed +1 -0
- field-manager-python-client/types.py +44 -0
- field_manager_python_client-4.4.82rc1.dist-info/METADATA +144 -0
- field_manager_python_client-4.4.82rc1.dist-info/RECORD +489 -0
- field_manager_python_client-4.4.82rc1.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,1180 @@
|
|
|
1
|
+
from typing import Any, Dict, Type, TypeVar, Tuple, Optional, BinaryIO, TextIO, TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
from ..models.iogp_type_enum import IOGPTypeEnum
|
|
12
|
+
from ..models.location_type_enum import LocationTypeEnum
|
|
13
|
+
from ..types import UNSET, Unset
|
|
14
|
+
from dateutil.parser import isoparse
|
|
15
|
+
from typing import cast
|
|
16
|
+
from typing import cast, List
|
|
17
|
+
from typing import cast, Union
|
|
18
|
+
from typing import Dict
|
|
19
|
+
from typing import Union
|
|
20
|
+
from uuid import UUID
|
|
21
|
+
import datetime
|
|
22
|
+
|
|
23
|
+
if TYPE_CHECKING:
|
|
24
|
+
from ..models.method_cpt_create import MethodCPTCreate
|
|
25
|
+
from ..models.method_tot_update import MethodTOTUpdate
|
|
26
|
+
from ..models.method_cd_update import MethodCDUpdate
|
|
27
|
+
from ..models.method_inc_update import MethodINCUpdate
|
|
28
|
+
from ..models.method_dp_update import MethodDPUpdate
|
|
29
|
+
from ..models.method_inc_create import MethodINCCreate
|
|
30
|
+
from ..models.method_rs_create import MethodRSCreate
|
|
31
|
+
from ..models.method_ro_create import MethodROCreate
|
|
32
|
+
from ..models.method_tp_create import MethodTPCreate
|
|
33
|
+
from ..models.method_rws_update import MethodRWSUpdate
|
|
34
|
+
from ..models.method_pt_update import MethodPTUpdate
|
|
35
|
+
from ..models.method_other_update import MethodOTHERUpdate
|
|
36
|
+
from ..models.method_tp_update import MethodTPUpdate
|
|
37
|
+
from ..models.method_svt_create import MethodSVTCreate
|
|
38
|
+
from ..models.method_sa_create import MethodSACreate
|
|
39
|
+
from ..models.method_wst_update import MethodWSTUpdate
|
|
40
|
+
from ..models.method_esa_create import MethodESACreate
|
|
41
|
+
from ..models.method_cd_create import MethodCDCreate
|
|
42
|
+
from ..models.method_wst_create import MethodWSTCreate
|
|
43
|
+
from ..models.method_cpt_update import MethodCPTUpdate
|
|
44
|
+
from ..models.method_esa_update import MethodESAUpdate
|
|
45
|
+
from ..models.method_iw_update import MethodIWUpdate
|
|
46
|
+
from ..models.method_sr_create import MethodSRCreate
|
|
47
|
+
from ..models.method_svt_update import MethodSVTUpdate
|
|
48
|
+
from ..models.method_rp_update import MethodRPUpdate
|
|
49
|
+
from ..models.method_pz_update import MethodPZUpdate
|
|
50
|
+
from ..models.method_ss_update import MethodSSUpdate
|
|
51
|
+
from ..models.method_rcd_create import MethodRCDCreate
|
|
52
|
+
from ..models.method_dt_create import MethodDTCreate
|
|
53
|
+
from ..models.method_pz_create import MethodPZCreate
|
|
54
|
+
from ..models.method_pt_create import MethodPTCreate
|
|
55
|
+
from ..models.method_rs_update import MethodRSUpdate
|
|
56
|
+
from ..models.method_ad_update import MethodADUpdate
|
|
57
|
+
from ..models.method_srs_create import MethodSRSCreate
|
|
58
|
+
from ..models.method_ro_update import MethodROUpdate
|
|
59
|
+
from ..models.method_rp_create import MethodRPCreate
|
|
60
|
+
from ..models.method_spt_create import MethodSPTCreate
|
|
61
|
+
from ..models.method_tot_create import MethodTOTCreate
|
|
62
|
+
from ..models.method_spt_update import MethodSPTUpdate
|
|
63
|
+
from ..models.method_rws_create import MethodRWSCreate
|
|
64
|
+
from ..models.method_ad_create import MethodADCreate
|
|
65
|
+
from ..models.method_dt_update import MethodDTUpdate
|
|
66
|
+
from ..models.method_ss_create import MethodSSCreate
|
|
67
|
+
from ..models.method_sr_update import MethodSRUpdate
|
|
68
|
+
from ..models.method_rcd_update import MethodRCDUpdate
|
|
69
|
+
from ..models.method_dp_create import MethodDPCreate
|
|
70
|
+
from ..models.method_sa_update import MethodSAUpdate
|
|
71
|
+
from ..models.method_srs_update import MethodSRSUpdate
|
|
72
|
+
from ..models.method_other_create import MethodOTHERCreate
|
|
73
|
+
from ..models.method_iw_create import MethodIWCreate
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
T = TypeVar("T", bound="LocationUpdate")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@_attrs_define
|
|
83
|
+
class LocationUpdate:
|
|
84
|
+
"""
|
|
85
|
+
Attributes:
|
|
86
|
+
project_id (Union[None, UUID, Unset]):
|
|
87
|
+
location_id (Union[None, UUID, Unset]):
|
|
88
|
+
iogp_type_id (Union[IOGPTypeEnum, None, Unset]):
|
|
89
|
+
name (Union[None, Unset, str]):
|
|
90
|
+
updated_at (Union[None, Unset, datetime.datetime]):
|
|
91
|
+
updated_by (Union[None, Unset, str]):
|
|
92
|
+
point_easting (Union[None, Unset, float]):
|
|
93
|
+
point_northing (Union[None, Unset, float]):
|
|
94
|
+
point_z (Union[None, Unset, float]):
|
|
95
|
+
srid (Union[None, Unset, int]):
|
|
96
|
+
location_type_id (Union[LocationTypeEnum, None, Unset]): Use Project.standard_id instead
|
|
97
|
+
tags (Union[List[str], None, Unset]):
|
|
98
|
+
methods (Union[Unset, List[Union['MethodADCreate', 'MethodADUpdate', 'MethodCDCreate', 'MethodCDUpdate',
|
|
99
|
+
'MethodCPTCreate', 'MethodCPTUpdate', 'MethodDPCreate', 'MethodDPUpdate', 'MethodDTCreate', 'MethodDTUpdate',
|
|
100
|
+
'MethodESACreate', 'MethodESAUpdate', 'MethodINCCreate', 'MethodINCUpdate', 'MethodIWCreate', 'MethodIWUpdate',
|
|
101
|
+
'MethodOTHERCreate', 'MethodOTHERUpdate', 'MethodPTCreate', 'MethodPTUpdate', 'MethodPZCreate',
|
|
102
|
+
'MethodPZUpdate', 'MethodRCDCreate', 'MethodRCDUpdate', 'MethodROCreate', 'MethodROUpdate', 'MethodRPCreate',
|
|
103
|
+
'MethodRPUpdate', 'MethodRSCreate', 'MethodRSUpdate', 'MethodRWSCreate', 'MethodRWSUpdate', 'MethodSACreate',
|
|
104
|
+
'MethodSAUpdate', 'MethodSPTCreate', 'MethodSPTUpdate', 'MethodSRCreate', 'MethodSRSCreate', 'MethodSRSUpdate',
|
|
105
|
+
'MethodSRUpdate', 'MethodSSCreate', 'MethodSSUpdate', 'MethodSVTCreate', 'MethodSVTUpdate', 'MethodTOTCreate',
|
|
106
|
+
'MethodTOTUpdate', 'MethodTPCreate', 'MethodTPUpdate', 'MethodWSTCreate', 'MethodWSTUpdate']]]):
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
project_id: Union[None, UUID, Unset] = UNSET
|
|
110
|
+
location_id: Union[None, UUID, Unset] = UNSET
|
|
111
|
+
iogp_type_id: Union[IOGPTypeEnum, None, Unset] = UNSET
|
|
112
|
+
name: Union[None, Unset, str] = UNSET
|
|
113
|
+
updated_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
114
|
+
updated_by: Union[None, Unset, str] = UNSET
|
|
115
|
+
point_easting: Union[None, Unset, float] = UNSET
|
|
116
|
+
point_northing: Union[None, Unset, float] = UNSET
|
|
117
|
+
point_z: Union[None, Unset, float] = UNSET
|
|
118
|
+
srid: Union[None, Unset, int] = UNSET
|
|
119
|
+
location_type_id: Union[LocationTypeEnum, None, Unset] = UNSET
|
|
120
|
+
tags: Union[List[str], None, Unset] = UNSET
|
|
121
|
+
methods: Union[Unset, List[Union['MethodADCreate', 'MethodADUpdate', 'MethodCDCreate', 'MethodCDUpdate', 'MethodCPTCreate', 'MethodCPTUpdate', 'MethodDPCreate', 'MethodDPUpdate', 'MethodDTCreate', 'MethodDTUpdate', 'MethodESACreate', 'MethodESAUpdate', 'MethodINCCreate', 'MethodINCUpdate', 'MethodIWCreate', 'MethodIWUpdate', 'MethodOTHERCreate', 'MethodOTHERUpdate', 'MethodPTCreate', 'MethodPTUpdate', 'MethodPZCreate', 'MethodPZUpdate', 'MethodRCDCreate', 'MethodRCDUpdate', 'MethodROCreate', 'MethodROUpdate', 'MethodRPCreate', 'MethodRPUpdate', 'MethodRSCreate', 'MethodRSUpdate', 'MethodRWSCreate', 'MethodRWSUpdate', 'MethodSACreate', 'MethodSAUpdate', 'MethodSPTCreate', 'MethodSPTUpdate', 'MethodSRCreate', 'MethodSRSCreate', 'MethodSRSUpdate', 'MethodSRUpdate', 'MethodSSCreate', 'MethodSSUpdate', 'MethodSVTCreate', 'MethodSVTUpdate', 'MethodTOTCreate', 'MethodTOTUpdate', 'MethodTPCreate', 'MethodTPUpdate', 'MethodWSTCreate', 'MethodWSTUpdate']]] = UNSET
|
|
122
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
126
|
+
from ..models.method_cpt_create import MethodCPTCreate
|
|
127
|
+
from ..models.method_tot_update import MethodTOTUpdate
|
|
128
|
+
from ..models.method_cd_update import MethodCDUpdate
|
|
129
|
+
from ..models.method_inc_update import MethodINCUpdate
|
|
130
|
+
from ..models.method_dp_update import MethodDPUpdate
|
|
131
|
+
from ..models.method_inc_create import MethodINCCreate
|
|
132
|
+
from ..models.method_rs_create import MethodRSCreate
|
|
133
|
+
from ..models.method_ro_create import MethodROCreate
|
|
134
|
+
from ..models.method_tp_create import MethodTPCreate
|
|
135
|
+
from ..models.method_rws_update import MethodRWSUpdate
|
|
136
|
+
from ..models.method_pt_update import MethodPTUpdate
|
|
137
|
+
from ..models.method_other_update import MethodOTHERUpdate
|
|
138
|
+
from ..models.method_tp_update import MethodTPUpdate
|
|
139
|
+
from ..models.method_svt_create import MethodSVTCreate
|
|
140
|
+
from ..models.method_sa_create import MethodSACreate
|
|
141
|
+
from ..models.method_wst_update import MethodWSTUpdate
|
|
142
|
+
from ..models.method_esa_create import MethodESACreate
|
|
143
|
+
from ..models.method_cd_create import MethodCDCreate
|
|
144
|
+
from ..models.method_wst_create import MethodWSTCreate
|
|
145
|
+
from ..models.method_cpt_update import MethodCPTUpdate
|
|
146
|
+
from ..models.method_esa_update import MethodESAUpdate
|
|
147
|
+
from ..models.method_iw_update import MethodIWUpdate
|
|
148
|
+
from ..models.method_sr_create import MethodSRCreate
|
|
149
|
+
from ..models.method_svt_update import MethodSVTUpdate
|
|
150
|
+
from ..models.method_rp_update import MethodRPUpdate
|
|
151
|
+
from ..models.method_pz_update import MethodPZUpdate
|
|
152
|
+
from ..models.method_ss_update import MethodSSUpdate
|
|
153
|
+
from ..models.method_rcd_create import MethodRCDCreate
|
|
154
|
+
from ..models.method_dt_create import MethodDTCreate
|
|
155
|
+
from ..models.method_pz_create import MethodPZCreate
|
|
156
|
+
from ..models.method_pt_create import MethodPTCreate
|
|
157
|
+
from ..models.method_rs_update import MethodRSUpdate
|
|
158
|
+
from ..models.method_ad_update import MethodADUpdate
|
|
159
|
+
from ..models.method_srs_create import MethodSRSCreate
|
|
160
|
+
from ..models.method_ro_update import MethodROUpdate
|
|
161
|
+
from ..models.method_rp_create import MethodRPCreate
|
|
162
|
+
from ..models.method_spt_create import MethodSPTCreate
|
|
163
|
+
from ..models.method_tot_create import MethodTOTCreate
|
|
164
|
+
from ..models.method_spt_update import MethodSPTUpdate
|
|
165
|
+
from ..models.method_rws_create import MethodRWSCreate
|
|
166
|
+
from ..models.method_ad_create import MethodADCreate
|
|
167
|
+
from ..models.method_dt_update import MethodDTUpdate
|
|
168
|
+
from ..models.method_ss_create import MethodSSCreate
|
|
169
|
+
from ..models.method_sr_update import MethodSRUpdate
|
|
170
|
+
from ..models.method_rcd_update import MethodRCDUpdate
|
|
171
|
+
from ..models.method_dp_create import MethodDPCreate
|
|
172
|
+
from ..models.method_sa_update import MethodSAUpdate
|
|
173
|
+
from ..models.method_srs_update import MethodSRSUpdate
|
|
174
|
+
from ..models.method_other_create import MethodOTHERCreate
|
|
175
|
+
from ..models.method_iw_create import MethodIWCreate
|
|
176
|
+
project_id: Union[None, Unset, str]
|
|
177
|
+
if isinstance(self.project_id, Unset):
|
|
178
|
+
project_id = UNSET
|
|
179
|
+
elif isinstance(self.project_id, UUID):
|
|
180
|
+
project_id = str(self.project_id)
|
|
181
|
+
else:
|
|
182
|
+
project_id = self.project_id
|
|
183
|
+
|
|
184
|
+
location_id: Union[None, Unset, str]
|
|
185
|
+
if isinstance(self.location_id, Unset):
|
|
186
|
+
location_id = UNSET
|
|
187
|
+
elif isinstance(self.location_id, UUID):
|
|
188
|
+
location_id = str(self.location_id)
|
|
189
|
+
else:
|
|
190
|
+
location_id = self.location_id
|
|
191
|
+
|
|
192
|
+
iogp_type_id: Union[None, Unset, str]
|
|
193
|
+
if isinstance(self.iogp_type_id, Unset):
|
|
194
|
+
iogp_type_id = UNSET
|
|
195
|
+
elif isinstance(self.iogp_type_id, IOGPTypeEnum):
|
|
196
|
+
iogp_type_id = self.iogp_type_id.value
|
|
197
|
+
else:
|
|
198
|
+
iogp_type_id = self.iogp_type_id
|
|
199
|
+
|
|
200
|
+
name: Union[None, Unset, str]
|
|
201
|
+
if isinstance(self.name, Unset):
|
|
202
|
+
name = UNSET
|
|
203
|
+
else:
|
|
204
|
+
name = self.name
|
|
205
|
+
|
|
206
|
+
updated_at: Union[None, Unset, str]
|
|
207
|
+
if isinstance(self.updated_at, Unset):
|
|
208
|
+
updated_at = UNSET
|
|
209
|
+
elif isinstance(self.updated_at, datetime.datetime):
|
|
210
|
+
updated_at = self.updated_at.isoformat()
|
|
211
|
+
else:
|
|
212
|
+
updated_at = self.updated_at
|
|
213
|
+
|
|
214
|
+
updated_by: Union[None, Unset, str]
|
|
215
|
+
if isinstance(self.updated_by, Unset):
|
|
216
|
+
updated_by = UNSET
|
|
217
|
+
else:
|
|
218
|
+
updated_by = self.updated_by
|
|
219
|
+
|
|
220
|
+
point_easting: Union[None, Unset, float]
|
|
221
|
+
if isinstance(self.point_easting, Unset):
|
|
222
|
+
point_easting = UNSET
|
|
223
|
+
else:
|
|
224
|
+
point_easting = self.point_easting
|
|
225
|
+
|
|
226
|
+
point_northing: Union[None, Unset, float]
|
|
227
|
+
if isinstance(self.point_northing, Unset):
|
|
228
|
+
point_northing = UNSET
|
|
229
|
+
else:
|
|
230
|
+
point_northing = self.point_northing
|
|
231
|
+
|
|
232
|
+
point_z: Union[None, Unset, float]
|
|
233
|
+
if isinstance(self.point_z, Unset):
|
|
234
|
+
point_z = UNSET
|
|
235
|
+
else:
|
|
236
|
+
point_z = self.point_z
|
|
237
|
+
|
|
238
|
+
srid: Union[None, Unset, int]
|
|
239
|
+
if isinstance(self.srid, Unset):
|
|
240
|
+
srid = UNSET
|
|
241
|
+
else:
|
|
242
|
+
srid = self.srid
|
|
243
|
+
|
|
244
|
+
location_type_id: Union[None, Unset, int]
|
|
245
|
+
if isinstance(self.location_type_id, Unset):
|
|
246
|
+
location_type_id = UNSET
|
|
247
|
+
elif isinstance(self.location_type_id, LocationTypeEnum):
|
|
248
|
+
location_type_id = self.location_type_id.value
|
|
249
|
+
else:
|
|
250
|
+
location_type_id = self.location_type_id
|
|
251
|
+
|
|
252
|
+
tags: Union[List[str], None, Unset]
|
|
253
|
+
if isinstance(self.tags, Unset):
|
|
254
|
+
tags = UNSET
|
|
255
|
+
elif isinstance(self.tags, list):
|
|
256
|
+
tags = self.tags
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
else:
|
|
260
|
+
tags = self.tags
|
|
261
|
+
|
|
262
|
+
methods: Union[Unset, List[Dict[str, Any]]] = UNSET
|
|
263
|
+
if not isinstance(self.methods, Unset):
|
|
264
|
+
methods = []
|
|
265
|
+
for methods_item_data in self.methods:
|
|
266
|
+
methods_item: Dict[str, Any]
|
|
267
|
+
if isinstance(methods_item_data, MethodADCreate):
|
|
268
|
+
methods_item = methods_item_data.to_dict()
|
|
269
|
+
elif isinstance(methods_item_data, MethodCDCreate):
|
|
270
|
+
methods_item = methods_item_data.to_dict()
|
|
271
|
+
elif isinstance(methods_item_data, MethodCPTCreate):
|
|
272
|
+
methods_item = methods_item_data.to_dict()
|
|
273
|
+
elif isinstance(methods_item_data, MethodDPCreate):
|
|
274
|
+
methods_item = methods_item_data.to_dict()
|
|
275
|
+
elif isinstance(methods_item_data, MethodDTCreate):
|
|
276
|
+
methods_item = methods_item_data.to_dict()
|
|
277
|
+
elif isinstance(methods_item_data, MethodESACreate):
|
|
278
|
+
methods_item = methods_item_data.to_dict()
|
|
279
|
+
elif isinstance(methods_item_data, MethodINCCreate):
|
|
280
|
+
methods_item = methods_item_data.to_dict()
|
|
281
|
+
elif isinstance(methods_item_data, MethodIWCreate):
|
|
282
|
+
methods_item = methods_item_data.to_dict()
|
|
283
|
+
elif isinstance(methods_item_data, MethodOTHERCreate):
|
|
284
|
+
methods_item = methods_item_data.to_dict()
|
|
285
|
+
elif isinstance(methods_item_data, MethodPTCreate):
|
|
286
|
+
methods_item = methods_item_data.to_dict()
|
|
287
|
+
elif isinstance(methods_item_data, MethodPZCreate):
|
|
288
|
+
methods_item = methods_item_data.to_dict()
|
|
289
|
+
elif isinstance(methods_item_data, MethodRCDCreate):
|
|
290
|
+
methods_item = methods_item_data.to_dict()
|
|
291
|
+
elif isinstance(methods_item_data, MethodROCreate):
|
|
292
|
+
methods_item = methods_item_data.to_dict()
|
|
293
|
+
elif isinstance(methods_item_data, MethodRPCreate):
|
|
294
|
+
methods_item = methods_item_data.to_dict()
|
|
295
|
+
elif isinstance(methods_item_data, MethodRSCreate):
|
|
296
|
+
methods_item = methods_item_data.to_dict()
|
|
297
|
+
elif isinstance(methods_item_data, MethodRWSCreate):
|
|
298
|
+
methods_item = methods_item_data.to_dict()
|
|
299
|
+
elif isinstance(methods_item_data, MethodSACreate):
|
|
300
|
+
methods_item = methods_item_data.to_dict()
|
|
301
|
+
elif isinstance(methods_item_data, MethodSPTCreate):
|
|
302
|
+
methods_item = methods_item_data.to_dict()
|
|
303
|
+
elif isinstance(methods_item_data, MethodSRCreate):
|
|
304
|
+
methods_item = methods_item_data.to_dict()
|
|
305
|
+
elif isinstance(methods_item_data, MethodSRSCreate):
|
|
306
|
+
methods_item = methods_item_data.to_dict()
|
|
307
|
+
elif isinstance(methods_item_data, MethodSSCreate):
|
|
308
|
+
methods_item = methods_item_data.to_dict()
|
|
309
|
+
elif isinstance(methods_item_data, MethodSVTCreate):
|
|
310
|
+
methods_item = methods_item_data.to_dict()
|
|
311
|
+
elif isinstance(methods_item_data, MethodTOTCreate):
|
|
312
|
+
methods_item = methods_item_data.to_dict()
|
|
313
|
+
elif isinstance(methods_item_data, MethodTPCreate):
|
|
314
|
+
methods_item = methods_item_data.to_dict()
|
|
315
|
+
elif isinstance(methods_item_data, MethodWSTCreate):
|
|
316
|
+
methods_item = methods_item_data.to_dict()
|
|
317
|
+
elif isinstance(methods_item_data, MethodCPTUpdate):
|
|
318
|
+
methods_item = methods_item_data.to_dict()
|
|
319
|
+
elif isinstance(methods_item_data, MethodTOTUpdate):
|
|
320
|
+
methods_item = methods_item_data.to_dict()
|
|
321
|
+
elif isinstance(methods_item_data, MethodRPUpdate):
|
|
322
|
+
methods_item = methods_item_data.to_dict()
|
|
323
|
+
elif isinstance(methods_item_data, MethodSAUpdate):
|
|
324
|
+
methods_item = methods_item_data.to_dict()
|
|
325
|
+
elif isinstance(methods_item_data, MethodPZUpdate):
|
|
326
|
+
methods_item = methods_item_data.to_dict()
|
|
327
|
+
elif isinstance(methods_item_data, MethodSSUpdate):
|
|
328
|
+
methods_item = methods_item_data.to_dict()
|
|
329
|
+
elif isinstance(methods_item_data, MethodRWSUpdate):
|
|
330
|
+
methods_item = methods_item_data.to_dict()
|
|
331
|
+
elif isinstance(methods_item_data, MethodRCDUpdate):
|
|
332
|
+
methods_item = methods_item_data.to_dict()
|
|
333
|
+
elif isinstance(methods_item_data, MethodRSUpdate):
|
|
334
|
+
methods_item = methods_item_data.to_dict()
|
|
335
|
+
elif isinstance(methods_item_data, MethodSVTUpdate):
|
|
336
|
+
methods_item = methods_item_data.to_dict()
|
|
337
|
+
elif isinstance(methods_item_data, MethodSPTUpdate):
|
|
338
|
+
methods_item = methods_item_data.to_dict()
|
|
339
|
+
elif isinstance(methods_item_data, MethodCDUpdate):
|
|
340
|
+
methods_item = methods_item_data.to_dict()
|
|
341
|
+
elif isinstance(methods_item_data, MethodTPUpdate):
|
|
342
|
+
methods_item = methods_item_data.to_dict()
|
|
343
|
+
elif isinstance(methods_item_data, MethodPTUpdate):
|
|
344
|
+
methods_item = methods_item_data.to_dict()
|
|
345
|
+
elif isinstance(methods_item_data, MethodESAUpdate):
|
|
346
|
+
methods_item = methods_item_data.to_dict()
|
|
347
|
+
elif isinstance(methods_item_data, MethodADUpdate):
|
|
348
|
+
methods_item = methods_item_data.to_dict()
|
|
349
|
+
elif isinstance(methods_item_data, MethodROUpdate):
|
|
350
|
+
methods_item = methods_item_data.to_dict()
|
|
351
|
+
elif isinstance(methods_item_data, MethodINCUpdate):
|
|
352
|
+
methods_item = methods_item_data.to_dict()
|
|
353
|
+
elif isinstance(methods_item_data, MethodSRUpdate):
|
|
354
|
+
methods_item = methods_item_data.to_dict()
|
|
355
|
+
elif isinstance(methods_item_data, MethodIWUpdate):
|
|
356
|
+
methods_item = methods_item_data.to_dict()
|
|
357
|
+
elif isinstance(methods_item_data, MethodDTUpdate):
|
|
358
|
+
methods_item = methods_item_data.to_dict()
|
|
359
|
+
elif isinstance(methods_item_data, MethodOTHERUpdate):
|
|
360
|
+
methods_item = methods_item_data.to_dict()
|
|
361
|
+
elif isinstance(methods_item_data, MethodSRSUpdate):
|
|
362
|
+
methods_item = methods_item_data.to_dict()
|
|
363
|
+
elif isinstance(methods_item_data, MethodDPUpdate):
|
|
364
|
+
methods_item = methods_item_data.to_dict()
|
|
365
|
+
else:
|
|
366
|
+
methods_item = methods_item_data.to_dict()
|
|
367
|
+
|
|
368
|
+
methods.append(methods_item)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
field_dict: Dict[str, Any] = {}
|
|
374
|
+
field_dict.update(self.additional_properties)
|
|
375
|
+
field_dict.update({
|
|
376
|
+
})
|
|
377
|
+
if project_id is not UNSET:
|
|
378
|
+
field_dict["project_id"] = project_id
|
|
379
|
+
if location_id is not UNSET:
|
|
380
|
+
field_dict["location_id"] = location_id
|
|
381
|
+
if iogp_type_id is not UNSET:
|
|
382
|
+
field_dict["iogp_type_id"] = iogp_type_id
|
|
383
|
+
if name is not UNSET:
|
|
384
|
+
field_dict["name"] = name
|
|
385
|
+
if updated_at is not UNSET:
|
|
386
|
+
field_dict["updated_at"] = updated_at
|
|
387
|
+
if updated_by is not UNSET:
|
|
388
|
+
field_dict["updated_by"] = updated_by
|
|
389
|
+
if point_easting is not UNSET:
|
|
390
|
+
field_dict["point_easting"] = point_easting
|
|
391
|
+
if point_northing is not UNSET:
|
|
392
|
+
field_dict["point_northing"] = point_northing
|
|
393
|
+
if point_z is not UNSET:
|
|
394
|
+
field_dict["point_z"] = point_z
|
|
395
|
+
if srid is not UNSET:
|
|
396
|
+
field_dict["srid"] = srid
|
|
397
|
+
if location_type_id is not UNSET:
|
|
398
|
+
field_dict["location_type_id"] = location_type_id
|
|
399
|
+
if tags is not UNSET:
|
|
400
|
+
field_dict["tags"] = tags
|
|
401
|
+
if methods is not UNSET:
|
|
402
|
+
field_dict["methods"] = methods
|
|
403
|
+
|
|
404
|
+
return field_dict
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
@classmethod
|
|
409
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
410
|
+
from ..models.method_cpt_create import MethodCPTCreate
|
|
411
|
+
from ..models.method_tot_update import MethodTOTUpdate
|
|
412
|
+
from ..models.method_cd_update import MethodCDUpdate
|
|
413
|
+
from ..models.method_inc_update import MethodINCUpdate
|
|
414
|
+
from ..models.method_dp_update import MethodDPUpdate
|
|
415
|
+
from ..models.method_inc_create import MethodINCCreate
|
|
416
|
+
from ..models.method_rs_create import MethodRSCreate
|
|
417
|
+
from ..models.method_ro_create import MethodROCreate
|
|
418
|
+
from ..models.method_tp_create import MethodTPCreate
|
|
419
|
+
from ..models.method_rws_update import MethodRWSUpdate
|
|
420
|
+
from ..models.method_pt_update import MethodPTUpdate
|
|
421
|
+
from ..models.method_other_update import MethodOTHERUpdate
|
|
422
|
+
from ..models.method_tp_update import MethodTPUpdate
|
|
423
|
+
from ..models.method_svt_create import MethodSVTCreate
|
|
424
|
+
from ..models.method_sa_create import MethodSACreate
|
|
425
|
+
from ..models.method_wst_update import MethodWSTUpdate
|
|
426
|
+
from ..models.method_esa_create import MethodESACreate
|
|
427
|
+
from ..models.method_cd_create import MethodCDCreate
|
|
428
|
+
from ..models.method_wst_create import MethodWSTCreate
|
|
429
|
+
from ..models.method_cpt_update import MethodCPTUpdate
|
|
430
|
+
from ..models.method_esa_update import MethodESAUpdate
|
|
431
|
+
from ..models.method_iw_update import MethodIWUpdate
|
|
432
|
+
from ..models.method_sr_create import MethodSRCreate
|
|
433
|
+
from ..models.method_svt_update import MethodSVTUpdate
|
|
434
|
+
from ..models.method_rp_update import MethodRPUpdate
|
|
435
|
+
from ..models.method_pz_update import MethodPZUpdate
|
|
436
|
+
from ..models.method_ss_update import MethodSSUpdate
|
|
437
|
+
from ..models.method_rcd_create import MethodRCDCreate
|
|
438
|
+
from ..models.method_dt_create import MethodDTCreate
|
|
439
|
+
from ..models.method_pz_create import MethodPZCreate
|
|
440
|
+
from ..models.method_pt_create import MethodPTCreate
|
|
441
|
+
from ..models.method_rs_update import MethodRSUpdate
|
|
442
|
+
from ..models.method_ad_update import MethodADUpdate
|
|
443
|
+
from ..models.method_srs_create import MethodSRSCreate
|
|
444
|
+
from ..models.method_ro_update import MethodROUpdate
|
|
445
|
+
from ..models.method_rp_create import MethodRPCreate
|
|
446
|
+
from ..models.method_spt_create import MethodSPTCreate
|
|
447
|
+
from ..models.method_tot_create import MethodTOTCreate
|
|
448
|
+
from ..models.method_spt_update import MethodSPTUpdate
|
|
449
|
+
from ..models.method_rws_create import MethodRWSCreate
|
|
450
|
+
from ..models.method_ad_create import MethodADCreate
|
|
451
|
+
from ..models.method_dt_update import MethodDTUpdate
|
|
452
|
+
from ..models.method_ss_create import MethodSSCreate
|
|
453
|
+
from ..models.method_sr_update import MethodSRUpdate
|
|
454
|
+
from ..models.method_rcd_update import MethodRCDUpdate
|
|
455
|
+
from ..models.method_dp_create import MethodDPCreate
|
|
456
|
+
from ..models.method_sa_update import MethodSAUpdate
|
|
457
|
+
from ..models.method_srs_update import MethodSRSUpdate
|
|
458
|
+
from ..models.method_other_create import MethodOTHERCreate
|
|
459
|
+
from ..models.method_iw_create import MethodIWCreate
|
|
460
|
+
d = src_dict.copy()
|
|
461
|
+
def _parse_project_id(data: object) -> Union[None, UUID, Unset]:
|
|
462
|
+
if data is None:
|
|
463
|
+
return data
|
|
464
|
+
if isinstance(data, Unset):
|
|
465
|
+
return data
|
|
466
|
+
try:
|
|
467
|
+
if not isinstance(data, str):
|
|
468
|
+
raise TypeError()
|
|
469
|
+
project_id_type_0 = UUID(data)
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
return project_id_type_0
|
|
474
|
+
except: # noqa: E722
|
|
475
|
+
pass
|
|
476
|
+
return cast(Union[None, UUID, Unset], data)
|
|
477
|
+
|
|
478
|
+
project_id = _parse_project_id(d.pop("project_id", UNSET))
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
def _parse_location_id(data: object) -> Union[None, UUID, Unset]:
|
|
482
|
+
if data is None:
|
|
483
|
+
return data
|
|
484
|
+
if isinstance(data, Unset):
|
|
485
|
+
return data
|
|
486
|
+
try:
|
|
487
|
+
if not isinstance(data, str):
|
|
488
|
+
raise TypeError()
|
|
489
|
+
location_id_type_0 = UUID(data)
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
return location_id_type_0
|
|
494
|
+
except: # noqa: E722
|
|
495
|
+
pass
|
|
496
|
+
return cast(Union[None, UUID, Unset], data)
|
|
497
|
+
|
|
498
|
+
location_id = _parse_location_id(d.pop("location_id", UNSET))
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
def _parse_iogp_type_id(data: object) -> Union[IOGPTypeEnum, None, Unset]:
|
|
502
|
+
if data is None:
|
|
503
|
+
return data
|
|
504
|
+
if isinstance(data, Unset):
|
|
505
|
+
return data
|
|
506
|
+
try:
|
|
507
|
+
if not isinstance(data, str):
|
|
508
|
+
raise TypeError()
|
|
509
|
+
iogp_type_id_type_0 = IOGPTypeEnum(data)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
return iogp_type_id_type_0
|
|
514
|
+
except: # noqa: E722
|
|
515
|
+
pass
|
|
516
|
+
return cast(Union[IOGPTypeEnum, None, Unset], data)
|
|
517
|
+
|
|
518
|
+
iogp_type_id = _parse_iogp_type_id(d.pop("iogp_type_id", UNSET))
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
def _parse_name(data: object) -> Union[None, Unset, str]:
|
|
522
|
+
if data is None:
|
|
523
|
+
return data
|
|
524
|
+
if isinstance(data, Unset):
|
|
525
|
+
return data
|
|
526
|
+
return cast(Union[None, Unset, str], data)
|
|
527
|
+
|
|
528
|
+
name = _parse_name(d.pop("name", UNSET))
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
def _parse_updated_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
532
|
+
if data is None:
|
|
533
|
+
return data
|
|
534
|
+
if isinstance(data, Unset):
|
|
535
|
+
return data
|
|
536
|
+
try:
|
|
537
|
+
if not isinstance(data, str):
|
|
538
|
+
raise TypeError()
|
|
539
|
+
updated_at_type_0 = isoparse(data)
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
return updated_at_type_0
|
|
544
|
+
except: # noqa: E722
|
|
545
|
+
pass
|
|
546
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
547
|
+
|
|
548
|
+
updated_at = _parse_updated_at(d.pop("updated_at", UNSET))
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
def _parse_updated_by(data: object) -> Union[None, Unset, str]:
|
|
552
|
+
if data is None:
|
|
553
|
+
return data
|
|
554
|
+
if isinstance(data, Unset):
|
|
555
|
+
return data
|
|
556
|
+
return cast(Union[None, Unset, str], data)
|
|
557
|
+
|
|
558
|
+
updated_by = _parse_updated_by(d.pop("updated_by", UNSET))
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
def _parse_point_easting(data: object) -> Union[None, Unset, float]:
|
|
562
|
+
if data is None:
|
|
563
|
+
return data
|
|
564
|
+
if isinstance(data, Unset):
|
|
565
|
+
return data
|
|
566
|
+
return cast(Union[None, Unset, float], data)
|
|
567
|
+
|
|
568
|
+
point_easting = _parse_point_easting(d.pop("point_easting", UNSET))
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def _parse_point_northing(data: object) -> Union[None, Unset, float]:
|
|
572
|
+
if data is None:
|
|
573
|
+
return data
|
|
574
|
+
if isinstance(data, Unset):
|
|
575
|
+
return data
|
|
576
|
+
return cast(Union[None, Unset, float], data)
|
|
577
|
+
|
|
578
|
+
point_northing = _parse_point_northing(d.pop("point_northing", UNSET))
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
def _parse_point_z(data: object) -> Union[None, Unset, float]:
|
|
582
|
+
if data is None:
|
|
583
|
+
return data
|
|
584
|
+
if isinstance(data, Unset):
|
|
585
|
+
return data
|
|
586
|
+
return cast(Union[None, Unset, float], data)
|
|
587
|
+
|
|
588
|
+
point_z = _parse_point_z(d.pop("point_z", UNSET))
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
def _parse_srid(data: object) -> Union[None, Unset, int]:
|
|
592
|
+
if data is None:
|
|
593
|
+
return data
|
|
594
|
+
if isinstance(data, Unset):
|
|
595
|
+
return data
|
|
596
|
+
return cast(Union[None, Unset, int], data)
|
|
597
|
+
|
|
598
|
+
srid = _parse_srid(d.pop("srid", UNSET))
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
def _parse_location_type_id(data: object) -> Union[LocationTypeEnum, None, Unset]:
|
|
602
|
+
if data is None:
|
|
603
|
+
return data
|
|
604
|
+
if isinstance(data, Unset):
|
|
605
|
+
return data
|
|
606
|
+
try:
|
|
607
|
+
if not isinstance(data, int):
|
|
608
|
+
raise TypeError()
|
|
609
|
+
location_type_id_type_0 = LocationTypeEnum(data)
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
return location_type_id_type_0
|
|
614
|
+
except: # noqa: E722
|
|
615
|
+
pass
|
|
616
|
+
return cast(Union[LocationTypeEnum, None, Unset], data)
|
|
617
|
+
|
|
618
|
+
location_type_id = _parse_location_type_id(d.pop("location_type_id", UNSET))
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
def _parse_tags(data: object) -> Union[List[str], None, Unset]:
|
|
622
|
+
if data is None:
|
|
623
|
+
return data
|
|
624
|
+
if isinstance(data, Unset):
|
|
625
|
+
return data
|
|
626
|
+
try:
|
|
627
|
+
if not isinstance(data, list):
|
|
628
|
+
raise TypeError()
|
|
629
|
+
tags_type_0 = cast(List[str], data)
|
|
630
|
+
|
|
631
|
+
return tags_type_0
|
|
632
|
+
except: # noqa: E722
|
|
633
|
+
pass
|
|
634
|
+
return cast(Union[List[str], None, Unset], data)
|
|
635
|
+
|
|
636
|
+
tags = _parse_tags(d.pop("tags", UNSET))
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
methods = []
|
|
640
|
+
_methods = d.pop("methods", UNSET)
|
|
641
|
+
for methods_item_data in (_methods or []):
|
|
642
|
+
def _parse_methods_item(data: object) -> Union['MethodADCreate', 'MethodADUpdate', 'MethodCDCreate', 'MethodCDUpdate', 'MethodCPTCreate', 'MethodCPTUpdate', 'MethodDPCreate', 'MethodDPUpdate', 'MethodDTCreate', 'MethodDTUpdate', 'MethodESACreate', 'MethodESAUpdate', 'MethodINCCreate', 'MethodINCUpdate', 'MethodIWCreate', 'MethodIWUpdate', 'MethodOTHERCreate', 'MethodOTHERUpdate', 'MethodPTCreate', 'MethodPTUpdate', 'MethodPZCreate', 'MethodPZUpdate', 'MethodRCDCreate', 'MethodRCDUpdate', 'MethodROCreate', 'MethodROUpdate', 'MethodRPCreate', 'MethodRPUpdate', 'MethodRSCreate', 'MethodRSUpdate', 'MethodRWSCreate', 'MethodRWSUpdate', 'MethodSACreate', 'MethodSAUpdate', 'MethodSPTCreate', 'MethodSPTUpdate', 'MethodSRCreate', 'MethodSRSCreate', 'MethodSRSUpdate', 'MethodSRUpdate', 'MethodSSCreate', 'MethodSSUpdate', 'MethodSVTCreate', 'MethodSVTUpdate', 'MethodTOTCreate', 'MethodTOTUpdate', 'MethodTPCreate', 'MethodTPUpdate', 'MethodWSTCreate', 'MethodWSTUpdate']:
|
|
643
|
+
try:
|
|
644
|
+
if not isinstance(data, dict):
|
|
645
|
+
raise TypeError()
|
|
646
|
+
methods_item_type_0_type_0 = MethodADCreate.from_dict(data)
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
return methods_item_type_0_type_0
|
|
651
|
+
except: # noqa: E722
|
|
652
|
+
pass
|
|
653
|
+
try:
|
|
654
|
+
if not isinstance(data, dict):
|
|
655
|
+
raise TypeError()
|
|
656
|
+
methods_item_type_0_type_1 = MethodCDCreate.from_dict(data)
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
return methods_item_type_0_type_1
|
|
661
|
+
except: # noqa: E722
|
|
662
|
+
pass
|
|
663
|
+
try:
|
|
664
|
+
if not isinstance(data, dict):
|
|
665
|
+
raise TypeError()
|
|
666
|
+
methods_item_type_0_type_2 = MethodCPTCreate.from_dict(data)
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
return methods_item_type_0_type_2
|
|
671
|
+
except: # noqa: E722
|
|
672
|
+
pass
|
|
673
|
+
try:
|
|
674
|
+
if not isinstance(data, dict):
|
|
675
|
+
raise TypeError()
|
|
676
|
+
methods_item_type_0_type_3 = MethodDPCreate.from_dict(data)
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
return methods_item_type_0_type_3
|
|
681
|
+
except: # noqa: E722
|
|
682
|
+
pass
|
|
683
|
+
try:
|
|
684
|
+
if not isinstance(data, dict):
|
|
685
|
+
raise TypeError()
|
|
686
|
+
methods_item_type_0_type_4 = MethodDTCreate.from_dict(data)
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
return methods_item_type_0_type_4
|
|
691
|
+
except: # noqa: E722
|
|
692
|
+
pass
|
|
693
|
+
try:
|
|
694
|
+
if not isinstance(data, dict):
|
|
695
|
+
raise TypeError()
|
|
696
|
+
methods_item_type_0_type_5 = MethodESACreate.from_dict(data)
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
return methods_item_type_0_type_5
|
|
701
|
+
except: # noqa: E722
|
|
702
|
+
pass
|
|
703
|
+
try:
|
|
704
|
+
if not isinstance(data, dict):
|
|
705
|
+
raise TypeError()
|
|
706
|
+
methods_item_type_0_type_6 = MethodINCCreate.from_dict(data)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
return methods_item_type_0_type_6
|
|
711
|
+
except: # noqa: E722
|
|
712
|
+
pass
|
|
713
|
+
try:
|
|
714
|
+
if not isinstance(data, dict):
|
|
715
|
+
raise TypeError()
|
|
716
|
+
methods_item_type_0_type_7 = MethodIWCreate.from_dict(data)
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
return methods_item_type_0_type_7
|
|
721
|
+
except: # noqa: E722
|
|
722
|
+
pass
|
|
723
|
+
try:
|
|
724
|
+
if not isinstance(data, dict):
|
|
725
|
+
raise TypeError()
|
|
726
|
+
methods_item_type_0_type_8 = MethodOTHERCreate.from_dict(data)
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
return methods_item_type_0_type_8
|
|
731
|
+
except: # noqa: E722
|
|
732
|
+
pass
|
|
733
|
+
try:
|
|
734
|
+
if not isinstance(data, dict):
|
|
735
|
+
raise TypeError()
|
|
736
|
+
methods_item_type_0_type_9 = MethodPTCreate.from_dict(data)
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
return methods_item_type_0_type_9
|
|
741
|
+
except: # noqa: E722
|
|
742
|
+
pass
|
|
743
|
+
try:
|
|
744
|
+
if not isinstance(data, dict):
|
|
745
|
+
raise TypeError()
|
|
746
|
+
methods_item_type_0_type_10 = MethodPZCreate.from_dict(data)
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
return methods_item_type_0_type_10
|
|
751
|
+
except: # noqa: E722
|
|
752
|
+
pass
|
|
753
|
+
try:
|
|
754
|
+
if not isinstance(data, dict):
|
|
755
|
+
raise TypeError()
|
|
756
|
+
methods_item_type_0_type_11 = MethodRCDCreate.from_dict(data)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
return methods_item_type_0_type_11
|
|
761
|
+
except: # noqa: E722
|
|
762
|
+
pass
|
|
763
|
+
try:
|
|
764
|
+
if not isinstance(data, dict):
|
|
765
|
+
raise TypeError()
|
|
766
|
+
methods_item_type_0_type_12 = MethodROCreate.from_dict(data)
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
return methods_item_type_0_type_12
|
|
771
|
+
except: # noqa: E722
|
|
772
|
+
pass
|
|
773
|
+
try:
|
|
774
|
+
if not isinstance(data, dict):
|
|
775
|
+
raise TypeError()
|
|
776
|
+
methods_item_type_0_type_13 = MethodRPCreate.from_dict(data)
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
return methods_item_type_0_type_13
|
|
781
|
+
except: # noqa: E722
|
|
782
|
+
pass
|
|
783
|
+
try:
|
|
784
|
+
if not isinstance(data, dict):
|
|
785
|
+
raise TypeError()
|
|
786
|
+
methods_item_type_0_type_14 = MethodRSCreate.from_dict(data)
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
return methods_item_type_0_type_14
|
|
791
|
+
except: # noqa: E722
|
|
792
|
+
pass
|
|
793
|
+
try:
|
|
794
|
+
if not isinstance(data, dict):
|
|
795
|
+
raise TypeError()
|
|
796
|
+
methods_item_type_0_type_15 = MethodRWSCreate.from_dict(data)
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
return methods_item_type_0_type_15
|
|
801
|
+
except: # noqa: E722
|
|
802
|
+
pass
|
|
803
|
+
try:
|
|
804
|
+
if not isinstance(data, dict):
|
|
805
|
+
raise TypeError()
|
|
806
|
+
methods_item_type_0_type_16 = MethodSACreate.from_dict(data)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
return methods_item_type_0_type_16
|
|
811
|
+
except: # noqa: E722
|
|
812
|
+
pass
|
|
813
|
+
try:
|
|
814
|
+
if not isinstance(data, dict):
|
|
815
|
+
raise TypeError()
|
|
816
|
+
methods_item_type_0_type_17 = MethodSPTCreate.from_dict(data)
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
return methods_item_type_0_type_17
|
|
821
|
+
except: # noqa: E722
|
|
822
|
+
pass
|
|
823
|
+
try:
|
|
824
|
+
if not isinstance(data, dict):
|
|
825
|
+
raise TypeError()
|
|
826
|
+
methods_item_type_0_type_18 = MethodSRCreate.from_dict(data)
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
return methods_item_type_0_type_18
|
|
831
|
+
except: # noqa: E722
|
|
832
|
+
pass
|
|
833
|
+
try:
|
|
834
|
+
if not isinstance(data, dict):
|
|
835
|
+
raise TypeError()
|
|
836
|
+
methods_item_type_0_type_19 = MethodSRSCreate.from_dict(data)
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
return methods_item_type_0_type_19
|
|
841
|
+
except: # noqa: E722
|
|
842
|
+
pass
|
|
843
|
+
try:
|
|
844
|
+
if not isinstance(data, dict):
|
|
845
|
+
raise TypeError()
|
|
846
|
+
methods_item_type_0_type_20 = MethodSSCreate.from_dict(data)
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
return methods_item_type_0_type_20
|
|
851
|
+
except: # noqa: E722
|
|
852
|
+
pass
|
|
853
|
+
try:
|
|
854
|
+
if not isinstance(data, dict):
|
|
855
|
+
raise TypeError()
|
|
856
|
+
methods_item_type_0_type_21 = MethodSVTCreate.from_dict(data)
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
return methods_item_type_0_type_21
|
|
861
|
+
except: # noqa: E722
|
|
862
|
+
pass
|
|
863
|
+
try:
|
|
864
|
+
if not isinstance(data, dict):
|
|
865
|
+
raise TypeError()
|
|
866
|
+
methods_item_type_0_type_22 = MethodTOTCreate.from_dict(data)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
return methods_item_type_0_type_22
|
|
871
|
+
except: # noqa: E722
|
|
872
|
+
pass
|
|
873
|
+
try:
|
|
874
|
+
if not isinstance(data, dict):
|
|
875
|
+
raise TypeError()
|
|
876
|
+
methods_item_type_0_type_23 = MethodTPCreate.from_dict(data)
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
return methods_item_type_0_type_23
|
|
881
|
+
except: # noqa: E722
|
|
882
|
+
pass
|
|
883
|
+
try:
|
|
884
|
+
if not isinstance(data, dict):
|
|
885
|
+
raise TypeError()
|
|
886
|
+
methods_item_type_0_type_24 = MethodWSTCreate.from_dict(data)
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
return methods_item_type_0_type_24
|
|
891
|
+
except: # noqa: E722
|
|
892
|
+
pass
|
|
893
|
+
try:
|
|
894
|
+
if not isinstance(data, dict):
|
|
895
|
+
raise TypeError()
|
|
896
|
+
methods_item_type_1_type_0 = MethodCPTUpdate.from_dict(data)
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
return methods_item_type_1_type_0
|
|
901
|
+
except: # noqa: E722
|
|
902
|
+
pass
|
|
903
|
+
try:
|
|
904
|
+
if not isinstance(data, dict):
|
|
905
|
+
raise TypeError()
|
|
906
|
+
methods_item_type_1_type_1 = MethodTOTUpdate.from_dict(data)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
return methods_item_type_1_type_1
|
|
911
|
+
except: # noqa: E722
|
|
912
|
+
pass
|
|
913
|
+
try:
|
|
914
|
+
if not isinstance(data, dict):
|
|
915
|
+
raise TypeError()
|
|
916
|
+
methods_item_type_1_type_2 = MethodRPUpdate.from_dict(data)
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
return methods_item_type_1_type_2
|
|
921
|
+
except: # noqa: E722
|
|
922
|
+
pass
|
|
923
|
+
try:
|
|
924
|
+
if not isinstance(data, dict):
|
|
925
|
+
raise TypeError()
|
|
926
|
+
methods_item_type_1_type_3 = MethodSAUpdate.from_dict(data)
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
return methods_item_type_1_type_3
|
|
931
|
+
except: # noqa: E722
|
|
932
|
+
pass
|
|
933
|
+
try:
|
|
934
|
+
if not isinstance(data, dict):
|
|
935
|
+
raise TypeError()
|
|
936
|
+
methods_item_type_1_type_4 = MethodPZUpdate.from_dict(data)
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
return methods_item_type_1_type_4
|
|
941
|
+
except: # noqa: E722
|
|
942
|
+
pass
|
|
943
|
+
try:
|
|
944
|
+
if not isinstance(data, dict):
|
|
945
|
+
raise TypeError()
|
|
946
|
+
methods_item_type_1_type_5 = MethodSSUpdate.from_dict(data)
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
return methods_item_type_1_type_5
|
|
951
|
+
except: # noqa: E722
|
|
952
|
+
pass
|
|
953
|
+
try:
|
|
954
|
+
if not isinstance(data, dict):
|
|
955
|
+
raise TypeError()
|
|
956
|
+
methods_item_type_1_type_6 = MethodRWSUpdate.from_dict(data)
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
return methods_item_type_1_type_6
|
|
961
|
+
except: # noqa: E722
|
|
962
|
+
pass
|
|
963
|
+
try:
|
|
964
|
+
if not isinstance(data, dict):
|
|
965
|
+
raise TypeError()
|
|
966
|
+
methods_item_type_1_type_7 = MethodRCDUpdate.from_dict(data)
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
return methods_item_type_1_type_7
|
|
971
|
+
except: # noqa: E722
|
|
972
|
+
pass
|
|
973
|
+
try:
|
|
974
|
+
if not isinstance(data, dict):
|
|
975
|
+
raise TypeError()
|
|
976
|
+
methods_item_type_1_type_8 = MethodRSUpdate.from_dict(data)
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
return methods_item_type_1_type_8
|
|
981
|
+
except: # noqa: E722
|
|
982
|
+
pass
|
|
983
|
+
try:
|
|
984
|
+
if not isinstance(data, dict):
|
|
985
|
+
raise TypeError()
|
|
986
|
+
methods_item_type_1_type_9 = MethodSVTUpdate.from_dict(data)
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
return methods_item_type_1_type_9
|
|
991
|
+
except: # noqa: E722
|
|
992
|
+
pass
|
|
993
|
+
try:
|
|
994
|
+
if not isinstance(data, dict):
|
|
995
|
+
raise TypeError()
|
|
996
|
+
methods_item_type_1_type_10 = MethodSPTUpdate.from_dict(data)
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
return methods_item_type_1_type_10
|
|
1001
|
+
except: # noqa: E722
|
|
1002
|
+
pass
|
|
1003
|
+
try:
|
|
1004
|
+
if not isinstance(data, dict):
|
|
1005
|
+
raise TypeError()
|
|
1006
|
+
methods_item_type_1_type_11 = MethodCDUpdate.from_dict(data)
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
return methods_item_type_1_type_11
|
|
1011
|
+
except: # noqa: E722
|
|
1012
|
+
pass
|
|
1013
|
+
try:
|
|
1014
|
+
if not isinstance(data, dict):
|
|
1015
|
+
raise TypeError()
|
|
1016
|
+
methods_item_type_1_type_12 = MethodTPUpdate.from_dict(data)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
return methods_item_type_1_type_12
|
|
1021
|
+
except: # noqa: E722
|
|
1022
|
+
pass
|
|
1023
|
+
try:
|
|
1024
|
+
if not isinstance(data, dict):
|
|
1025
|
+
raise TypeError()
|
|
1026
|
+
methods_item_type_1_type_13 = MethodPTUpdate.from_dict(data)
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
return methods_item_type_1_type_13
|
|
1031
|
+
except: # noqa: E722
|
|
1032
|
+
pass
|
|
1033
|
+
try:
|
|
1034
|
+
if not isinstance(data, dict):
|
|
1035
|
+
raise TypeError()
|
|
1036
|
+
methods_item_type_1_type_14 = MethodESAUpdate.from_dict(data)
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
return methods_item_type_1_type_14
|
|
1041
|
+
except: # noqa: E722
|
|
1042
|
+
pass
|
|
1043
|
+
try:
|
|
1044
|
+
if not isinstance(data, dict):
|
|
1045
|
+
raise TypeError()
|
|
1046
|
+
methods_item_type_1_type_15 = MethodADUpdate.from_dict(data)
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
return methods_item_type_1_type_15
|
|
1051
|
+
except: # noqa: E722
|
|
1052
|
+
pass
|
|
1053
|
+
try:
|
|
1054
|
+
if not isinstance(data, dict):
|
|
1055
|
+
raise TypeError()
|
|
1056
|
+
methods_item_type_1_type_16 = MethodROUpdate.from_dict(data)
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
return methods_item_type_1_type_16
|
|
1061
|
+
except: # noqa: E722
|
|
1062
|
+
pass
|
|
1063
|
+
try:
|
|
1064
|
+
if not isinstance(data, dict):
|
|
1065
|
+
raise TypeError()
|
|
1066
|
+
methods_item_type_1_type_17 = MethodINCUpdate.from_dict(data)
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
return methods_item_type_1_type_17
|
|
1071
|
+
except: # noqa: E722
|
|
1072
|
+
pass
|
|
1073
|
+
try:
|
|
1074
|
+
if not isinstance(data, dict):
|
|
1075
|
+
raise TypeError()
|
|
1076
|
+
methods_item_type_1_type_18 = MethodSRUpdate.from_dict(data)
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
return methods_item_type_1_type_18
|
|
1081
|
+
except: # noqa: E722
|
|
1082
|
+
pass
|
|
1083
|
+
try:
|
|
1084
|
+
if not isinstance(data, dict):
|
|
1085
|
+
raise TypeError()
|
|
1086
|
+
methods_item_type_1_type_19 = MethodIWUpdate.from_dict(data)
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
return methods_item_type_1_type_19
|
|
1091
|
+
except: # noqa: E722
|
|
1092
|
+
pass
|
|
1093
|
+
try:
|
|
1094
|
+
if not isinstance(data, dict):
|
|
1095
|
+
raise TypeError()
|
|
1096
|
+
methods_item_type_1_type_20 = MethodDTUpdate.from_dict(data)
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
return methods_item_type_1_type_20
|
|
1101
|
+
except: # noqa: E722
|
|
1102
|
+
pass
|
|
1103
|
+
try:
|
|
1104
|
+
if not isinstance(data, dict):
|
|
1105
|
+
raise TypeError()
|
|
1106
|
+
methods_item_type_1_type_21 = MethodOTHERUpdate.from_dict(data)
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
return methods_item_type_1_type_21
|
|
1111
|
+
except: # noqa: E722
|
|
1112
|
+
pass
|
|
1113
|
+
try:
|
|
1114
|
+
if not isinstance(data, dict):
|
|
1115
|
+
raise TypeError()
|
|
1116
|
+
methods_item_type_1_type_22 = MethodSRSUpdate.from_dict(data)
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
return methods_item_type_1_type_22
|
|
1121
|
+
except: # noqa: E722
|
|
1122
|
+
pass
|
|
1123
|
+
try:
|
|
1124
|
+
if not isinstance(data, dict):
|
|
1125
|
+
raise TypeError()
|
|
1126
|
+
methods_item_type_1_type_23 = MethodDPUpdate.from_dict(data)
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
return methods_item_type_1_type_23
|
|
1131
|
+
except: # noqa: E722
|
|
1132
|
+
pass
|
|
1133
|
+
if not isinstance(data, dict):
|
|
1134
|
+
raise TypeError()
|
|
1135
|
+
methods_item_type_1_type_24 = MethodWSTUpdate.from_dict(data)
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
return methods_item_type_1_type_24
|
|
1140
|
+
|
|
1141
|
+
methods_item = _parse_methods_item(methods_item_data)
|
|
1142
|
+
|
|
1143
|
+
methods.append(methods_item)
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
location_update = cls(
|
|
1147
|
+
project_id=project_id,
|
|
1148
|
+
location_id=location_id,
|
|
1149
|
+
iogp_type_id=iogp_type_id,
|
|
1150
|
+
name=name,
|
|
1151
|
+
updated_at=updated_at,
|
|
1152
|
+
updated_by=updated_by,
|
|
1153
|
+
point_easting=point_easting,
|
|
1154
|
+
point_northing=point_northing,
|
|
1155
|
+
point_z=point_z,
|
|
1156
|
+
srid=srid,
|
|
1157
|
+
location_type_id=location_type_id,
|
|
1158
|
+
tags=tags,
|
|
1159
|
+
methods=methods,
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
location_update.additional_properties = d
|
|
1164
|
+
return location_update
|
|
1165
|
+
|
|
1166
|
+
@property
|
|
1167
|
+
def additional_keys(self) -> List[str]:
|
|
1168
|
+
return list(self.additional_properties.keys())
|
|
1169
|
+
|
|
1170
|
+
def __getitem__(self, key: str) -> Any:
|
|
1171
|
+
return self.additional_properties[key]
|
|
1172
|
+
|
|
1173
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
1174
|
+
self.additional_properties[key] = value
|
|
1175
|
+
|
|
1176
|
+
def __delitem__(self, key: str) -> None:
|
|
1177
|
+
del self.additional_properties[key]
|
|
1178
|
+
|
|
1179
|
+
def __contains__(self, key: str) -> bool:
|
|
1180
|
+
return key in self.additional_properties
|