From ecfd89b71398c9d740daf07390bdfa8d2996e9cb Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 12:50:41 +0100 Subject: [PATCH 1/9] feat!(api): bump to API version 7.0.0 --- .github/workflows/python.yml | 2 +- .openapi-generator/FILES | 111 +- README.md | 93 +- data_bridges_client/__init__.py | 39 +- data_bridges_client/api/__init__.py | 5 +- data_bridges_client/api/commodities_api.py | 2 +- .../api/commodity_units_api.py | 2 +- data_bridges_client/api/currency_api.py | 2 +- data_bridges_client/api/economic_data_api.py | 2 +- data_bridges_client/api/food_security_api.py | 357 - .../{gorp_api.py => global_outlook_api.py} | 124 +- data_bridges_client/api/hunger_hotspot_api.py | 590 ++ data_bridges_client/api/incubation_api.py | 230 +- data_bridges_client/api/ipcch_api.py | 1613 ++++ data_bridges_client/api/market_prices_api.py | 36 +- data_bridges_client/api/markets_api.py | 2 +- data_bridges_client/api/rpme_api.py | 2 +- data_bridges_client/api/surveys_api.py | 2 +- data_bridges_client/api/xls_forms_api.py | 2 +- data_bridges_client/api_client.py | 2 +- data_bridges_client/configuration.py | 8 +- data_bridges_client/exceptions.py | 2 +- data_bridges_client/models/__init__.py | 34 +- data_bridges_client/models/bad_request_dto.py | 2 +- .../models/cari_adm0_values_dto.py | 161 + ...y => cari_adm0_values_dto_paged_result.py} | 16 +- .../models/cari_adm1_values_dto.py | 175 + .../cari_adm1_values_dto_paged_result.py | 120 + .../models/categories_and_indicators_dto.py | 128 + data_bridges_client/models/commodity_dto.py | 2 +- .../models/commodity_price_dto.py | 2 +- .../models/commodity_processing_dto.py | 2 +- .../models/commodity_quality_dto.py | 2 +- data_bridges_client/models/currency_dto.py | 2 +- .../models/economic_data_dto.py | 2 +- .../models/economic_indicator_property.py | 2 +- ...conomic_indicator_property_paged_result.py | 2 +- ...ps_value.py => extended_alps_value_dto.py} | 32 +- .../extended_alps_value_dto_paged_result.py | 120 + data_bridges_client/models/feature.py | 2 +- data_bridges_client/models/geometry.py | 2 +- ...l_api_dto.py => global_outlook_api_dto.py} | 46 +- ...o.py => global_outlook_country_api_dto.py} | 36 +- ....py => global_outlook_regional_api_dto.py} | 46 +- .../models/household_survey_list_dto.py | 2 +- .../household_survey_list_dto_paged_result.py | 2 +- .../models/hunger_hot_spot_data_dto.py | 129 + .../hunger_hot_spot_data_dto_paged_result.py | 120 + .../models/ipc_historical_datum_dto.py | 459 + ... ipc_historical_datum_dto_paged_result.py} | 16 +- data_bridges_client/models/ipc_value.py | 270 - .../models/ipcch_and_equivalent_peaks_dto.py | 155 + ...h_and_equivalent_peaks_dto_paged_result.py | 120 + data_bridges_client/models/ipcch_base_dto.py | 256 + ...sult.py => ipcch_base_dto_paged_result.py} | 16 +- data_bridges_client/models/ipcch_peaks_dto.py | 258 + .../models/ipcch_peaks_dto_paged_result.py | 120 + data_bridges_client/models/key_name_dto.py | 2 +- data_bridges_client/models/list_item_dto.py | 115 + data_bridges_client/models/market_dto.py | 2 +- .../models/market_geo_json_root.py | 2 +- .../models/mfi_processed_data_dto.py | 2 +- .../models/nearby_markets_dto.py | 2 +- .../models/paged_commodity_list_dto.py | 2 +- .../models/paged_commodity_price_list_dto.py | 2 +- ...modity_weekly_aggregated_price_list_dto.py | 2 +- .../models/paged_currency_list_dto.py | 2 +- .../models/paged_economic_data_dto.py | 2 +- .../models/paged_market_list_dto.py | 2 +- .../models/paged_processed_data_dto.py | 2 +- .../models/paged_survey_list_dto.py | 2 +- .../models/paged_survey_responses_dto.py | 2 +- .../models/paged_xls_form_list_dto.py | 2 +- data_bridges_client/models/problem_details.py | 2 +- data_bridges_client/models/properties.py | 2 +- data_bridges_client/models/rpme_assessment.py | 2 +- .../models/rpme_assessment_paged_result.py | 2 +- .../models/rpme_output_values.py | 2 +- data_bridges_client/models/rpme_variable.py | 2 +- .../models/rpme_variable_paged_result.py | 2 +- data_bridges_client/models/survey_list_dto.py | 2 +- .../models/usd_indirect_quotation.py | 2 +- .../usd_indirect_quotation_paged_result.py | 2 +- ...view_extended_monthly_aggregated_price.py} | 38 +- ...d_monthly_aggregated_price_paged_result.py | 120 + .../models/weekly_aggregated_price.py | 67 +- .../xls_form_definition_new_schema_dto.py | 2 +- data_bridges_client/models/xls_form_dto.py | 2 +- .../models/xls_form_fields_dto.py | 2 +- .../models/xls_form_list_choice_dto.py | 2 +- .../models/xls_form_list_choices_dto.py | 2 +- data_bridges_client/rest.py | 2 +- docs/CariAdm0ValuesDTO.md | 39 + docs/CariAdm0ValuesDTOPagedResult.md | 31 + docs/CariAdm1ValuesDTO.md | 41 + docs/CariAdm1ValuesDTOPagedResult.md | 31 + docs/CategoriesAndIndicatorsDTO.md | 30 + docs/CommoditiesApi.md | 10 +- docs/CommodityUnitsApi.md | 10 +- docs/CurrencyApi.md | 10 +- docs/EconomicDataApi.md | 10 +- ...edAlpsValue.md => ExtendedAlpsValueDto.md} | 16 +- docs/ExtendedAlpsValueDtoPagedResult.md | 31 + docs/FoodSecurityApi.md | 90 - docs/{GorpApi.md => GlobalOutlookApi.md} | 88 +- docs/GlobalOutlookApiDto.md | 33 + docs/GlobalOutlookCountryApiDto.md | 32 + docs/GlobalOutlookRegionalApiDto.md | 33 + docs/GorpCountryApiDto.md | 32 - docs/GorpGlobalApiDto.md | 33 - docs/GorpRegionalApiDto.md | 33 - docs/HungerHotSpotDataDTO.md | 32 + docs/HungerHotSpotDataDTOPagedResult.md | 31 + docs/HungerHotspotApi.md | 164 + docs/IncubationApi.md | 106 +- docs/IpcHistoricalDatumDto.md | 80 + docs/IpcHistoricalDatumDtoPagedResult.md | 31 + docs/IpcValue.md | 53 - docs/IpcValuePagedResult.md | 31 - docs/IpcchAndEquivalentPeaksDTO.md | 36 + docs/IpcchAndEquivalentPeaksDTOPagedResult.md | 31 + docs/IpcchApi.md | 419 + docs/IpcchBaseDto.md | 51 + docs/IpcchBaseDtoPagedResult.md | 31 + docs/IpcchPeaksDto.md | 52 + docs/IpcchPeaksDtoPagedResult.md | 31 + docs/ListItemDto.md | 31 + docs/MarketPricesApi.md | 40 +- docs/MarketsApi.md | 18 +- docs/RpmeApi.md | 26 +- docs/SurveysApi.md | 18 +- .../ViewExtendedAggregatedPricePagedResult.md | 31 - docs/ViewExtendedAlpsValuePagedResult.md | 31 - ... => ViewExtendedMonthlyAggregatedPrice.md} | 16 +- ...tendedMonthlyAggregatedPricePagedResult.md | 31 + docs/WeeklyAggregatedPrice.md | 13 +- docs/XlsFormsApi.md | 6 +- generate/swagger-7.0.0.json | 8433 +++++++++++++++++ pyproject.toml | 2 +- setup.py | 7 +- test/test_bad_request_dto.py | 2 +- test/test_cari_adm0_values_dto.py | 62 + ...test_cari_adm0_values_dto_paged_result.py} | 24 +- test/test_cari_adm1_values_dto.py | 64 + .../test_cari_adm1_values_dto_paged_result.py | 58 + test/test_categories_and_indicators_dto.py | 61 + test/test_commodities_api.py | 2 +- test/test_commodity_dto.py | 2 +- test/test_commodity_price_dto.py | 2 +- test/test_commodity_processing_dto.py | 2 +- test/test_commodity_quality_dto.py | 2 +- test/test_commodity_units_api.py | 2 +- test/test_currency_api.py | 2 +- test/test_currency_dto.py | 2 +- test/test_economic_data_api.py | 2 +- test/test_economic_data_dto.py | 2 +- test/test_economic_indicator_property.py | 2 +- ...conomic_indicator_property_paged_result.py | 2 +- ...lue.py => test_extended_alps_value_dto.py} | 24 +- ...st_extended_alps_value_dto_paged_result.py | 58 + test/test_feature.py | 2 +- test/test_geometry.py | 2 +- ...gorp_api.py => test_global_outlook_api.py} | 28 +- ..._dto.py => test_global_outlook_api_dto.py} | 32 +- test/test_global_outlook_country_api_dto.py | 55 + ...> test_global_outlook_regional_api_dto.py} | 32 +- test/test_household_survey_list_dto.py | 2 +- ..._household_survey_list_dto_paged_result.py | 2 +- test/test_hunger_hot_spot_data_dto.py | 61 + ...t_hunger_hot_spot_data_dto_paged_result.py | 58 + ...rity_api.py => test_hunger_hotspot_api.py} | 22 +- test/test_incubation_api.py | 14 +- test/test_ipc_historical_datum_dto.py | 103 + ...t_ipc_historical_datum_dto_paged_result.py | 58 + test/test_ipc_value.py | 76 - test/test_ipcch_and_equivalent_peaks_dto.py | 59 + ...h_and_equivalent_peaks_dto_paged_result.py | 58 + test/test_ipcch_api.py | 67 + test/test_ipcch_base_dto.py | 74 + ...py => test_ipcch_base_dto_paged_result.py} | 24 +- test/test_ipcch_peaks_dto.py | 75 + test/test_ipcch_peaks_dto_paged_result.py | 58 + test/test_key_name_dto.py | 2 +- ...untry_api_dto.py => test_list_item_dto.py} | 33 +- test/test_market_dto.py | 2 +- test/test_market_geo_json_root.py | 2 +- test/test_market_prices_api.py | 2 +- test/test_markets_api.py | 2 +- test/test_mfi_processed_data_dto.py | 2 +- test/test_nearby_markets_dto.py | 2 +- test/test_paged_commodity_list_dto.py | 2 +- test/test_paged_commodity_price_list_dto.py | 2 +- ...modity_weekly_aggregated_price_list_dto.py | 2 +- test/test_paged_currency_list_dto.py | 2 +- test/test_paged_economic_data_dto.py | 2 +- test/test_paged_market_list_dto.py | 2 +- test/test_paged_processed_data_dto.py | 2 +- test/test_paged_survey_list_dto.py | 2 +- test/test_paged_survey_responses_dto.py | 2 +- test/test_paged_xls_form_list_dto.py | 2 +- test/test_problem_details.py | 2 +- test/test_properties.py | 2 +- test/test_rpme_api.py | 2 +- test/test_rpme_assessment.py | 2 +- test/test_rpme_assessment_paged_result.py | 2 +- test/test_rpme_output_values.py | 2 +- test/test_rpme_variable.py | 2 +- test/test_rpme_variable_paged_result.py | 2 +- test/test_survey_list_dto.py | 2 +- test/test_surveys_api.py | 2 +- test/test_usd_indirect_quotation.py | 2 +- ...est_usd_indirect_quotation_paged_result.py | 2 +- ...view_extended_monthly_aggregated_price.py} | 24 +- ..._monthly_aggregated_price_paged_result.py} | 24 +- test/test_weekly_aggregated_price.py | 15 +- ...test_xls_form_definition_new_schema_dto.py | 2 +- test/test_xls_form_dto.py | 2 +- test/test_xls_form_fields_dto.py | 2 +- test/test_xls_form_list_choice_dto.py | 2 +- test/test_xls_form_list_choices_dto.py | 2 +- test/test_xls_forms_api.py | 2 +- 221 files changed, 16671 insertions(+), 1838 deletions(-) delete mode 100644 data_bridges_client/api/food_security_api.py rename data_bridges_client/api/{gorp_api.py => global_outlook_api.py} (86%) create mode 100644 data_bridges_client/api/hunger_hotspot_api.py create mode 100644 data_bridges_client/api/ipcch_api.py create mode 100644 data_bridges_client/models/cari_adm0_values_dto.py rename data_bridges_client/models/{view_extended_aggregated_price_paged_result.py => cari_adm0_values_dto_paged_result.py} (86%) create mode 100644 data_bridges_client/models/cari_adm1_values_dto.py create mode 100644 data_bridges_client/models/cari_adm1_values_dto_paged_result.py create mode 100644 data_bridges_client/models/categories_and_indicators_dto.py rename data_bridges_client/models/{view_extended_alps_value.py => extended_alps_value_dto.py} (92%) create mode 100644 data_bridges_client/models/extended_alps_value_dto_paged_result.py rename data_bridges_client/models/{gorp_global_api_dto.py => global_outlook_api_dto.py} (72%) rename data_bridges_client/models/{gorp_country_api_dto.py => global_outlook_country_api_dto.py} (76%) rename data_bridges_client/models/{gorp_regional_api_dto.py => global_outlook_regional_api_dto.py} (71%) create mode 100644 data_bridges_client/models/hunger_hot_spot_data_dto.py create mode 100644 data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py create mode 100644 data_bridges_client/models/ipc_historical_datum_dto.py rename data_bridges_client/models/{view_extended_alps_value_paged_result.py => ipc_historical_datum_dto_paged_result.py} (89%) delete mode 100644 data_bridges_client/models/ipc_value.py create mode 100644 data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py create mode 100644 data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py create mode 100644 data_bridges_client/models/ipcch_base_dto.py rename data_bridges_client/models/{ipc_value_paged_result.py => ipcch_base_dto_paged_result.py} (88%) create mode 100644 data_bridges_client/models/ipcch_peaks_dto.py create mode 100644 data_bridges_client/models/ipcch_peaks_dto_paged_result.py create mode 100644 data_bridges_client/models/list_item_dto.py rename data_bridges_client/models/{view_extended_aggregated_price.py => view_extended_monthly_aggregated_price.py} (91%) create mode 100644 data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py create mode 100644 docs/CariAdm0ValuesDTO.md create mode 100644 docs/CariAdm0ValuesDTOPagedResult.md create mode 100644 docs/CariAdm1ValuesDTO.md create mode 100644 docs/CariAdm1ValuesDTOPagedResult.md create mode 100644 docs/CategoriesAndIndicatorsDTO.md rename docs/{ViewExtendedAlpsValue.md => ExtendedAlpsValueDto.md} (72%) create mode 100644 docs/ExtendedAlpsValueDtoPagedResult.md delete mode 100644 docs/FoodSecurityApi.md rename docs/{GorpApi.md => GlobalOutlookApi.md} (63%) create mode 100644 docs/GlobalOutlookApiDto.md create mode 100644 docs/GlobalOutlookCountryApiDto.md create mode 100644 docs/GlobalOutlookRegionalApiDto.md delete mode 100644 docs/GorpCountryApiDto.md delete mode 100644 docs/GorpGlobalApiDto.md delete mode 100644 docs/GorpRegionalApiDto.md create mode 100644 docs/HungerHotSpotDataDTO.md create mode 100644 docs/HungerHotSpotDataDTOPagedResult.md create mode 100644 docs/HungerHotspotApi.md create mode 100644 docs/IpcHistoricalDatumDto.md create mode 100644 docs/IpcHistoricalDatumDtoPagedResult.md delete mode 100644 docs/IpcValue.md delete mode 100644 docs/IpcValuePagedResult.md create mode 100644 docs/IpcchAndEquivalentPeaksDTO.md create mode 100644 docs/IpcchAndEquivalentPeaksDTOPagedResult.md create mode 100644 docs/IpcchApi.md create mode 100644 docs/IpcchBaseDto.md create mode 100644 docs/IpcchBaseDtoPagedResult.md create mode 100644 docs/IpcchPeaksDto.md create mode 100644 docs/IpcchPeaksDtoPagedResult.md create mode 100644 docs/ListItemDto.md delete mode 100644 docs/ViewExtendedAggregatedPricePagedResult.md delete mode 100644 docs/ViewExtendedAlpsValuePagedResult.md rename docs/{ViewExtendedAggregatedPrice.md => ViewExtendedMonthlyAggregatedPrice.md} (68%) create mode 100644 docs/ViewExtendedMonthlyAggregatedPricePagedResult.md create mode 100644 generate/swagger-7.0.0.json create mode 100644 test/test_cari_adm0_values_dto.py rename test/{test_view_extended_alps_value_paged_result.py => test_cari_adm0_values_dto_paged_result.py} (65%) create mode 100644 test/test_cari_adm1_values_dto.py create mode 100644 test/test_cari_adm1_values_dto_paged_result.py create mode 100644 test/test_categories_and_indicators_dto.py rename test/{test_view_extended_alps_value.py => test_extended_alps_value_dto.py} (77%) create mode 100644 test/test_extended_alps_value_dto_paged_result.py rename test/{test_gorp_api.py => test_global_outlook_api.py} (58%) rename test/{test_gorp_global_api_dto.py => test_global_outlook_api_dto.py} (63%) create mode 100644 test/test_global_outlook_country_api_dto.py rename test/{test_gorp_regional_api_dto.py => test_global_outlook_regional_api_dto.py} (60%) create mode 100644 test/test_hunger_hot_spot_data_dto.py create mode 100644 test/test_hunger_hot_spot_data_dto_paged_result.py rename test/{test_food_security_api.py => test_hunger_hotspot_api.py} (57%) create mode 100644 test/test_ipc_historical_datum_dto.py create mode 100644 test/test_ipc_historical_datum_dto_paged_result.py delete mode 100644 test/test_ipc_value.py create mode 100644 test/test_ipcch_and_equivalent_peaks_dto.py create mode 100644 test/test_ipcch_and_equivalent_peaks_dto_paged_result.py create mode 100644 test/test_ipcch_api.py create mode 100644 test/test_ipcch_base_dto.py rename test/{test_ipc_value_paged_result.py => test_ipcch_base_dto_paged_result.py} (68%) create mode 100644 test/test_ipcch_peaks_dto.py create mode 100644 test/test_ipcch_peaks_dto_paged_result.py rename test/{test_gorp_country_api_dto.py => test_list_item_dto.py} (63%) rename test/{test_view_extended_aggregated_price.py => test_view_extended_monthly_aggregated_price.py} (75%) rename test/{test_view_extended_aggregated_price_paged_result.py => test_view_extended_monthly_aggregated_price_paged_result.py} (63%) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5d15d99..e01c473 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 73b6b1f..10560cd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,9 +9,10 @@ data_bridges_client/api/commodities_api.py data_bridges_client/api/commodity_units_api.py data_bridges_client/api/currency_api.py data_bridges_client/api/economic_data_api.py -data_bridges_client/api/food_security_api.py -data_bridges_client/api/gorp_api.py +data_bridges_client/api/global_outlook_api.py +data_bridges_client/api/hunger_hotspot_api.py data_bridges_client/api/incubation_api.py +data_bridges_client/api/ipcch_api.py data_bridges_client/api/market_prices_api.py data_bridges_client/api/markets_api.py data_bridges_client/api/rpme_api.py @@ -23,6 +24,11 @@ data_bridges_client/configuration.py data_bridges_client/exceptions.py data_bridges_client/models/__init__.py data_bridges_client/models/bad_request_dto.py +data_bridges_client/models/cari_adm0_values_dto.py +data_bridges_client/models/cari_adm0_values_dto_paged_result.py +data_bridges_client/models/cari_adm1_values_dto.py +data_bridges_client/models/cari_adm1_values_dto_paged_result.py +data_bridges_client/models/categories_and_indicators_dto.py data_bridges_client/models/commodity_dto.py data_bridges_client/models/commodity_price_dto.py data_bridges_client/models/commodity_processing_dto.py @@ -31,16 +37,27 @@ data_bridges_client/models/currency_dto.py data_bridges_client/models/economic_data_dto.py data_bridges_client/models/economic_indicator_property.py data_bridges_client/models/economic_indicator_property_paged_result.py +data_bridges_client/models/extended_alps_value_dto.py +data_bridges_client/models/extended_alps_value_dto_paged_result.py data_bridges_client/models/feature.py data_bridges_client/models/geometry.py -data_bridges_client/models/gorp_country_api_dto.py -data_bridges_client/models/gorp_global_api_dto.py -data_bridges_client/models/gorp_regional_api_dto.py +data_bridges_client/models/global_outlook_api_dto.py +data_bridges_client/models/global_outlook_country_api_dto.py +data_bridges_client/models/global_outlook_regional_api_dto.py data_bridges_client/models/household_survey_list_dto.py data_bridges_client/models/household_survey_list_dto_paged_result.py -data_bridges_client/models/ipc_value.py -data_bridges_client/models/ipc_value_paged_result.py +data_bridges_client/models/hunger_hot_spot_data_dto.py +data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py +data_bridges_client/models/ipc_historical_datum_dto.py +data_bridges_client/models/ipc_historical_datum_dto_paged_result.py +data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py +data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py +data_bridges_client/models/ipcch_base_dto.py +data_bridges_client/models/ipcch_base_dto_paged_result.py +data_bridges_client/models/ipcch_peaks_dto.py +data_bridges_client/models/ipcch_peaks_dto_paged_result.py data_bridges_client/models/key_name_dto.py +data_bridges_client/models/list_item_dto.py data_bridges_client/models/market_dto.py data_bridges_client/models/market_geo_json_root.py data_bridges_client/models/mfi_processed_data_dto.py @@ -65,10 +82,8 @@ data_bridges_client/models/rpme_variable_paged_result.py data_bridges_client/models/survey_list_dto.py data_bridges_client/models/usd_indirect_quotation.py data_bridges_client/models/usd_indirect_quotation_paged_result.py -data_bridges_client/models/view_extended_aggregated_price.py -data_bridges_client/models/view_extended_aggregated_price_paged_result.py -data_bridges_client/models/view_extended_alps_value.py -data_bridges_client/models/view_extended_alps_value_paged_result.py +data_bridges_client/models/view_extended_monthly_aggregated_price.py +data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py data_bridges_client/models/weekly_aggregated_price.py data_bridges_client/models/xls_form_definition_new_schema_dto.py data_bridges_client/models/xls_form_dto.py @@ -78,6 +93,11 @@ data_bridges_client/models/xls_form_list_choices_dto.py data_bridges_client/py.typed data_bridges_client/rest.py docs/BadRequestDTO.md +docs/CariAdm0ValuesDTO.md +docs/CariAdm0ValuesDTOPagedResult.md +docs/CariAdm1ValuesDTO.md +docs/CariAdm1ValuesDTOPagedResult.md +docs/CategoriesAndIndicatorsDTO.md docs/CommoditiesApi.md docs/CommodityDTO.md docs/CommodityPriceDTO.md @@ -90,19 +110,31 @@ docs/EconomicDataApi.md docs/EconomicDataDTO.md docs/EconomicIndicatorProperty.md docs/EconomicIndicatorPropertyPagedResult.md +docs/ExtendedAlpsValueDto.md +docs/ExtendedAlpsValueDtoPagedResult.md docs/Feature.md -docs/FoodSecurityApi.md docs/Geometry.md -docs/GorpApi.md -docs/GorpCountryApiDto.md -docs/GorpGlobalApiDto.md -docs/GorpRegionalApiDto.md +docs/GlobalOutlookApi.md +docs/GlobalOutlookApiDto.md +docs/GlobalOutlookCountryApiDto.md +docs/GlobalOutlookRegionalApiDto.md docs/HouseholdSurveyListDTO.md docs/HouseholdSurveyListDTOPagedResult.md +docs/HungerHotSpotDataDTO.md +docs/HungerHotSpotDataDTOPagedResult.md +docs/HungerHotspotApi.md docs/IncubationApi.md -docs/IpcValue.md -docs/IpcValuePagedResult.md +docs/IpcHistoricalDatumDto.md +docs/IpcHistoricalDatumDtoPagedResult.md +docs/IpcchAndEquivalentPeaksDTO.md +docs/IpcchAndEquivalentPeaksDTOPagedResult.md +docs/IpcchApi.md +docs/IpcchBaseDto.md +docs/IpcchBaseDtoPagedResult.md +docs/IpcchPeaksDto.md +docs/IpcchPeaksDtoPagedResult.md docs/KeyNameDto.md +docs/ListItemDto.md docs/MFIProcessedDataDTO.md docs/MarketDTO.md docs/MarketGeoJsonRoot.md @@ -131,10 +163,8 @@ docs/SurveyListDTO.md docs/SurveysApi.md docs/UsdIndirectQuotation.md docs/UsdIndirectQuotationPagedResult.md -docs/ViewExtendedAggregatedPrice.md -docs/ViewExtendedAggregatedPricePagedResult.md -docs/ViewExtendedAlpsValue.md -docs/ViewExtendedAlpsValuePagedResult.md +docs/ViewExtendedMonthlyAggregatedPrice.md +docs/ViewExtendedMonthlyAggregatedPricePagedResult.md docs/WeeklyAggregatedPrice.md docs/XlsFormDTO.md docs/XlsFormDefinitionNewSchemaDTO.md @@ -150,6 +180,11 @@ setup.py test-requirements.txt test/__init__.py test/test_bad_request_dto.py +test/test_cari_adm0_values_dto.py +test/test_cari_adm0_values_dto_paged_result.py +test/test_cari_adm1_values_dto.py +test/test_cari_adm1_values_dto_paged_result.py +test/test_categories_and_indicators_dto.py test/test_commodities_api.py test/test_commodity_dto.py test/test_commodity_price_dto.py @@ -162,19 +197,31 @@ test/test_economic_data_api.py test/test_economic_data_dto.py test/test_economic_indicator_property.py test/test_economic_indicator_property_paged_result.py +test/test_extended_alps_value_dto.py +test/test_extended_alps_value_dto_paged_result.py test/test_feature.py -test/test_food_security_api.py test/test_geometry.py -test/test_gorp_api.py -test/test_gorp_country_api_dto.py -test/test_gorp_global_api_dto.py -test/test_gorp_regional_api_dto.py +test/test_global_outlook_api.py +test/test_global_outlook_api_dto.py +test/test_global_outlook_country_api_dto.py +test/test_global_outlook_regional_api_dto.py test/test_household_survey_list_dto.py test/test_household_survey_list_dto_paged_result.py +test/test_hunger_hot_spot_data_dto.py +test/test_hunger_hot_spot_data_dto_paged_result.py +test/test_hunger_hotspot_api.py test/test_incubation_api.py -test/test_ipc_value.py -test/test_ipc_value_paged_result.py +test/test_ipc_historical_datum_dto.py +test/test_ipc_historical_datum_dto_paged_result.py +test/test_ipcch_and_equivalent_peaks_dto.py +test/test_ipcch_and_equivalent_peaks_dto_paged_result.py +test/test_ipcch_api.py +test/test_ipcch_base_dto.py +test/test_ipcch_base_dto_paged_result.py +test/test_ipcch_peaks_dto.py +test/test_ipcch_peaks_dto_paged_result.py test/test_key_name_dto.py +test/test_list_item_dto.py test/test_market_dto.py test/test_market_geo_json_root.py test/test_market_prices_api.py @@ -203,10 +250,8 @@ test/test_survey_list_dto.py test/test_surveys_api.py test/test_usd_indirect_quotation.py test/test_usd_indirect_quotation_paged_result.py -test/test_view_extended_aggregated_price.py -test/test_view_extended_aggregated_price_paged_result.py -test/test_view_extended_alps_value.py -test/test_view_extended_alps_value_paged_result.py +test/test_view_extended_monthly_aggregated_price.py +test/test_view_extended_monthly_aggregated_price_paged_result.py test/test_weekly_aggregated_price.py test/test_xls_form_definition_new_schema_dto.py test/test_xls_form_dto.py diff --git a/README.md b/README.md index 5cf4325..59ff7f9 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.o This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 6.0.0 -- Package version: 6.0.0 -- Generator version: 7.5.0 +- API version: 7.0.0 +- Package version: 1.0.0 +- Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -53,21 +53,21 @@ Please follow the [installation procedure](#installation--usage) and then run th import data_bridges_client from data_bridges_client.rest import ApiException -from data_bridges_client.token import WfpApiToken from pprint import pprint -# Configure OAuth2 access token for authorization: default -KEY = '' -SECRET = '' -SCOPES = ['', ''] -token = WfpApiToken(api_key=KEY, api_secret=SECRET) - -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/1.4.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) -configuration.access_token = token.refresh(scopes=SCOPES) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: @@ -92,7 +92,7 @@ with data_bridges_client.ApiClient(configuration) as api_client: ## Documentation for API Endpoints -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -104,15 +104,25 @@ Class | Method | HTTP request | Description *CurrencyApi* | [**currency_usd_indirect_quotation_get**](docs/CurrencyApi.md#currency_usd_indirect_quotation_get) | **GET** /Currency/UsdIndirectQuotation | Returns the value of the Exchange rates from Trading Economics, for official rates, and DataViz for unofficial rates. *EconomicDataApi* | [**economic_data_indicator_list_get**](docs/EconomicDataApi.md#economic_data_indicator_list_get) | **GET** /EconomicData/IndicatorList | Returns the lists of indicators. *EconomicDataApi* | [**economic_data_indicator_name_get**](docs/EconomicDataApi.md#economic_data_indicator_name_get) | **GET** /EconomicData/{indicatorName} | Returns the time series of values for different indicators. -*FoodSecurityApi* | [**food_security_list_get**](docs/FoodSecurityApi.md#food_security_list_get) | **GET** /FoodSecurity/List | -*GorpApi* | [**gorp_latest_get**](docs/GorpApi.md#gorp_latest_get) | **GET** /Gorp/Latest | Return the latest dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. -*GorpApi* | [**gorp_list_get**](docs/GorpApi.md#gorp_list_get) | **GET** /Gorp/List | Return the full dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. -*IncubationApi* | [**household_draft_internal_base_data_get**](docs/IncubationApi.md#household_draft_internal_base_data_get) | **GET** /Household/DraftInternalBaseData | Get data that includes the core household fields only by Survey ID -*IncubationApi* | [**household_full_data_get**](docs/IncubationApi.md#household_full_data_get) | **GET** /Household/FullData | Get a full dataset that includes all the fields included in the survey in addition to the core household fields by Survey ID. To access this data, please contact xxxx for authorization. +*GlobalOutlookApi* | [**global_outlook_country_latest_get**](docs/GlobalOutlookApi.md#global_outlook_country_latest_get) | **GET** /GlobalOutlook/CountryLatest | Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. +*GlobalOutlookApi* | [**global_outlook_global_latest_get**](docs/GlobalOutlookApi.md#global_outlook_global_latest_get) | **GET** /GlobalOutlook/GlobalLatest | Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. +*GlobalOutlookApi* | [**global_outlook_regional_latest_get**](docs/GlobalOutlookApi.md#global_outlook_regional_latest_get) | **GET** /GlobalOutlook/RegionalLatest | Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. +*HungerHotspotApi* | [**hunger_hotspot_categories_and_indicators_get**](docs/HungerHotspotApi.md#hunger_hotspot_categories_and_indicators_get) | **GET** /HungerHotspot/CategoriesAndIndicators | Retrieves Hunger Hotspot categories and indicators. +*HungerHotspotApi* | [**hunger_hotspot_data_get**](docs/HungerHotspotApi.md#hunger_hotspot_data_get) | **GET** /HungerHotspot/Data | Retrieves a paginated list of Hunger Hotspot data. +*IncubationApi* | [**cari_adm0_values_get**](docs/IncubationApi.md#cari_adm0_values_get) | **GET** /Cari/Adm0Values | Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. +*IncubationApi* | [**cari_adm1_values_get**](docs/IncubationApi.md#cari_adm1_values_get) | **GET** /Cari/Adm1Values | Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. +*IncubationApi* | [**household_draft_internal_base_data_get**](docs/IncubationApi.md#household_draft_internal_base_data_get) | **GET** /Household/DraftInternalBaseData | Get data that includes the core household fields only by Survey ID. To access this data, please contact Wael ATTIA for authorization. This endpoint will send you only data you have access to, based on permissions assigned to your application profile. The \"apiKey\" can be found in the profile section of the DataBridges application. +*IncubationApi* | [**household_full_data_get**](docs/IncubationApi.md#household_full_data_get) | **GET** /Household/FullData | Get a full dataset that includes all the fields included in the survey in addition to the core household fields by Survey ID. To access this data, please contact Wael ATTIA for authorization. This endpoint will send you only data you have access to, based on permissions assigned to your application profile. The \"apiKey\" can be found in the profile section of the DataBridges application. *IncubationApi* | [**household_official_use_base_data_get**](docs/IncubationApi.md#household_official_use_base_data_get) | **GET** /Household/OfficialUseBaseData | Get data that includes the core household fields only by Survey ID *IncubationApi* | [**household_public_base_data_get**](docs/IncubationApi.md#household_public_base_data_get) | **GET** /Household/PublicBaseData | Get data that includes the core household fields only by Survey ID *IncubationApi* | [**household_surveys_get**](docs/IncubationApi.md#household_surveys_get) | **GET** /Household/Surveys | Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all household surveys conducted in a country. A date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload for each survey. +*IncubationApi* | [**m_fi_surveys_processed_data_with_keyset_pagination_get**](docs/IncubationApi.md#m_fi_surveys_processed_data_with_keyset_pagination_get) | **GET** /MFI/Surveys/ProcessedDataWithKeysetPagination | Please use this endpoint only for large data retrieval - Response will include only JSON format - Get a MFI processed data in long format; levels indicate the data aggregation level 1) Normalized Score, 2) Trader Aggregate Score, 3) Market Aggregate Score, 4) Trader Median, 5) Trader Mean, 6) Market Mean; each line corresponds to one of the nine dimensions of scores plus the final MFI aggregate score; 1) Assortment, 2) Availability, 3) Price, 4) Resilience, 5) Competition, 6) Infrastructure, 7) Service, 8) Quality, 9) Access and Protection, and 10) MFI final score; the variable label describes each variable and its value range *IncubationApi* | [**xls_forms_definition_get**](docs/IncubationApi.md#xls_forms_definition_get) | **GET** /XlsForms/definition | Get a complete set of XLS Form definitions of a given XLS Form ID. This is the digital version of the questionnaire used during the data collection exercise. +*IpcchApi* | [**ipcch_ipcch_and_equivalent_historical_peaks_get**](docs/IpcchApi.md#ipcch_ipcch_and_equivalent_historical_peaks_get) | **GET** /Ipcch/IPCCHAndEquivalent-HistoricalPeaks | Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. +*IpcchApi* | [**ipcch_ipcch_and_equivalent_latest_peaks_get**](docs/IpcchApi.md#ipcch_ipcch_and_equivalent_latest_peaks_get) | **GET** /Ipcch/IPCCHAndEquivalent-LatestPeaks | Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. +*IpcchApi* | [**ipcch_ipcch_and_equivalent_most_recent_get**](docs/IpcchApi.md#ipcch_ipcch_and_equivalent_most_recent_get) | **GET** /Ipcch/IPCCHAndEquivalent-MostRecent | Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. +*IpcchApi* | [**ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get**](docs/IpcchApi.md#ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get) | **GET** /Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard | Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. +*IpcchApi* | [**ipcch_ipcch_historical_data_get**](docs/IpcchApi.md#ipcch_ipcch_historical_data_get) | **GET** /Ipcch/IPCCH-HistoricalData | Retrieves a paginated list of IPCCH and Equivalent Historical Data. *MarketPricesApi* | [**market_prices_alps_get**](docs/MarketPricesApi.md#market_prices_alps_get) | **GET** /MarketPrices/Alps | Returns time series values of ALPS and PEWI. *MarketPricesApi* | [**market_prices_price_daily_get**](docs/MarketPricesApi.md#market_prices_price_daily_get) | **GET** /MarketPrices/PriceDaily | Returns a daily time series of commodity market prices. *MarketPricesApi* | [**market_prices_price_monthly_get**](docs/MarketPricesApi.md#market_prices_price_monthly_get) | **GET** /MarketPrices/PriceMonthly | Returns a monthly time series of commodity market prices. @@ -138,6 +148,11 @@ Class | Method | HTTP request | Description ## Documentation For Models - [BadRequestDTO](docs/BadRequestDTO.md) + - [CariAdm0ValuesDTO](docs/CariAdm0ValuesDTO.md) + - [CariAdm0ValuesDTOPagedResult](docs/CariAdm0ValuesDTOPagedResult.md) + - [CariAdm1ValuesDTO](docs/CariAdm1ValuesDTO.md) + - [CariAdm1ValuesDTOPagedResult](docs/CariAdm1ValuesDTOPagedResult.md) + - [CategoriesAndIndicatorsDTO](docs/CategoriesAndIndicatorsDTO.md) - [CommodityDTO](docs/CommodityDTO.md) - [CommodityPriceDTO](docs/CommodityPriceDTO.md) - [CommodityProcessingDTO](docs/CommodityProcessingDTO.md) @@ -146,13 +161,27 @@ Class | Method | HTTP request | Description - [EconomicDataDTO](docs/EconomicDataDTO.md) - [EconomicIndicatorProperty](docs/EconomicIndicatorProperty.md) - [EconomicIndicatorPropertyPagedResult](docs/EconomicIndicatorPropertyPagedResult.md) + - [ExtendedAlpsValueDto](docs/ExtendedAlpsValueDto.md) + - [ExtendedAlpsValueDtoPagedResult](docs/ExtendedAlpsValueDtoPagedResult.md) - [Feature](docs/Feature.md) - [Geometry](docs/Geometry.md) + - [GlobalOutlookApiDto](docs/GlobalOutlookApiDto.md) + - [GlobalOutlookCountryApiDto](docs/GlobalOutlookCountryApiDto.md) + - [GlobalOutlookRegionalApiDto](docs/GlobalOutlookRegionalApiDto.md) - [HouseholdSurveyListDTO](docs/HouseholdSurveyListDTO.md) - [HouseholdSurveyListDTOPagedResult](docs/HouseholdSurveyListDTOPagedResult.md) - - [IpcValue](docs/IpcValue.md) - - [IpcValuePagedResult](docs/IpcValuePagedResult.md) + - [HungerHotSpotDataDTO](docs/HungerHotSpotDataDTO.md) + - [HungerHotSpotDataDTOPagedResult](docs/HungerHotSpotDataDTOPagedResult.md) + - [IpcHistoricalDatumDto](docs/IpcHistoricalDatumDto.md) + - [IpcHistoricalDatumDtoPagedResult](docs/IpcHistoricalDatumDtoPagedResult.md) + - [IpcchAndEquivalentPeaksDTO](docs/IpcchAndEquivalentPeaksDTO.md) + - [IpcchAndEquivalentPeaksDTOPagedResult](docs/IpcchAndEquivalentPeaksDTOPagedResult.md) + - [IpcchBaseDto](docs/IpcchBaseDto.md) + - [IpcchBaseDtoPagedResult](docs/IpcchBaseDtoPagedResult.md) + - [IpcchPeaksDto](docs/IpcchPeaksDto.md) + - [IpcchPeaksDtoPagedResult](docs/IpcchPeaksDtoPagedResult.md) - [KeyNameDto](docs/KeyNameDto.md) + - [ListItemDto](docs/ListItemDto.md) - [MFIProcessedDataDTO](docs/MFIProcessedDataDTO.md) - [MarketDTO](docs/MarketDTO.md) - [MarketGeoJsonRoot](docs/MarketGeoJsonRoot.md) @@ -177,10 +206,8 @@ Class | Method | HTTP request | Description - [SurveyListDTO](docs/SurveyListDTO.md) - [UsdIndirectQuotation](docs/UsdIndirectQuotation.md) - [UsdIndirectQuotationPagedResult](docs/UsdIndirectQuotationPagedResult.md) - - [ViewExtendedAggregatedPrice](docs/ViewExtendedAggregatedPrice.md) - - [ViewExtendedAggregatedPricePagedResult](docs/ViewExtendedAggregatedPricePagedResult.md) - - [ViewExtendedAlpsValue](docs/ViewExtendedAlpsValue.md) - - [ViewExtendedAlpsValuePagedResult](docs/ViewExtendedAlpsValuePagedResult.md) + - [ViewExtendedMonthlyAggregatedPrice](docs/ViewExtendedMonthlyAggregatedPrice.md) + - [ViewExtendedMonthlyAggregatedPricePagedResult](docs/ViewExtendedMonthlyAggregatedPricePagedResult.md) - [WeeklyAggregatedPrice](docs/WeeklyAggregatedPrice.md) - [XlsFormDTO](docs/XlsFormDTO.md) - [XlsFormDefinitionNewSchemaDTO](docs/XlsFormDefinitionNewSchemaDTO.md) @@ -202,10 +229,12 @@ Authentication schemes defined for the API: - **Authorization URL**: https://api.wfp.org/authorize - **Scopes**: - **vamdatabridges_rpme-fulldata_get**: vamdatabridges_rpme-fulldata_get - - **vamdatabridges_foodsecurity-list_get**: vamdatabridges_foodsecurity-list_get + - **vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get**: vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get + - **vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get**: vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get - **vamdatabridges_commodities-list_get**: vamdatabridges_commodities-list_get - **vamdatabridges_commodityunits-list_get**: vamdatabridges_commodityunits-list_get - **vamdatabridges_markets-nearbymarkets_get**: vamdatabridges_markets-nearbymarkets_get + - **vamdatabridges_globaloutlook-globallatest_get**: vamdatabridges_globaloutlook-globallatest_get - **vamdatabridges_rpme-outputvalues_get**: vamdatabridges_rpme-outputvalues_get - **vamdatabridges_marketprices-alps_get**: vamdatabridges_marketprices-alps_get - **vamdatabridges_mfi-surveys_get**: vamdatabridges_mfi-surveys_get @@ -215,28 +244,36 @@ Authentication schemes defined for the API: - **vamdatabridges_mfi-surveys-processeddata_get**: vamdatabridges_mfi-surveys-processeddata_get - **vamdatabridges_marketprices-priceweekly_get**: vamdatabridges_marketprices-priceweekly_get - **vamdatabridges_markets-marketsascsv_get**: vamdatabridges_markets-marketsascsv_get + - **vamdatabridges_cari-adm1values_get**: vamdatabridges_cari-adm1values_get - **vamdatabridges_household-publicbasedata_get**: vamdatabridges_household-publicbasedata_get - **vamdatabridges_mfi-xlsforms_get**: vamdatabridges_mfi-xlsforms_get - **vamdatabridges_economicdata-indicatorlist_get**: vamdatabridges_economicdata-indicatorlist_get - **vamdatabridges_markets-geojsonlist_get**: vamdatabridges_markets-geojsonlist_get + - **vamdatabridges_mfi-surveys-processeddatakeysetpagination_get**: vamdatabridges_mfi-surveys-processeddatakeysetpagination_get - **vamdatabridges_rpme-surveys_get**: vamdatabridges_rpme-surveys_get - **vamdatabridges_rpme-xlsforms_get**: vamdatabridges_rpme-xlsforms_get - **vamdatabridges_mfi-surveys-basedata_get**: vamdatabridges_mfi-surveys-basedata_get - **vamdatabridges_mfi-surveys-fulldata_get**: vamdatabridges_mfi-surveys-fulldata_get + - **vamdatabridges_globaloutlook-regionallatest_get**: vamdatabridges_globaloutlook-regionallatest_get - **vamdatabridges_household-fulldata_get**: vamdatabridges_household-fulldata_get + - **vamdatabridges_hungerhotspot-categoriesandindicators_get**: vamdatabridges_hungerhotspot-categoriesandindicators_get - **vamdatabridges_household-officialusebasedata_get**: vamdatabridges_household-officialusebasedata_get + - **vamdatabridges_globaloutlook-countrylatest_get**: vamdatabridges_globaloutlook-countrylatest_get - **vamdatabridges_marketprices-pricemonthly_get**: vamdatabridges_marketprices-pricemonthly_get + - **vamdatabridges_ipcch-ipcch-historicaldata_get**: vamdatabridges_ipcch-ipcch-historicaldata_get - **vamdatabridges_markets-list_get**: vamdatabridges_markets-list_get - **vamdatabridges_currency-list_get**: vamdatabridges_currency-list_get - - **vamdatabridges_gorp-list_get**: vamdatabridges_gorp-list_get + - **vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get**: vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get + - **vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get**: vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get - **vamdatabridges_marketprices-priceraw_get**: vamdatabridges_marketprices-priceraw_get - **vamdatabridges_rpme-variables_get**: vamdatabridges_rpme-variables_get - - **vamdatabridges_gorp-latest_get**: vamdatabridges_gorp-latest_get - **vamdatabridges_currency-usdindirectquotation_get**: vamdatabridges_currency-usdindirectquotation_get + - **vamdatabridges_hungerhotspot-data_get**: vamdatabridges_hungerhotspot-data_get - **vamdatabridges_xlsforms-definition_get**: vamdatabridges_xlsforms-definition_get - **vamdatabridges_household-draftinternalbasedata_get**: vamdatabridges_household-draftinternalbasedata_get - **vamdatabridges_household-surveys_get**: vamdatabridges_household-surveys_get - **vamdatabridges_marketprices-pricedaily_get**: vamdatabridges_marketprices-pricedaily_get + - **vamdatabridges_cari-adm0values_get**: vamdatabridges_cari-adm0values_get - **vamdatabridges_rpme-basedata_get**: vamdatabridges_rpme-basedata_get diff --git a/data_bridges_client/__init__.py b/data_bridges_client/__init__.py index c2e6125..6a54a59 100644 --- a/data_bridges_client/__init__.py +++ b/data_bridges_client/__init__.py @@ -7,7 +7,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,9 +22,10 @@ from data_bridges_client.api.commodity_units_api import CommodityUnitsApi from data_bridges_client.api.currency_api import CurrencyApi from data_bridges_client.api.economic_data_api import EconomicDataApi -from data_bridges_client.api.food_security_api import FoodSecurityApi -from data_bridges_client.api.gorp_api import GorpApi +from data_bridges_client.api.global_outlook_api import GlobalOutlookApi +from data_bridges_client.api.hunger_hotspot_api import HungerHotspotApi from data_bridges_client.api.incubation_api import IncubationApi +from data_bridges_client.api.ipcch_api import IpcchApi from data_bridges_client.api.market_prices_api import MarketPricesApi from data_bridges_client.api.markets_api import MarketsApi from data_bridges_client.api.rpme_api import RpmeApi @@ -44,6 +45,11 @@ # import models into sdk package from data_bridges_client.models.bad_request_dto import BadRequestDTO +from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO @@ -52,16 +58,27 @@ from data_bridges_client.models.economic_data_dto import EconomicDataDTO from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult -from data_bridges_client.models.ipc_value import IpcValue -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult +from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult from data_bridges_client.models.key_name_dto import KeyNameDto +from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO from data_bridges_client.models.market_dto import MarketDTO from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot @@ -86,10 +103,8 @@ from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult -from data_bridges_client.models.view_extended_aggregated_price import ViewExtendedAggregatedPrice -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult -from data_bridges_client.models.view_extended_alps_value import ViewExtendedAlpsValue -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO diff --git a/data_bridges_client/api/__init__.py b/data_bridges_client/api/__init__.py index 8f86505..21e5cdf 100644 --- a/data_bridges_client/api/__init__.py +++ b/data_bridges_client/api/__init__.py @@ -5,9 +5,10 @@ from data_bridges_client.api.commodity_units_api import CommodityUnitsApi from data_bridges_client.api.currency_api import CurrencyApi from data_bridges_client.api.economic_data_api import EconomicDataApi -from data_bridges_client.api.food_security_api import FoodSecurityApi -from data_bridges_client.api.gorp_api import GorpApi +from data_bridges_client.api.global_outlook_api import GlobalOutlookApi +from data_bridges_client.api.hunger_hotspot_api import HungerHotspotApi from data_bridges_client.api.incubation_api import IncubationApi +from data_bridges_client.api.ipcch_api import IpcchApi from data_bridges_client.api.market_prices_api import MarketPricesApi from data_bridges_client.api.markets_api import MarketsApi from data_bridges_client.api.rpme_api import RpmeApi diff --git a/data_bridges_client/api/commodities_api.py b/data_bridges_client/api/commodities_api.py index 75ae98a..b94eb8a 100644 --- a/data_bridges_client/api/commodities_api.py +++ b/data_bridges_client/api/commodities_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/commodity_units_api.py b/data_bridges_client/api/commodity_units_api.py index 1b6f92a..664482b 100644 --- a/data_bridges_client/api/commodity_units_api.py +++ b/data_bridges_client/api/commodity_units_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/currency_api.py b/data_bridges_client/api/currency_api.py index e1979e1..82a0875 100644 --- a/data_bridges_client/api/currency_api.py +++ b/data_bridges_client/api/currency_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/economic_data_api.py b/data_bridges_client/api/economic_data_api.py index 294b39b..8e5862f 100644 --- a/data_bridges_client/api/economic_data_api.py +++ b/data_bridges_client/api/economic_data_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/food_security_api.py b/data_bridges_client/api/food_security_api.py deleted file mode 100644 index 6012dc0..0000000 --- a/data_bridges_client/api/food_security_api.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - VAM-Data-Bridges - - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - The version of the OpenAPI document: 6.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # 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 pydantic import Field, StrictInt, StrictStr, field_validator -from typing import Optional -from typing_extensions import Annotated -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult - -from data_bridges_client.api_client import ApiClient, RequestSerialized -from data_bridges_client.api_response import ApiResponse -from data_bridges_client.rest import RESTResponseType - - -class FoodSecurityApi: - """NOTE: This class is auto generated by OpenAPI Generator - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - - 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 food_security_list_get( - self, - iso3: Annotated[Optional[StrictStr], Field(description="The country ISO3 code")] = None, - year: Optional[StrictInt] = None, - page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, - ) -> IpcValuePagedResult: - """food_security_list_get - - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_foodsecurity-list_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - :param iso3: The country ISO3 code - :type iso3: str - :param year: - :type year: int - :param page: - :type page: int - :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org - :type env: 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._food_security_list_get_serialize( - iso3=iso3, - year=year, - page=page, - env=env, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcValuePagedResult", - '400': "BadRequestDTO", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def food_security_list_get_with_http_info( - self, - iso3: Annotated[Optional[StrictStr], Field(description="The country ISO3 code")] = None, - year: Optional[StrictInt] = None, - page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcValuePagedResult]: - """food_security_list_get - - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_foodsecurity-list_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - :param iso3: The country ISO3 code - :type iso3: str - :param year: - :type year: int - :param page: - :type page: int - :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org - :type env: 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._food_security_list_get_serialize( - iso3=iso3, - year=year, - page=page, - env=env, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcValuePagedResult", - '400': "BadRequestDTO", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def food_security_list_get_without_preload_content( - self, - iso3: Annotated[Optional[StrictStr], Field(description="The country ISO3 code")] = None, - year: Optional[StrictInt] = None, - page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: - """food_security_list_get - - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_foodsecurity-list_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - :param iso3: The country ISO3 code - :type iso3: str - :param year: - :type year: int - :param page: - :type page: int - :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org - :type env: 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._food_security_list_get_serialize( - iso3=iso3, - year=year, - page=page, - env=env, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcValuePagedResult", - '400': "BadRequestDTO", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _food_security_list_get_serialize( - self, - iso3, - year, - page, - env, - _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 iso3 is not None: - - _query_params.append(('iso3', iso3)) - - if year is not None: - - _query_params.append(('year', year)) - - if page is not None: - - _query_params.append(('page', page)) - - if env is not None: - - _query_params.append(('env', env)) - - # process the header parameters - # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/FoodSecurity/List', - 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/data_bridges_client/api/gorp_api.py b/data_bridges_client/api/global_outlook_api.py similarity index 86% rename from data_bridges_client/api/gorp_api.py rename to data_bridges_client/api/global_outlook_api.py index 24e8971..948f144 100644 --- a/data_bridges_client/api/gorp_api.py +++ b/data_bridges_client/api/global_outlook_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,16 +20,16 @@ from pydantic import Field, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse from data_bridges_client.rest import RESTResponseType -class GorpApi: +class GlobalOutlookApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def gorp_country_latest_get( + def global_outlook_country_latest_get( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -58,10 +58,10 @@ def gorp_country_latest_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[GorpCountryApiDto]: - """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. + ) -> List[GlobalOutlookCountryApiDto]: + """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -87,7 +87,7 @@ def gorp_country_latest_get( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_country_latest_get_serialize( + _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -96,7 +96,7 @@ def gorp_country_latest_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpCountryApiDto]", + '200': "List[GlobalOutlookCountryApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -111,7 +111,7 @@ def gorp_country_latest_get( @validate_call - def gorp_country_latest_get_with_http_info( + def global_outlook_country_latest_get_with_http_info( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -126,10 +126,10 @@ def gorp_country_latest_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[GorpCountryApiDto]]: - """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. + ) -> ApiResponse[List[GlobalOutlookCountryApiDto]]: + """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -155,7 +155,7 @@ def gorp_country_latest_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_country_latest_get_serialize( + _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -164,7 +164,7 @@ def gorp_country_latest_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpCountryApiDto]", + '200': "List[GlobalOutlookCountryApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -179,7 +179,7 @@ def gorp_country_latest_get_with_http_info( @validate_call - def gorp_country_latest_get_without_preload_content( + def global_outlook_country_latest_get_without_preload_content( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -195,9 +195,9 @@ def gorp_country_latest_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. + """Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -223,7 +223,7 @@ def gorp_country_latest_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_country_latest_get_serialize( + _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -232,7 +232,7 @@ def gorp_country_latest_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpCountryApiDto]", + '200': "List[GlobalOutlookCountryApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -242,7 +242,7 @@ def gorp_country_latest_get_without_preload_content( return response_data.response - def _gorp_country_latest_get_serialize( + def _global_outlook_country_latest_get_serialize( self, env, _request_auth, @@ -292,7 +292,7 @@ def _gorp_country_latest_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/Gorp/CountryLatest', + resource_path='/GlobalOutlook/CountryLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -309,7 +309,7 @@ def _gorp_country_latest_get_serialize( @validate_call - def gorp_global_latest_get( + def global_outlook_global_latest_get( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -324,10 +324,10 @@ def gorp_global_latest_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GorpGlobalApiDto: - """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + ) -> GlobalOutlookApiDto: + """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -353,7 +353,7 @@ def gorp_global_latest_get( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_global_latest_get_serialize( + _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -362,7 +362,7 @@ def gorp_global_latest_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GorpGlobalApiDto", + '200': "GlobalOutlookApiDto", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -377,7 +377,7 @@ def gorp_global_latest_get( @validate_call - def gorp_global_latest_get_with_http_info( + def global_outlook_global_latest_get_with_http_info( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -392,10 +392,10 @@ def gorp_global_latest_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GorpGlobalApiDto]: - """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + ) -> ApiResponse[GlobalOutlookApiDto]: + """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -421,7 +421,7 @@ def gorp_global_latest_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_global_latest_get_serialize( + _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -430,7 +430,7 @@ def gorp_global_latest_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GorpGlobalApiDto", + '200': "GlobalOutlookApiDto", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -445,7 +445,7 @@ def gorp_global_latest_get_with_http_info( @validate_call - def gorp_global_latest_get_without_preload_content( + def global_outlook_global_latest_get_without_preload_content( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -461,9 +461,9 @@ def gorp_global_latest_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + """Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -489,7 +489,7 @@ def gorp_global_latest_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_global_latest_get_serialize( + _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -498,7 +498,7 @@ def gorp_global_latest_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GorpGlobalApiDto", + '200': "GlobalOutlookApiDto", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -508,7 +508,7 @@ def gorp_global_latest_get_without_preload_content( return response_data.response - def _gorp_global_latest_get_serialize( + def _global_outlook_global_latest_get_serialize( self, env, _request_auth, @@ -558,7 +558,7 @@ def _gorp_global_latest_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/Gorp/GlobalLatest', + resource_path='/GlobalOutlook/GlobalLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -575,7 +575,7 @@ def _gorp_global_latest_get_serialize( @validate_call - def gorp_regional_latest_get( + def global_outlook_regional_latest_get( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -590,10 +590,10 @@ def gorp_regional_latest_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[GorpRegionalApiDto]: - """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + ) -> List[GlobalOutlookRegionalApiDto]: + """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -619,7 +619,7 @@ def gorp_regional_latest_get( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_regional_latest_get_serialize( + _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -628,7 +628,7 @@ def gorp_regional_latest_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpRegionalApiDto]", + '200': "List[GlobalOutlookRegionalApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -643,7 +643,7 @@ def gorp_regional_latest_get( @validate_call - def gorp_regional_latest_get_with_http_info( + def global_outlook_regional_latest_get_with_http_info( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -658,10 +658,10 @@ def gorp_regional_latest_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[GorpRegionalApiDto]]: - """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + ) -> ApiResponse[List[GlobalOutlookRegionalApiDto]]: + """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -687,7 +687,7 @@ def gorp_regional_latest_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_regional_latest_get_serialize( + _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -696,7 +696,7 @@ def gorp_regional_latest_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpRegionalApiDto]", + '200': "List[GlobalOutlookRegionalApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -711,7 +711,7 @@ def gorp_regional_latest_get_with_http_info( @validate_call - def gorp_regional_latest_get_without_preload_content( + def global_outlook_regional_latest_get_without_preload_content( self, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ @@ -727,9 +727,9 @@ def gorp_regional_latest_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + """Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -755,7 +755,7 @@ def gorp_regional_latest_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._gorp_regional_latest_get_serialize( + _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -764,7 +764,7 @@ def gorp_regional_latest_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GorpRegionalApiDto]", + '200': "List[GlobalOutlookRegionalApiDto]", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -774,7 +774,7 @@ def gorp_regional_latest_get_without_preload_content( return response_data.response - def _gorp_regional_latest_get_serialize( + def _global_outlook_regional_latest_get_serialize( self, env, _request_auth, @@ -824,7 +824,7 @@ def _gorp_regional_latest_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/Gorp/RegionalLatest', + resource_path='/GlobalOutlook/RegionalLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/data_bridges_client/api/hunger_hotspot_api.py b/data_bridges_client/api/hunger_hotspot_api.py new file mode 100644 index 0000000..246fe7b --- /dev/null +++ b/data_bridges_client/api/hunger_hotspot_api.py @@ -0,0 +1,590 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 pydantic import Field, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult + +from data_bridges_client.api_client import ApiClient, RequestSerialized +from data_bridges_client.api_response import ApiResponse +from data_bridges_client.rest import RESTResponseType + + +class HungerHotspotApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + 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 hunger_hotspot_categories_and_indicators_get( + self, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> CategoriesAndIndicatorsDTO: + """Retrieves Hunger Hotspot categories and indicators. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-categoriesandindicators_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_categories_and_indicators_get_serialize( + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def hunger_hotspot_categories_and_indicators_get_with_http_info( + self, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[CategoriesAndIndicatorsDTO]: + """Retrieves Hunger Hotspot categories and indicators. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-categoriesandindicators_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_categories_and_indicators_get_serialize( + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def hunger_hotspot_categories_and_indicators_get_without_preload_content( + self, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves Hunger Hotspot categories and indicators. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-categoriesandindicators_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_categories_and_indicators_get_serialize( + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _hunger_hotspot_categories_and_indicators_get_serialize( + self, + env, + _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 env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/HungerHotspot/CategoriesAndIndicators', + 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 hunger_hotspot_data_get( + self, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> HungerHotSpotDataDTOPagedResult: + """Retrieves a paginated list of Hunger Hotspot data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-data_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_data_get_serialize( + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def hunger_hotspot_data_get_with_http_info( + self, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[HungerHotSpotDataDTOPagedResult]: + """Retrieves a paginated list of Hunger Hotspot data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-data_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_data_get_serialize( + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def hunger_hotspot_data_get_without_preload_content( + self, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of Hunger Hotspot data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-data_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._hunger_hotspot_data_get_serialize( + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _hunger_hotspot_data_get_serialize( + self, + page, + env, + _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 page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/HungerHotspot/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 + ) + + diff --git a/data_bridges_client/api/incubation_api.py b/data_bridges_client/api/incubation_api.py index db26220..5685b37 100644 --- a/data_bridges_client/api/incubation_api.py +++ b/data_bridges_client/api/incubation_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,8 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO @@ -45,9 +47,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def aims_download_all_analysis_rounds_get( + def cari_adm0_values_get( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -61,13 +66,19 @@ def aims_download_all_analysis_rounds_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + ) -> CariAdm0ValuesDTOPagedResult: + """Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadallanalysisrounds_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm0values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -92,8 +103,11 @@ def aims_download_all_analysis_rounds_get( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_all_analysis_rounds_get_serialize( + _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -102,7 +116,8 @@ def aims_download_all_analysis_rounds_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -116,9 +131,12 @@ def aims_download_all_analysis_rounds_get( @validate_call - def aims_download_all_analysis_rounds_get_with_http_info( + def cari_adm0_values_get_with_http_info( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -132,13 +150,19 @@ def aims_download_all_analysis_rounds_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + ) -> ApiResponse[CariAdm0ValuesDTOPagedResult]: + """Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadallanalysisrounds_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm0values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -163,8 +187,11 @@ def aims_download_all_analysis_rounds_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_all_analysis_rounds_get_serialize( + _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +200,8 @@ def aims_download_all_analysis_rounds_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -187,9 +215,12 @@ def aims_download_all_analysis_rounds_get_with_http_info( @validate_call - def aims_download_all_analysis_rounds_get_without_preload_content( + def cari_adm0_values_get_without_preload_content( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -204,12 +235,18 @@ def aims_download_all_analysis_rounds_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + """Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadallanalysisrounds_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm0values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -234,8 +271,11 @@ def aims_download_all_analysis_rounds_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_all_analysis_rounds_get_serialize( + _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -244,7 +284,8 @@ def aims_download_all_analysis_rounds_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -253,9 +294,12 @@ def aims_download_all_analysis_rounds_get_without_preload_content( return response_data.response - def _aims_download_all_analysis_rounds_get_serialize( + def _cari_adm0_values_get_serialize( self, adm0_code, + survey_id, + indicator_id, + page, env, _request_auth, _content_type, @@ -281,6 +325,18 @@ def _aims_download_all_analysis_rounds_get_serialize( _query_params.append(('adm0Code', adm0_code)) + if survey_id is not None: + + _query_params.append(('surveyId', survey_id)) + + if indicator_id is not None: + + _query_params.append(('indicatorId', indicator_id)) + + if page is not None: + + _query_params.append(('page', page)) + if env is not None: _query_params.append(('env', env)) @@ -290,6 +346,15 @@ def _aims_download_all_analysis_rounds_get_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -299,7 +364,7 @@ def _aims_download_all_analysis_rounds_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/Aims/DownloadAllAnalysisRounds', + resource_path='/Cari/Adm0Values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -316,9 +381,12 @@ def _aims_download_all_analysis_rounds_get_serialize( @validate_call - def aims_download_polygon_files_get( + def cari_adm1_values_get( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -332,13 +400,19 @@ def aims_download_polygon_files_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + ) -> CariAdm1ValuesDTOPagedResult: + """Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadpolygonfiles_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm1values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -363,8 +437,11 @@ def aims_download_polygon_files_get( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_polygon_files_get_serialize( + _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -373,7 +450,8 @@ def aims_download_polygon_files_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -387,9 +465,12 @@ def aims_download_polygon_files_get( @validate_call - def aims_download_polygon_files_get_with_http_info( + def cari_adm1_values_get_with_http_info( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -403,13 +484,19 @@ def aims_download_polygon_files_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + ) -> ApiResponse[CariAdm1ValuesDTOPagedResult]: + """Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadpolygonfiles_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm1values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -434,8 +521,11 @@ def aims_download_polygon_files_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_polygon_files_get_serialize( + _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -444,7 +534,8 @@ def aims_download_polygon_files_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -458,9 +549,12 @@ def aims_download_polygon_files_get_with_http_info( @validate_call - def aims_download_polygon_files_get_without_preload_content( + def cari_adm1_values_get_without_preload_content( self, - adm0_code: Annotated[StrictInt, Field(description="The country adm0Code")], + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, @@ -475,12 +569,18 @@ def aims_download_polygon_files_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + """Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadpolygonfiles_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm1values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param adm0_code: The country adm0Code (required) + :param adm0_code: The administrative level 0 code to filter the results. :type adm0_code: int + :param survey_id: The unique identifier of the survey to filter the results. + :type survey_id: int + :param indicator_id: The unique identifier of the indicator to filter the results. + :type indicator_id: int + :param page: The page number for pagination. Defaults to 1. + :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str :param _request_timeout: timeout setting for this request. If one @@ -505,8 +605,11 @@ def aims_download_polygon_files_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._aims_download_polygon_files_get_serialize( + _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, + survey_id=survey_id, + indicator_id=indicator_id, + page=page, env=env, _request_auth=_request_auth, _content_type=_content_type, @@ -515,7 +618,8 @@ def aims_download_polygon_files_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( *_param, @@ -524,9 +628,12 @@ def aims_download_polygon_files_get_without_preload_content( return response_data.response - def _aims_download_polygon_files_get_serialize( + def _cari_adm1_values_get_serialize( self, adm0_code, + survey_id, + indicator_id, + page, env, _request_auth, _content_type, @@ -552,6 +659,18 @@ def _aims_download_polygon_files_get_serialize( _query_params.append(('adm0Code', adm0_code)) + if survey_id is not None: + + _query_params.append(('surveyId', survey_id)) + + if indicator_id is not None: + + _query_params.append(('indicatorId', indicator_id)) + + if page is not None: + + _query_params.append(('page', page)) + if env is not None: _query_params.append(('env', env)) @@ -561,6 +680,15 @@ def _aims_download_polygon_files_get_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) # authentication setting @@ -570,7 +698,7 @@ def _aims_download_polygon_files_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/Aims/DownloadPolygonFiles', + resource_path='/Cari/Adm1Values', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/data_bridges_client/api/ipcch_api.py b/data_bridges_client/api/ipcch_api.py new file mode 100644 index 0000000..2341e05 --- /dev/null +++ b/data_bridges_client/api/ipcch_api.py @@ -0,0 +1,1613 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 datetime import datetime +from pydantic import Field, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult + +from data_bridges_client.api_client import ApiClient, RequestSerialized +from data_bridges_client.api_response import ApiResponse +from data_bridges_client.rest import RESTResponseType + + +class IpcchApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + 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 ipcch_ipcch_and_equivalent_historical_peaks_get( + self, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> IpcchPeaksDtoPagedResult: + """Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param reference_year: Year in a 4 digit format, for example: 2025 + :type reference_year: int + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( + reference_year=reference_year, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( + self, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcchPeaksDtoPagedResult]: + """Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param reference_year: Year in a 4 digit format, for example: 2025 + :type reference_year: int + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( + reference_year=reference_year, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( + self, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param reference_year: Year in a 4 digit format, for example: 2025 + :type reference_year: int + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( + reference_year=reference_year, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( + self, + reference_year, + iso3, + page, + env, + _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 reference_year is not None: + + _query_params.append(('referenceYear', reference_year)) + + if iso3 is not None: + + _query_params.append(('iso3', iso3)) + + if page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-HistoricalPeaks', + 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 ipcch_ipcch_and_equivalent_latest_peaks_get( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> IpcchPeaksDtoPagedResult: + """Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcchPeaksDtoPagedResult]: + """Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( + self, + iso3, + page, + env, + _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 iso3 is not None: + + _query_params.append(('iso3', iso3)) + + if page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-LatestPeaks', + 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 ipcch_ipcch_and_equivalent_most_recent_get( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> IpcchBaseDtoPagedResult: + """Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_most_recent_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcchBaseDtoPagedResult]: + """Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_most_recent_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( + self, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_most_recent_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( + self, + iso3, + page, + env, + _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 iso3 is not None: + + _query_params.append(('iso3', iso3)) + + if page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-MostRecent', + 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 ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( + self, + iso3: Optional[StrictStr] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> IpcchAndEquivalentPeaksDTOPagedResult: + """Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( + self, + iso3: Optional[StrictStr] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcchAndEquivalentPeaksDTOPagedResult]: + """Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( + self, + iso3: Optional[StrictStr] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param iso3: + :type iso3: str + :param page: The page number for pagination. Defaults to 1. + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( + self, + iso3, + page, + env, + _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 iso3 is not None: + + _query_params.append(('iso3', iso3)) + + if page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard', + 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 ipcch_ipcch_historical_data_get( + self, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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, + ) -> IpcHistoricalDatumDtoPagedResult: + """Retrieves a paginated list of IPCCH and Equivalent Historical Data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcch-historicaldata_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param from_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type from_date: datetime + :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type to_date: datetime + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_historical_data_get_serialize( + from_date=from_date, + to_date=to_date, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def ipcch_ipcch_historical_data_get_with_http_info( + self, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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[IpcHistoricalDatumDtoPagedResult]: + """Retrieves a paginated list of IPCCH and Equivalent Historical Data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcch-historicaldata_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param from_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type from_date: datetime + :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type to_date: datetime + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_historical_data_get_serialize( + from_date=from_date, + to_date=to_date, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def ipcch_ipcch_historical_data_get_without_preload_content( + self, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + iso3: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = 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: + """Retrieves a paginated list of IPCCH and Equivalent Historical Data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcch-historicaldata_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + :param from_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type from_date: datetime + :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date + :type to_date: datetime + :param iso3: + :type iso3: str + :param page: + :type page: int + :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org + :type env: 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._ipcch_ipcch_historical_data_get_serialize( + from_date=from_date, + to_date=to_date, + iso3=iso3, + page=page, + env=env, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _ipcch_ipcch_historical_data_get_serialize( + self, + from_date, + to_date, + iso3, + page, + env, + _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 from_date is not None: + if isinstance(from_date, datetime): + _query_params.append( + ( + 'fromDate', + from_date.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('fromDate', from_date)) + + if to_date is not None: + if isinstance(to_date, datetime): + _query_params.append( + ( + 'toDate', + to_date.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('toDate', to_date)) + + if iso3 is not None: + + _query_params.append(('iso3', iso3)) + + if page is not None: + + _query_params.append(('page', page)) + + if env is not None: + + _query_params.append(('env', env)) + + # process the header parameters + # 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( + [ + 'text/plain', + 'application/json', + 'text/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'default' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/Ipcch/IPCCH-HistoricalData', + 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/data_bridges_client/api/market_prices_api.py b/data_bridges_client/api/market_prices_api.py index 5f67fad..7360c91 100644 --- a/data_bridges_client/api/market_prices_api.py +++ b/data_bridges_client/api/market_prices_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,10 +21,10 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -71,7 +71,7 @@ def market_prices_alps_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ViewExtendedAlpsValuePagedResult: + ) -> ExtendedAlpsValueDtoPagedResult: """Returns time series values of ALPS and PEWI. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-alps_get\" Returns the full time series of the Alert for Price Spikes (ALPS) and the value of the Price Early Warning Index (PEWI). Methodology is available in [DataViz](https://dataviz.vam.wfp.org/) and [VAM-Resource Centre](https://resources.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -142,7 +142,7 @@ def market_prices_alps_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAlpsValuePagedResult", + '200': "ExtendedAlpsValueDtoPagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -183,7 +183,7 @@ def market_prices_alps_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ViewExtendedAlpsValuePagedResult]: + ) -> ApiResponse[ExtendedAlpsValueDtoPagedResult]: """Returns time series values of ALPS and PEWI. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-alps_get\" Returns the full time series of the Alert for Price Spikes (ALPS) and the value of the Price Early Warning Index (PEWI). Methodology is available in [DataViz](https://dataviz.vam.wfp.org/) and [VAM-Resource Centre](https://resources.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -254,7 +254,7 @@ def market_prices_alps_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAlpsValuePagedResult", + '200': "ExtendedAlpsValueDtoPagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -366,7 +366,7 @@ def market_prices_alps_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAlpsValuePagedResult", + '200': "ExtendedAlpsValueDtoPagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -542,7 +542,7 @@ def market_prices_price_daily_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ViewExtendedAggregatedPricePagedResult: + ) -> ViewExtendedMonthlyAggregatedPricePagedResult: """Returns a daily time series of commodity market prices. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricedaily_get\" This is the highest frequency available. Data is flagged according to its pre-processing characteristics. Actual data is collected originally with daily frequency; aggregated data returns an empty list; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in DataLibrary. For specific methodological notes on forecasts and imputations refer to the dedicated page in DataViz. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -613,7 +613,7 @@ def market_prices_price_daily_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -654,7 +654,7 @@ def market_prices_price_daily_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ViewExtendedAggregatedPricePagedResult]: + ) -> ApiResponse[ViewExtendedMonthlyAggregatedPricePagedResult]: """Returns a daily time series of commodity market prices. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricedaily_get\" This is the highest frequency available. Data is flagged according to its pre-processing characteristics. Actual data is collected originally with daily frequency; aggregated data returns an empty list; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in DataLibrary. For specific methodological notes on forecasts and imputations refer to the dedicated page in DataViz. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -725,7 +725,7 @@ def market_prices_price_daily_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -837,7 +837,7 @@ def market_prices_price_daily_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -1013,7 +1013,7 @@ def market_prices_price_monthly_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ViewExtendedAggregatedPricePagedResult: + ) -> ViewExtendedMonthlyAggregatedPricePagedResult: """Returns a monthly time series of commodity market prices. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricemonthly_get\" This is the lowest frequency available and the most complete data source. Data is flagged according to its pre-processing characteristics. actual data is collected originally with monthly frequency; aggregated data is collected with higher frequency (daily or weekly) averaged through a weighted mean to monthly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -1084,7 +1084,7 @@ def market_prices_price_monthly_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -1125,7 +1125,7 @@ def market_prices_price_monthly_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ViewExtendedAggregatedPricePagedResult]: + ) -> ApiResponse[ViewExtendedMonthlyAggregatedPricePagedResult]: """Returns a monthly time series of commodity market prices. [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricemonthly_get\" This is the lowest frequency available and the most complete data source. Data is flagged according to its pre-processing characteristics. actual data is collected originally with monthly frequency; aggregated data is collected with higher frequency (daily or weekly) averaged through a weighted mean to monthly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern @@ -1196,7 +1196,7 @@ def market_prices_price_monthly_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( @@ -1308,7 +1308,7 @@ def market_prices_price_monthly_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedAggregatedPricePagedResult", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", '400': "BadRequestDTO", } response_data = self.api_client.call_api( diff --git a/data_bridges_client/api/markets_api.py b/data_bridges_client/api/markets_api.py index 3152f0c..6708e74 100644 --- a/data_bridges_client/api/markets_api.py +++ b/data_bridges_client/api/markets_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/rpme_api.py b/data_bridges_client/api/rpme_api.py index 7a84265..6834b5e 100644 --- a/data_bridges_client/api/rpme_api.py +++ b/data_bridges_client/api/rpme_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/surveys_api.py b/data_bridges_client/api/surveys_api.py index 4390949..4f3e20d 100644 --- a/data_bridges_client/api/surveys_api.py +++ b/data_bridges_client/api/surveys_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api/xls_forms_api.py b/data_bridges_client/api/xls_forms_api.py index 0c48912..72dfdb9 100644 --- a/data_bridges_client/api/xls_forms_api.py +++ b/data_bridges_client/api/xls_forms_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/api_client.py b/data_bridges_client/api_client.py index daa06cc..b89137d 100644 --- a/data_bridges_client/api_client.py +++ b/data_bridges_client/api_client.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/configuration.py b/data_bridges_client/configuration.py index e663d51..3d043ab 100644 --- a/data_bridges_client/configuration.py +++ b/data_bridges_client/configuration.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -79,7 +79,7 @@ def __init__(self, host=None, ) -> None: """Constructor """ - self._base_path = "https://api.wfp.org/vam-data-bridges/6.0.0" if host is None else host + self._base_path = "https://api.wfp.org/vam-data-bridges/7.0.0" if host is None else host """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -392,7 +392,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 6.0.0\n"\ + "Version of the API: 7.0.0\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) @@ -403,7 +403,7 @@ def get_host_settings(self): """ return [ { - 'url': "https://api.wfp.org/vam-data-bridges/6.0.0", + 'url': "https://api.wfp.org/vam-data-bridges/7.0.0", 'description': "No description provided", } ] diff --git a/data_bridges_client/exceptions.py b/data_bridges_client/exceptions.py index 54e9400..1dd68e6 100644 --- a/data_bridges_client/exceptions.py +++ b/data_bridges_client/exceptions.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/__init__.py b/data_bridges_client/models/__init__.py index 65b9c6e..6815f5a 100644 --- a/data_bridges_client/models/__init__.py +++ b/data_bridges_client/models/__init__.py @@ -6,7 +6,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -16,6 +16,11 @@ # import models into model package from data_bridges_client.models.bad_request_dto import BadRequestDTO +from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO @@ -24,16 +29,27 @@ from data_bridges_client.models.economic_data_dto import EconomicDataDTO from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult -from data_bridges_client.models.ipc_value import IpcValue -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult +from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult from data_bridges_client.models.key_name_dto import KeyNameDto +from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO from data_bridges_client.models.market_dto import MarketDTO from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot @@ -58,10 +74,8 @@ from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult -from data_bridges_client.models.view_extended_aggregated_price import ViewExtendedAggregatedPrice -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult -from data_bridges_client.models.view_extended_alps_value import ViewExtendedAlpsValue -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO diff --git a/data_bridges_client/models/bad_request_dto.py b/data_bridges_client/models/bad_request_dto.py index 68f0b65..edde947 100644 --- a/data_bridges_client/models/bad_request_dto.py +++ b/data_bridges_client/models/bad_request_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/cari_adm0_values_dto.py b/data_bridges_client/models/cari_adm0_values_dto.py new file mode 100644 index 0000000..cd9cff0 --- /dev/null +++ b/data_bridges_client/models/cari_adm0_values_dto.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 CariAdm0ValuesDTO(BaseModel): + """ + CariAdm0ValuesDTO + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") + survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") + cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") + fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") + additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") + adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") + adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") + cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") + cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") + cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") + indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CariAdm0ValuesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if survey_name (nullable) is None + # and model_fields_set contains the field + if self.survey_name is None and "survey_name" in self.model_fields_set: + _dict['surveyName'] = None + + # set to None if cari_methodology_name (nullable) is None + # and model_fields_set contains the field + if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: + _dict['cariMethodologyName'] = None + + # set to None if fcs_methodology_name (nullable) is None + # and model_fields_set contains the field + if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: + _dict['fcsMethodologyName'] = None + + # set to None if additional_survey_metadata (nullable) is None + # and model_fields_set contains the field + if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: + _dict['additionalSurveyMetadata'] = None + + # set to None if adm0_code (nullable) is None + # and model_fields_set contains the field + if self.adm0_code is None and "adm0_code" in self.model_fields_set: + _dict['adm0Code'] = None + + # set to None if adm0_name (nullable) is None + # and model_fields_set contains the field + if self.adm0_name is None and "adm0_name" in self.model_fields_set: + _dict['adm0Name'] = None + + # set to None if cari_indicator_name (nullable) is None + # and model_fields_set contains the field + if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: + _dict['cariIndicatorName'] = None + + # set to None if indicator_category_label (nullable) is None + # and model_fields_set contains the field + if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: + _dict['indicatorCategoryLabel'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CariAdm0ValuesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/view_extended_aggregated_price_paged_result.py b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py similarity index 86% rename from data_bridges_client/models/view_extended_aggregated_price_paged_result.py rename to data_bridges_client/models/cari_adm0_values_dto_paged_result.py index 489f1c8..2311a3f 100644 --- a/data_bridges_client/models/view_extended_aggregated_price_paged_result.py +++ b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,15 +20,15 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.view_extended_aggregated_price import ViewExtendedAggregatedPrice +from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO from typing import Optional, Set from typing_extensions import Self -class ViewExtendedAggregatedPricePagedResult(BaseModel): +class CariAdm0ValuesDTOPagedResult(BaseModel): """ - ViewExtendedAggregatedPricePagedResult + CariAdm0ValuesDTOPagedResult """ # noqa: E501 - items: Optional[List[ViewExtendedAggregatedPrice]] = None + items: Optional[List[CariAdm0ValuesDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") additional_properties: Dict[str, Any] = {} @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ViewExtendedAggregatedPricePagedResult from a JSON string""" + """Create an instance of CariAdm0ValuesDTOPagedResult from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -98,7 +98,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ViewExtendedAggregatedPricePagedResult from a dict""" + """Create an instance of CariAdm0ValuesDTOPagedResult from a dict""" if obj is None: return None @@ -106,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "items": [ViewExtendedAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [CariAdm0ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "page": obj.get("page"), "totalItems": obj.get("totalItems") }) diff --git a/data_bridges_client/models/cari_adm1_values_dto.py b/data_bridges_client/models/cari_adm1_values_dto.py new file mode 100644 index 0000000..9dd9e65 --- /dev/null +++ b/data_bridges_client/models/cari_adm1_values_dto.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 CariAdm1ValuesDTO(BaseModel): + """ + CariAdm1ValuesDTO + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") + survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") + cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") + fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") + additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") + adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") + adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") + cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") + cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") + cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") + indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") + adm1_code: Optional[StrictInt] = Field(default=None, alias="adm1Code") + adm1_name: Optional[StrictStr] = Field(default=None, alias="adm1Name") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel", "adm1Code", "adm1Name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CariAdm1ValuesDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if survey_name (nullable) is None + # and model_fields_set contains the field + if self.survey_name is None and "survey_name" in self.model_fields_set: + _dict['surveyName'] = None + + # set to None if cari_methodology_name (nullable) is None + # and model_fields_set contains the field + if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: + _dict['cariMethodologyName'] = None + + # set to None if fcs_methodology_name (nullable) is None + # and model_fields_set contains the field + if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: + _dict['fcsMethodologyName'] = None + + # set to None if additional_survey_metadata (nullable) is None + # and model_fields_set contains the field + if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: + _dict['additionalSurveyMetadata'] = None + + # set to None if adm0_code (nullable) is None + # and model_fields_set contains the field + if self.adm0_code is None and "adm0_code" in self.model_fields_set: + _dict['adm0Code'] = None + + # set to None if adm0_name (nullable) is None + # and model_fields_set contains the field + if self.adm0_name is None and "adm0_name" in self.model_fields_set: + _dict['adm0Name'] = None + + # set to None if cari_indicator_name (nullable) is None + # and model_fields_set contains the field + if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: + _dict['cariIndicatorName'] = None + + # set to None if indicator_category_label (nullable) is None + # and model_fields_set contains the field + if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: + _dict['indicatorCategoryLabel'] = None + + # set to None if adm1_code (nullable) is None + # and model_fields_set contains the field + if self.adm1_code is None and "adm1_code" in self.model_fields_set: + _dict['adm1Code'] = None + + # set to None if adm1_name (nullable) is None + # and model_fields_set contains the field + if self.adm1_name is None and "adm1_name" in self.model_fields_set: + _dict['adm1Name'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CariAdm1ValuesDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), + "adm1Code": obj.get("adm1Code"), + "adm1Name": obj.get("adm1Name") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/cari_adm1_values_dto_paged_result.py b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py new file mode 100644 index 0000000..965d07e --- /dev/null +++ b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO +from typing import Optional, Set +from typing_extensions import Self + +class CariAdm1ValuesDTOPagedResult(BaseModel): + """ + CariAdm1ValuesDTOPagedResult + """ # noqa: E501 + items: Optional[List[CariAdm1ValuesDTO]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CariAdm1ValuesDTOPagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CariAdm1ValuesDTOPagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [CariAdm1ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/categories_and_indicators_dto.py b/data_bridges_client/models/categories_and_indicators_dto.py new file mode 100644 index 0000000..7e53417 --- /dev/null +++ b/data_bridges_client/models/categories_and_indicators_dto.py @@ -0,0 +1,128 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.list_item_dto import ListItemDto +from typing import Optional, Set +from typing_extensions import Self + +class CategoriesAndIndicatorsDTO(BaseModel): + """ + CategoriesAndIndicatorsDTO + """ # noqa: E501 + categories: Optional[List[ListItemDto]] = None + indicators: Optional[List[ListItemDto]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["categories", "indicators"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CategoriesAndIndicatorsDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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 + # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) + _items = [] + if self.indicators: + for _item_indicators in self.indicators: + if _item_indicators: + _items.append(_item_indicators.to_dict()) + _dict['indicators'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if categories (nullable) is None + # and model_fields_set contains the field + if self.categories is None and "categories" in self.model_fields_set: + _dict['categories'] = None + + # set to None if indicators (nullable) is None + # and model_fields_set contains the field + if self.indicators is None and "indicators" in self.model_fields_set: + _dict['indicators'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CategoriesAndIndicatorsDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "categories": [ListItemDto.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/commodity_dto.py b/data_bridges_client/models/commodity_dto.py index 6d6e178..90e0985 100644 --- a/data_bridges_client/models/commodity_dto.py +++ b/data_bridges_client/models/commodity_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/commodity_price_dto.py b/data_bridges_client/models/commodity_price_dto.py index ff73bde..903c72f 100644 --- a/data_bridges_client/models/commodity_price_dto.py +++ b/data_bridges_client/models/commodity_price_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/commodity_processing_dto.py b/data_bridges_client/models/commodity_processing_dto.py index eb4049f..ce8d7b0 100644 --- a/data_bridges_client/models/commodity_processing_dto.py +++ b/data_bridges_client/models/commodity_processing_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/commodity_quality_dto.py b/data_bridges_client/models/commodity_quality_dto.py index 9b1c745..c62848b 100644 --- a/data_bridges_client/models/commodity_quality_dto.py +++ b/data_bridges_client/models/commodity_quality_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/currency_dto.py b/data_bridges_client/models/currency_dto.py index 6ff0d56..06f8c06 100644 --- a/data_bridges_client/models/currency_dto.py +++ b/data_bridges_client/models/currency_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/economic_data_dto.py b/data_bridges_client/models/economic_data_dto.py index be338a6..7ec1abf 100644 --- a/data_bridges_client/models/economic_data_dto.py +++ b/data_bridges_client/models/economic_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/economic_indicator_property.py b/data_bridges_client/models/economic_indicator_property.py index ed472e2..f8ae0ec 100644 --- a/data_bridges_client/models/economic_indicator_property.py +++ b/data_bridges_client/models/economic_indicator_property.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/economic_indicator_property_paged_result.py b/data_bridges_client/models/economic_indicator_property_paged_result.py index 42d17c7..6890f9f 100644 --- a/data_bridges_client/models/economic_indicator_property_paged_result.py +++ b/data_bridges_client/models/economic_indicator_property_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/view_extended_alps_value.py b/data_bridges_client/models/extended_alps_value_dto.py similarity index 92% rename from data_bridges_client/models/view_extended_alps_value.py rename to data_bridges_client/models/extended_alps_value_dto.py index 0f6c1a9..e53e911 100644 --- a/data_bridges_client/models/view_extended_alps_value.py +++ b/data_bridges_client/models/extended_alps_value_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,15 +24,15 @@ from typing import Optional, Set from typing_extensions import Self -class ViewExtendedAlpsValue(BaseModel): +class ExtendedAlpsValueDto(BaseModel): """ - ViewExtendedAlpsValue + ExtendedAlpsValueDto """ # noqa: E501 - commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityID") - market_id: Optional[StrictInt] = Field(default=None, alias="marketID") - price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeID") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitID") - currency_id: Optional[StrictInt] = Field(default=None, alias="currencyID") + commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") + market_id: Optional[StrictInt] = Field(default=None, alias="marketId") + price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") commodity_price_date_year: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateYear") @@ -48,7 +48,7 @@ class ViewExtendedAlpsValue(BaseModel): analysis_value_pewi_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="analysisValuePewiValue") analysis_value_price_flag: Optional[StrictStr] = Field(default=None, alias="analysisValuePriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityID", "marketID", "priceTypeID", "commodityUnitID", "currencyID", "adm0Code", "countryName", "commodityPriceDateYear", "commodityPriceDateMonth", "commodityPriceDateWeek", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "analysisValueEstimatedPrice", "analysisValuePewiValue", "analysisValuePriceFlag"] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "countryName", "commodityPriceDateYear", "commodityPriceDateMonth", "commodityPriceDateWeek", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "analysisValueEstimatedPrice", "analysisValuePewiValue", "analysisValuePriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -68,7 +68,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ViewExtendedAlpsValue from a JSON string""" + """Create an instance of ExtendedAlpsValueDto from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -155,7 +155,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ViewExtendedAlpsValue from a dict""" + """Create an instance of ExtendedAlpsValueDto from a dict""" if obj is None: return None @@ -163,11 +163,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "commodityID": obj.get("commodityID"), - "marketID": obj.get("marketID"), - "priceTypeID": obj.get("priceTypeID"), - "commodityUnitID": obj.get("commodityUnitID"), - "currencyID": obj.get("currencyID"), + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), "adm0Code": obj.get("adm0Code"), "countryName": obj.get("countryName"), "commodityPriceDateYear": obj.get("commodityPriceDateYear"), diff --git a/data_bridges_client/models/extended_alps_value_dto_paged_result.py b/data_bridges_client/models/extended_alps_value_dto_paged_result.py new file mode 100644 index 0000000..48f83bd --- /dev/null +++ b/data_bridges_client/models/extended_alps_value_dto_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto +from typing import Optional, Set +from typing_extensions import Self + +class ExtendedAlpsValueDtoPagedResult(BaseModel): + """ + ExtendedAlpsValueDtoPagedResult + """ # noqa: E501 + items: Optional[List[ExtendedAlpsValueDto]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExtendedAlpsValueDtoPagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExtendedAlpsValueDtoPagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [ExtendedAlpsValueDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/feature.py b/data_bridges_client/models/feature.py index 4cffb07..c4da390 100644 --- a/data_bridges_client/models/feature.py +++ b/data_bridges_client/models/feature.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/geometry.py b/data_bridges_client/models/geometry.py index 1c75fa4..a99946c 100644 --- a/data_bridges_client/models/geometry.py +++ b/data_bridges_client/models/geometry.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/gorp_global_api_dto.py b/data_bridges_client/models/global_outlook_api_dto.py similarity index 72% rename from data_bridges_client/models/gorp_global_api_dto.py rename to data_bridges_client/models/global_outlook_api_dto.py index 021f90a..da0ec87 100644 --- a/data_bridges_client/models/gorp_global_api_dto.py +++ b/data_bridges_client/models/global_outlook_api_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,17 +23,17 @@ from typing import Optional, Set from typing_extensions import Self -class GorpGlobalApiDto(BaseModel): +class GlobalOutlookApiDto(BaseModel): """ - GorpGlobalApiDto + GlobalOutlookApiDto """ # noqa: E501 - gorp_date: Optional[StrictStr] = Field(default=None, alias="gorpDate") - gorp_region_name: Optional[StrictStr] = Field(default=None, alias="gorpRegionName") - gorp_total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="gorpTotalValue") + var_date: Optional[StrictStr] = Field(default=None, alias="date") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") - gorp_comment: Optional[StrictStr] = Field(default=None, alias="gorpComment") + comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["gorpDate", "gorpRegionName", "gorpTotalValue", "numberOfCountries", "gorpComment"] + __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GorpGlobalApiDto from a JSON string""" + """Create an instance of GlobalOutlookApiDto from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,31 +81,31 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if gorp_date (nullable) is None + # set to None if var_date (nullable) is None # and model_fields_set contains the field - if self.gorp_date is None and "gorp_date" in self.model_fields_set: - _dict['gorpDate'] = None + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None - # set to None if gorp_region_name (nullable) is None + # set to None if region_name (nullable) is None # and model_fields_set contains the field - if self.gorp_region_name is None and "gorp_region_name" in self.model_fields_set: - _dict['gorpRegionName'] = None + if self.region_name is None and "region_name" in self.model_fields_set: + _dict['regionName'] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: _dict['numberOfCountries'] = None - # set to None if gorp_comment (nullable) is None + # set to None if comment (nullable) is None # and model_fields_set contains the field - if self.gorp_comment is None and "gorp_comment" in self.model_fields_set: - _dict['gorpComment'] = None + if self.comment is None and "comment" in self.model_fields_set: + _dict['comment'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GorpGlobalApiDto from a dict""" + """Create an instance of GlobalOutlookApiDto from a dict""" if obj is None: return None @@ -113,11 +113,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "gorpDate": obj.get("gorpDate"), - "gorpRegionName": obj.get("gorpRegionName"), - "gorpTotalValue": obj.get("gorpTotalValue"), + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), "numberOfCountries": obj.get("numberOfCountries"), - "gorpComment": obj.get("gorpComment") + "comment": obj.get("comment") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/data_bridges_client/models/gorp_country_api_dto.py b/data_bridges_client/models/global_outlook_country_api_dto.py similarity index 76% rename from data_bridges_client/models/gorp_country_api_dto.py rename to data_bridges_client/models/global_outlook_country_api_dto.py index d1b335c..43944df 100644 --- a/data_bridges_client/models/gorp_country_api_dto.py +++ b/data_bridges_client/models/global_outlook_country_api_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,16 +23,16 @@ from typing import Optional, Set from typing_extensions import Self -class GorpCountryApiDto(BaseModel): +class GlobalOutlookCountryApiDto(BaseModel): """ - GorpCountryApiDto + GlobalOutlookCountryApiDto """ # noqa: E501 - gorp_date: Optional[StrictStr] = Field(default=None, alias="gorpDate") + var_date: Optional[StrictStr] = Field(default=None, alias="date") country_office_iso3: Optional[StrictStr] = Field(default=None, alias="countryOfficeIso3") - gorp_total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="gorpTotalValue") - gorp_comment: Optional[StrictStr] = Field(default=None, alias="gorpComment") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") + comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["gorpDate", "countryOfficeIso3", "gorpTotalValue", "gorpComment"] + __properties: ClassVar[List[str]] = ["date", "countryOfficeIso3", "totalValue", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GorpCountryApiDto from a JSON string""" + """Create an instance of GlobalOutlookCountryApiDto from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,26 +80,26 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if gorp_date (nullable) is None + # set to None if var_date (nullable) is None # and model_fields_set contains the field - if self.gorp_date is None and "gorp_date" in self.model_fields_set: - _dict['gorpDate'] = None + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None # set to None if country_office_iso3 (nullable) is None # and model_fields_set contains the field if self.country_office_iso3 is None and "country_office_iso3" in self.model_fields_set: _dict['countryOfficeIso3'] = None - # set to None if gorp_comment (nullable) is None + # set to None if comment (nullable) is None # and model_fields_set contains the field - if self.gorp_comment is None and "gorp_comment" in self.model_fields_set: - _dict['gorpComment'] = None + if self.comment is None and "comment" in self.model_fields_set: + _dict['comment'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GorpCountryApiDto from a dict""" + """Create an instance of GlobalOutlookCountryApiDto from a dict""" if obj is None: return None @@ -107,10 +107,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "gorpDate": obj.get("gorpDate"), + "date": obj.get("date"), "countryOfficeIso3": obj.get("countryOfficeIso3"), - "gorpTotalValue": obj.get("gorpTotalValue"), - "gorpComment": obj.get("gorpComment") + "totalValue": obj.get("totalValue"), + "comment": obj.get("comment") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/data_bridges_client/models/gorp_regional_api_dto.py b/data_bridges_client/models/global_outlook_regional_api_dto.py similarity index 71% rename from data_bridges_client/models/gorp_regional_api_dto.py rename to data_bridges_client/models/global_outlook_regional_api_dto.py index fe79f44..60b0ee5 100644 --- a/data_bridges_client/models/gorp_regional_api_dto.py +++ b/data_bridges_client/models/global_outlook_regional_api_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,17 +23,17 @@ from typing import Optional, Set from typing_extensions import Self -class GorpRegionalApiDto(BaseModel): +class GlobalOutlookRegionalApiDto(BaseModel): """ - GorpRegionalApiDto + GlobalOutlookRegionalApiDto """ # noqa: E501 - gorp_date: Optional[StrictStr] = Field(default=None, alias="gorpDate") - gorp_region_name: Optional[StrictStr] = Field(default=None, alias="gorpRegionName") - gorp_total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="gorpTotalValue") + var_date: Optional[StrictStr] = Field(default=None, alias="date") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") - gorp_comment: Optional[StrictStr] = Field(default=None, alias="gorpComment") + comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["gorpDate", "gorpRegionName", "gorpTotalValue", "numberOfCountries", "gorpComment"] + __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GorpRegionalApiDto from a JSON string""" + """Create an instance of GlobalOutlookRegionalApiDto from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,31 +81,31 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value - # set to None if gorp_date (nullable) is None + # set to None if var_date (nullable) is None # and model_fields_set contains the field - if self.gorp_date is None and "gorp_date" in self.model_fields_set: - _dict['gorpDate'] = None + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None - # set to None if gorp_region_name (nullable) is None + # set to None if region_name (nullable) is None # and model_fields_set contains the field - if self.gorp_region_name is None and "gorp_region_name" in self.model_fields_set: - _dict['gorpRegionName'] = None + if self.region_name is None and "region_name" in self.model_fields_set: + _dict['regionName'] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: _dict['numberOfCountries'] = None - # set to None if gorp_comment (nullable) is None + # set to None if comment (nullable) is None # and model_fields_set contains the field - if self.gorp_comment is None and "gorp_comment" in self.model_fields_set: - _dict['gorpComment'] = None + if self.comment is None and "comment" in self.model_fields_set: + _dict['comment'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GorpRegionalApiDto from a dict""" + """Create an instance of GlobalOutlookRegionalApiDto from a dict""" if obj is None: return None @@ -113,11 +113,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "gorpDate": obj.get("gorpDate"), - "gorpRegionName": obj.get("gorpRegionName"), - "gorpTotalValue": obj.get("gorpTotalValue"), + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), "numberOfCountries": obj.get("numberOfCountries"), - "gorpComment": obj.get("gorpComment") + "comment": obj.get("comment") }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/data_bridges_client/models/household_survey_list_dto.py b/data_bridges_client/models/household_survey_list_dto.py index da2b9ad..139efe7 100644 --- a/data_bridges_client/models/household_survey_list_dto.py +++ b/data_bridges_client/models/household_survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/household_survey_list_dto_paged_result.py b/data_bridges_client/models/household_survey_list_dto_paged_result.py index f607583..06d0cf4 100644 --- a/data_bridges_client/models/household_survey_list_dto_paged_result.py +++ b/data_bridges_client/models/household_survey_list_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto.py b/data_bridges_client/models/hunger_hot_spot_data_dto.py new file mode 100644 index 0000000..023469f --- /dev/null +++ b/data_bridges_client/models/hunger_hot_spot_data_dto.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from data_bridges_client.models.list_item_dto import ListItemDto +from typing import Optional, Set +from typing_extensions import Self + +class HungerHotSpotDataDTO(BaseModel): + """ + HungerHotSpotDataDTO + """ # noqa: E501 + iso3_code: Optional[StrictStr] = Field(default=None, alias="iso3Code") + hunger_hotspots_date: Optional[datetime] = Field(default=None, alias="hungerHotspotsDate") + category: Optional[ListItemDto] = None + indicators: Optional[List[ListItemDto]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["iso3Code", "hungerHotspotsDate", "category", "indicators"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HungerHotSpotDataDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of category + if self.category: + _dict['category'] = self.category.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) + _items = [] + if self.indicators: + for _item_indicators in self.indicators: + if _item_indicators: + _items.append(_item_indicators.to_dict()) + _dict['indicators'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if iso3_code (nullable) is None + # and model_fields_set contains the field + if self.iso3_code is None and "iso3_code" in self.model_fields_set: + _dict['iso3Code'] = None + + # set to None if indicators (nullable) is None + # and model_fields_set contains the field + if self.indicators is None and "indicators" in self.model_fields_set: + _dict['indicators'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HungerHotSpotDataDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "iso3Code": obj.get("iso3Code"), + "hungerHotspotsDate": obj.get("hungerHotspotsDate"), + "category": ListItemDto.from_dict(obj["category"]) if obj.get("category") is not None else None, + "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py new file mode 100644 index 0000000..d709f7b --- /dev/null +++ b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO +from typing import Optional, Set +from typing_extensions import Self + +class HungerHotSpotDataDTOPagedResult(BaseModel): + """ + HungerHotSpotDataDTOPagedResult + """ # noqa: E501 + items: Optional[List[HungerHotSpotDataDTO]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HungerHotSpotDataDTOPagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HungerHotSpotDataDTOPagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [HungerHotSpotDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/ipc_historical_datum_dto.py b/data_bridges_client/models/ipc_historical_datum_dto.py new file mode 100644 index 0000000..582e157 --- /dev/null +++ b/data_bridges_client/models/ipc_historical_datum_dto.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +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 IpcHistoricalDatumDto(BaseModel): + """ + IpcHistoricalDatumDto + """ # noqa: E501 + analysis_id: Optional[StrictInt] = Field(default=None, alias="analysisId") + analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") + country_name: Optional[StrictStr] = Field(default=None, alias="countryName") + analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") + start_date_current_period: Optional[datetime] = Field(default=None, alias="StartDate_CurrentPeriod") + end_date_current_period: Optional[datetime] = Field(default=None, alias="EndDate_CurrentPeriod") + start_date_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_ProjectedPeriod") + end_date_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_ProjectedPeriod") + start_date_second_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_SecondProjectedPeriod") + end_date_second_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_SecondProjectedPeriod") + population: Optional[Union[StrictFloat, StrictInt]] = None + population_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationPercentage") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + estimated_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulation") + phase1_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Population") + phase1_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Percentage") + phase2_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Population") + phase2_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Percentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationProjected") + phase3_plus_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageProjected") + estimated_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationProjected") + phase1_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationProjected") + phase1_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageProjected") + phase2_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationProjected") + phase2_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageProjected") + phase3_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationProjected") + phase3_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageProjected") + phase4_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationProjected") + phase4_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageProjected") + phase5_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationProjected") + phase5_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageProjected") + phase3_plus_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationSecondProjected") + phase3_plus_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageSecondProjected") + estimated_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationSecondProjected") + phase1_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationSecondProjected") + phase1_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageSecondProjected") + phase2_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationSecondProjected") + phase2_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageSecondProjected") + phase3_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationSecondProjected") + phase3_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageSecondProjected") + phase4_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationSecondProjected") + phase4_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageSecondProjected") + phase5_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationSecondProjected") + phase5_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageSecondProjected") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["analysisId", "analysisTitle", "iso3Alpha3", "countryName", "analysisDate", "StartDate_CurrentPeriod", "EndDate_CurrentPeriod", "StartDate_ProjectedPeriod", "EndDate_ProjectedPeriod", "StartDate_SecondProjectedPeriod", "EndDate_SecondProjectedPeriod", "population", "populationPercentage", "phase3PlusPopulation", "phase3PlusPercentage", "estimatedPopulation", "phase1Population", "phase1Percentage", "phase2Population", "phase2Percentage", "phase3Population", "phase3Percentage", "phase4Population", "phase4Percentage", "phase5Population", "phase5Percentage", "phase3PlusPopulationProjected", "phase3PlusPercentageProjected", "estimatedPopulationProjected", "phase1PopulationProjected", "phase1PercentageProjected", "phase2PopulationProjected", "phase2PercentageProjected", "phase3PopulationProjected", "phase3PercentageProjected", "phase4PopulationProjected", "phase4PercentageProjected", "phase5PopulationProjected", "phase5PercentageProjected", "phase3PlusPopulationSecondProjected", "phase3PlusPercentageSecondProjected", "estimatedPopulationSecondProjected", "phase1PopulationSecondProjected", "phase1PercentageSecondProjected", "phase2PopulationSecondProjected", "phase2PercentageSecondProjected", "phase3PopulationSecondProjected", "phase3PercentageSecondProjected", "phase4PopulationSecondProjected", "phase4PercentageSecondProjected", "phase5PopulationSecondProjected", "phase5PercentageSecondProjected"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcHistoricalDatumDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if analysis_title (nullable) is None + # and model_fields_set contains the field + if self.analysis_title is None and "analysis_title" in self.model_fields_set: + _dict['analysisTitle'] = None + + # set to None if iso3_alpha3 (nullable) is None + # and model_fields_set contains the field + if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: + _dict['iso3Alpha3'] = None + + # set to None if country_name (nullable) is None + # and model_fields_set contains the field + if self.country_name is None and "country_name" in self.model_fields_set: + _dict['countryName'] = None + + # set to None if analysis_date (nullable) is None + # and model_fields_set contains the field + if self.analysis_date is None and "analysis_date" in self.model_fields_set: + _dict['analysisDate'] = None + + # set to None if start_date_current_period (nullable) is None + # and model_fields_set contains the field + if self.start_date_current_period is None and "start_date_current_period" in self.model_fields_set: + _dict['StartDate_CurrentPeriod'] = None + + # set to None if end_date_current_period (nullable) is None + # and model_fields_set contains the field + if self.end_date_current_period is None and "end_date_current_period" in self.model_fields_set: + _dict['EndDate_CurrentPeriod'] = None + + # set to None if start_date_projected_period (nullable) is None + # and model_fields_set contains the field + if self.start_date_projected_period is None and "start_date_projected_period" in self.model_fields_set: + _dict['StartDate_ProjectedPeriod'] = None + + # set to None if end_date_projected_period (nullable) is None + # and model_fields_set contains the field + if self.end_date_projected_period is None and "end_date_projected_period" in self.model_fields_set: + _dict['EndDate_ProjectedPeriod'] = None + + # set to None if start_date_second_projected_period (nullable) is None + # and model_fields_set contains the field + if self.start_date_second_projected_period is None and "start_date_second_projected_period" in self.model_fields_set: + _dict['StartDate_SecondProjectedPeriod'] = None + + # set to None if end_date_second_projected_period (nullable) is None + # and model_fields_set contains the field + if self.end_date_second_projected_period is None and "end_date_second_projected_period" in self.model_fields_set: + _dict['EndDate_SecondProjectedPeriod'] = None + + # set to None if population (nullable) is None + # and model_fields_set contains the field + if self.population is None and "population" in self.model_fields_set: + _dict['population'] = None + + # set to None if population_percentage (nullable) is None + # and model_fields_set contains the field + if self.population_percentage is None and "population_percentage" in self.model_fields_set: + _dict['populationPercentage'] = None + + # set to None if phase3_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None + + # set to None if phase3_plus_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None + + # set to None if estimated_population (nullable) is None + # and model_fields_set contains the field + if self.estimated_population is None and "estimated_population" in self.model_fields_set: + _dict['estimatedPopulation'] = None + + # set to None if phase1_population (nullable) is None + # and model_fields_set contains the field + if self.phase1_population is None and "phase1_population" in self.model_fields_set: + _dict['phase1Population'] = None + + # set to None if phase1_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase1_percentage is None and "phase1_percentage" in self.model_fields_set: + _dict['phase1Percentage'] = None + + # set to None if phase2_population (nullable) is None + # and model_fields_set contains the field + if self.phase2_population is None and "phase2_population" in self.model_fields_set: + _dict['phase2Population'] = None + + # set to None if phase2_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase2_percentage is None and "phase2_percentage" in self.model_fields_set: + _dict['phase2Percentage'] = None + + # set to None if phase3_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None + + # set to None if phase3_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None + + # set to None if phase4_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None + + # set to None if phase4_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None + + # set to None if phase5_population (nullable) is None + # and model_fields_set contains the field + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None + + # set to None if phase5_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None + + # set to None if phase3_plus_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population_projected is None and "phase3_plus_population_projected" in self.model_fields_set: + _dict['phase3PlusPopulationProjected'] = None + + # set to None if phase3_plus_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_percentage_projected is None and "phase3_plus_percentage_projected" in self.model_fields_set: + _dict['phase3PlusPercentageProjected'] = None + + # set to None if estimated_population_projected (nullable) is None + # and model_fields_set contains the field + if self.estimated_population_projected is None and "estimated_population_projected" in self.model_fields_set: + _dict['estimatedPopulationProjected'] = None + + # set to None if phase1_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase1_population_projected is None and "phase1_population_projected" in self.model_fields_set: + _dict['phase1PopulationProjected'] = None + + # set to None if phase1_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase1_percentage_projected is None and "phase1_percentage_projected" in self.model_fields_set: + _dict['phase1PercentageProjected'] = None + + # set to None if phase2_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase2_population_projected is None and "phase2_population_projected" in self.model_fields_set: + _dict['phase2PopulationProjected'] = None + + # set to None if phase2_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase2_percentage_projected is None and "phase2_percentage_projected" in self.model_fields_set: + _dict['phase2PercentageProjected'] = None + + # set to None if phase3_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_population_projected is None and "phase3_population_projected" in self.model_fields_set: + _dict['phase3PopulationProjected'] = None + + # set to None if phase3_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_percentage_projected is None and "phase3_percentage_projected" in self.model_fields_set: + _dict['phase3PercentageProjected'] = None + + # set to None if phase4_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase4_population_projected is None and "phase4_population_projected" in self.model_fields_set: + _dict['phase4PopulationProjected'] = None + + # set to None if phase4_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase4_percentage_projected is None and "phase4_percentage_projected" in self.model_fields_set: + _dict['phase4PercentageProjected'] = None + + # set to None if phase5_population_projected (nullable) is None + # and model_fields_set contains the field + if self.phase5_population_projected is None and "phase5_population_projected" in self.model_fields_set: + _dict['phase5PopulationProjected'] = None + + # set to None if phase5_percentage_projected (nullable) is None + # and model_fields_set contains the field + if self.phase5_percentage_projected is None and "phase5_percentage_projected" in self.model_fields_set: + _dict['phase5PercentageProjected'] = None + + # set to None if phase3_plus_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population_second_projected is None and "phase3_plus_population_second_projected" in self.model_fields_set: + _dict['phase3PlusPopulationSecondProjected'] = None + + # set to None if phase3_plus_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_percentage_second_projected is None and "phase3_plus_percentage_second_projected" in self.model_fields_set: + _dict['phase3PlusPercentageSecondProjected'] = None + + # set to None if estimated_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.estimated_population_second_projected is None and "estimated_population_second_projected" in self.model_fields_set: + _dict['estimatedPopulationSecondProjected'] = None + + # set to None if phase1_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase1_population_second_projected is None and "phase1_population_second_projected" in self.model_fields_set: + _dict['phase1PopulationSecondProjected'] = None + + # set to None if phase1_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase1_percentage_second_projected is None and "phase1_percentage_second_projected" in self.model_fields_set: + _dict['phase1PercentageSecondProjected'] = None + + # set to None if phase2_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase2_population_second_projected is None and "phase2_population_second_projected" in self.model_fields_set: + _dict['phase2PopulationSecondProjected'] = None + + # set to None if phase2_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase2_percentage_second_projected is None and "phase2_percentage_second_projected" in self.model_fields_set: + _dict['phase2PercentageSecondProjected'] = None + + # set to None if phase3_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_population_second_projected is None and "phase3_population_second_projected" in self.model_fields_set: + _dict['phase3PopulationSecondProjected'] = None + + # set to None if phase3_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase3_percentage_second_projected is None and "phase3_percentage_second_projected" in self.model_fields_set: + _dict['phase3PercentageSecondProjected'] = None + + # set to None if phase4_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase4_population_second_projected is None and "phase4_population_second_projected" in self.model_fields_set: + _dict['phase4PopulationSecondProjected'] = None + + # set to None if phase4_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase4_percentage_second_projected is None and "phase4_percentage_second_projected" in self.model_fields_set: + _dict['phase4PercentageSecondProjected'] = None + + # set to None if phase5_population_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase5_population_second_projected is None and "phase5_population_second_projected" in self.model_fields_set: + _dict['phase5PopulationSecondProjected'] = None + + # set to None if phase5_percentage_second_projected (nullable) is None + # and model_fields_set contains the field + if self.phase5_percentage_second_projected is None and "phase5_percentage_second_projected" in self.model_fields_set: + _dict['phase5PercentageSecondProjected'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcHistoricalDatumDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "analysisId": obj.get("analysisId"), + "analysisTitle": obj.get("analysisTitle"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "analysisDate": obj.get("analysisDate"), + "StartDate_CurrentPeriod": obj.get("StartDate_CurrentPeriod"), + "EndDate_CurrentPeriod": obj.get("EndDate_CurrentPeriod"), + "StartDate_ProjectedPeriod": obj.get("StartDate_ProjectedPeriod"), + "EndDate_ProjectedPeriod": obj.get("EndDate_ProjectedPeriod"), + "StartDate_SecondProjectedPeriod": obj.get("StartDate_SecondProjectedPeriod"), + "EndDate_SecondProjectedPeriod": obj.get("EndDate_SecondProjectedPeriod"), + "population": obj.get("population"), + "populationPercentage": obj.get("populationPercentage"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "estimatedPopulation": obj.get("estimatedPopulation"), + "phase1Population": obj.get("phase1Population"), + "phase1Percentage": obj.get("phase1Percentage"), + "phase2Population": obj.get("phase2Population"), + "phase2Percentage": obj.get("phase2Percentage"), + "phase3Population": obj.get("phase3Population"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Population": obj.get("phase4Population"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Population": obj.get("phase5Population"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPopulationProjected": obj.get("phase3PlusPopulationProjected"), + "phase3PlusPercentageProjected": obj.get("phase3PlusPercentageProjected"), + "estimatedPopulationProjected": obj.get("estimatedPopulationProjected"), + "phase1PopulationProjected": obj.get("phase1PopulationProjected"), + "phase1PercentageProjected": obj.get("phase1PercentageProjected"), + "phase2PopulationProjected": obj.get("phase2PopulationProjected"), + "phase2PercentageProjected": obj.get("phase2PercentageProjected"), + "phase3PopulationProjected": obj.get("phase3PopulationProjected"), + "phase3PercentageProjected": obj.get("phase3PercentageProjected"), + "phase4PopulationProjected": obj.get("phase4PopulationProjected"), + "phase4PercentageProjected": obj.get("phase4PercentageProjected"), + "phase5PopulationProjected": obj.get("phase5PopulationProjected"), + "phase5PercentageProjected": obj.get("phase5PercentageProjected"), + "phase3PlusPopulationSecondProjected": obj.get("phase3PlusPopulationSecondProjected"), + "phase3PlusPercentageSecondProjected": obj.get("phase3PlusPercentageSecondProjected"), + "estimatedPopulationSecondProjected": obj.get("estimatedPopulationSecondProjected"), + "phase1PopulationSecondProjected": obj.get("phase1PopulationSecondProjected"), + "phase1PercentageSecondProjected": obj.get("phase1PercentageSecondProjected"), + "phase2PopulationSecondProjected": obj.get("phase2PopulationSecondProjected"), + "phase2PercentageSecondProjected": obj.get("phase2PercentageSecondProjected"), + "phase3PopulationSecondProjected": obj.get("phase3PopulationSecondProjected"), + "phase3PercentageSecondProjected": obj.get("phase3PercentageSecondProjected"), + "phase4PopulationSecondProjected": obj.get("phase4PopulationSecondProjected"), + "phase4PercentageSecondProjected": obj.get("phase4PercentageSecondProjected"), + "phase5PopulationSecondProjected": obj.get("phase5PopulationSecondProjected"), + "phase5PercentageSecondProjected": obj.get("phase5PercentageSecondProjected") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/view_extended_alps_value_paged_result.py b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py similarity index 89% rename from data_bridges_client/models/view_extended_alps_value_paged_result.py rename to data_bridges_client/models/ipc_historical_datum_dto_paged_result.py index d95588f..2e952f6 100644 --- a/data_bridges_client/models/view_extended_alps_value_paged_result.py +++ b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,15 +20,15 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.view_extended_alps_value import ViewExtendedAlpsValue +from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto from typing import Optional, Set from typing_extensions import Self -class ViewExtendedAlpsValuePagedResult(BaseModel): +class IpcHistoricalDatumDtoPagedResult(BaseModel): """ - ViewExtendedAlpsValuePagedResult + IpcHistoricalDatumDtoPagedResult """ # noqa: E501 - items: Optional[List[ViewExtendedAlpsValue]] = None + items: Optional[List[IpcHistoricalDatumDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") additional_properties: Dict[str, Any] = {} @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ViewExtendedAlpsValuePagedResult from a JSON string""" + """Create an instance of IpcHistoricalDatumDtoPagedResult from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -98,7 +98,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ViewExtendedAlpsValuePagedResult from a dict""" + """Create an instance of IpcHistoricalDatumDtoPagedResult from a dict""" if obj is None: return None @@ -106,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "items": [ViewExtendedAlpsValue.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [IpcHistoricalDatumDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "page": obj.get("page"), "totalItems": obj.get("totalItems") }) diff --git a/data_bridges_client/models/ipc_value.py b/data_bridges_client/models/ipc_value.py deleted file mode 100644 index 016369a..0000000 --- a/data_bridges_client/models/ipc_value.py +++ /dev/null @@ -1,270 +0,0 @@ -# coding: utf-8 - -""" - VAM-Data-Bridges - - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - The version of the OpenAPI document: 6.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Optional, Set -from typing_extensions import Self - -class IpcValue(BaseModel): - """ - IpcValue - """ # noqa: E501 - ipc_id: Optional[StrictInt] = Field(default=None, alias="ipcId") - ipc_year: Optional[StrictInt] = Field(default=None, alias="ipcYear") - ipc_update_date: Optional[datetime] = Field(default=None, alias="ipcUpdateDate") - iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") - ipc_country_name: Optional[StrictStr] = Field(default=None, alias="ipcCountryName") - ipc_area_name: Optional[StrictStr] = Field(default=None, alias="ipcAreaName") - ipc_phase3_population: Optional[StrictInt] = Field(default=None, alias="ipcPhase3Population") - ipc_phase4_population: Optional[StrictInt] = Field(default=None, alias="ipcPhase4Population") - ipc_phase5_population: Optional[StrictInt] = Field(default=None, alias="ipcPhase5Population") - ipc_phase35population: Optional[StrictInt] = Field(default=None, alias="ipcPhase35population") - ipc_phase45population: Optional[StrictInt] = Field(default=None, alias="ipcPhase45population") - ipc_phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcPhase3Percentage") - ipc_phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcPhase4Percentage") - ipc_phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcPhase5Percentage") - ipc_phase35percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcPhase35percentage") - ipc_phase45percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcPhase45percentage") - ipc_analysed_population: Optional[StrictInt] = Field(default=None, alias="ipcAnalysedPopulation") - ipc_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="ipcAnalysedPercentage") - ipc_analysis_comment: Optional[StrictStr] = Field(default=None, alias="ipcAnalysisComment") - ipc_data_type: Optional[StrictStr] = Field(default=None, alias="ipcDataType") - ipc_data_source: Optional[StrictStr] = Field(default=None, alias="ipcDataSource") - ipc_reference_period: Optional[StrictStr] = Field(default=None, alias="ipcReferencePeriod") - ipc_create_date: Optional[datetime] = Field(default=None, alias="ipcCreateDate") - ipc_show_on_data_viz: Optional[StrictBool] = Field(default=None, alias="ipcShowOnDataViz") - ipc_is_latest_value: Optional[StrictBool] = Field(default=None, alias="ipcIsLatestValue") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["ipcId", "ipcYear", "ipcUpdateDate", "iso3Alpha3", "ipcCountryName", "ipcAreaName", "ipcPhase3Population", "ipcPhase4Population", "ipcPhase5Population", "ipcPhase35population", "ipcPhase45population", "ipcPhase3Percentage", "ipcPhase4Percentage", "ipcPhase5Percentage", "ipcPhase35percentage", "ipcPhase45percentage", "ipcAnalysedPopulation", "ipcAnalysedPercentage", "ipcAnalysisComment", "ipcDataType", "ipcDataSource", "ipcReferencePeriod", "ipcCreateDate", "ipcShowOnDataViz", "ipcIsLatestValue"] - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IpcValue from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * Fields in `self.additional_properties` are added to the output dict. - """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # puts key-value pairs in additional_properties in the top level - if self.additional_properties is not None: - for _key, _value in self.additional_properties.items(): - _dict[_key] = _value - - # set to None if ipc_year (nullable) is None - # and model_fields_set contains the field - if self.ipc_year is None and "ipc_year" in self.model_fields_set: - _dict['ipcYear'] = None - - # set to None if ipc_update_date (nullable) is None - # and model_fields_set contains the field - if self.ipc_update_date is None and "ipc_update_date" in self.model_fields_set: - _dict['ipcUpdateDate'] = None - - # set to None if iso3_alpha3 (nullable) is None - # and model_fields_set contains the field - if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None - - # set to None if ipc_country_name (nullable) is None - # and model_fields_set contains the field - if self.ipc_country_name is None and "ipc_country_name" in self.model_fields_set: - _dict['ipcCountryName'] = None - - # set to None if ipc_area_name (nullable) is None - # and model_fields_set contains the field - if self.ipc_area_name is None and "ipc_area_name" in self.model_fields_set: - _dict['ipcAreaName'] = None - - # set to None if ipc_phase3_population (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase3_population is None and "ipc_phase3_population" in self.model_fields_set: - _dict['ipcPhase3Population'] = None - - # set to None if ipc_phase4_population (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase4_population is None and "ipc_phase4_population" in self.model_fields_set: - _dict['ipcPhase4Population'] = None - - # set to None if ipc_phase5_population (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase5_population is None and "ipc_phase5_population" in self.model_fields_set: - _dict['ipcPhase5Population'] = None - - # set to None if ipc_phase35population (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase35population is None and "ipc_phase35population" in self.model_fields_set: - _dict['ipcPhase35population'] = None - - # set to None if ipc_phase45population (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase45population is None and "ipc_phase45population" in self.model_fields_set: - _dict['ipcPhase45population'] = None - - # set to None if ipc_phase3_percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase3_percentage is None and "ipc_phase3_percentage" in self.model_fields_set: - _dict['ipcPhase3Percentage'] = None - - # set to None if ipc_phase4_percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase4_percentage is None and "ipc_phase4_percentage" in self.model_fields_set: - _dict['ipcPhase4Percentage'] = None - - # set to None if ipc_phase5_percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase5_percentage is None and "ipc_phase5_percentage" in self.model_fields_set: - _dict['ipcPhase5Percentage'] = None - - # set to None if ipc_phase35percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase35percentage is None and "ipc_phase35percentage" in self.model_fields_set: - _dict['ipcPhase35percentage'] = None - - # set to None if ipc_phase45percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_phase45percentage is None and "ipc_phase45percentage" in self.model_fields_set: - _dict['ipcPhase45percentage'] = None - - # set to None if ipc_analysed_population (nullable) is None - # and model_fields_set contains the field - if self.ipc_analysed_population is None and "ipc_analysed_population" in self.model_fields_set: - _dict['ipcAnalysedPopulation'] = None - - # set to None if ipc_analysed_percentage (nullable) is None - # and model_fields_set contains the field - if self.ipc_analysed_percentage is None and "ipc_analysed_percentage" in self.model_fields_set: - _dict['ipcAnalysedPercentage'] = None - - # set to None if ipc_analysis_comment (nullable) is None - # and model_fields_set contains the field - if self.ipc_analysis_comment is None and "ipc_analysis_comment" in self.model_fields_set: - _dict['ipcAnalysisComment'] = None - - # set to None if ipc_data_type (nullable) is None - # and model_fields_set contains the field - if self.ipc_data_type is None and "ipc_data_type" in self.model_fields_set: - _dict['ipcDataType'] = None - - # set to None if ipc_data_source (nullable) is None - # and model_fields_set contains the field - if self.ipc_data_source is None and "ipc_data_source" in self.model_fields_set: - _dict['ipcDataSource'] = None - - # set to None if ipc_reference_period (nullable) is None - # and model_fields_set contains the field - if self.ipc_reference_period is None and "ipc_reference_period" in self.model_fields_set: - _dict['ipcReferencePeriod'] = None - - # set to None if ipc_create_date (nullable) is None - # and model_fields_set contains the field - if self.ipc_create_date is None and "ipc_create_date" in self.model_fields_set: - _dict['ipcCreateDate'] = None - - # set to None if ipc_show_on_data_viz (nullable) is None - # and model_fields_set contains the field - if self.ipc_show_on_data_viz is None and "ipc_show_on_data_viz" in self.model_fields_set: - _dict['ipcShowOnDataViz'] = None - - # set to None if ipc_is_latest_value (nullable) is None - # and model_fields_set contains the field - if self.ipc_is_latest_value is None and "ipc_is_latest_value" in self.model_fields_set: - _dict['ipcIsLatestValue'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IpcValue from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "ipcId": obj.get("ipcId"), - "ipcYear": obj.get("ipcYear"), - "ipcUpdateDate": obj.get("ipcUpdateDate"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "ipcCountryName": obj.get("ipcCountryName"), - "ipcAreaName": obj.get("ipcAreaName"), - "ipcPhase3Population": obj.get("ipcPhase3Population"), - "ipcPhase4Population": obj.get("ipcPhase4Population"), - "ipcPhase5Population": obj.get("ipcPhase5Population"), - "ipcPhase35population": obj.get("ipcPhase35population"), - "ipcPhase45population": obj.get("ipcPhase45population"), - "ipcPhase3Percentage": obj.get("ipcPhase3Percentage"), - "ipcPhase4Percentage": obj.get("ipcPhase4Percentage"), - "ipcPhase5Percentage": obj.get("ipcPhase5Percentage"), - "ipcPhase35percentage": obj.get("ipcPhase35percentage"), - "ipcPhase45percentage": obj.get("ipcPhase45percentage"), - "ipcAnalysedPopulation": obj.get("ipcAnalysedPopulation"), - "ipcAnalysedPercentage": obj.get("ipcAnalysedPercentage"), - "ipcAnalysisComment": obj.get("ipcAnalysisComment"), - "ipcDataType": obj.get("ipcDataType"), - "ipcDataSource": obj.get("ipcDataSource"), - "ipcReferencePeriod": obj.get("ipcReferencePeriod"), - "ipcCreateDate": obj.get("ipcCreateDate"), - "ipcShowOnDataViz": obj.get("ipcShowOnDataViz"), - "ipcIsLatestValue": obj.get("ipcIsLatestValue") - }) - # store additional fields in additional_properties - for _key in obj.keys(): - if _key not in cls.__properties: - _obj.additional_properties[_key] = obj.get(_key) - - return _obj - - diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py new file mode 100644 index 0000000..a27e563 --- /dev/null +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 IpcchAndEquivalentPeaksDTO(BaseModel): + """ + IpcchAndEquivalentPeaksDTO + """ # noqa: E501 + regional_bureau_id: Optional[StrictInt] = Field(default=None, alias="regionalBureauID") + regional_bureau_name: Optional[StrictStr] = Field(default=None, alias="regionalBureauName") + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") + country_name: Optional[StrictStr] = Field(default=None, alias="countryName") + phase3_population: Optional[StrictInt] = Field(default=None, alias="phase3Population") + phase4_population: Optional[StrictInt] = Field(default=None, alias="phase4Population") + phase5_population: Optional[StrictInt] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[StrictInt] = Field(default=None, alias="phase3PlusPopulation") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["regionalBureauID", "regionalBureauName", "iso3Alpha3", "countryName", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcchAndEquivalentPeaksDTO from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if regional_bureau_id (nullable) is None + # and model_fields_set contains the field + if self.regional_bureau_id is None and "regional_bureau_id" in self.model_fields_set: + _dict['regionalBureauID'] = None + + # set to None if regional_bureau_name (nullable) is None + # and model_fields_set contains the field + if self.regional_bureau_name is None and "regional_bureau_name" in self.model_fields_set: + _dict['regionalBureauName'] = None + + # set to None if iso3_alpha3 (nullable) is None + # and model_fields_set contains the field + if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: + _dict['iso3Alpha3'] = None + + # set to None if country_name (nullable) is None + # and model_fields_set contains the field + if self.country_name is None and "country_name" in self.model_fields_set: + _dict['countryName'] = None + + # set to None if phase3_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None + + # set to None if phase4_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None + + # set to None if phase5_population (nullable) is None + # and model_fields_set contains the field + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None + + # set to None if phase3_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcchAndEquivalentPeaksDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "regionalBureauID": obj.get("regionalBureauID"), + "regionalBureauName": obj.get("regionalBureauName"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py new file mode 100644 index 0000000..362cad9 --- /dev/null +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from typing import Optional, Set +from typing_extensions import Self + +class IpcchAndEquivalentPeaksDTOPagedResult(BaseModel): + """ + IpcchAndEquivalentPeaksDTOPagedResult + """ # noqa: E501 + items: Optional[List[IpcchAndEquivalentPeaksDTO]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcchAndEquivalentPeaksDTOPagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcchAndEquivalentPeaksDTOPagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [IpcchAndEquivalentPeaksDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/ipcch_base_dto.py b/data_bridges_client/models/ipcch_base_dto.py new file mode 100644 index 0000000..134699d --- /dev/null +++ b/data_bridges_client/models/ipcch_base_dto.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +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 IpcchBaseDto(BaseModel): + """ + IpcchBaseDto + """ # noqa: E501 + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") + country_name: Optional[StrictStr] = Field(default=None, alias="countryName") + population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") + population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") + analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") + analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") + period_start: Optional[datetime] = Field(default=None, alias="periodStart") + period_end: Optional[datetime] = Field(default=None, alias="periodEnd") + period_type: Optional[StrictStr] = Field(default=None, alias="periodType") + population: Optional[Union[StrictFloat, StrictInt]] = None + population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") + data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcchBaseDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if iso3_alpha3 (nullable) is None + # and model_fields_set contains the field + if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: + _dict['iso3Alpha3'] = None + + # set to None if country_name (nullable) is None + # and model_fields_set contains the field + if self.country_name is None and "country_name" in self.model_fields_set: + _dict['countryName'] = None + + # set to None if population_group_name (nullable) is None + # and model_fields_set contains the field + if self.population_group_name is None and "population_group_name" in self.model_fields_set: + _dict['populationGroupName'] = None + + # set to None if analysis_title (nullable) is None + # and model_fields_set contains the field + if self.analysis_title is None and "analysis_title" in self.model_fields_set: + _dict['analysisTitle'] = None + + # set to None if analysis_date (nullable) is None + # and model_fields_set contains the field + if self.analysis_date is None and "analysis_date" in self.model_fields_set: + _dict['analysisDate'] = None + + # set to None if period_start (nullable) is None + # and model_fields_set contains the field + if self.period_start is None and "period_start" in self.model_fields_set: + _dict['periodStart'] = None + + # set to None if period_end (nullable) is None + # and model_fields_set contains the field + if self.period_end is None and "period_end" in self.model_fields_set: + _dict['periodEnd'] = None + + # set to None if period_type (nullable) is None + # and model_fields_set contains the field + if self.period_type is None and "period_type" in self.model_fields_set: + _dict['periodType'] = None + + # set to None if population (nullable) is None + # and model_fields_set contains the field + if self.population is None and "population" in self.model_fields_set: + _dict['population'] = None + + # set to None if population_analysed (nullable) is None + # and model_fields_set contains the field + if self.population_analysed is None and "population_analysed" in self.model_fields_set: + _dict['populationAnalysed'] = None + + # set to None if population_analysed_percentage (nullable) is None + # and model_fields_set contains the field + if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: + _dict['populationAnalysedPercentage'] = None + + # set to None if phase3_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None + + # set to None if phase4_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None + + # set to None if phase5_population (nullable) is None + # and model_fields_set contains the field + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None + + # set to None if phase3_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None + + # set to None if phase4_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: + _dict['phase4PlusPopulation'] = None + + # set to None if phase3_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None + + # set to None if phase4_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None + + # set to None if phase5_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None + + # set to None if phase3_plus_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None + + # set to None if phase4_plus_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: + _dict['phase4PlusPercentage'] = None + + # set to None if data_source (nullable) is None + # and model_fields_set contains the field + if self.data_source is None and "data_source" in self.model_fields_set: + _dict['dataSource'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcchBaseDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/ipc_value_paged_result.py b/data_bridges_client/models/ipcch_base_dto_paged_result.py similarity index 88% rename from data_bridges_client/models/ipc_value_paged_result.py rename to data_bridges_client/models/ipcch_base_dto_paged_result.py index 33049b5..cc2ca2b 100644 --- a/data_bridges_client/models/ipc_value_paged_result.py +++ b/data_bridges_client/models/ipcch_base_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,15 +20,15 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.ipc_value import IpcValue +from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto from typing import Optional, Set from typing_extensions import Self -class IpcValuePagedResult(BaseModel): +class IpcchBaseDtoPagedResult(BaseModel): """ - IpcValuePagedResult + IpcchBaseDtoPagedResult """ # noqa: E501 - items: Optional[List[IpcValue]] = None + items: Optional[List[IpcchBaseDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") additional_properties: Dict[str, Any] = {} @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IpcValuePagedResult from a JSON string""" + """Create an instance of IpcchBaseDtoPagedResult from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -98,7 +98,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IpcValuePagedResult from a dict""" + """Create an instance of IpcchBaseDtoPagedResult from a dict""" if obj is None: return None @@ -106,7 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "items": [IpcValue.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "items": [IpcchBaseDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, "page": obj.get("page"), "totalItems": obj.get("totalItems") }) diff --git a/data_bridges_client/models/ipcch_peaks_dto.py b/data_bridges_client/models/ipcch_peaks_dto.py new file mode 100644 index 0000000..abdcf69 --- /dev/null +++ b/data_bridges_client/models/ipcch_peaks_dto.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +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 IpcchPeaksDto(BaseModel): + """ + IpcchPeaksDto + """ # noqa: E501 + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") + country_name: Optional[StrictStr] = Field(default=None, alias="countryName") + population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") + population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") + analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") + analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") + period_start: Optional[datetime] = Field(default=None, alias="periodStart") + period_end: Optional[datetime] = Field(default=None, alias="periodEnd") + period_type: Optional[StrictStr] = Field(default=None, alias="periodType") + population: Optional[Union[StrictFloat, StrictInt]] = None + population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") + data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") + reference_year: Optional[StrictInt] = Field(default=None, alias="referenceYear") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource", "referenceYear"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcchPeaksDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if iso3_alpha3 (nullable) is None + # and model_fields_set contains the field + if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: + _dict['iso3Alpha3'] = None + + # set to None if country_name (nullable) is None + # and model_fields_set contains the field + if self.country_name is None and "country_name" in self.model_fields_set: + _dict['countryName'] = None + + # set to None if population_group_name (nullable) is None + # and model_fields_set contains the field + if self.population_group_name is None and "population_group_name" in self.model_fields_set: + _dict['populationGroupName'] = None + + # set to None if analysis_title (nullable) is None + # and model_fields_set contains the field + if self.analysis_title is None and "analysis_title" in self.model_fields_set: + _dict['analysisTitle'] = None + + # set to None if analysis_date (nullable) is None + # and model_fields_set contains the field + if self.analysis_date is None and "analysis_date" in self.model_fields_set: + _dict['analysisDate'] = None + + # set to None if period_start (nullable) is None + # and model_fields_set contains the field + if self.period_start is None and "period_start" in self.model_fields_set: + _dict['periodStart'] = None + + # set to None if period_end (nullable) is None + # and model_fields_set contains the field + if self.period_end is None and "period_end" in self.model_fields_set: + _dict['periodEnd'] = None + + # set to None if period_type (nullable) is None + # and model_fields_set contains the field + if self.period_type is None and "period_type" in self.model_fields_set: + _dict['periodType'] = None + + # set to None if population (nullable) is None + # and model_fields_set contains the field + if self.population is None and "population" in self.model_fields_set: + _dict['population'] = None + + # set to None if population_analysed (nullable) is None + # and model_fields_set contains the field + if self.population_analysed is None and "population_analysed" in self.model_fields_set: + _dict['populationAnalysed'] = None + + # set to None if population_analysed_percentage (nullable) is None + # and model_fields_set contains the field + if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: + _dict['populationAnalysedPercentage'] = None + + # set to None if phase3_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None + + # set to None if phase4_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None + + # set to None if phase5_population (nullable) is None + # and model_fields_set contains the field + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None + + # set to None if phase3_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None + + # set to None if phase4_plus_population (nullable) is None + # and model_fields_set contains the field + if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: + _dict['phase4PlusPopulation'] = None + + # set to None if phase3_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None + + # set to None if phase4_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None + + # set to None if phase5_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None + + # set to None if phase3_plus_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None + + # set to None if phase4_plus_percentage (nullable) is None + # and model_fields_set contains the field + if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: + _dict['phase4PlusPercentage'] = None + + # set to None if data_source (nullable) is None + # and model_fields_set contains the field + if self.data_source is None and "data_source" in self.model_fields_set: + _dict['dataSource'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcchPeaksDto from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource"), + "referenceYear": obj.get("referenceYear") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/ipcch_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py new file mode 100644 index 0000000..2328d38 --- /dev/null +++ b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto +from typing import Optional, Set +from typing_extensions import Self + +class IpcchPeaksDtoPagedResult(BaseModel): + """ + IpcchPeaksDtoPagedResult + """ # noqa: E501 + items: Optional[List[IpcchPeaksDto]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IpcchPeaksDtoPagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IpcchPeaksDtoPagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [IpcchPeaksDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/key_name_dto.py b/data_bridges_client/models/key_name_dto.py index 33bcbee..5faf2ca 100644 --- a/data_bridges_client/models/key_name_dto.py +++ b/data_bridges_client/models/key_name_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/list_item_dto.py b/data_bridges_client/models/list_item_dto.py new file mode 100644 index 0000000..9a49452 --- /dev/null +++ b/data_bridges_client/models/list_item_dto.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListItemDto(BaseModel): + """ + ListItemDto + """ # noqa: E501 + id: Optional[StrictInt] = None + name: Optional[StrictStr] + label: Optional[StrictStr] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name", "label"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListItemDto from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if name (nullable) is None + # and model_fields_set contains the field + if self.name is None and "name" in self.model_fields_set: + _dict['name'] = None + + # set to None if label (nullable) is None + # and model_fields_set contains the field + if self.label is None and "label" in self.model_fields_set: + _dict['label'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListItemDto 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"), + "label": obj.get("label") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/market_dto.py b/data_bridges_client/models/market_dto.py index 6e7f419..15ba568 100644 --- a/data_bridges_client/models/market_dto.py +++ b/data_bridges_client/models/market_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/market_geo_json_root.py b/data_bridges_client/models/market_geo_json_root.py index b3ee011..455eeaa 100644 --- a/data_bridges_client/models/market_geo_json_root.py +++ b/data_bridges_client/models/market_geo_json_root.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/mfi_processed_data_dto.py b/data_bridges_client/models/mfi_processed_data_dto.py index 697a667..8b707e2 100644 --- a/data_bridges_client/models/mfi_processed_data_dto.py +++ b/data_bridges_client/models/mfi_processed_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/nearby_markets_dto.py b/data_bridges_client/models/nearby_markets_dto.py index e241704..816d070 100644 --- a/data_bridges_client/models/nearby_markets_dto.py +++ b/data_bridges_client/models/nearby_markets_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_commodity_list_dto.py b/data_bridges_client/models/paged_commodity_list_dto.py index 99a1621..9d5f5b1 100644 --- a/data_bridges_client/models/paged_commodity_list_dto.py +++ b/data_bridges_client/models/paged_commodity_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_commodity_price_list_dto.py b/data_bridges_client/models/paged_commodity_price_list_dto.py index 475b3c8..9a52216 100644 --- a/data_bridges_client/models/paged_commodity_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_price_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py index f6d6491..6e9ae72 100644 --- a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_currency_list_dto.py b/data_bridges_client/models/paged_currency_list_dto.py index f154e65..70dbe8f 100644 --- a/data_bridges_client/models/paged_currency_list_dto.py +++ b/data_bridges_client/models/paged_currency_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_economic_data_dto.py b/data_bridges_client/models/paged_economic_data_dto.py index dfe63fb..ae50d86 100644 --- a/data_bridges_client/models/paged_economic_data_dto.py +++ b/data_bridges_client/models/paged_economic_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_market_list_dto.py b/data_bridges_client/models/paged_market_list_dto.py index 0d376cf..4cea267 100644 --- a/data_bridges_client/models/paged_market_list_dto.py +++ b/data_bridges_client/models/paged_market_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_processed_data_dto.py b/data_bridges_client/models/paged_processed_data_dto.py index 8aa1458..da9e1aa 100644 --- a/data_bridges_client/models/paged_processed_data_dto.py +++ b/data_bridges_client/models/paged_processed_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_survey_list_dto.py b/data_bridges_client/models/paged_survey_list_dto.py index a611a5e..587fb36 100644 --- a/data_bridges_client/models/paged_survey_list_dto.py +++ b/data_bridges_client/models/paged_survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_survey_responses_dto.py b/data_bridges_client/models/paged_survey_responses_dto.py index 1edcbbc..29d73bd 100644 --- a/data_bridges_client/models/paged_survey_responses_dto.py +++ b/data_bridges_client/models/paged_survey_responses_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/paged_xls_form_list_dto.py b/data_bridges_client/models/paged_xls_form_list_dto.py index f6e0dc4..0dec87a 100644 --- a/data_bridges_client/models/paged_xls_form_list_dto.py +++ b/data_bridges_client/models/paged_xls_form_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/problem_details.py b/data_bridges_client/models/problem_details.py index 0a7192f..225c7ba 100644 --- a/data_bridges_client/models/problem_details.py +++ b/data_bridges_client/models/problem_details.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/properties.py b/data_bridges_client/models/properties.py index c5ad823..297eccf 100644 --- a/data_bridges_client/models/properties.py +++ b/data_bridges_client/models/properties.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/rpme_assessment.py b/data_bridges_client/models/rpme_assessment.py index f3cb632..7c5ce11 100644 --- a/data_bridges_client/models/rpme_assessment.py +++ b/data_bridges_client/models/rpme_assessment.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/rpme_assessment_paged_result.py b/data_bridges_client/models/rpme_assessment_paged_result.py index 202a59a..5826672 100644 --- a/data_bridges_client/models/rpme_assessment_paged_result.py +++ b/data_bridges_client/models/rpme_assessment_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/rpme_output_values.py b/data_bridges_client/models/rpme_output_values.py index 9936719..b25e1ad 100644 --- a/data_bridges_client/models/rpme_output_values.py +++ b/data_bridges_client/models/rpme_output_values.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/rpme_variable.py b/data_bridges_client/models/rpme_variable.py index 230070f..4803624 100644 --- a/data_bridges_client/models/rpme_variable.py +++ b/data_bridges_client/models/rpme_variable.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/rpme_variable_paged_result.py b/data_bridges_client/models/rpme_variable_paged_result.py index c408fed..8e1b166 100644 --- a/data_bridges_client/models/rpme_variable_paged_result.py +++ b/data_bridges_client/models/rpme_variable_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/survey_list_dto.py b/data_bridges_client/models/survey_list_dto.py index 15d23c4..8b18855 100644 --- a/data_bridges_client/models/survey_list_dto.py +++ b/data_bridges_client/models/survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/usd_indirect_quotation.py b/data_bridges_client/models/usd_indirect_quotation.py index c8a0d8b..ff2ae41 100644 --- a/data_bridges_client/models/usd_indirect_quotation.py +++ b/data_bridges_client/models/usd_indirect_quotation.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/usd_indirect_quotation_paged_result.py b/data_bridges_client/models/usd_indirect_quotation_paged_result.py index 47204a0..51d1099 100644 --- a/data_bridges_client/models/usd_indirect_quotation_paged_result.py +++ b/data_bridges_client/models/usd_indirect_quotation_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/view_extended_aggregated_price.py b/data_bridges_client/models/view_extended_monthly_aggregated_price.py similarity index 91% rename from data_bridges_client/models/view_extended_aggregated_price.py rename to data_bridges_client/models/view_extended_monthly_aggregated_price.py index 1fc00f4..17c3cf1 100644 --- a/data_bridges_client/models/view_extended_aggregated_price.py +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,15 +24,15 @@ from typing import Optional, Set from typing_extensions import Self -class ViewExtendedAggregatedPrice(BaseModel): +class ViewExtendedMonthlyAggregatedPrice(BaseModel): """ - ViewExtendedAggregatedPrice + ViewExtendedMonthlyAggregatedPrice """ # noqa: E501 - commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityID") - market_id: Optional[StrictInt] = Field(default=None, alias="marketID") - price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeID") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitID") - currency_id: Optional[StrictInt] = Field(default=None, alias="currencyID") + commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") + market_id: Optional[StrictInt] = Field(default=None, alias="marketId") + price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") @@ -43,7 +43,7 @@ class ViewExtendedAggregatedPrice(BaseModel): price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") + country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") @@ -51,7 +51,7 @@ class ViewExtendedAggregatedPrice(BaseModel): commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityID", "marketID", "priceTypeID", "commodityUnitID", "currencyID", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryISO3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -71,7 +71,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ViewExtendedAggregatedPrice from a JSON string""" + """Create an instance of ViewExtendedMonthlyAggregatedPrice from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -152,7 +152,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryISO3'] = None + _dict['countryIso3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field @@ -188,7 +188,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ViewExtendedAggregatedPrice from a dict""" + """Create an instance of ViewExtendedMonthlyAggregatedPrice from a dict""" if obj is None: return None @@ -196,11 +196,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "commodityID": obj.get("commodityID"), - "marketID": obj.get("marketID"), - "priceTypeID": obj.get("priceTypeID"), - "commodityUnitID": obj.get("commodityUnitID"), - "currencyID": obj.get("currencyID"), + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), "adm0Code": obj.get("adm0Code"), "commodityDateWeek": obj.get("commodityDateWeek"), "commodityDateMonth": obj.get("commodityDateMonth"), @@ -211,7 +211,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "priceTypeName": obj.get("priceTypeName"), "commodityUnitName": obj.get("commodityUnitName"), "currencyName": obj.get("currencyName"), - "countryISO3": obj.get("countryISO3"), + "countryIso3": obj.get("countryIso3"), "countryName": obj.get("countryName"), "commodityPriceSourceName": obj.get("commodityPriceSourceName"), "originalFrequency": obj.get("originalFrequency"), diff --git a/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py new file mode 100644 index 0000000..e74c987 --- /dev/null +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # 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 data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from typing import Optional, Set +from typing_extensions import Self + +class ViewExtendedMonthlyAggregatedPricePagedResult(BaseModel): + """ + ViewExtendedMonthlyAggregatedPricePagedResult + """ # noqa: E501 + items: Optional[List[ViewExtendedMonthlyAggregatedPrice]] = None + page: Optional[StrictInt] = None + total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["items", "page", "totalItems"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ViewExtendedMonthlyAggregatedPricePagedResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in items (list) + _items = [] + if self.items: + for _item_items in self.items: + if _item_items: + _items.append(_item_items.to_dict()) + _dict['items'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if items (nullable) is None + # and model_fields_set contains the field + if self.items is None and "items" in self.model_fields_set: + _dict['items'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ViewExtendedMonthlyAggregatedPricePagedResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "items": [ViewExtendedMonthlyAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/data_bridges_client/models/weekly_aggregated_price.py b/data_bridges_client/models/weekly_aggregated_price.py index 3888ab4..c1e64f6 100644 --- a/data_bridges_client/models/weekly_aggregated_price.py +++ b/data_bridges_client/models/weekly_aggregated_price.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,24 +33,25 @@ class WeeklyAggregatedPrice(BaseModel): price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") + adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") + commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") + commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") + commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") + commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") - country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") + country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") - original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") + original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") - commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") - commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") - commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "adm0Code", "countryISO3", "countryName", "commodityPrice", "originalFrequency", "commodityPriceSourceName", "commodityPriceObservations", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityPriceFlag"] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +99,26 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if commodity_date_week (nullable) is None + # and model_fields_set contains the field + if self.commodity_date_week is None and "commodity_date_week" in self.model_fields_set: + _dict['commodityDateWeek'] = None + + # set to None if commodity_date_month (nullable) is None + # and model_fields_set contains the field + if self.commodity_date_month is None and "commodity_date_month" in self.model_fields_set: + _dict['commodityDateMonth'] = None + + # set to None if commodity_date_year (nullable) is None + # and model_fields_set contains the field + if self.commodity_date_year is None and "commodity_date_year" in self.model_fields_set: + _dict['commodityDateYear'] = None + + # set to None if commodity_price_date (nullable) is None + # and model_fields_set contains the field + if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: + _dict['commodityPriceDate'] = None + # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: @@ -126,22 +147,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryISO3'] = None + _dict['countryIso3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: _dict['countryName'] = None + # set to None if commodity_price_source_name (nullable) is None + # and model_fields_set contains the field + if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: + _dict['commodityPriceSourceName'] = None + # set to None if original_frequency (nullable) is None # and model_fields_set contains the field if self.original_frequency is None and "original_frequency" in self.model_fields_set: _dict['originalFrequency'] = None - # set to None if commodity_price_source_name (nullable) is None + # set to None if commodity_price (nullable) is None # and model_fields_set contains the field - if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: - _dict['commodityPriceSourceName'] = None + if self.commodity_price is None and "commodity_price" in self.model_fields_set: + _dict['commodityPrice'] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field @@ -170,21 +196,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "priceTypeId": obj.get("priceTypeId"), "commodityUnitId": obj.get("commodityUnitId"), "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "commodityDateWeek": obj.get("commodityDateWeek"), + "commodityDateMonth": obj.get("commodityDateMonth"), + "commodityDateYear": obj.get("commodityDateYear"), + "commodityPriceDate": obj.get("commodityPriceDate"), "commodityName": obj.get("commodityName"), "marketName": obj.get("marketName"), "priceTypeName": obj.get("priceTypeName"), "commodityUnitName": obj.get("commodityUnitName"), "currencyName": obj.get("currencyName"), - "adm0Code": obj.get("adm0Code"), - "countryISO3": obj.get("countryISO3"), + "countryIso3": obj.get("countryIso3"), "countryName": obj.get("countryName"), - "commodityPrice": obj.get("commodityPrice"), - "originalFrequency": obj.get("originalFrequency"), "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "originalFrequency": obj.get("originalFrequency"), + "commodityPrice": obj.get("commodityPrice"), "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityDateMonth": obj.get("commodityDateMonth"), - "commodityDateYear": obj.get("commodityDateYear"), - "commodityPriceDate": obj.get("commodityPriceDate"), "commodityPriceFlag": obj.get("commodityPriceFlag") }) # store additional fields in additional_properties diff --git a/data_bridges_client/models/xls_form_definition_new_schema_dto.py b/data_bridges_client/models/xls_form_definition_new_schema_dto.py index 75ceae3..57a4684 100644 --- a/data_bridges_client/models/xls_form_definition_new_schema_dto.py +++ b/data_bridges_client/models/xls_form_definition_new_schema_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/xls_form_dto.py b/data_bridges_client/models/xls_form_dto.py index e3a8e94..61299fe 100644 --- a/data_bridges_client/models/xls_form_dto.py +++ b/data_bridges_client/models/xls_form_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/xls_form_fields_dto.py b/data_bridges_client/models/xls_form_fields_dto.py index 4a50df3..dfb1343 100644 --- a/data_bridges_client/models/xls_form_fields_dto.py +++ b/data_bridges_client/models/xls_form_fields_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/xls_form_list_choice_dto.py b/data_bridges_client/models/xls_form_list_choice_dto.py index 4598327..0efe100 100644 --- a/data_bridges_client/models/xls_form_list_choice_dto.py +++ b/data_bridges_client/models/xls_form_list_choice_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/models/xls_form_list_choices_dto.py b/data_bridges_client/models/xls_form_list_choices_dto.py index 130582d..93e9c8c 100644 --- a/data_bridges_client/models/xls_form_list_choices_dto.py +++ b/data_bridges_client/models/xls_form_list_choices_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/data_bridges_client/rest.py b/data_bridges_client/rest.py index 1696c81..52e0bd6 100644 --- a/data_bridges_client/rest.py +++ b/data_bridges_client/rest.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/docs/CariAdm0ValuesDTO.md b/docs/CariAdm0ValuesDTO.md new file mode 100644 index 0000000..8a7b82b --- /dev/null +++ b/docs/CariAdm0ValuesDTO.md @@ -0,0 +1,39 @@ +# CariAdm0ValuesDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | | [optional] +**survey_name** | **str** | | [optional] +**cari_methodology_name** | **str** | | [optional] +**fcs_methodology_name** | **str** | | [optional] +**additional_survey_metadata** | **str** | | [optional] +**adm0_code** | **int** | | [optional] +**adm0_name** | **str** | | [optional] +**cari_indicator_id** | **int** | | [optional] +**cari_indicator_name** | **str** | | [optional] +**cari_indicator_category_id** | **int** | | [optional] +**indicator_category_label** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CariAdm0ValuesDTO from a JSON string +cari_adm0_values_dto_instance = CariAdm0ValuesDTO.from_json(json) +# print the JSON string representation of the object +print(CariAdm0ValuesDTO.to_json()) + +# convert the object into a dict +cari_adm0_values_dto_dict = cari_adm0_values_dto_instance.to_dict() +# create an instance of CariAdm0ValuesDTO from a dict +cari_adm0_values_dto_from_dict = CariAdm0ValuesDTO.from_dict(cari_adm0_values_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CariAdm0ValuesDTOPagedResult.md b/docs/CariAdm0ValuesDTOPagedResult.md new file mode 100644 index 0000000..8e6c08f --- /dev/null +++ b/docs/CariAdm0ValuesDTOPagedResult.md @@ -0,0 +1,31 @@ +# CariAdm0ValuesDTOPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[CariAdm0ValuesDTO]**](CariAdm0ValuesDTO.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of CariAdm0ValuesDTOPagedResult from a JSON string +cari_adm0_values_dto_paged_result_instance = CariAdm0ValuesDTOPagedResult.from_json(json) +# print the JSON string representation of the object +print(CariAdm0ValuesDTOPagedResult.to_json()) + +# convert the object into a dict +cari_adm0_values_dto_paged_result_dict = cari_adm0_values_dto_paged_result_instance.to_dict() +# create an instance of CariAdm0ValuesDTOPagedResult from a dict +cari_adm0_values_dto_paged_result_from_dict = CariAdm0ValuesDTOPagedResult.from_dict(cari_adm0_values_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CariAdm1ValuesDTO.md b/docs/CariAdm1ValuesDTO.md new file mode 100644 index 0000000..7abfdb7 --- /dev/null +++ b/docs/CariAdm1ValuesDTO.md @@ -0,0 +1,41 @@ +# CariAdm1ValuesDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | | [optional] +**survey_name** | **str** | | [optional] +**cari_methodology_name** | **str** | | [optional] +**fcs_methodology_name** | **str** | | [optional] +**additional_survey_metadata** | **str** | | [optional] +**adm0_code** | **int** | | [optional] +**adm0_name** | **str** | | [optional] +**cari_indicator_id** | **int** | | [optional] +**cari_indicator_name** | **str** | | [optional] +**cari_indicator_category_id** | **int** | | [optional] +**indicator_category_label** | **str** | | [optional] +**adm1_code** | **int** | | [optional] +**adm1_name** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CariAdm1ValuesDTO from a JSON string +cari_adm1_values_dto_instance = CariAdm1ValuesDTO.from_json(json) +# print the JSON string representation of the object +print(CariAdm1ValuesDTO.to_json()) + +# convert the object into a dict +cari_adm1_values_dto_dict = cari_adm1_values_dto_instance.to_dict() +# create an instance of CariAdm1ValuesDTO from a dict +cari_adm1_values_dto_from_dict = CariAdm1ValuesDTO.from_dict(cari_adm1_values_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CariAdm1ValuesDTOPagedResult.md b/docs/CariAdm1ValuesDTOPagedResult.md new file mode 100644 index 0000000..5126ef1 --- /dev/null +++ b/docs/CariAdm1ValuesDTOPagedResult.md @@ -0,0 +1,31 @@ +# CariAdm1ValuesDTOPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[CariAdm1ValuesDTO]**](CariAdm1ValuesDTO.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of CariAdm1ValuesDTOPagedResult from a JSON string +cari_adm1_values_dto_paged_result_instance = CariAdm1ValuesDTOPagedResult.from_json(json) +# print the JSON string representation of the object +print(CariAdm1ValuesDTOPagedResult.to_json()) + +# convert the object into a dict +cari_adm1_values_dto_paged_result_dict = cari_adm1_values_dto_paged_result_instance.to_dict() +# create an instance of CariAdm1ValuesDTOPagedResult from a dict +cari_adm1_values_dto_paged_result_from_dict = CariAdm1ValuesDTOPagedResult.from_dict(cari_adm1_values_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CategoriesAndIndicatorsDTO.md b/docs/CategoriesAndIndicatorsDTO.md new file mode 100644 index 0000000..8d0d6e8 --- /dev/null +++ b/docs/CategoriesAndIndicatorsDTO.md @@ -0,0 +1,30 @@ +# CategoriesAndIndicatorsDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**List[ListItemDto]**](ListItemDto.md) | | [optional] +**indicators** | [**List[ListItemDto]**](ListItemDto.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CategoriesAndIndicatorsDTO from a JSON string +categories_and_indicators_dto_instance = CategoriesAndIndicatorsDTO.from_json(json) +# print the JSON string representation of the object +print(CategoriesAndIndicatorsDTO.to_json()) + +# convert the object into a dict +categories_and_indicators_dto_dict = categories_and_indicators_dto_instance.to_dict() +# create an instance of CategoriesAndIndicatorsDTO from a dict +categories_and_indicators_dto_from_dict = CategoriesAndIndicatorsDTO.from_dict(categories_and_indicators_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommoditiesApi.md b/docs/CommoditiesApi.md index dd33737..7ff4c3b 100644 --- a/docs/CommoditiesApi.md +++ b/docs/CommoditiesApi.md @@ -1,6 +1,6 @@ # data_bridges_client.CommoditiesApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityLi from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -111,10 +111,10 @@ from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityLi from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/CommodityUnitsApi.md b/docs/CommodityUnitsApi.md index 5066916..f1f5a27 100644 --- a/docs/CommodityUnitsApi.md +++ b/docs/CommodityUnitsApi.md @@ -1,6 +1,6 @@ # data_bridges_client.CommodityUnitsApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityLi from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -113,10 +113,10 @@ from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityLi from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/CurrencyApi.md b/docs/CurrencyApi.md index e54885c..68bcdb5 100644 --- a/docs/CurrencyApi.md +++ b/docs/CurrencyApi.md @@ -1,6 +1,6 @@ # data_bridges_client.CurrencyApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyList from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -111,10 +111,10 @@ from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIn from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/EconomicDataApi.md b/docs/EconomicDataApi.md index d11d7b1..79e61a2 100644 --- a/docs/EconomicDataApi.md +++ b/docs/EconomicDataApi.md @@ -1,6 +1,6 @@ # data_bridges_client.EconomicDataApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ from data_bridges_client.models.economic_indicator_property_paged_result import from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -109,10 +109,10 @@ from data_bridges_client.models.paged_economic_data_dto import PagedEconomicData from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/ViewExtendedAlpsValue.md b/docs/ExtendedAlpsValueDto.md similarity index 72% rename from docs/ViewExtendedAlpsValue.md rename to docs/ExtendedAlpsValueDto.md index 7a793ee..a5a482a 100644 --- a/docs/ViewExtendedAlpsValue.md +++ b/docs/ExtendedAlpsValueDto.md @@ -1,4 +1,4 @@ -# ViewExtendedAlpsValue +# ExtendedAlpsValueDto ## Properties @@ -28,19 +28,19 @@ Name | Type | Description | Notes ## Example ```python -from data_bridges_client.models.view_extended_alps_value import ViewExtendedAlpsValue +from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto # TODO update the JSON string below json = "{}" -# create an instance of ViewExtendedAlpsValue from a JSON string -view_extended_alps_value_instance = ViewExtendedAlpsValue.from_json(json) +# create an instance of ExtendedAlpsValueDto from a JSON string +extended_alps_value_dto_instance = ExtendedAlpsValueDto.from_json(json) # print the JSON string representation of the object -print(ViewExtendedAlpsValue.to_json()) +print(ExtendedAlpsValueDto.to_json()) # convert the object into a dict -view_extended_alps_value_dict = view_extended_alps_value_instance.to_dict() -# create an instance of ViewExtendedAlpsValue from a dict -view_extended_alps_value_from_dict = ViewExtendedAlpsValue.from_dict(view_extended_alps_value_dict) +extended_alps_value_dto_dict = extended_alps_value_dto_instance.to_dict() +# create an instance of ExtendedAlpsValueDto from a dict +extended_alps_value_dto_from_dict = ExtendedAlpsValueDto.from_dict(extended_alps_value_dto_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtendedAlpsValueDtoPagedResult.md b/docs/ExtendedAlpsValueDtoPagedResult.md new file mode 100644 index 0000000..e14f287 --- /dev/null +++ b/docs/ExtendedAlpsValueDtoPagedResult.md @@ -0,0 +1,31 @@ +# ExtendedAlpsValueDtoPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[ExtendedAlpsValueDto]**](ExtendedAlpsValueDto.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of ExtendedAlpsValueDtoPagedResult from a JSON string +extended_alps_value_dto_paged_result_instance = ExtendedAlpsValueDtoPagedResult.from_json(json) +# print the JSON string representation of the object +print(ExtendedAlpsValueDtoPagedResult.to_json()) + +# convert the object into a dict +extended_alps_value_dto_paged_result_dict = extended_alps_value_dto_paged_result_instance.to_dict() +# create an instance of ExtendedAlpsValueDtoPagedResult from a dict +extended_alps_value_dto_paged_result_from_dict = ExtendedAlpsValueDtoPagedResult.from_dict(extended_alps_value_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FoodSecurityApi.md b/docs/FoodSecurityApi.md deleted file mode 100644 index 367ba45..0000000 --- a/docs/FoodSecurityApi.md +++ /dev/null @@ -1,90 +0,0 @@ -# data_bridges_client.FoodSecurityApi - -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**food_security_list_get**](FoodSecurityApi.md#food_security_list_get) | **GET** /FoodSecurity/List | - - -# **food_security_list_get** -> IpcValuePagedResult food_security_list_get(iso3=iso3, year=year, page=page, env=env) - - - - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_foodsecurity-list_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - -### Example - -* OAuth Authentication (default): - -```python -import data_bridges_client -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult -from data_bridges_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 -# See configuration.py for a list of all supported configuration parameters. -configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - -# Enter a context with an instance of the API client -with data_bridges_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = data_bridges_client.FoodSecurityApi(api_client) - iso3 = 'iso3_example' # str | The country ISO3 code (optional) - year = 56 # int | (optional) - page = 1 # int | (optional) (default to 1) - env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) - - try: - api_response = api_instance.food_security_list_get(iso3=iso3, year=year, page=page, env=env) - print("The response of FoodSecurityApi->food_security_list_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling FoodSecurityApi->food_security_list_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **iso3** | **str**| The country ISO3 code | [optional] - **year** | **int**| | [optional] - **page** | **int**| | [optional] [default to 1] - **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] - -### Return type - -[**IpcValuePagedResult**](IpcValuePagedResult.md) - -### Authorization - -[default](../README.md#default) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain, application/json, text/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | Bad Request | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/docs/GorpApi.md b/docs/GlobalOutlookApi.md similarity index 63% rename from docs/GorpApi.md rename to docs/GlobalOutlookApi.md index 94681de..00c22c8 100644 --- a/docs/GorpApi.md +++ b/docs/GlobalOutlookApi.md @@ -1,20 +1,20 @@ -# data_bridges_client.GorpApi +# data_bridges_client.GlobalOutlookApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- -[**gorp_country_latest_get**](GorpApi.md#gorp_country_latest_get) | **GET** /Gorp/CountryLatest | Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. -[**gorp_global_latest_get**](GorpApi.md#gorp_global_latest_get) | **GET** /Gorp/GlobalLatest | Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. -[**gorp_regional_latest_get**](GorpApi.md#gorp_regional_latest_get) | **GET** /Gorp/RegionalLatest | Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. +[**global_outlook_country_latest_get**](GlobalOutlookApi.md#global_outlook_country_latest_get) | **GET** /GlobalOutlook/CountryLatest | Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. +[**global_outlook_global_latest_get**](GlobalOutlookApi.md#global_outlook_global_latest_get) | **GET** /GlobalOutlook/GlobalLatest | Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. +[**global_outlook_regional_latest_get**](GlobalOutlookApi.md#global_outlook_regional_latest_get) | **GET** /GlobalOutlook/RegionalLatest | Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. -# **gorp_country_latest_get** -> List[GorpCountryApiDto] gorp_country_latest_get(env=env) +# **global_outlook_country_latest_get** +> List[GlobalOutlookCountryApiDto] global_outlook_country_latest_get(env=env) -Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. +Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-countrylatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern ### Example @@ -22,14 +22,14 @@ Return the latest country dataset of number of acutely food insecure (in thousan ```python import data_bridges_client -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -42,16 +42,16 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = data_bridges_client.GorpApi(api_client) + api_instance = data_bridges_client.GlobalOutlookApi(api_client) env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) try: - # Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. - api_response = api_instance.gorp_country_latest_get(env=env) - print("The response of GorpApi->gorp_country_latest_get:\n") + # Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. + api_response = api_instance.global_outlook_country_latest_get(env=env) + print("The response of GlobalOutlookApi->global_outlook_country_latest_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling GorpApi->gorp_country_latest_get: %s\n" % e) + print("Exception when calling GlobalOutlookApi->global_outlook_country_latest_get: %s\n" % e) ``` @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**List[GorpCountryApiDto]**](GorpCountryApiDto.md) +[**List[GlobalOutlookCountryApiDto]**](GlobalOutlookCountryApiDto.md) ### Authorization @@ -85,12 +85,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **gorp_global_latest_get** -> GorpGlobalApiDto gorp_global_latest_get(env=env) +# **global_outlook_global_latest_get** +> GlobalOutlookApiDto global_outlook_global_latest_get(env=env) -Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. +Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-globallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern ### Example @@ -98,14 +98,14 @@ Return the latest global dataset of number of acutely food insecure (in millions ```python import data_bridges_client -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -118,16 +118,16 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = data_bridges_client.GorpApi(api_client) + api_instance = data_bridges_client.GlobalOutlookApi(api_client) env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) try: - # Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. - api_response = api_instance.gorp_global_latest_get(env=env) - print("The response of GorpApi->gorp_global_latest_get:\n") + # Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. + api_response = api_instance.global_outlook_global_latest_get(env=env) + print("The response of GlobalOutlookApi->global_outlook_global_latest_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling GorpApi->gorp_global_latest_get: %s\n" % e) + print("Exception when calling GlobalOutlookApi->global_outlook_global_latest_get: %s\n" % e) ``` @@ -141,7 +141,7 @@ Name | Type | Description | Notes ### Return type -[**GorpGlobalApiDto**](GorpGlobalApiDto.md) +[**GlobalOutlookApiDto**](GlobalOutlookApiDto.md) ### Authorization @@ -161,12 +161,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **gorp_regional_latest_get** -> List[GorpRegionalApiDto] gorp_regional_latest_get(env=env) +# **global_outlook_regional_latest_get** +> List[GlobalOutlookRegionalApiDto] global_outlook_regional_latest_get(env=env) -Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. +Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-regionallatest_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern ### Example @@ -174,14 +174,14 @@ Return the latest regional dataset of number of acutely food insecure (in millio ```python import data_bridges_client -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -194,16 +194,16 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = data_bridges_client.GorpApi(api_client) + api_instance = data_bridges_client.GlobalOutlookApi(api_client) env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) try: - # Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. - api_response = api_instance.gorp_regional_latest_get(env=env) - print("The response of GorpApi->gorp_regional_latest_get:\n") + # Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. + api_response = api_instance.global_outlook_regional_latest_get(env=env) + print("The response of GlobalOutlookApi->global_outlook_regional_latest_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling GorpApi->gorp_regional_latest_get: %s\n" % e) + print("Exception when calling GlobalOutlookApi->global_outlook_regional_latest_get: %s\n" % e) ``` @@ -217,7 +217,7 @@ Name | Type | Description | Notes ### Return type -[**List[GorpRegionalApiDto]**](GorpRegionalApiDto.md) +[**List[GlobalOutlookRegionalApiDto]**](GlobalOutlookRegionalApiDto.md) ### Authorization diff --git a/docs/GlobalOutlookApiDto.md b/docs/GlobalOutlookApiDto.md new file mode 100644 index 0000000..cb45e74 --- /dev/null +++ b/docs/GlobalOutlookApiDto.md @@ -0,0 +1,33 @@ +# GlobalOutlookApiDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **str** | | [optional] +**region_name** | **str** | | [optional] +**total_value** | **float** | | [optional] +**number_of_countries** | **int** | | [optional] +**comment** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto + +# TODO update the JSON string below +json = "{}" +# create an instance of GlobalOutlookApiDto from a JSON string +global_outlook_api_dto_instance = GlobalOutlookApiDto.from_json(json) +# print the JSON string representation of the object +print(GlobalOutlookApiDto.to_json()) + +# convert the object into a dict +global_outlook_api_dto_dict = global_outlook_api_dto_instance.to_dict() +# create an instance of GlobalOutlookApiDto from a dict +global_outlook_api_dto_from_dict = GlobalOutlookApiDto.from_dict(global_outlook_api_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GlobalOutlookCountryApiDto.md b/docs/GlobalOutlookCountryApiDto.md new file mode 100644 index 0000000..7482eac --- /dev/null +++ b/docs/GlobalOutlookCountryApiDto.md @@ -0,0 +1,32 @@ +# GlobalOutlookCountryApiDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **str** | | [optional] +**country_office_iso3** | **str** | | [optional] +**total_value** | **float** | | [optional] +**comment** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto + +# TODO update the JSON string below +json = "{}" +# create an instance of GlobalOutlookCountryApiDto from a JSON string +global_outlook_country_api_dto_instance = GlobalOutlookCountryApiDto.from_json(json) +# print the JSON string representation of the object +print(GlobalOutlookCountryApiDto.to_json()) + +# convert the object into a dict +global_outlook_country_api_dto_dict = global_outlook_country_api_dto_instance.to_dict() +# create an instance of GlobalOutlookCountryApiDto from a dict +global_outlook_country_api_dto_from_dict = GlobalOutlookCountryApiDto.from_dict(global_outlook_country_api_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GlobalOutlookRegionalApiDto.md b/docs/GlobalOutlookRegionalApiDto.md new file mode 100644 index 0000000..9e58e73 --- /dev/null +++ b/docs/GlobalOutlookRegionalApiDto.md @@ -0,0 +1,33 @@ +# GlobalOutlookRegionalApiDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **str** | | [optional] +**region_name** | **str** | | [optional] +**total_value** | **float** | | [optional] +**number_of_countries** | **int** | | [optional] +**comment** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto + +# TODO update the JSON string below +json = "{}" +# create an instance of GlobalOutlookRegionalApiDto from a JSON string +global_outlook_regional_api_dto_instance = GlobalOutlookRegionalApiDto.from_json(json) +# print the JSON string representation of the object +print(GlobalOutlookRegionalApiDto.to_json()) + +# convert the object into a dict +global_outlook_regional_api_dto_dict = global_outlook_regional_api_dto_instance.to_dict() +# create an instance of GlobalOutlookRegionalApiDto from a dict +global_outlook_regional_api_dto_from_dict = GlobalOutlookRegionalApiDto.from_dict(global_outlook_regional_api_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GorpCountryApiDto.md b/docs/GorpCountryApiDto.md deleted file mode 100644 index b338758..0000000 --- a/docs/GorpCountryApiDto.md +++ /dev/null @@ -1,32 +0,0 @@ -# GorpCountryApiDto - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gorp_date** | **str** | | [optional] -**country_office_iso3** | **str** | | [optional] -**gorp_total_value** | **float** | | [optional] -**gorp_comment** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto - -# TODO update the JSON string below -json = "{}" -# create an instance of GorpCountryApiDto from a JSON string -gorp_country_api_dto_instance = GorpCountryApiDto.from_json(json) -# print the JSON string representation of the object -print(GorpCountryApiDto.to_json()) - -# convert the object into a dict -gorp_country_api_dto_dict = gorp_country_api_dto_instance.to_dict() -# create an instance of GorpCountryApiDto from a dict -gorp_country_api_dto_from_dict = GorpCountryApiDto.from_dict(gorp_country_api_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GorpGlobalApiDto.md b/docs/GorpGlobalApiDto.md deleted file mode 100644 index bd1a0ff..0000000 --- a/docs/GorpGlobalApiDto.md +++ /dev/null @@ -1,33 +0,0 @@ -# GorpGlobalApiDto - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gorp_date** | **str** | | [optional] -**gorp_region_name** | **str** | | [optional] -**gorp_total_value** | **float** | | [optional] -**number_of_countries** | **int** | | [optional] -**gorp_comment** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto - -# TODO update the JSON string below -json = "{}" -# create an instance of GorpGlobalApiDto from a JSON string -gorp_global_api_dto_instance = GorpGlobalApiDto.from_json(json) -# print the JSON string representation of the object -print(GorpGlobalApiDto.to_json()) - -# convert the object into a dict -gorp_global_api_dto_dict = gorp_global_api_dto_instance.to_dict() -# create an instance of GorpGlobalApiDto from a dict -gorp_global_api_dto_from_dict = GorpGlobalApiDto.from_dict(gorp_global_api_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/GorpRegionalApiDto.md b/docs/GorpRegionalApiDto.md deleted file mode 100644 index 9b2bd69..0000000 --- a/docs/GorpRegionalApiDto.md +++ /dev/null @@ -1,33 +0,0 @@ -# GorpRegionalApiDto - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gorp_date** | **str** | | [optional] -**gorp_region_name** | **str** | | [optional] -**gorp_total_value** | **float** | | [optional] -**number_of_countries** | **int** | | [optional] -**gorp_comment** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto - -# TODO update the JSON string below -json = "{}" -# create an instance of GorpRegionalApiDto from a JSON string -gorp_regional_api_dto_instance = GorpRegionalApiDto.from_json(json) -# print the JSON string representation of the object -print(GorpRegionalApiDto.to_json()) - -# convert the object into a dict -gorp_regional_api_dto_dict = gorp_regional_api_dto_instance.to_dict() -# create an instance of GorpRegionalApiDto from a dict -gorp_regional_api_dto_from_dict = GorpRegionalApiDto.from_dict(gorp_regional_api_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/HungerHotSpotDataDTO.md b/docs/HungerHotSpotDataDTO.md new file mode 100644 index 0000000..8f87335 --- /dev/null +++ b/docs/HungerHotSpotDataDTO.md @@ -0,0 +1,32 @@ +# HungerHotSpotDataDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**iso3_code** | **str** | | [optional] +**hunger_hotspots_date** | **datetime** | | [optional] +**category** | [**ListItemDto**](ListItemDto.md) | | [optional] +**indicators** | [**List[ListItemDto]**](ListItemDto.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of HungerHotSpotDataDTO from a JSON string +hunger_hot_spot_data_dto_instance = HungerHotSpotDataDTO.from_json(json) +# print the JSON string representation of the object +print(HungerHotSpotDataDTO.to_json()) + +# convert the object into a dict +hunger_hot_spot_data_dto_dict = hunger_hot_spot_data_dto_instance.to_dict() +# create an instance of HungerHotSpotDataDTO from a dict +hunger_hot_spot_data_dto_from_dict = HungerHotSpotDataDTO.from_dict(hunger_hot_spot_data_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HungerHotSpotDataDTOPagedResult.md b/docs/HungerHotSpotDataDTOPagedResult.md new file mode 100644 index 0000000..3151c61 --- /dev/null +++ b/docs/HungerHotSpotDataDTOPagedResult.md @@ -0,0 +1,31 @@ +# HungerHotSpotDataDTOPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[HungerHotSpotDataDTO]**](HungerHotSpotDataDTO.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of HungerHotSpotDataDTOPagedResult from a JSON string +hunger_hot_spot_data_dto_paged_result_instance = HungerHotSpotDataDTOPagedResult.from_json(json) +# print the JSON string representation of the object +print(HungerHotSpotDataDTOPagedResult.to_json()) + +# convert the object into a dict +hunger_hot_spot_data_dto_paged_result_dict = hunger_hot_spot_data_dto_paged_result_instance.to_dict() +# create an instance of HungerHotSpotDataDTOPagedResult from a dict +hunger_hot_spot_data_dto_paged_result_from_dict = HungerHotSpotDataDTOPagedResult.from_dict(hunger_hot_spot_data_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HungerHotspotApi.md b/docs/HungerHotspotApi.md new file mode 100644 index 0000000..67ae129 --- /dev/null +++ b/docs/HungerHotspotApi.md @@ -0,0 +1,164 @@ +# data_bridges_client.HungerHotspotApi + +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**hunger_hotspot_categories_and_indicators_get**](HungerHotspotApi.md#hunger_hotspot_categories_and_indicators_get) | **GET** /HungerHotspot/CategoriesAndIndicators | Retrieves Hunger Hotspot categories and indicators. +[**hunger_hotspot_data_get**](HungerHotspotApi.md#hunger_hotspot_data_get) | **GET** /HungerHotspot/Data | Retrieves a paginated list of Hunger Hotspot data. + + +# **hunger_hotspot_categories_and_indicators_get** +> CategoriesAndIndicatorsDTO hunger_hotspot_categories_and_indicators_get(env=env) + +Retrieves Hunger Hotspot categories and indicators. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-categoriesandindicators_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.HungerHotspotApi(api_client) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves Hunger Hotspot categories and indicators. + api_response = api_instance.hunger_hotspot_categories_and_indicators_get(env=env) + print("The response of HungerHotspotApi->hunger_hotspot_categories_and_indicators_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HungerHotspotApi->hunger_hotspot_categories_and_indicators_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**CategoriesAndIndicatorsDTO**](CategoriesAndIndicatorsDTO.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **hunger_hotspot_data_get** +> HungerHotSpotDataDTOPagedResult hunger_hotspot_data_get(page=page, env=env) + +Retrieves a paginated list of Hunger Hotspot data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-data_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.HungerHotspotApi(api_client) + page = 1 # int | The page number for pagination. Defaults to 1. (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of Hunger Hotspot data. + api_response = api_instance.hunger_hotspot_data_get(page=page, env=env) + print("The response of HungerHotspotApi->hunger_hotspot_data_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling HungerHotspotApi->hunger_hotspot_data_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int**| The page number for pagination. Defaults to 1. | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**HungerHotSpotDataDTOPagedResult**](HungerHotSpotDataDTOPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IncubationApi.md b/docs/IncubationApi.md index 204c113..c9798d3 100644 --- a/docs/IncubationApi.md +++ b/docs/IncubationApi.md @@ -1,11 +1,11 @@ # data_bridges_client.IncubationApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- -[**aims_download_all_analysis_rounds_get**](IncubationApi.md#aims_download_all_analysis_rounds_get) | **GET** /Aims/DownloadAllAnalysisRounds | Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). -[**aims_download_polygon_files_get**](IncubationApi.md#aims_download_polygon_files_get) | **GET** /Aims/DownloadPolygonFiles | Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). +[**cari_adm0_values_get**](IncubationApi.md#cari_adm0_values_get) | **GET** /Cari/Adm0Values | Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. +[**cari_adm1_values_get**](IncubationApi.md#cari_adm1_values_get) | **GET** /Cari/Adm1Values | Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. [**household_draft_internal_base_data_get**](IncubationApi.md#household_draft_internal_base_data_get) | **GET** /Household/DraftInternalBaseData | Get data that includes the core household fields only by Survey ID. To access this data, please contact Wael ATTIA for authorization. This endpoint will send you only data you have access to, based on permissions assigned to your application profile. The \"apiKey\" can be found in the profile section of the DataBridges application. [**household_full_data_get**](IncubationApi.md#household_full_data_get) | **GET** /Household/FullData | Get a full dataset that includes all the fields included in the survey in addition to the core household fields by Survey ID. To access this data, please contact Wael ATTIA for authorization. This endpoint will send you only data you have access to, based on permissions assigned to your application profile. The \"apiKey\" can be found in the profile section of the DataBridges application. [**household_official_use_base_data_get**](IncubationApi.md#household_official_use_base_data_get) | **GET** /Household/OfficialUseBaseData | Get data that includes the core household fields only by Survey ID @@ -15,12 +15,12 @@ Method | HTTP request | Description [**xls_forms_definition_get**](IncubationApi.md#xls_forms_definition_get) | **GET** /XlsForms/definition | Get a complete set of XLS Form definitions of a given XLS Form ID. This is the digital version of the questionnaire used during the data collection exercise. -# **aims_download_all_analysis_rounds_get** -> aims_download_all_analysis_rounds_get(adm0_code, env=env) +# **cari_adm0_values_get** +> CariAdm0ValuesDTOPagedResult cari_adm0_values_get(adm0_code=adm0_code, survey_id=survey_id, indicator_id=indicator_id, page=page, env=env) -Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). +Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadallanalysisrounds_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm0values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern ### Example @@ -28,13 +28,14 @@ Each asset has a baseline and several rounds. Each round reflects the number of ```python import data_bridges_client +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -48,14 +49,19 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] with data_bridges_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = data_bridges_client.IncubationApi(api_client) - adm0_code = 56 # int | The country adm0Code + adm0_code = 56 # int | The administrative level 0 code to filter the results. (optional) + survey_id = 56 # int | The unique identifier of the survey to filter the results. (optional) + indicator_id = 56 # int | The unique identifier of the indicator to filter the results. (optional) + page = 1 # int | The page number for pagination. Defaults to 1. (optional) (default to 1) env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) try: - # Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). - api_instance.aims_download_all_analysis_rounds_get(adm0_code, env=env) + # Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. + api_response = api_instance.cari_adm0_values_get(adm0_code=adm0_code, survey_id=survey_id, indicator_id=indicator_id, page=page, env=env) + print("The response of IncubationApi->cari_adm0_values_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling IncubationApi->aims_download_all_analysis_rounds_get: %s\n" % e) + print("Exception when calling IncubationApi->cari_adm0_values_get: %s\n" % e) ``` @@ -65,12 +71,15 @@ with data_bridges_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **adm0_code** | **int**| The country adm0Code | + **adm0_code** | **int**| The administrative level 0 code to filter the results. | [optional] + **survey_id** | **int**| The unique identifier of the survey to filter the results. | [optional] + **indicator_id** | **int**| The unique identifier of the indicator to filter the results. | [optional] + **page** | **int**| The page number for pagination. Defaults to 1. | [optional] [default to 1] **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] ### Return type -void (empty response body) +[**CariAdm0ValuesDTOPagedResult**](CariAdm0ValuesDTOPagedResult.md) ### Authorization @@ -79,22 +88,23 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **aims_download_polygon_files_get** -> aims_download_polygon_files_get(adm0_code, env=env) +# **cari_adm1_values_get** +> CariAdm1ValuesDTOPagedResult cari_adm1_values_get(adm0_code=adm0_code, survey_id=survey_id, indicator_id=indicator_id, page=page, env=env) -Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). +Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. - [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadpolygonfiles_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm1values_get\" This method returns a paginated list of results based on the provided filters. Ensure that the parameters are valid and correspond to existing data in the repository. If an error occurs during processing, a bad request response is returned with the error details. **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern ### Example @@ -102,13 +112,14 @@ Polygon files are available for Landscape Impact Assessment (LIA) assets only. ```python import data_bridges_client +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -122,14 +133,19 @@ configuration.access_token = os.environ["ACCESS_TOKEN"] with data_bridges_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = data_bridges_client.IncubationApi(api_client) - adm0_code = 56 # int | The country adm0Code + adm0_code = 56 # int | The administrative level 0 code to filter the results. (optional) + survey_id = 56 # int | The unique identifier of the survey to filter the results. (optional) + indicator_id = 56 # int | The unique identifier of the indicator to filter the results. (optional) + page = 1 # int | The page number for pagination. Defaults to 1. (optional) (default to 1) env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) try: - # Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). - api_instance.aims_download_polygon_files_get(adm0_code, env=env) + # Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. + api_response = api_instance.cari_adm1_values_get(adm0_code=adm0_code, survey_id=survey_id, indicator_id=indicator_id, page=page, env=env) + print("The response of IncubationApi->cari_adm1_values_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling IncubationApi->aims_download_polygon_files_get: %s\n" % e) + print("Exception when calling IncubationApi->cari_adm1_values_get: %s\n" % e) ``` @@ -139,12 +155,15 @@ with data_bridges_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **adm0_code** | **int**| The country adm0Code | + **adm0_code** | **int**| The administrative level 0 code to filter the results. | [optional] + **survey_id** | **int**| The unique identifier of the survey to filter the results. | [optional] + **indicator_id** | **int**| The unique identifier of the indicator to filter the results. | [optional] + **page** | **int**| The page number for pagination. Defaults to 1. | [optional] [default to 1] **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] ### Return type -void (empty response body) +[**CariAdm1ValuesDTOPagedResult**](CariAdm1ValuesDTOPagedResult.md) ### Authorization @@ -153,13 +172,14 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: text/plain, application/json, text/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | +**400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -180,10 +200,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -266,10 +286,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -354,10 +374,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -437,10 +457,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -520,10 +540,10 @@ from data_bridges_client.models.household_survey_list_dto_paged_result import Ho from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -606,10 +626,10 @@ from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDa from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -698,10 +718,10 @@ from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFor from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/IpcHistoricalDatumDto.md b/docs/IpcHistoricalDatumDto.md new file mode 100644 index 0000000..ed7a9f6 --- /dev/null +++ b/docs/IpcHistoricalDatumDto.md @@ -0,0 +1,80 @@ +# IpcHistoricalDatumDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**analysis_id** | **int** | | [optional] +**analysis_title** | **str** | | [optional] +**iso3_alpha3** | **str** | | [optional] +**country_name** | **str** | | [optional] +**analysis_date** | **datetime** | | [optional] +**start_date_current_period** | **datetime** | | [optional] +**end_date_current_period** | **datetime** | | [optional] +**start_date_projected_period** | **datetime** | | [optional] +**end_date_projected_period** | **datetime** | | [optional] +**start_date_second_projected_period** | **datetime** | | [optional] +**end_date_second_projected_period** | **datetime** | | [optional] +**population** | **float** | | [optional] +**population_percentage** | **float** | | [optional] +**phase3_plus_population** | **float** | | [optional] +**phase3_plus_percentage** | **float** | | [optional] +**estimated_population** | **float** | | [optional] +**phase1_population** | **float** | | [optional] +**phase1_percentage** | **float** | | [optional] +**phase2_population** | **float** | | [optional] +**phase2_percentage** | **float** | | [optional] +**phase3_population** | **float** | | [optional] +**phase3_percentage** | **float** | | [optional] +**phase4_population** | **float** | | [optional] +**phase4_percentage** | **float** | | [optional] +**phase5_population** | **float** | | [optional] +**phase5_percentage** | **float** | | [optional] +**phase3_plus_population_projected** | **float** | | [optional] +**phase3_plus_percentage_projected** | **float** | | [optional] +**estimated_population_projected** | **float** | | [optional] +**phase1_population_projected** | **float** | | [optional] +**phase1_percentage_projected** | **float** | | [optional] +**phase2_population_projected** | **float** | | [optional] +**phase2_percentage_projected** | **float** | | [optional] +**phase3_population_projected** | **float** | | [optional] +**phase3_percentage_projected** | **float** | | [optional] +**phase4_population_projected** | **float** | | [optional] +**phase4_percentage_projected** | **float** | | [optional] +**phase5_population_projected** | **float** | | [optional] +**phase5_percentage_projected** | **float** | | [optional] +**phase3_plus_population_second_projected** | **float** | | [optional] +**phase3_plus_percentage_second_projected** | **float** | | [optional] +**estimated_population_second_projected** | **float** | | [optional] +**phase1_population_second_projected** | **float** | | [optional] +**phase1_percentage_second_projected** | **float** | | [optional] +**phase2_population_second_projected** | **float** | | [optional] +**phase2_percentage_second_projected** | **float** | | [optional] +**phase3_population_second_projected** | **float** | | [optional] +**phase3_percentage_second_projected** | **float** | | [optional] +**phase4_population_second_projected** | **float** | | [optional] +**phase4_percentage_second_projected** | **float** | | [optional] +**phase5_population_second_projected** | **float** | | [optional] +**phase5_percentage_second_projected** | **float** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcHistoricalDatumDto from a JSON string +ipc_historical_datum_dto_instance = IpcHistoricalDatumDto.from_json(json) +# print the JSON string representation of the object +print(IpcHistoricalDatumDto.to_json()) + +# convert the object into a dict +ipc_historical_datum_dto_dict = ipc_historical_datum_dto_instance.to_dict() +# create an instance of IpcHistoricalDatumDto from a dict +ipc_historical_datum_dto_from_dict = IpcHistoricalDatumDto.from_dict(ipc_historical_datum_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcHistoricalDatumDtoPagedResult.md b/docs/IpcHistoricalDatumDtoPagedResult.md new file mode 100644 index 0000000..030ff9e --- /dev/null +++ b/docs/IpcHistoricalDatumDtoPagedResult.md @@ -0,0 +1,31 @@ +# IpcHistoricalDatumDtoPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[IpcHistoricalDatumDto]**](IpcHistoricalDatumDto.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcHistoricalDatumDtoPagedResult from a JSON string +ipc_historical_datum_dto_paged_result_instance = IpcHistoricalDatumDtoPagedResult.from_json(json) +# print the JSON string representation of the object +print(IpcHistoricalDatumDtoPagedResult.to_json()) + +# convert the object into a dict +ipc_historical_datum_dto_paged_result_dict = ipc_historical_datum_dto_paged_result_instance.to_dict() +# create an instance of IpcHistoricalDatumDtoPagedResult from a dict +ipc_historical_datum_dto_paged_result_from_dict = IpcHistoricalDatumDtoPagedResult.from_dict(ipc_historical_datum_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcValue.md b/docs/IpcValue.md deleted file mode 100644 index 403657f..0000000 --- a/docs/IpcValue.md +++ /dev/null @@ -1,53 +0,0 @@ -# IpcValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipc_id** | **int** | | [optional] -**ipc_year** | **int** | | [optional] -**ipc_update_date** | **datetime** | | [optional] -**iso3_alpha3** | **str** | | [optional] -**ipc_country_name** | **str** | | [optional] -**ipc_area_name** | **str** | | [optional] -**ipc_phase3_population** | **int** | | [optional] -**ipc_phase4_population** | **int** | | [optional] -**ipc_phase5_population** | **int** | | [optional] -**ipc_phase35population** | **int** | | [optional] -**ipc_phase45population** | **int** | | [optional] -**ipc_phase3_percentage** | **float** | | [optional] -**ipc_phase4_percentage** | **float** | | [optional] -**ipc_phase5_percentage** | **float** | | [optional] -**ipc_phase35percentage** | **float** | | [optional] -**ipc_phase45percentage** | **float** | | [optional] -**ipc_analysed_population** | **int** | | [optional] -**ipc_analysed_percentage** | **float** | | [optional] -**ipc_analysis_comment** | **str** | | [optional] -**ipc_data_type** | **str** | | [optional] -**ipc_data_source** | **str** | | [optional] -**ipc_reference_period** | **str** | | [optional] -**ipc_create_date** | **datetime** | | [optional] -**ipc_show_on_data_viz** | **bool** | | [optional] -**ipc_is_latest_value** | **bool** | | [optional] - -## Example - -```python -from data_bridges_client.models.ipc_value import IpcValue - -# TODO update the JSON string below -json = "{}" -# create an instance of IpcValue from a JSON string -ipc_value_instance = IpcValue.from_json(json) -# print the JSON string representation of the object -print(IpcValue.to_json()) - -# convert the object into a dict -ipc_value_dict = ipc_value_instance.to_dict() -# create an instance of IpcValue from a dict -ipc_value_from_dict = IpcValue.from_dict(ipc_value_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IpcValuePagedResult.md b/docs/IpcValuePagedResult.md deleted file mode 100644 index 6b6da03..0000000 --- a/docs/IpcValuePagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# IpcValuePagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[IpcValue]**](IpcValue.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of IpcValuePagedResult from a JSON string -ipc_value_paged_result_instance = IpcValuePagedResult.from_json(json) -# print the JSON string representation of the object -print(IpcValuePagedResult.to_json()) - -# convert the object into a dict -ipc_value_paged_result_dict = ipc_value_paged_result_instance.to_dict() -# create an instance of IpcValuePagedResult from a dict -ipc_value_paged_result_from_dict = IpcValuePagedResult.from_dict(ipc_value_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/IpcchAndEquivalentPeaksDTO.md b/docs/IpcchAndEquivalentPeaksDTO.md new file mode 100644 index 0000000..6bfd4f2 --- /dev/null +++ b/docs/IpcchAndEquivalentPeaksDTO.md @@ -0,0 +1,36 @@ +# IpcchAndEquivalentPeaksDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regional_bureau_id** | **int** | | [optional] +**regional_bureau_name** | **str** | | [optional] +**iso3_alpha3** | **str** | | [optional] +**country_name** | **str** | | [optional] +**phase3_population** | **int** | | [optional] +**phase4_population** | **int** | | [optional] +**phase5_population** | **int** | | [optional] +**phase3_plus_population** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchAndEquivalentPeaksDTO from a JSON string +ipcch_and_equivalent_peaks_dto_instance = IpcchAndEquivalentPeaksDTO.from_json(json) +# print the JSON string representation of the object +print(IpcchAndEquivalentPeaksDTO.to_json()) + +# convert the object into a dict +ipcch_and_equivalent_peaks_dto_dict = ipcch_and_equivalent_peaks_dto_instance.to_dict() +# create an instance of IpcchAndEquivalentPeaksDTO from a dict +ipcch_and_equivalent_peaks_dto_from_dict = IpcchAndEquivalentPeaksDTO.from_dict(ipcch_and_equivalent_peaks_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcchAndEquivalentPeaksDTOPagedResult.md b/docs/IpcchAndEquivalentPeaksDTOPagedResult.md new file mode 100644 index 0000000..c77bae9 --- /dev/null +++ b/docs/IpcchAndEquivalentPeaksDTOPagedResult.md @@ -0,0 +1,31 @@ +# IpcchAndEquivalentPeaksDTOPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[IpcchAndEquivalentPeaksDTO]**](IpcchAndEquivalentPeaksDTO.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchAndEquivalentPeaksDTOPagedResult from a JSON string +ipcch_and_equivalent_peaks_dto_paged_result_instance = IpcchAndEquivalentPeaksDTOPagedResult.from_json(json) +# print the JSON string representation of the object +print(IpcchAndEquivalentPeaksDTOPagedResult.to_json()) + +# convert the object into a dict +ipcch_and_equivalent_peaks_dto_paged_result_dict = ipcch_and_equivalent_peaks_dto_paged_result_instance.to_dict() +# create an instance of IpcchAndEquivalentPeaksDTOPagedResult from a dict +ipcch_and_equivalent_peaks_dto_paged_result_from_dict = IpcchAndEquivalentPeaksDTOPagedResult.from_dict(ipcch_and_equivalent_peaks_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcchApi.md b/docs/IpcchApi.md new file mode 100644 index 0000000..644f657 --- /dev/null +++ b/docs/IpcchApi.md @@ -0,0 +1,419 @@ +# data_bridges_client.IpcchApi + +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ipcch_ipcch_and_equivalent_historical_peaks_get**](IpcchApi.md#ipcch_ipcch_and_equivalent_historical_peaks_get) | **GET** /Ipcch/IPCCHAndEquivalent-HistoricalPeaks | Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. +[**ipcch_ipcch_and_equivalent_latest_peaks_get**](IpcchApi.md#ipcch_ipcch_and_equivalent_latest_peaks_get) | **GET** /Ipcch/IPCCHAndEquivalent-LatestPeaks | Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. +[**ipcch_ipcch_and_equivalent_most_recent_get**](IpcchApi.md#ipcch_ipcch_and_equivalent_most_recent_get) | **GET** /Ipcch/IPCCHAndEquivalent-MostRecent | Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. +[**ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get**](IpcchApi.md#ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get) | **GET** /Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard | Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. +[**ipcch_ipcch_historical_data_get**](IpcchApi.md#ipcch_ipcch_historical_data_get) | **GET** /Ipcch/IPCCH-HistoricalData | Retrieves a paginated list of IPCCH and Equivalent Historical Data. + + +# **ipcch_ipcch_and_equivalent_historical_peaks_get** +> IpcchPeaksDtoPagedResult ipcch_ipcch_and_equivalent_historical_peaks_get(reference_year=reference_year, iso3=iso3, page=page, env=env) + +Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.IpcchApi(api_client) + reference_year = 56 # int | Year in a 4 digit format, for example: 2025 (optional) + iso3 = 'iso3_example' # str | (optional) + page = 1 # int | (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + api_response = api_instance.ipcch_ipcch_and_equivalent_historical_peaks_get(reference_year=reference_year, iso3=iso3, page=page, env=env) + print("The response of IpcchApi->ipcch_ipcch_and_equivalent_historical_peaks_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IpcchApi->ipcch_ipcch_and_equivalent_historical_peaks_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **reference_year** | **int**| Year in a 4 digit format, for example: 2025 | [optional] + **iso3** | **str**| | [optional] + **page** | **int**| | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**IpcchPeaksDtoPagedResult**](IpcchPeaksDtoPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ipcch_ipcch_and_equivalent_latest_peaks_get** +> IpcchPeaksDtoPagedResult ipcch_ipcch_and_equivalent_latest_peaks_get(iso3=iso3, page=page, env=env) + +Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.IpcchApi(api_client) + iso3 = 'iso3_example' # str | (optional) + page = 1 # int | (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + api_response = api_instance.ipcch_ipcch_and_equivalent_latest_peaks_get(iso3=iso3, page=page, env=env) + print("The response of IpcchApi->ipcch_ipcch_and_equivalent_latest_peaks_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IpcchApi->ipcch_ipcch_and_equivalent_latest_peaks_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **iso3** | **str**| | [optional] + **page** | **int**| | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**IpcchPeaksDtoPagedResult**](IpcchPeaksDtoPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ipcch_ipcch_and_equivalent_most_recent_get** +> IpcchBaseDtoPagedResult ipcch_ipcch_and_equivalent_most_recent_get(iso3=iso3, page=page, env=env) + +Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.IpcchApi(api_client) + iso3 = 'iso3_example' # str | (optional) + page = 1 # int | (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + api_response = api_instance.ipcch_ipcch_and_equivalent_most_recent_get(iso3=iso3, page=page, env=env) + print("The response of IpcchApi->ipcch_ipcch_and_equivalent_most_recent_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IpcchApi->ipcch_ipcch_and_equivalent_most_recent_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **iso3** | **str**| | [optional] + **page** | **int**| | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**IpcchBaseDtoPagedResult**](IpcchBaseDtoPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get** +> IpcchAndEquivalentPeaksDTOPagedResult ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get(iso3=iso3, page=page, env=env) + +Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.IpcchApi(api_client) + iso3 = 'iso3_example' # str | (optional) + page = 1 # int | The page number for pagination. Defaults to 1. (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + api_response = api_instance.ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get(iso3=iso3, page=page, env=env) + print("The response of IpcchApi->ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IpcchApi->ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **iso3** | **str**| | [optional] + **page** | **int**| The page number for pagination. Defaults to 1. | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**IpcchAndEquivalentPeaksDTOPagedResult**](IpcchAndEquivalentPeaksDTOPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ipcch_ipcch_historical_data_get** +> IpcHistoricalDatumDtoPagedResult ipcch_ipcch_historical_data_get(from_date=from_date, to_date=to_date, iso3=iso3, page=page, env=env) + +Retrieves a paginated list of IPCCH and Equivalent Historical Data. + + [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcch-historicaldata_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + +### Example + +* OAuth Authentication (default): + +```python +import data_bridges_client +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# See configuration.py for a list of all supported configuration parameters. +configuration = data_bridges_client.Configuration( + host = "https://api.wfp.org/vam-data-bridges/7.0.0" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + +# Enter a context with an instance of the API client +with data_bridges_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = data_bridges_client.IpcchApi(api_client) + from_date = '2013-10-20T19:20:30+01:00' # datetime | Date in the format yyyy-mm-dd, refers to the analysis date (optional) + to_date = '2013-10-20T19:20:30+01:00' # datetime | Date in the format yyyy-mm-dd, refers to the analysis date (optional) + iso3 = 'iso3_example' # str | (optional) + page = 1 # int | (optional) (default to 1) + env = 'env_example' # str | Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org (optional) + + try: + # Retrieves a paginated list of IPCCH and Equivalent Historical Data. + api_response = api_instance.ipcch_ipcch_historical_data_get(from_date=from_date, to_date=to_date, iso3=iso3, page=page, env=env) + print("The response of IpcchApi->ipcch_ipcch_historical_data_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling IpcchApi->ipcch_ipcch_historical_data_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **from_date** | **datetime**| Date in the format yyyy-mm-dd, refers to the analysis date | [optional] + **to_date** | **datetime**| Date in the format yyyy-mm-dd, refers to the analysis date | [optional] + **iso3** | **str**| | [optional] + **page** | **int**| | [optional] [default to 1] + **env** | **str**| Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org | [optional] + +### Return type + +[**IpcHistoricalDatumDtoPagedResult**](IpcHistoricalDatumDtoPagedResult.md) + +### Authorization + +[default](../README.md#default) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/IpcchBaseDto.md b/docs/IpcchBaseDto.md new file mode 100644 index 0000000..8109eda --- /dev/null +++ b/docs/IpcchBaseDto.md @@ -0,0 +1,51 @@ +# IpcchBaseDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**iso3_alpha3** | **str** | | [optional] +**country_name** | **str** | | [optional] +**population_group_id** | **int** | | [optional] +**population_group_name** | **str** | | [optional] +**analysis_title** | **str** | | [optional] +**analysis_date** | **datetime** | | [optional] +**period_start** | **datetime** | | [optional] +**period_end** | **datetime** | | [optional] +**period_type** | **str** | | [optional] +**population** | **float** | | [optional] +**population_analysed** | **int** | | [optional] +**population_analysed_percentage** | **float** | | [optional] +**phase3_population** | **float** | | [optional] +**phase4_population** | **float** | | [optional] +**phase5_population** | **float** | | [optional] +**phase3_plus_population** | **float** | | [optional] +**phase4_plus_population** | **int** | | [optional] +**phase3_percentage** | **float** | | [optional] +**phase4_percentage** | **float** | | [optional] +**phase5_percentage** | **float** | | [optional] +**phase3_plus_percentage** | **float** | | [optional] +**phase4_plus_percentage** | **float** | | [optional] +**data_source** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchBaseDto from a JSON string +ipcch_base_dto_instance = IpcchBaseDto.from_json(json) +# print the JSON string representation of the object +print(IpcchBaseDto.to_json()) + +# convert the object into a dict +ipcch_base_dto_dict = ipcch_base_dto_instance.to_dict() +# create an instance of IpcchBaseDto from a dict +ipcch_base_dto_from_dict = IpcchBaseDto.from_dict(ipcch_base_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcchBaseDtoPagedResult.md b/docs/IpcchBaseDtoPagedResult.md new file mode 100644 index 0000000..5e23434 --- /dev/null +++ b/docs/IpcchBaseDtoPagedResult.md @@ -0,0 +1,31 @@ +# IpcchBaseDtoPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[IpcchBaseDto]**](IpcchBaseDto.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchBaseDtoPagedResult from a JSON string +ipcch_base_dto_paged_result_instance = IpcchBaseDtoPagedResult.from_json(json) +# print the JSON string representation of the object +print(IpcchBaseDtoPagedResult.to_json()) + +# convert the object into a dict +ipcch_base_dto_paged_result_dict = ipcch_base_dto_paged_result_instance.to_dict() +# create an instance of IpcchBaseDtoPagedResult from a dict +ipcch_base_dto_paged_result_from_dict = IpcchBaseDtoPagedResult.from_dict(ipcch_base_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcchPeaksDto.md b/docs/IpcchPeaksDto.md new file mode 100644 index 0000000..b873997 --- /dev/null +++ b/docs/IpcchPeaksDto.md @@ -0,0 +1,52 @@ +# IpcchPeaksDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**iso3_alpha3** | **str** | | [optional] +**country_name** | **str** | | [optional] +**population_group_id** | **int** | | [optional] +**population_group_name** | **str** | | [optional] +**analysis_title** | **str** | | [optional] +**analysis_date** | **datetime** | | [optional] +**period_start** | **datetime** | | [optional] +**period_end** | **datetime** | | [optional] +**period_type** | **str** | | [optional] +**population** | **float** | | [optional] +**population_analysed** | **int** | | [optional] +**population_analysed_percentage** | **float** | | [optional] +**phase3_population** | **float** | | [optional] +**phase4_population** | **float** | | [optional] +**phase5_population** | **float** | | [optional] +**phase3_plus_population** | **float** | | [optional] +**phase4_plus_population** | **int** | | [optional] +**phase3_percentage** | **float** | | [optional] +**phase4_percentage** | **float** | | [optional] +**phase5_percentage** | **float** | | [optional] +**phase3_plus_percentage** | **float** | | [optional] +**phase4_plus_percentage** | **float** | | [optional] +**data_source** | **str** | | [optional] +**reference_year** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchPeaksDto from a JSON string +ipcch_peaks_dto_instance = IpcchPeaksDto.from_json(json) +# print the JSON string representation of the object +print(IpcchPeaksDto.to_json()) + +# convert the object into a dict +ipcch_peaks_dto_dict = ipcch_peaks_dto_instance.to_dict() +# create an instance of IpcchPeaksDto from a dict +ipcch_peaks_dto_from_dict = IpcchPeaksDto.from_dict(ipcch_peaks_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IpcchPeaksDtoPagedResult.md b/docs/IpcchPeaksDtoPagedResult.md new file mode 100644 index 0000000..7177a40 --- /dev/null +++ b/docs/IpcchPeaksDtoPagedResult.md @@ -0,0 +1,31 @@ +# IpcchPeaksDtoPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[IpcchPeaksDto]**](IpcchPeaksDto.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of IpcchPeaksDtoPagedResult from a JSON string +ipcch_peaks_dto_paged_result_instance = IpcchPeaksDtoPagedResult.from_json(json) +# print the JSON string representation of the object +print(IpcchPeaksDtoPagedResult.to_json()) + +# convert the object into a dict +ipcch_peaks_dto_paged_result_dict = ipcch_peaks_dto_paged_result_instance.to_dict() +# create an instance of IpcchPeaksDtoPagedResult from a dict +ipcch_peaks_dto_paged_result_from_dict = IpcchPeaksDtoPagedResult.from_dict(ipcch_peaks_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ListItemDto.md b/docs/ListItemDto.md new file mode 100644 index 0000000..9f4fea1 --- /dev/null +++ b/docs/ListItemDto.md @@ -0,0 +1,31 @@ +# ListItemDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | | +**label** | **str** | | + +## Example + +```python +from data_bridges_client.models.list_item_dto import ListItemDto + +# TODO update the JSON string below +json = "{}" +# create an instance of ListItemDto from a JSON string +list_item_dto_instance = ListItemDto.from_json(json) +# print the JSON string representation of the object +print(ListItemDto.to_json()) + +# convert the object into a dict +list_item_dto_dict = list_item_dto_instance.to_dict() +# create an instance of ListItemDto from a dict +list_item_dto_from_dict = ListItemDto.from_dict(list_item_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MarketPricesApi.md b/docs/MarketPricesApi.md index e3828a7..fbdb20e 100644 --- a/docs/MarketPricesApi.md +++ b/docs/MarketPricesApi.md @@ -1,6 +1,6 @@ # data_bridges_client.MarketPricesApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -12,7 +12,7 @@ Method | HTTP request | Description # **market_prices_alps_get** -> ViewExtendedAlpsValuePagedResult market_prices_alps_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) +> ExtendedAlpsValueDtoPagedResult market_prices_alps_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) Returns time series values of ALPS and PEWI. @@ -24,14 +24,14 @@ Returns time series values of ALPS and PEWI. ```python import data_bridges_client -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -89,7 +89,7 @@ Name | Type | Description | Notes ### Return type -[**ViewExtendedAlpsValuePagedResult**](ViewExtendedAlpsValuePagedResult.md) +[**ExtendedAlpsValueDtoPagedResult**](ExtendedAlpsValueDtoPagedResult.md) ### Authorization @@ -110,7 +110,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **market_prices_price_daily_get** -> ViewExtendedAggregatedPricePagedResult market_prices_price_daily_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) +> ViewExtendedMonthlyAggregatedPricePagedResult market_prices_price_daily_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) Returns a daily time series of commodity market prices. @@ -122,14 +122,14 @@ Returns a daily time series of commodity market prices. ```python import data_bridges_client -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -187,7 +187,7 @@ Name | Type | Description | Notes ### Return type -[**ViewExtendedAggregatedPricePagedResult**](ViewExtendedAggregatedPricePagedResult.md) +[**ViewExtendedMonthlyAggregatedPricePagedResult**](ViewExtendedMonthlyAggregatedPricePagedResult.md) ### Authorization @@ -208,7 +208,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **market_prices_price_monthly_get** -> ViewExtendedAggregatedPricePagedResult market_prices_price_monthly_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) +> ViewExtendedMonthlyAggregatedPricePagedResult market_prices_price_monthly_get(country_code=country_code, market_id=market_id, commodity_id=commodity_id, price_type_name=price_type_name, currency_id=currency_id, price_flag=price_flag, start_date=start_date, end_date=end_date, latest_value_only=latest_value_only, page=page, format=format, env=env) Returns a monthly time series of commodity market prices. @@ -220,14 +220,14 @@ Returns a monthly time series of commodity market prices. ```python import data_bridges_client -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -285,7 +285,7 @@ Name | Type | Description | Notes ### Return type -[**ViewExtendedAggregatedPricePagedResult**](ViewExtendedAggregatedPricePagedResult.md) +[**ViewExtendedMonthlyAggregatedPricePagedResult**](ViewExtendedMonthlyAggregatedPricePagedResult.md) ### Authorization @@ -322,10 +322,10 @@ from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommo from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -420,10 +420,10 @@ from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/MarketsApi.md b/docs/MarketsApi.md index 2c9a807..459d0cb 100644 --- a/docs/MarketsApi.md +++ b/docs/MarketsApi.md @@ -1,6 +1,6 @@ # data_bridges_client.MarketsApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -27,10 +27,10 @@ from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -105,10 +105,10 @@ from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -185,10 +185,10 @@ import data_bridges_client from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -264,10 +264,10 @@ from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/RpmeApi.md b/docs/RpmeApi.md index acd5614..99cca22 100644 --- a/docs/RpmeApi.md +++ b/docs/RpmeApi.md @@ -1,6 +1,6 @@ # data_bridges_client.RpmeApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,10 +29,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -112,10 +112,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -197,10 +197,10 @@ from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessme from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -285,10 +285,10 @@ from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -369,10 +369,10 @@ from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePa from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -447,10 +447,10 @@ from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListD from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/SurveysApi.md b/docs/SurveysApi.md index 7f812f2..0bf2252 100644 --- a/docs/SurveysApi.md +++ b/docs/SurveysApi.md @@ -1,6 +1,6 @@ # data_bridges_client.SurveysApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -27,10 +27,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -110,10 +110,10 @@ from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyRes from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -195,10 +195,10 @@ from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters @@ -279,10 +279,10 @@ from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDa from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/docs/ViewExtendedAggregatedPricePagedResult.md b/docs/ViewExtendedAggregatedPricePagedResult.md deleted file mode 100644 index 6c53cfe..0000000 --- a/docs/ViewExtendedAggregatedPricePagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# ViewExtendedAggregatedPricePagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[ViewExtendedAggregatedPrice]**](ViewExtendedAggregatedPrice.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ViewExtendedAggregatedPricePagedResult from a JSON string -view_extended_aggregated_price_paged_result_instance = ViewExtendedAggregatedPricePagedResult.from_json(json) -# print the JSON string representation of the object -print(ViewExtendedAggregatedPricePagedResult.to_json()) - -# convert the object into a dict -view_extended_aggregated_price_paged_result_dict = view_extended_aggregated_price_paged_result_instance.to_dict() -# create an instance of ViewExtendedAggregatedPricePagedResult from a dict -view_extended_aggregated_price_paged_result_from_dict = ViewExtendedAggregatedPricePagedResult.from_dict(view_extended_aggregated_price_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ViewExtendedAlpsValuePagedResult.md b/docs/ViewExtendedAlpsValuePagedResult.md deleted file mode 100644 index fa809fd..0000000 --- a/docs/ViewExtendedAlpsValuePagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# ViewExtendedAlpsValuePagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[ViewExtendedAlpsValue]**](ViewExtendedAlpsValue.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of ViewExtendedAlpsValuePagedResult from a JSON string -view_extended_alps_value_paged_result_instance = ViewExtendedAlpsValuePagedResult.from_json(json) -# print the JSON string representation of the object -print(ViewExtendedAlpsValuePagedResult.to_json()) - -# convert the object into a dict -view_extended_alps_value_paged_result_dict = view_extended_alps_value_paged_result_instance.to_dict() -# create an instance of ViewExtendedAlpsValuePagedResult from a dict -view_extended_alps_value_paged_result_from_dict = ViewExtendedAlpsValuePagedResult.from_dict(view_extended_alps_value_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ViewExtendedAggregatedPrice.md b/docs/ViewExtendedMonthlyAggregatedPrice.md similarity index 68% rename from docs/ViewExtendedAggregatedPrice.md rename to docs/ViewExtendedMonthlyAggregatedPrice.md index a469a08..e914c07 100644 --- a/docs/ViewExtendedAggregatedPrice.md +++ b/docs/ViewExtendedMonthlyAggregatedPrice.md @@ -1,4 +1,4 @@ -# ViewExtendedAggregatedPrice +# ViewExtendedMonthlyAggregatedPrice ## Properties @@ -31,19 +31,19 @@ Name | Type | Description | Notes ## Example ```python -from data_bridges_client.models.view_extended_aggregated_price import ViewExtendedAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice # TODO update the JSON string below json = "{}" -# create an instance of ViewExtendedAggregatedPrice from a JSON string -view_extended_aggregated_price_instance = ViewExtendedAggregatedPrice.from_json(json) +# create an instance of ViewExtendedMonthlyAggregatedPrice from a JSON string +view_extended_monthly_aggregated_price_instance = ViewExtendedMonthlyAggregatedPrice.from_json(json) # print the JSON string representation of the object -print(ViewExtendedAggregatedPrice.to_json()) +print(ViewExtendedMonthlyAggregatedPrice.to_json()) # convert the object into a dict -view_extended_aggregated_price_dict = view_extended_aggregated_price_instance.to_dict() -# create an instance of ViewExtendedAggregatedPrice from a dict -view_extended_aggregated_price_from_dict = ViewExtendedAggregatedPrice.from_dict(view_extended_aggregated_price_dict) +view_extended_monthly_aggregated_price_dict = view_extended_monthly_aggregated_price_instance.to_dict() +# create an instance of ViewExtendedMonthlyAggregatedPrice from a dict +view_extended_monthly_aggregated_price_from_dict = ViewExtendedMonthlyAggregatedPrice.from_dict(view_extended_monthly_aggregated_price_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ViewExtendedMonthlyAggregatedPricePagedResult.md b/docs/ViewExtendedMonthlyAggregatedPricePagedResult.md new file mode 100644 index 0000000..78ab11e --- /dev/null +++ b/docs/ViewExtendedMonthlyAggregatedPricePagedResult.md @@ -0,0 +1,31 @@ +# ViewExtendedMonthlyAggregatedPricePagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[ViewExtendedMonthlyAggregatedPrice]**](ViewExtendedMonthlyAggregatedPrice.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of ViewExtendedMonthlyAggregatedPricePagedResult from a JSON string +view_extended_monthly_aggregated_price_paged_result_instance = ViewExtendedMonthlyAggregatedPricePagedResult.from_json(json) +# print the JSON string representation of the object +print(ViewExtendedMonthlyAggregatedPricePagedResult.to_json()) + +# convert the object into a dict +view_extended_monthly_aggregated_price_paged_result_dict = view_extended_monthly_aggregated_price_paged_result_instance.to_dict() +# create an instance of ViewExtendedMonthlyAggregatedPricePagedResult from a dict +view_extended_monthly_aggregated_price_paged_result_from_dict = ViewExtendedMonthlyAggregatedPricePagedResult.from_dict(view_extended_monthly_aggregated_price_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WeeklyAggregatedPrice.md b/docs/WeeklyAggregatedPrice.md index 4b8d6b8..712c40a 100644 --- a/docs/WeeklyAggregatedPrice.md +++ b/docs/WeeklyAggregatedPrice.md @@ -10,21 +10,22 @@ Name | Type | Description | Notes **price_type_id** | **int** | | [optional] **commodity_unit_id** | **int** | | [optional] **currency_id** | **int** | | [optional] +**adm0_code** | **int** | | [optional] +**commodity_date_week** | **int** | | [optional] +**commodity_date_month** | **int** | | [optional] +**commodity_date_year** | **int** | | [optional] +**commodity_price_date** | **datetime** | | [optional] **commodity_name** | **str** | | [optional] **market_name** | **str** | | [optional] **price_type_name** | **str** | | [optional] **commodity_unit_name** | **str** | | [optional] **currency_name** | **str** | | [optional] -**adm0_code** | **int** | | [optional] **country_iso3** | **str** | | [optional] **country_name** | **str** | | [optional] -**commodity_price** | **float** | | [optional] -**original_frequency** | **str** | | [optional] **commodity_price_source_name** | **str** | | [optional] +**original_frequency** | **str** | | [optional] +**commodity_price** | **float** | | [optional] **commodity_price_observations** | **int** | | [optional] -**commodity_date_month** | **int** | | [optional] -**commodity_date_year** | **int** | | [optional] -**commodity_price_date** | **datetime** | | [optional] **commodity_price_flag** | **str** | | [optional] ## Example diff --git a/docs/XlsFormsApi.md b/docs/XlsFormsApi.md index 423b3ec..5da65b1 100644 --- a/docs/XlsFormsApi.md +++ b/docs/XlsFormsApi.md @@ -1,6 +1,6 @@ # data_bridges_client.XlsFormsApi -All URIs are relative to *https://api.wfp.org/vam-data-bridges/6.0.0* +All URIs are relative to *https://api.wfp.org/vam-data-bridges/7.0.0* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -24,10 +24,10 @@ from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListD from data_bridges_client.rest import ApiException from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/6.0.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( - host = "https://api.wfp.org/vam-data-bridges/6.0.0" + host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) # The client must configure the authentication and authorization parameters diff --git a/generate/swagger-7.0.0.json b/generate/swagger-7.0.0.json new file mode 100644 index 0000000..d967e45 --- /dev/null +++ b/generate/swagger-7.0.0.json @@ -0,0 +1,8433 @@ +{ + "openapi" : "3.0.0", + "info" : { + "title" : "VAM-Data-Bridges", + "description" : "API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "contact" : { + "name" : "VAM-INFO", + "email" : "wfp.economicanalysis@wfp.org" + }, + "version" : "7.0.0" + }, + "servers" : [ { + "url" : "https://api.wfp.org/vam-data-bridges/7.0.0" + } ], + "security" : [ { + "default" : [ ] + } ], + "tags" : [ { + "name" : "Cari", + "description" : "Cari data" + }, { + "name" : "Commodities", + "description" : "Returns the list of commodities and their categories." + }, { + "name" : "CommodityUnits", + "description" : "Returns the list of unit of measures and their conversion factors to standard quantities." + }, { + "name" : "Currency", + "description" : "Returns official and, where available, unofficial exchange rates." + }, { + "name" : "EconomicData", + "description" : "Returns the time series of values for different indicators. \r\nOriginal source is Trading Economics, licensed for redistribution only to the Vulnerability Analysis and Mapping - Economic and Market Analysis Unit." + }, { + "name" : "GlobalOutlook", + "description" : "Number of acutely food insecure people in countries with WFP operational presence and where data is available, in millions. \r\nSource is WFP's Global Outlook (until 2024: Global Operational Response Plan), numbers are updated with each publication (2 times a year). \r\nNumbers are based on information from Integrated Phase Classification (IPC), Cadre Harmonisé (CH), or comparable analyses (peak values). \r\nAs updates provide improved estimates for the given year, they are not intended for trend analysis." + }, { + "name" : "Household", + "description" : "Household Surveys" + }, { + "name" : "HungerHotspot", + "description" : "Hunger Hotspot data" + }, { + "name" : "Ipcch", + "description" : "IPCCH data" + }, { + "name" : "MarketPrices", + "description" : "Returns time series of commodity market prices at different frequencies." + }, { + "name" : "Markets", + "description" : "Returns the list of market locations with Administrative level codes matching with the VAM internal API." + }, { + "name" : "Rpme", + "description" : "Retail Performance Monitoring and Evaluation" + }, { + "name" : "Surveys", + "description" : "Market Functionality Index Surveys" + }, { + "name" : "XlsForms", + "description" : "Market Functionality Index XLS Forms" + } ], + "paths" : { + "/Cari/Adm0Values" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and\r\nsurvey.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm0values_get\"\n\nThis method returns a paginated list of results based on the provided filters. Ensure\r\n that the parameters are valid and correspond to existing data in the repository. If an error occurs during\r\n processing, a bad request response is returned with the error details.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "The administrative level 0 code to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "surveyId", + "in" : "query", + "description" : "The unique identifier of the survey to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "indicatorId", + "in" : "query", + "description" : "The unique identifier of the indicator to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "The page number for pagination. Defaults to 1.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm0ValuesDTOPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm0ValuesDTOPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm0ValuesDTOPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_cari-adm0values_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Cari/Adm1Values" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and\r\nsurvey.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_cari-adm1values_get\"\n\nThis method returns a paginated list of results based on the provided filters. Ensure\r\n that the parameters are valid and correspond to existing data in the repository. If an error occurs during\r\n processing, a bad request response is returned with the error details.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "The administrative level 0 code to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "surveyId", + "in" : "query", + "description" : "The unique identifier of the survey to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "indicatorId", + "in" : "query", + "description" : "The unique identifier of the indicator to filter the results.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "The page number for pagination. Defaults to 1.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm1ValuesDTOPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm1ValuesDTOPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/CariAdm1ValuesDTOPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_cari-adm1values_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Commodities/List" : { + "get" : { + "tags" : [ "Commodities" ], + "summary" : "Provide the detailed list of the commodities available in DataBridges platform", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodities-list_get\"\n\nCOICOP 2018 codes are returned to hierarchically matching categories based on [UN-Statistical Division codes](https://unstats.un.org/unsd/classifications/Econ/). No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "commodityName", + "in" : "query", + "description" : "The name, even partial and case insensitive, of a commodity", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a commodity", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_commodities-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Commodities/Categories/List" : { + "get" : { + "tags" : [ "Commodities" ], + "summary" : "Provides the list of categories.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodities-categories-list_get\"\n\nCategories are matched with high level WFP commodity classification at level 1. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "categoryName", + "in" : "query", + "description" : "The name, even partial and case insensitive, of a commodity category.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "categoryID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_commodities-categories-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/CommodityUnits/List" : { + "get" : { + "tags" : [ "CommodityUnits" ], + "summary" : "Provides the detailed list of the unit of measure available in DataBridges platform", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodityunits-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "commodityUnitName", + "in" : "query", + "description" : "The name, even partial and case insensitive, of a commodity unit", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "commodityUnitID", + "in" : "query", + "description" : "The exact ID of a commodity unit", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_commodityunits-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/CommodityUnits/Conversion/List" : { + "get" : { + "tags" : [ "CommodityUnits" ], + "summary" : "Provides conversion factors to Kilogram or Litres for each convertible unit of measure.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodityunits-conversion-list_get\"\n\nSome non-standard units of measure might have different a conversion factor based on the country [Adm0Code]; Other non-standard units of measure might have a different conversion factor based on the commodity [CommodityID] being measured. Other cases will have null adm0code and CommodityID. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "fromUnitID", + "in" : "query", + "description" : "The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "toUnitID", + "in" : "query", + "description" : "The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_commodityunits-conversion-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Currency/List" : { + "get" : { + "tags" : [ "Currency" ], + "summary" : "Returns the list of currencies available in the internal VAM database, with Currency 3-letter code, matching with ISO 4217.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_currency-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "currencyName", + "in" : "query", + "description" : "Currency 3-letter code, matching with ISO 4217.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "Unique code to identify the currency in internal VAM currencies.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCurrencyListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCurrencyListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCurrencyListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_currency-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Currency/UsdIndirectQuotation" : { + "get" : { + "tags" : [ "Currency" ], + "summary" : "Returns the value of the Exchange rates from Trading Economics, for official rates, and DataViz for unofficial rates.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_currency-usdindirectquotation_get\"\n\nReturns the time series of values of the Exchange rate of the Local Currency for buying 1 USD in the official market. Original frequency for official rates is daily, non-indicated. Unofficial rates are aggregated at national level by the original frequency of collection. For greater detail on unofficial exchange rates, explore the Exchange Rate (unofficial) commodity in Market Prices Prices. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryIso3", + "in" : "query", + "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyName", + "in" : "query", + "description" : "the ISO3 code for the currency, based on ISO4217", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_currency-usdindirectquotation_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/EconomicData/{indicatorName}" : { + "get" : { + "tags" : [ "EconomicData" ], + "summary" : "Returns the time series of values for different indicators.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_economicdata_get\"\n\nIndicator name as retrieved from /EconomicData/IndicatorList is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "indicatorName", + "in" : "path", + "description" : "Name of the indicator as found in /EconomicData/IndicatorList.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "iso3", + "in" : "query", + "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedEconomicDataDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedEconomicDataDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedEconomicDataDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_economicdata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/EconomicData/IndicatorList" : { + "get" : { + "tags" : [ "EconomicData" ], + "summary" : "Returns the lists of indicators.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_economicdata-indicatorlist_get\"\n\nReturns the lists of indicators for which Vulnerability Analysis and Mapping - Economic and Market Analysis Unit has redistribution licensing from Trading Economics. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "indicatorName", + "in" : "query", + "description" : "Unique indicator name.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "iso3", + "in" : "query", + "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_economicdata-indicatorlist_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/GlobalOutlook/CountryLatest" : { + "get" : { + "tags" : [ "GlobalOutlook" ], + "summary" : "Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-countrylatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookCountryApiDto" + } + } + }, + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookCountryApiDto" + } + } + }, + "text/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookCountryApiDto" + } + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_globaloutlook-countrylatest_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/GlobalOutlook/RegionalLatest" : { + "get" : { + "tags" : [ "GlobalOutlook" ], + "summary" : "Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-regionallatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookRegionalApiDto" + } + } + }, + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookRegionalApiDto" + } + } + }, + "text/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/GlobalOutlookRegionalApiDto" + } + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_globaloutlook-regionallatest_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/GlobalOutlook/GlobalLatest" : { + "get" : { + "tags" : [ "GlobalOutlook" ], + "summary" : "Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_globaloutlook-globallatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/GlobalOutlookApiDto" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GlobalOutlookApiDto" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/GlobalOutlookApiDto" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_globaloutlook-globallatest_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Household/Surveys" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all household surveys conducted in a country. \r\nA date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload for each survey.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "surveyId", + "in" : "query", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/HouseholdSurveyListDTOPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_household-surveys_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Household/FullData" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core household fields by Survey ID.\r\nTo access this data, please contact Wael ATTIA for authorization. \r\nThis endpoint will send you only data you have access to, based on permissions assigned to your application profile. \r\nThe \"apiKey\" can be found in the profile section of the DataBridges application.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "apiKey", + "in" : "query", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "403" : { + "description" : "Forbidden", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_household-fulldata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Household/DraftInternalBaseData" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Get data that includes the core household fields only by Survey ID.\r\nTo access this data, please contact Wael ATTIA for authorization. \r\nThis endpoint will send you only data you have access to, based on permissions assigned to your application profile. \r\nThe \"apiKey\" can be found in the profile section of the DataBridges application.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-draftinternalbasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "apiKey", + "in" : "query", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "403" : { + "description" : "Forbidden", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_household-draftinternalbasedata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Household/OfficialUseBaseData" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Get data that includes the core household fields only by Survey ID", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-officialusebasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_household-officialusebasedata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Household/PublicBaseData" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Get data that includes the core household fields only by Survey ID", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-publicbasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_household-publicbasedata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/HungerHotspot/CategoriesAndIndicators" : { + "get" : { + "tags" : [ "HungerHotspot" ], + "summary" : "Retrieves Hunger Hotspot categories and indicators.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-categoriesandindicators_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/CategoriesAndIndicatorsDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CategoriesAndIndicatorsDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/CategoriesAndIndicatorsDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_hungerhotspot-categoriesandindicators_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/HungerHotspot/Data" : { + "get" : { + "tags" : [ "HungerHotspot" ], + "summary" : "Retrieves a paginated list of Hunger Hotspot data.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_hungerhotspot-data_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "page", + "in" : "query", + "description" : "The page number for pagination. Defaults to 1.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/HungerHotSpotDataDTOPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/HungerHotSpotDataDTOPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/HungerHotSpotDataDTOPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_hungerhotspot-data_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard" : { + "get" : { + "tags" : [ "Ipcch" ], + "summary" : "Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "iso3", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "The page number for pagination. Defaults to 1.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchAndEquivalentPeaksDTOPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchAndEquivalentPeaksDTOPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchAndEquivalentPeaksDTOPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Ipcch/IPCCH-HistoricalData" : { + "get" : { + "tags" : [ "Ipcch" ], + "summary" : "Retrieves a paginated list of IPCCH and Equivalent Historical Data.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcch-historicaldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "fromDate", + "in" : "query", + "description" : "Date in the format yyyy-mm-dd, refers to the analysis date", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "toDate", + "in" : "query", + "description" : "Date in the format yyyy-mm-dd, refers to the analysis date", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "iso3", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/IpcHistoricalDatumDtoPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcHistoricalDatumDtoPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcHistoricalDatumDtoPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_ipcch-ipcch-historicaldata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Ipcch/IPCCHAndEquivalent-MostRecent" : { + "get" : { + "tags" : [ "Ipcch" ], + "summary" : "Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "iso3", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchBaseDtoPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchBaseDtoPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchBaseDtoPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Ipcch/IPCCHAndEquivalent-LatestPeaks" : { + "get" : { + "tags" : [ "Ipcch" ], + "summary" : "Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "iso3", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Ipcch/IPCCHAndEquivalent-HistoricalPeaks" : { + "get" : { + "tags" : [ "Ipcch" ], + "summary" : "Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "referenceYear", + "in" : "query", + "description" : "Year in a 4 digit format, for example: 2025", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "iso3", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/IpcchPeaksDtoPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MarketPrices/PriceMonthly" : { + "get" : { + "tags" : [ "MarketPrices" ], + "summary" : "Returns a monthly time series of commodity market prices.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricemonthly_get\"\n\nThis is the lowest frequency available and the most complete data source. Data is flagged according to its pre-processing characteristics. actual data is collected originally with monthly frequency; aggregated data is collected with higher frequency (daily or weekly) averaged through a weighted mean to monthly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceTypeName", + "in" : "query", + "description" : "Price type: [retail|wholesale|farmgate]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "The exact ID of a currency, as found in /Currency/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceFlag", + "in" : "query", + "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "latestValueOnly", + "in" : "query", + "description" : "[TRUE|FALSE]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_marketprices-pricemonthly_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MarketPrices/PriceWeekly" : { + "get" : { + "tags" : [ "MarketPrices" ], + "summary" : "Returns a weekly time series of commodity market prices.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-priceweekly_get\"\n\nWeeks used as reference are the International Organization for Standardization (ISO) week-numbering year (ISO-8601). Data is flagged according to its pre-processing characteristics. Aactual data is collected originally with weekly frequency; aggregated data is collected with higher frequency (daily) averaged through a weighted mean to weekly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceTypeName", + "in" : "query", + "description" : "Price type: [retail|wholesale|farmgate]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "The exact ID of a currency, as found in /Currency/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceFlag", + "in" : "query", + "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "latestValueOnly", + "in" : "query", + "description" : "[TRUE|FALSE]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_marketprices-priceweekly_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MarketPrices/PriceDaily" : { + "get" : { + "tags" : [ "MarketPrices" ], + "summary" : "Returns a daily time series of commodity market prices.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricedaily_get\"\n\nThis is the highest frequency available. Data is flagged according to its pre-processing characteristics.\r\nActual data is collected originally with daily frequency; aggregated data returns an empty list; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in DataLibrary. For specific methodological notes on forecasts and imputations refer to the dedicated page in DataViz. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceTypeName", + "in" : "query", + "description" : "Price type: [retail|wholesale|farmgate]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "The exact ID of a currency, as found in /Currency/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceFlag", + "in" : "query", + "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "latestValueOnly", + "in" : "query", + "description" : "[TRUE|FALSE]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPricePagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_marketprices-pricedaily_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MarketPrices/PriceRaw" : { + "get" : { + "tags" : [ "MarketPrices" ], + "summary" : "Returns original commodity market prices", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-priceraw_get\"\n\nRestricted endpoint. Returns the original data with the entire Commodity Price Metadata as inserted by the focal point, which might contain sensitive or personal informatio. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceTypeName", + "in" : "query", + "description" : "Price type: [retail|wholesale|farmgate]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "The exact ID of a currency, as found in /Currency/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceFlag", + "in" : "query", + "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "latestValueOnly", + "in" : "query", + "description" : "[TRUE|FALSE]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_marketprices-priceraw_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MarketPrices/Alps" : { + "get" : { + "tags" : [ "MarketPrices" ], + "summary" : "Returns time series values of ALPS and PEWI.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-alps_get\"\n\nReturns the full time series of the Alert for Price Spikes (ALPS) and the value of the Price Early Warning Index (PEWI). Methodology is available in [DataViz](https://dataviz.vam.wfp.org/) and [VAM-Resource Centre](https://resources.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "commodityID", + "in" : "query", + "description" : "The exact ID of a Commodity, as found in /Commodities/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceTypeName", + "in" : "query", + "description" : "Price type: [retail|wholesale|farmgate]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "currencyID", + "in" : "query", + "description" : "The exact ID of a currency, as found in /Currency/List", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "priceFlag", + "in" : "query", + "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "latestValueOnly", + "in" : "query", + "description" : "[TRUE|FALSE]", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "page", + "in" : "query", + "description" : "Page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ExtendedAlpsValueDtoPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ExtendedAlpsValueDtoPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ExtendedAlpsValueDtoPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_marketprices-alps_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Markets/GeoJSONList" : { + "get" : { + "tags" : [ "Markets" ], + "summary" : "Provide a list of geo referenced markets in a specific country", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-geojsonlist_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0code", + "in" : "query", + "description" : "The admin code of the country", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/geo+json" : { + "schema" : { + "$ref" : "#/components/schemas/MarketGeoJsonRoot" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/geo+json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_markets-geojsonlist_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Markets/NearbyMarkets" : { + "get" : { + "tags" : [ "Markets" ], + "summary" : "Find markets near a given location by longitude and latitude within a 15Km distance", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-nearbymarkets_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "lat", + "in" : "query", + "description" : "latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "number", + "format" : "double" + } + }, { + "name" : "lng", + "in" : "query", + "description" : "longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "number", + "format" : "double" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/NearbyMarketsDTO" + } + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_markets-nearbymarkets_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Markets/MarketsAsCSV" : { + "get" : { + "tags" : [ "Markets" ], + "summary" : "Get a complete list of markets in a country", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-marketsascsv_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0code", + "in" : "query", + "description" : "The admin code of the country", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "localNames", + "in" : "query", + "description" : "If true the name of markets and regions will be localized if available", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "type" : "string", + "format" : "binary" + } + }, + "application/json" : { + "schema" : { + "type" : "string", + "format" : "binary" + } + }, + "text/json" : { + "schema" : { + "type" : "string", + "format" : "binary" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_markets-marketsascsv_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Markets/List" : { + "get" : { + "tags" : [ "Markets" ], + "summary" : "Get a complete list of markets in a country", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "countryCode", + "in" : "query", + "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedMarketListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedMarketListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedMarketListDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_markets-list_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/Variables" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "List of variables", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "page", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeVariablePagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeVariablePagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeVariablePagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-variables_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/OutputValues" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "Processed values for each variable used in the assessments", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-outputvalues_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "adm0Code", + "in" : "query", + "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "surveyId", + "in" : "query", + "description" : "The ID of the survey", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "shopId", + "in" : "query", + "description" : "The ID of the shop", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "marketId", + "in" : "query", + "description" : "The ID of the market", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "adm0CodeDots", + "in" : "query", + "description" : "", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-outputvalues_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/Surveys" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all RPME surveys conducted in a country. The date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload of each survey.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyListDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyListDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-surveys_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/XLSForms" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "Get a complete list of XLS Forms uploaded on the RPME in a given period of data collection. This is the digital version of the questionnaire used during the data collection exercise.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-xlsforms_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedXlsFormListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-xlsforms_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/FullData" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core RPME fields by Survey ID.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-fulldata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/Rpme/BaseData" : { + "get" : { + "tags" : [ "Rpme" ], + "summary" : "Get data that includes the core RPME fields only by Survey ID", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-basedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_rpme-basedata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/Surveys" : { + "get" : { + "tags" : [ "Surveys" ], + "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all MFI surveys conducted in a country. \r\nA date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload for each survey.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-surveys_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/Surveys/ProcessedData" : { + "get" : { + "tags" : [ "Surveys" ], + "summary" : "Get a MFI processed data in long format; levels indicate the data aggregation level 1) Normalized Score, 2) Trader Aggregate Score, \r\n3) Market Aggregate Score, 4) Trader Median, 5) Trader Mean, 6) Market Mean; each line corresponds to one of the nine dimensions of scores \r\nplus the final MFI aggregate score; 1) Assortment, 2) Availability, 3) Price, 4) Resilience, 5) Competition, 6) Infrastructure, 7) Service, \r\n8) Quality, 9) Access and Protection, and 10) MFI final score; the variable label describes each variable and its value range", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-processeddata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "The ID of the survey", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "adm0Codes", + "in" : "query", + "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "The ID of the market", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "surveyType", + "in" : "query", + "description" : "The survey type", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-surveys-processeddata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/Surveys/ProcessedDataWithKeysetPagination" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Please use this endpoint only for large data retrieval - Response will include only JSON format - \r\nGet a MFI processed data in long format; levels indicate the data aggregation level 1) Normalized Score, 2) Trader Aggregate Score, \r\n3) Market Aggregate Score, 4) Trader Median, 5) Trader Mean, 6) Market Mean; each line corresponds to one of the nine dimensions of scores \r\nplus the final MFI aggregate score; 1) Assortment, 2) Availability, 3) Price, 4) Resilience, 5) Competition, 6) Infrastructure, 7) Service, \r\n8) Quality, 9) Access and Protection, and 10) MFI final score; the variable label describes each variable and its value range", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-processeddatakeysetpagination_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "The ID of the survey", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "scrollId", + "in" : "query", + "description" : "The pointer to the next paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "pageSize", + "in" : "query", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1000 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "adm0Codes", + "in" : "query", + "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "marketID", + "in" : "query", + "description" : "The ID of the market", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "surveyType", + "in" : "query", + "description" : "The survey type", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedProcessedDataDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/Surveys/FullData" : { + "get" : { + "tags" : [ "Surveys" ], + "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core Market Functionality Index (MFI) fields by Survey ID. To access this data, please contact global.mfi@wfp.org for authorization.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "format", + "in" : "query", + "description" : "Output format: [JSON|CSV] Json is the default value", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "default" : "json" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-surveys-fulldata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/Surveys/BaseData" : { + "get" : { + "tags" : [ "Surveys" ], + "summary" : "Get data that includes the core Market Functionality Index (MFI) fields only by Survey ID", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-basedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "surveyID", + "in" : "query", + "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "page size for paged results, default value is 20.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 20 + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + }, + "404" : { + "description" : "Not Found", + "content" : { + "text/plain" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + }, + "text/json" : { + "schema" : { + "$ref" : "#/components/schemas/ProblemDetails" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-surveys-basedata_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/MFI/XlsForms" : { + "get" : { + "tags" : [ "XlsForms" ], + "summary" : "Get a complete list of XLS Forms uploaded on the MFI Data Bridge in a given period of data collection. This is the digital version of the questionnaire used during the data collection exercise.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-xlsforms_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "adm0Code", + "in" : "query", + "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 0 + } + }, { + "name" : "page", + "in" : "query", + "description" : "page number for paged results", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32", + "default" : 1 + } + }, { + "name" : "startDate", + "in" : "query", + "description" : "starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "endDate", + "in" : "query", + "description" : "ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PagedXlsFormListDTO" + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_mfi-xlsforms_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + }, + "/XlsForms/definition" : { + "get" : { + "tags" : [ "Incubation" ], + "summary" : "Get a complete set of XLS Form definitions of a given XLS Form ID. This is the digital version of the questionnaire used during the data collection exercise.", + "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_xlsforms-definition_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", + "parameters" : [ { + "name" : "xlsFormId", + "in" : "query", + "description" : "unique identifier for the XLS Form, as retrieved from /XLSForms", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "env", + "in" : "query", + "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "prod", "dev" ] + } + } ], + "responses" : { + "200" : { + "description" : "OK", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/XlsFormDefinitionNewSchemaDTO" + } + } + } + } + }, + "400" : { + "description" : "Bad Request", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BadRequestDTO" + } + } + } + } + }, + "security" : [ { + "default" : [ "vamdatabridges_xlsforms-definition_get" ] + } ], + "x-auth-type" : "Application & Application User", + "x-throttling-tier" : "Unlimited" + } + } + }, + "components" : { + "schemas" : { + "BadRequestDTO" : { + "type" : "object", + "properties" : { + "error" : { + "type" : "string", + "description" : "The error message returned by the application", + "nullable" : true + } + }, + "additionalProperties" : { }, + "description" : "" + }, + "CariAdm0ValuesDTO" : { + "type" : "object", + "properties" : { + "surveyID" : { + "type" : "integer", + "format" : "int32" + }, + "surveyName" : { + "type" : "string", + "nullable" : true + }, + "cariMethodologyName" : { + "type" : "string", + "nullable" : true + }, + "fcsMethodologyName" : { + "type" : "string", + "nullable" : true + }, + "additionalSurveyMetadata" : { + "type" : "string", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "adm0Name" : { + "type" : "string", + "nullable" : true + }, + "cariIndicatorID" : { + "type" : "integer", + "format" : "int32" + }, + "cariIndicatorName" : { + "type" : "string", + "nullable" : true + }, + "cariIndicatorCategoryID" : { + "type" : "integer", + "format" : "int32" + }, + "indicatorCategoryLabel" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "CariAdm0ValuesDTOPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/CariAdm0ValuesDTO" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "CariAdm1ValuesDTO" : { + "type" : "object", + "properties" : { + "surveyID" : { + "type" : "integer", + "format" : "int32" + }, + "surveyName" : { + "type" : "string", + "nullable" : true + }, + "cariMethodologyName" : { + "type" : "string", + "nullable" : true + }, + "fcsMethodologyName" : { + "type" : "string", + "nullable" : true + }, + "additionalSurveyMetadata" : { + "type" : "string", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "adm0Name" : { + "type" : "string", + "nullable" : true + }, + "cariIndicatorID" : { + "type" : "integer", + "format" : "int32" + }, + "cariIndicatorName" : { + "type" : "string", + "nullable" : true + }, + "cariIndicatorCategoryID" : { + "type" : "integer", + "format" : "int32" + }, + "indicatorCategoryLabel" : { + "type" : "string", + "nullable" : true + }, + "adm1Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "adm1Name" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "CariAdm1ValuesDTOPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/CariAdm1ValuesDTO" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "CategoriesAndIndicatorsDTO" : { + "type" : "object", + "properties" : { + "categories" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/ListItemDto" + } + }, + "indicators" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/ListItemDto" + } + } + }, + "additionalProperties" : { } + }, + "CommodityDTO" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "description" : "The internal ID of the commodity", + "format" : "int32" + }, + "parentId" : { + "type" : "integer", + "description" : "The internal parent ID of the commodity", + "format" : "int32", + "nullable" : true + }, + "name" : { + "type" : "string", + "description" : "The name of the commodity", + "nullable" : true + }, + "coicop2018" : { + "type" : "string", + "description" : "The COICOP 2018 definition", + "nullable" : true + }, + "supply" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "categoryId" : { + "type" : "integer", + "format" : "int32" + }, + "createDate" : { + "type" : "string", + "format" : "date-time" + }, + "updateDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "qualities" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/CommodityQualityDTO" + } + }, + "processing" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/CommodityProcessingDTO" + } + } + }, + "additionalProperties" : { } + }, + "CommodityPriceDTO" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "description" : "The internal ID of the commodity", + "format" : "int32" + }, + "commodityId" : { + "type" : "integer", + "format" : "int32" + }, + "marketId" : { + "type" : "integer", + "format" : "int32" + }, + "priceTypeId" : { + "type" : "integer", + "format" : "int32" + }, + "commodityUnitId" : { + "type" : "integer", + "format" : "int32" + }, + "currencyId" : { + "type" : "integer", + "format" : "int32" + }, + "commodityName" : { + "type" : "string", + "nullable" : true + }, + "marketName" : { + "type" : "string", + "nullable" : true + }, + "priceTypeName" : { + "type" : "string", + "nullable" : true + }, + "unitName" : { + "type" : "string", + "nullable" : true + }, + "currencyName" : { + "type" : "string", + "nullable" : true + }, + "originalFrequency" : { + "type" : "string", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32" + }, + "countryISO3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "commodityPrice" : { + "type" : "number", + "format" : "double" + }, + "commodityPriceSourceName" : { + "type" : "string", + "nullable" : true + }, + "commodityPriceMetadata" : { + "nullable" : true + }, + "commodityPriceDate" : { + "type" : "string", + "format" : "date-time" + }, + "commodityPriceObservations" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDateDay" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDateWeek" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDateMonth" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDateYear" : { + "type" : "integer", + "format" : "int32" + }, + "commodityPriceInsertDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "commodityPriceFlag" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "CommodityProcessingDTO" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "description" : "The internal ID of the commodity", + "format" : "int32" + }, + "name" : { + "type" : "string", + "description" : "The name of the process", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "CommodityQualityDTO" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "description" : "The internal ID of the commodity", + "format" : "int32" + }, + "name" : { + "type" : "string", + "description" : "The name of the commodity", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "CurrencyDTO" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "description" : "The internal ID of the unit", + "format" : "int32" + }, + "name" : { + "type" : "string", + "description" : "The name of the unit", + "nullable" : true + }, + "extendedName" : { + "type" : "string", + "nullable" : true + }, + "createDate" : { + "type" : "string", + "format" : "date-time" + }, + "updateDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "EconomicDataDTO" : { + "type" : "object", + "properties" : { + "date" : { + "type" : "string", + "format" : "date-time" + }, + "value" : { + "type" : "number", + "format" : "double" + } + }, + "additionalProperties" : { } + }, + "EconomicIndicatorProperty" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string", + "nullable" : true + }, + "frequency" : { + "type" : "string", + "nullable" : true + }, + "unit" : { + "type" : "string", + "nullable" : true + }, + "dataSource" : { + "type" : "string", + "nullable" : true + }, + "countryIso3" : { + "type" : "string", + "nullable" : true + }, + "latestValue" : { + "type" : "number", + "format" : "double" + }, + "latestValueDate" : { + "type" : "string", + "format" : "date-time" + } + }, + "additionalProperties" : { } + }, + "EconomicIndicatorPropertyPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/EconomicIndicatorProperty" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "ExtendedAlpsValueDto" : { + "type" : "object", + "properties" : { + "commodityId" : { + "type" : "integer", + "format" : "int32" + }, + "marketId" : { + "type" : "integer", + "format" : "int32" + }, + "priceTypeId" : { + "type" : "integer", + "format" : "int32" + }, + "commodityUnitId" : { + "type" : "integer", + "format" : "int32" + }, + "currencyId" : { + "type" : "integer", + "format" : "int32" + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "commodityPriceDateYear" : { + "type" : "integer", + "format" : "int32" + }, + "commodityPriceDateMonth" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDateWeek" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "commodityName" : { + "type" : "string", + "nullable" : true + }, + "marketName" : { + "type" : "string", + "nullable" : true + }, + "priceTypeName" : { + "type" : "string", + "nullable" : true + }, + "commodityUnitName" : { + "type" : "string", + "nullable" : true + }, + "currencyName" : { + "type" : "string", + "nullable" : true + }, + "analysisValueEstimatedPrice" : { + "type" : "number", + "format" : "double" + }, + "analysisValuePewiValue" : { + "type" : "number", + "format" : "double" + }, + "analysisValuePriceFlag" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "ExtendedAlpsValueDtoPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/ExtendedAlpsValueDto" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "Feature" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string", + "nullable" : true + }, + "id" : { + "type" : "integer", + "format" : "int32" + }, + "bbox" : { + "type" : "array", + "nullable" : true, + "items" : { + "type" : "number", + "format" : "double" + } + }, + "geometry" : { + "$ref" : "#/components/schemas/Geometry" + }, + "properties" : { + "$ref" : "#/components/schemas/Properties" + } + }, + "additionalProperties" : { } + }, + "Geometry" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string", + "nullable" : true + }, + "coordinates" : { + "type" : "array", + "nullable" : true, + "items" : { + "type" : "number", + "format" : "double" + } + } + }, + "additionalProperties" : { } + }, + "GlobalOutlookApiDto" : { + "type" : "object", + "properties" : { + "date" : { + "type" : "string", + "nullable" : true + }, + "regionName" : { + "type" : "string", + "nullable" : true + }, + "totalValue" : { + "type" : "number", + "format" : "double" + }, + "numberOfCountries" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "comment" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "GlobalOutlookCountryApiDto" : { + "type" : "object", + "properties" : { + "date" : { + "type" : "string", + "nullable" : true + }, + "countryOfficeIso3" : { + "type" : "string", + "nullable" : true + }, + "totalValue" : { + "type" : "number", + "format" : "double" + }, + "comment" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "GlobalOutlookRegionalApiDto" : { + "type" : "object", + "properties" : { + "date" : { + "type" : "string", + "nullable" : true + }, + "regionName" : { + "type" : "string", + "nullable" : true + }, + "totalValue" : { + "type" : "number", + "format" : "double" + }, + "numberOfCountries" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "comment" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "HouseholdSurveyListDTO" : { + "type" : "object", + "properties" : { + "surveyID" : { + "type" : "integer", + "description" : "The Id of the Survey", + "format" : "int32" + }, + "surveyStatusID" : { + "type" : "integer", + "description" : "The Id of the Survey status", + "format" : "int32" + }, + "surveyStartDate" : { + "type" : "string", + "description" : "The date when the survey has started", + "format" : "date-time", + "nullable" : true + }, + "surveyEndDate" : { + "type" : "string", + "description" : "The date when the survey has ended", + "format" : "date-time", + "nullable" : true + }, + "surveyCreateDate" : { + "type" : "string", + "description" : "The date when the survey has been uploaded in the Data Bridges platform", + "format" : "date-time" + }, + "surveyValidationReport" : { + "type" : "string", + "description" : "The detailed report on the validation performed on the survey schema", + "nullable" : true + }, + "surveyOriginalFilename" : { + "maxLength" : 256, + "minLength" : 0, + "type" : "string", + "description" : "The filename of the survey CSV file", + "nullable" : true + }, + "xlsFormName" : { + "type" : "string", + "description" : "The name of the XLSForm used to collect data", + "nullable" : true + }, + "baseXlsFormName" : { + "type" : "string", + "description" : "The name of the base XLSForm used to build the XLSForm", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "description" : "The name of the country where the survey has taken place", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "description" : "The internal code of the country where the survey has taken place", + "format" : "int32" + }, + "iso3Alpha3" : { + "type" : "string", + "description" : "The ISO3 alpha code of the country where the survey has taken place", + "nullable" : true + }, + "userName" : { + "type" : "string", + "description" : "The name of the user that has uploaded the survey data", + "nullable" : true + }, + "approvedBy" : { + "type" : "string", + "nullable" : true + }, + "originalCsvFile" : { + "type" : "string", + "description" : "The link to download the original CSV file", + "nullable" : true + }, + "baseData" : { + "type" : "string", + "description" : "The link to the JSON data reshaped on the base XLSForm", + "nullable" : true + }, + "surveyAttributes" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/KeyNameDto" + } + }, + "organizations" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/KeyNameDto" + } + }, + "surveyModalityName" : { + "type" : "string", + "nullable" : true + }, + "surveyCategoryName" : { + "type" : "string", + "nullable" : true + }, + "surveySubCategoryName" : { + "type" : "string", + "nullable" : true + }, + "surveyPhaseName" : { + "type" : "string", + "nullable" : true + }, + "surveyVisibility" : { + "type" : "string", + "nullable" : true + }, + "isContinuousMonitoring" : { + "type" : "boolean" + }, + "surveyName" : { + "type" : "string", + "nullable" : true + }, + "xlsFormId" : { + "type" : "integer", + "format" : "int32" + }, + "baseXlsFormId" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "HouseholdSurveyListDTOPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/HouseholdSurveyListDTO" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "HungerHotSpotDataDTO" : { + "type" : "object", + "properties" : { + "iso3Code" : { + "type" : "string", + "nullable" : true + }, + "hungerHotspotsDate" : { + "type" : "string", + "format" : "date-time" + }, + "category" : { + "$ref" : "#/components/schemas/ListItemDto" + }, + "indicators" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/ListItemDto" + } + } + }, + "additionalProperties" : { } + }, + "HungerHotSpotDataDTOPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/HungerHotSpotDataDTO" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "IpcHistoricalDatumDto" : { + "type" : "object", + "properties" : { + "analysisId" : { + "type" : "integer", + "format" : "int32" + }, + "analysisTitle" : { + "type" : "string", + "nullable" : true + }, + "iso3Alpha3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "analysisDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "StartDate_CurrentPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "EndDate_CurrentPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "StartDate_ProjectedPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "EndDate_ProjectedPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "StartDate_SecondProjectedPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "EndDate_SecondProjectedPeriod" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "populationPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPopulation" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "estimatedPopulation" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "estimatedPopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1PopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1PercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2PopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2PercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5PopulationProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5PercentageProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "estimatedPopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1PopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase1PercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2PopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase2PercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5PopulationSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5PercentageSecondProjected" : { + "type" : "number", + "format" : "double", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "IpcHistoricalDatumDtoPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/IpcHistoricalDatumDto" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "IpcchAndEquivalentPeaksDTO" : { + "type" : "object", + "properties" : { + "regionalBureauID" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "regionalBureauName" : { + "type" : "string", + "nullable" : true + }, + "iso3Alpha3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "phase3Population" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "phase4Population" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "phase5Population" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "phase3PlusPopulation" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "IpcchAndEquivalentPeaksDTOPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/IpcchAndEquivalentPeaksDTO" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "IpcchBaseDto" : { + "type" : "object", + "properties" : { + "iso3Alpha3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "populationGroupId" : { + "type" : "integer", + "format" : "int32" + }, + "populationGroupName" : { + "type" : "string", + "nullable" : true + }, + "analysisTitle" : { + "type" : "string", + "nullable" : true + }, + "analysisDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodStart" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodEnd" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodType" : { + "type" : "string", + "nullable" : true + }, + "population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "populationAnalysed" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "populationAnalysedPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPopulation" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PlusPopulation" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "phase3Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PlusPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "dataSource" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "IpcchBaseDtoPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/IpcchBaseDto" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "IpcchPeaksDto" : { + "type" : "object", + "properties" : { + "iso3Alpha3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "populationGroupId" : { + "type" : "integer", + "format" : "int32" + }, + "populationGroupName" : { + "type" : "string", + "nullable" : true + }, + "analysisTitle" : { + "type" : "string", + "nullable" : true + }, + "analysisDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodStart" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodEnd" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "periodType" : { + "type" : "string", + "nullable" : true + }, + "population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "populationAnalysed" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "populationAnalysedPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Population" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPopulation" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PlusPopulation" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "phase3Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase5Percentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase3PlusPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "phase4PlusPercentage" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "dataSource" : { + "type" : "string", + "nullable" : true + }, + "referenceYear" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "IpcchPeaksDtoPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/IpcchPeaksDto" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "KeyNameDto" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "ListItemDto" : { + "required" : [ "label", "name" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string", + "nullable" : true + }, + "label" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "MFIProcessedDataDTO" : { + "type" : "object", + "properties" : { + "surveyID" : { + "type" : "integer", + "description" : "The Id of the Survey", + "format" : "int32" + }, + "startDate" : { + "type" : "string", + "description" : "The Id of the Survey status", + "format" : "date-time", + "nullable" : true + }, + "endDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "marketID" : { + "type" : "integer", + "format" : "int32" + }, + "marketName" : { + "type" : "string", + "nullable" : true + }, + "marketLatitude" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "marketLongitude" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "regionalBureauID" : { + "type" : "integer", + "format" : "int32" + }, + "regionalBureauName" : { + "type" : "string", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm0Name" : { + "type" : "string", + "nullable" : true + }, + "adm1Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm1Name" : { + "type" : "string", + "nullable" : true + }, + "adm2Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm2Name" : { + "type" : "string", + "nullable" : true + }, + "levelID" : { + "type" : "integer", + "format" : "int32" + }, + "levelName" : { + "type" : "string", + "nullable" : true + }, + "dimensionID" : { + "type" : "integer", + "format" : "int32" + }, + "dimensionName" : { + "type" : "string", + "nullable" : true + }, + "variableID" : { + "type" : "integer", + "format" : "int32" + }, + "variableName" : { + "type" : "string", + "nullable" : true + }, + "variableLabel" : { + "type" : "string", + "nullable" : true + }, + "outputValue" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "tradersSampleSize" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "baseXlsFormID" : { + "type" : "integer", + "format" : "int32" + }, + "baseXlsFormName" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "MarketDTO" : { + "type" : "object", + "properties" : { + "marketId" : { + "type" : "integer", + "description" : "The internal ID of the market", + "format" : "int32" + }, + "marketName" : { + "type" : "string", + "description" : "The name of the market", + "nullable" : true + }, + "marketLocalName" : { + "type" : "string", + "description" : "The local name of the market", + "nullable" : true + }, + "marketLatitude" : { + "type" : "number", + "description" : "The decimal latitude", + "format" : "double", + "nullable" : true + }, + "marketLongitude" : { + "type" : "number", + "description" : "The decimal longitude", + "format" : "double", + "nullable" : true + }, + "admin1Name" : { + "type" : "string", + "description" : "The name of the first level administrative division where the market is placed", + "nullable" : true + }, + "admin1Code" : { + "type" : "integer", + "description" : "The code of the first level administrative division where the market is placed", + "format" : "int32", + "nullable" : true + }, + "admin2Name" : { + "type" : "string", + "description" : "The name of the second level administrative division where the market is placed", + "nullable" : true + }, + "admin2Code" : { + "type" : "integer", + "description" : "The code of the second level administrative division where the market is placed", + "format" : "int32", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "MarketGeoJsonRoot" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string", + "nullable" : true + }, + "features" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/Feature" + } + }, + "bbox" : { + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "NearbyMarketsDTO" : { + "type" : "object", + "properties" : { + "marketId" : { + "type" : "integer", + "description" : "The internal ID of the market", + "format" : "int32" + }, + "marketName" : { + "type" : "string", + "description" : "The name of the market", + "nullable" : true + }, + "distance" : { + "type" : "number", + "description" : "The distance in meters of the market from the provided point", + "format" : "double" + } + }, + "additionalProperties" : { } + }, + "PagedCommodityListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of paged items", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/CommodityDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedCommodityPriceListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of paged items", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/CommodityPriceDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedCommodityWeeklyAggregatedPriceListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of paged items", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/WeeklyAggregatedPrice" + } + } + }, + "additionalProperties" : { } + }, + "PagedCurrencyListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of paged items", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/CurrencyDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedEconomicDataDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "unit" : { + "type" : "string", + "nullable" : true + }, + "frequency" : { + "type" : "string", + "nullable" : true + }, + "dataSource" : { + "type" : "string", + "nullable" : true + }, + "items" : { + "type" : "array", + "description" : "The list of paged items", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/EconomicDataDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedMarketListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of markets", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/MarketDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedProcessedDataDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "scrollId" : { + "type" : "integer", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of processed data", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/MFIProcessedDataDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedSurveyListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of surveys", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/SurveyListDTO" + } + } + }, + "additionalProperties" : { } + }, + "PagedSurveyResponsesDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of responses", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of survey responses", + "nullable" : true, + "items" : { } + } + }, + "additionalProperties" : { } + }, + "PagedXlsFormListDTO" : { + "type" : "object", + "properties" : { + "totalItems" : { + "type" : "integer", + "description" : "The total number of items", + "format" : "int32" + }, + "page" : { + "type" : "integer", + "description" : "The current page", + "format" : "int32" + }, + "items" : { + "type" : "array", + "description" : "The list of XlsForms", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/XlsFormDTO" + } + } + }, + "additionalProperties" : { } + }, + "ProblemDetails" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string", + "nullable" : true + }, + "title" : { + "type" : "string", + "nullable" : true + }, + "status" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "detail" : { + "type" : "string", + "nullable" : true + }, + "instance" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "Properties" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "RpmeAssessment" : { + "type" : "object", + "properties" : { + "surveyId" : { + "type" : "integer", + "format" : "int32" + }, + "assessmentDate" : { + "type" : "string", + "format" : "date-time" + }, + "shopId" : { + "type" : "integer", + "format" : "int32" + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm1Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm2Code" : { + "type" : "integer", + "format" : "int32" + }, + "adm0CodeDOTS" : { + "type" : "string", + "nullable" : true + }, + "adm1CodeDOTS" : { + "type" : "string", + "nullable" : true + }, + "adm2CodeDOTS" : { + "type" : "string", + "nullable" : true + }, + "marketId" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "shLatitude" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "shLongitude" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "nbBeneficiariesInterviewed" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "priceScoreTbu" : { + "type" : "boolean" + }, + "priceScoreTbd" : { + "type" : "boolean" + }, + "beneficiariesScoreTbu" : { + "type" : "boolean" + }, + "trdName" : { + "type" : "string", + "nullable" : true + }, + "sevCntrDev" : { + "type" : "string", + "nullable" : true + }, + "benSevCntrDev" : { + "type" : "string", + "nullable" : true + }, + "outputValues" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/RpmeOutputValues" + } + } + }, + "additionalProperties" : { } + }, + "RpmeAssessmentPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/RpmeAssessment" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "RpmeOutputValues" : { + "type" : "object", + "properties" : { + "variableId" : { + "type" : "integer", + "format" : "int32" + }, + "outputValue" : { + "type" : "number", + "format" : "double", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "RpmeVariable" : { + "type" : "object", + "properties" : { + "variableId" : { + "type" : "integer", + "format" : "int32" + }, + "variableName" : { + "type" : "string", + "nullable" : true + }, + "variableDescription" : { + "type" : "string", + "nullable" : true + }, + "dimensionId" : { + "type" : "integer", + "format" : "int32" + }, + "dimensionName" : { + "type" : "string", + "nullable" : true + }, + "levelId" : { + "type" : "integer", + "format" : "int32" + }, + "levelName" : { + "type" : "string", + "nullable" : true + }, + "surveyModeId" : { + "type" : "integer", + "format" : "int32" + }, + "surveyModeName" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "RpmeVariablePagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/RpmeVariable" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "SurveyListDTO" : { + "type" : "object", + "properties" : { + "surveyID" : { + "type" : "integer", + "description" : "The Id of the Survey", + "format" : "int32" + }, + "surveyStatusID" : { + "type" : "integer", + "description" : "The Id of the Survey status", + "format" : "int32" + }, + "surveyStartDate" : { + "type" : "string", + "description" : "The date when the survey has started", + "format" : "date-time", + "nullable" : true + }, + "surveyEndDate" : { + "type" : "string", + "description" : "The date when the survey has ended", + "format" : "date-time", + "nullable" : true + }, + "surveyCreateDate" : { + "type" : "string", + "description" : "The date when the survey has been uploaded in the Data Bridges platform", + "format" : "date-time" + }, + "surveyValidationReport" : { + "type" : "string", + "description" : "The detailed report on the validation performed on the survey schema", + "nullable" : true + }, + "surveyOriginalFilename" : { + "maxLength" : 256, + "minLength" : 0, + "type" : "string", + "description" : "The filename of the survey CSV file", + "nullable" : true + }, + "xlsFormName" : { + "type" : "string", + "description" : "The name of the XLSForm used to collect data", + "nullable" : true + }, + "baseXlsFormName" : { + "type" : "string", + "description" : "The name of the base XLSForm used to build the XLSForm", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "description" : "The name of the country where the survey has taken place", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "description" : "The internal code of the country where the survey has taken place", + "format" : "int32" + }, + "iso3Alpha3" : { + "type" : "string", + "description" : "The ISO3 alpha code of the country where the survey has taken place", + "nullable" : true + }, + "userName" : { + "type" : "string", + "description" : "The name of the user that has uploaded the survey data", + "nullable" : true + }, + "originalCsvFile" : { + "type" : "string", + "description" : "The link to download the original CSV file", + "nullable" : true + }, + "baseData" : { + "type" : "string", + "description" : "The link to the JSON data reshaped on the base XLSForm", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "UsdIndirectQuotation" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "format" : "int32" + }, + "name" : { + "type" : "string", + "description" : "the ISO3 code for the currency, based on ISO4217", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32" + }, + "countryISO3" : { + "type" : "string", + "description" : "", + "nullable" : true + }, + "isOfficial" : { + "type" : "boolean", + "description" : "The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database" + }, + "frequency" : { + "type" : "string", + "description" : "(it’s from the reporting commodity named Exchange Rate", + "nullable" : true + }, + "value" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "date" : { + "type" : "string", + "format" : "date-time" + } + }, + "additionalProperties" : { } + }, + "UsdIndirectQuotationPagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/UsdIndirectQuotation" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "ViewExtendedMonthlyAggregatedPrice" : { + "type" : "object", + "properties" : { + "commodityId" : { + "type" : "integer", + "format" : "int32" + }, + "marketId" : { + "type" : "integer", + "format" : "int32" + }, + "priceTypeId" : { + "type" : "integer", + "format" : "int32" + }, + "commodityUnitId" : { + "type" : "integer", + "format" : "int32" + }, + "currencyId" : { + "type" : "integer", + "format" : "int32" + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityDateWeek" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityDateMonth" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityDateYear" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "commodityName" : { + "type" : "string", + "nullable" : true + }, + "marketName" : { + "type" : "string", + "nullable" : true + }, + "priceTypeName" : { + "type" : "string", + "nullable" : true + }, + "commodityUnitName" : { + "type" : "string", + "nullable" : true + }, + "currencyName" : { + "type" : "string", + "nullable" : true + }, + "countryIso3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "commodityPriceSourceName" : { + "type" : "string", + "nullable" : true + }, + "originalFrequency" : { + "type" : "string", + "nullable" : true + }, + "commodityPrice" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "commodityPriceObservations" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceFlag" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "ViewExtendedMonthlyAggregatedPricePagedResult" : { + "type" : "object", + "properties" : { + "items" : { + "type" : "array", + "nullable" : true, + "readOnly" : true, + "items" : { + "$ref" : "#/components/schemas/ViewExtendedMonthlyAggregatedPrice" + } + }, + "page" : { + "type" : "integer", + "format" : "int32" + }, + "totalItems" : { + "type" : "integer", + "format" : "int32" + } + }, + "additionalProperties" : { } + }, + "WeeklyAggregatedPrice" : { + "type" : "object", + "properties" : { + "commodityId" : { + "type" : "integer", + "format" : "int32" + }, + "marketId" : { + "type" : "integer", + "format" : "int32" + }, + "priceTypeId" : { + "type" : "integer", + "format" : "int32" + }, + "commodityUnitId" : { + "type" : "integer", + "format" : "int32" + }, + "currencyId" : { + "type" : "integer", + "format" : "int32" + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32" + }, + "commodityDateWeek" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityDateMonth" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityDateYear" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceDate" : { + "type" : "string", + "format" : "date-time", + "nullable" : true + }, + "commodityName" : { + "type" : "string", + "nullable" : true + }, + "marketName" : { + "type" : "string", + "nullable" : true + }, + "priceTypeName" : { + "type" : "string", + "nullable" : true + }, + "commodityUnitName" : { + "type" : "string", + "nullable" : true + }, + "currencyName" : { + "type" : "string", + "nullable" : true + }, + "countryIso3" : { + "type" : "string", + "nullable" : true + }, + "countryName" : { + "type" : "string", + "nullable" : true + }, + "commodityPriceSourceName" : { + "type" : "string", + "nullable" : true + }, + "originalFrequency" : { + "type" : "string", + "nullable" : true + }, + "commodityPrice" : { + "type" : "number", + "format" : "double", + "nullable" : true + }, + "commodityPriceObservations" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "commodityPriceFlag" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "XlsFormDTO" : { + "type" : "object", + "properties" : { + "xlsFormID" : { + "type" : "integer", + "format" : "int32" + }, + "xlsFormName" : { + "type" : "string", + "nullable" : true + }, + "xlsFormCreateDate" : { + "type" : "string", + "format" : "date-time" + }, + "userName" : { + "type" : "string", + "nullable" : true + }, + "xlsFormSourceFile" : { + "type" : "string", + "nullable" : true + }, + "xlsFormIsBaseSchema" : { + "type" : "boolean" + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "XlsFormDefinitionNewSchemaDTO" : { + "type" : "object", + "properties" : { + "formName" : { + "type" : "string", + "nullable" : true + }, + "formDescription" : { + "type" : "string", + "nullable" : true + }, + "formType" : { + "type" : "string", + "nullable" : true + }, + "adm0Code" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "baseSchemaId" : { + "type" : "integer", + "format" : "int32", + "nullable" : true + }, + "category" : { + "type" : "string", + "nullable" : true + }, + "type" : { + "type" : "string", + "nullable" : true + }, + "fields" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/XlsFormFieldsDTO" + } + } + }, + "additionalProperties" : { } + }, + "XlsFormFieldsDTO" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "nullable" : true + }, + "label" : { + "type" : "string", + "nullable" : true + }, + "type" : { + "type" : "string", + "nullable" : true + }, + "choiceList" : { + "$ref" : "#/components/schemas/XlsFormListChoicesDTO" + } + }, + "additionalProperties" : { } + }, + "XlsFormListChoiceDTO" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "nullable" : true + }, + "label" : { + "type" : "string", + "nullable" : true + } + }, + "additionalProperties" : { } + }, + "XlsFormListChoicesDTO" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "nullable" : true + }, + "choices" : { + "type" : "array", + "nullable" : true, + "items" : { + "$ref" : "#/components/schemas/XlsFormListChoiceDTO" + } + } + }, + "additionalProperties" : { } + } + }, + "parameters" : { }, + "securitySchemes" : { + "default" : { + "type" : "oauth2", + "flows" : { + "implicit" : { + "authorizationUrl" : "https://api.wfp.org/authorize", + "scopes" : { + "vamdatabridges_rpme-fulldata_get" : "vamdatabridges_rpme-fulldata_get", + "vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get" : "vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get", + "vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get" : "vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get", + "vamdatabridges_commodities-list_get" : "vamdatabridges_commodities-list_get", + "vamdatabridges_commodityunits-list_get" : "vamdatabridges_commodityunits-list_get", + "vamdatabridges_markets-nearbymarkets_get" : "vamdatabridges_markets-nearbymarkets_get", + "vamdatabridges_globaloutlook-globallatest_get" : "vamdatabridges_globaloutlook-globallatest_get", + "vamdatabridges_rpme-outputvalues_get" : "vamdatabridges_rpme-outputvalues_get", + "vamdatabridges_marketprices-alps_get" : "vamdatabridges_marketprices-alps_get", + "vamdatabridges_mfi-surveys_get" : "vamdatabridges_mfi-surveys_get", + "vamdatabridges_commodities-categories-list_get" : "vamdatabridges_commodities-categories-list_get", + "vamdatabridges_commodityunits-conversion-list_get" : "vamdatabridges_commodityunits-conversion-list_get", + "vamdatabridges_economicdata_get" : "vamdatabridges_economicdata_get", + "vamdatabridges_mfi-surveys-processeddata_get" : "vamdatabridges_mfi-surveys-processeddata_get", + "vamdatabridges_marketprices-priceweekly_get" : "vamdatabridges_marketprices-priceweekly_get", + "vamdatabridges_markets-marketsascsv_get" : "vamdatabridges_markets-marketsascsv_get", + "vamdatabridges_cari-adm1values_get" : "vamdatabridges_cari-adm1values_get", + "vamdatabridges_household-publicbasedata_get" : "vamdatabridges_household-publicbasedata_get", + "vamdatabridges_mfi-xlsforms_get" : "vamdatabridges_mfi-xlsforms_get", + "vamdatabridges_economicdata-indicatorlist_get" : "vamdatabridges_economicdata-indicatorlist_get", + "vamdatabridges_markets-geojsonlist_get" : "vamdatabridges_markets-geojsonlist_get", + "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" : "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get", + "vamdatabridges_rpme-surveys_get" : "vamdatabridges_rpme-surveys_get", + "vamdatabridges_rpme-xlsforms_get" : "vamdatabridges_rpme-xlsforms_get", + "vamdatabridges_mfi-surveys-basedata_get" : "vamdatabridges_mfi-surveys-basedata_get", + "vamdatabridges_mfi-surveys-fulldata_get" : "vamdatabridges_mfi-surveys-fulldata_get", + "vamdatabridges_globaloutlook-regionallatest_get" : "vamdatabridges_globaloutlook-regionallatest_get", + "vamdatabridges_household-fulldata_get" : "vamdatabridges_household-fulldata_get", + "vamdatabridges_hungerhotspot-categoriesandindicators_get" : "vamdatabridges_hungerhotspot-categoriesandindicators_get", + "vamdatabridges_household-officialusebasedata_get" : "vamdatabridges_household-officialusebasedata_get", + "vamdatabridges_globaloutlook-countrylatest_get" : "vamdatabridges_globaloutlook-countrylatest_get", + "vamdatabridges_marketprices-pricemonthly_get" : "vamdatabridges_marketprices-pricemonthly_get", + "vamdatabridges_ipcch-ipcch-historicaldata_get" : "vamdatabridges_ipcch-ipcch-historicaldata_get", + "vamdatabridges_markets-list_get" : "vamdatabridges_markets-list_get", + "vamdatabridges_currency-list_get" : "vamdatabridges_currency-list_get", + "vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get" : "vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get", + "vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get" : "vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get", + "vamdatabridges_marketprices-priceraw_get" : "vamdatabridges_marketprices-priceraw_get", + "vamdatabridges_rpme-variables_get" : "vamdatabridges_rpme-variables_get", + "vamdatabridges_currency-usdindirectquotation_get" : "vamdatabridges_currency-usdindirectquotation_get", + "vamdatabridges_hungerhotspot-data_get" : "vamdatabridges_hungerhotspot-data_get", + "vamdatabridges_xlsforms-definition_get" : "vamdatabridges_xlsforms-definition_get", + "vamdatabridges_household-draftinternalbasedata_get" : "vamdatabridges_household-draftinternalbasedata_get", + "vamdatabridges_household-surveys_get" : "vamdatabridges_household-surveys_get", + "vamdatabridges_marketprices-pricedaily_get" : "vamdatabridges_marketprices-pricedaily_get", + "vamdatabridges_cari-adm0values_get" : "vamdatabridges_cari-adm0values_get", + "vamdatabridges_rpme-basedata_get" : "vamdatabridges_rpme-basedata_get" + }, + "x-scopes-bindings" : { + "vamdatabridges_rpme-fulldata_get" : "vamdatabridges_rpme-fulldata_get", + "vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get" : "vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get", + "vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get" : "vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get", + "vamdatabridges_commodities-list_get" : "vamdatabridges_commodities-list_get", + "vamdatabridges_commodityunits-list_get" : "vamdatabridges_commodityunits-list_get", + "vamdatabridges_markets-nearbymarkets_get" : "vamdatabridges_markets-nearbymarkets_get", + "vamdatabridges_globaloutlook-globallatest_get" : "vamdatabridges_globaloutlook-globallatest_get", + "vamdatabridges_rpme-outputvalues_get" : "vamdatabridges_rpme-outputvalues_get", + "vamdatabridges_marketprices-alps_get" : "vamdatabridges_marketprices-alps_get", + "vamdatabridges_mfi-surveys_get" : "vamdatabridges_mfi-surveys_get", + "vamdatabridges_commodities-categories-list_get" : "vamdatabridges_commodities-categories-list_get", + "vamdatabridges_commodityunits-conversion-list_get" : "vamdatabridges_commodityunits-conversion-list_get", + "vamdatabridges_economicdata_get" : "vamdatabridges_economicdata_get", + "vamdatabridges_mfi-surveys-processeddata_get" : "vamdatabridges_mfi-surveys-processeddata_get", + "vamdatabridges_marketprices-priceweekly_get" : "vamdatabridges_marketprices-priceweekly_get", + "vamdatabridges_markets-marketsascsv_get" : "vamdatabridges_markets-marketsascsv_get", + "vamdatabridges_cari-adm1values_get" : "vamdatabridges_cari-adm1values_get", + "vamdatabridges_household-publicbasedata_get" : "vamdatabridges_household-publicbasedata_get", + "vamdatabridges_mfi-xlsforms_get" : "vamdatabridges_mfi-xlsforms_get", + "vamdatabridges_economicdata-indicatorlist_get" : "vamdatabridges_economicdata-indicatorlist_get", + "vamdatabridges_markets-geojsonlist_get" : "vamdatabridges_markets-geojsonlist_get", + "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" : "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get", + "vamdatabridges_rpme-surveys_get" : "vamdatabridges_rpme-surveys_get", + "vamdatabridges_rpme-xlsforms_get" : "vamdatabridges_rpme-xlsforms_get", + "vamdatabridges_mfi-surveys-basedata_get" : "vamdatabridges_mfi-surveys-basedata_get", + "vamdatabridges_mfi-surveys-fulldata_get" : "vamdatabridges_mfi-surveys-fulldata_get", + "vamdatabridges_globaloutlook-regionallatest_get" : "vamdatabridges_globaloutlook-regionallatest_get", + "vamdatabridges_household-fulldata_get" : "vamdatabridges_household-fulldata_get", + "vamdatabridges_hungerhotspot-categoriesandindicators_get" : "vamdatabridges_hungerhotspot-categoriesandindicators_get", + "vamdatabridges_household-officialusebasedata_get" : "vamdatabridges_household-officialusebasedata_get", + "vamdatabridges_globaloutlook-countrylatest_get" : "vamdatabridges_globaloutlook-countrylatest_get", + "vamdatabridges_marketprices-pricemonthly_get" : "vamdatabridges_marketprices-pricemonthly_get", + "vamdatabridges_ipcch-ipcch-historicaldata_get" : "vamdatabridges_ipcch-ipcch-historicaldata_get", + "vamdatabridges_markets-list_get" : "vamdatabridges_markets-list_get", + "vamdatabridges_currency-list_get" : "vamdatabridges_currency-list_get", + "vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get" : "vamdatabridges_ipcch-ipcchandequivalent-historicalpeaks_get", + "vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get" : "vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get", + "vamdatabridges_marketprices-priceraw_get" : "vamdatabridges_marketprices-priceraw_get", + "vamdatabridges_rpme-variables_get" : "vamdatabridges_rpme-variables_get", + "vamdatabridges_currency-usdindirectquotation_get" : "vamdatabridges_currency-usdindirectquotation_get", + "vamdatabridges_hungerhotspot-data_get" : "vamdatabridges_hungerhotspot-data_get", + "vamdatabridges_xlsforms-definition_get" : "vamdatabridges_xlsforms-definition_get", + "vamdatabridges_household-draftinternalbasedata_get" : "vamdatabridges_household-draftinternalbasedata_get", + "vamdatabridges_household-surveys_get" : "vamdatabridges_household-surveys_get", + "vamdatabridges_marketprices-pricedaily_get" : "vamdatabridges_marketprices-pricedaily_get", + "vamdatabridges_cari-adm0values_get" : "vamdatabridges_cari-adm0values_get", + "vamdatabridges_rpme-basedata_get" : "vamdatabridges_rpme-basedata_get" + } + } + } + } + } + }, + "x-changelog" : [ { + "changes" : "First release", + "version" : "1.0.0" + }, { + "changes" : "\n*What's New*:\n\n- GET _/Commodities/Categories/List_\n- GET _/Commodities/List_\n- GET _/CommodityUnits/Conversion/List_\n- GET _/CommodityUnits/List_\n- GET _/Currency/List_\n- GET _/Currency/UsdIndirectQuotation_\n- GET _/EconomicData/IndicatorList_\n- GET _/EconomicData/{indicatorName}_\n- GET _/MarketPrices/Alps_\n- GET _/MarketPrices/PriceDaily_\n- GET _/MarketPrices/PriceMonthly_\n- GET _/MarketPrices/PriceRaw_\n- GET _/MarketPrices/PriceWeekly_\n- GET _/Markets/List_\n", + "version" : "1.1.0" + }, { + "changes" : "\n*What's New*:\n\n- GET /Gorp/Latest\n- GET /Gorp/List\n", + "version" : "1.2.0" + }, { + "changes" : "\n*What's New*:\n\n- GET /FoodSecurity/List\n- GET /Rpme/OutputValues\n- GET /Rpme/Surveys\n- GET /Rpme/Variables\n- GET /Rpme/XLSForms", + "version" : "1.3.0" + }, { + "changes" : "\n*What's Changed*:\n\n- Rpme/OutputValues response schema\n- /Rpme/* and /FoodSecurity/List maturity level to production-ready", + "version" : "1.3.1" + }, { + "changes" : "\n*What's Changed*:\n- Changed response schema in GET /MFI/Surveys/BaseData \n- Changed response schema in GET /MFI/Surveys/FullData \n- Changed response schema in GET /MFI/XlsForms/definition \n- Changed response schema in GET /Markets/NearbyMarkets \n- Changed response schema in GET /Currency/List \n- Changed response schema in GET /Currency/UsdIndirectQuotation \n- Changed response schema in GET /FoodSecurity/List \n- Changed response schema in GET /Gorp/Latest \n- Changed response schema in GET /Gorp/List \n- Changed response schema in GET /MFI/Surveys \n- Changed response schema in GET /MFI/Surveys/ProcessedData \n- Changed response schema in GET /MFI/XlsForms \n- Changed response schema in GET /MarketPrices/Alps \n- Changed response schema in GET /MarketPrices/PriceDaily \n- Changed response schema in GET /MarketPrices/PriceMonthly \n- Changed response schema in GET /MarketPrices/PriceRaw \n- Changed response schema in GET /MarketPrices/PriceWeekly \n- Changed response schema in GET /Rpme/Surveys \n- Changed response schema in GET /Rpme/Variables \n- Changed response schema in GET /Rpme/XLSForms \n- Changed response schema in GET /Commodities/Categories/List \n- Changed response schema in GET /Commodities/List \n- Changed response schema in GET /CommodityUnits/Conversion/List \n- Changed response schema in GET /CommodityUnits/List \n- Changed response schema in GET /Rpme/OutputValues \n- Changed response schema in GET /Markets/GeoJSONList \n", + "version" : "1.3.3" + }, { + "changes" : "\n*What's New*:\n- GET /Household/Surveys\n- GET /Household/FullData\n- GET /Household/DraftInternalBaseData\n- GET /Household/OfficialUseBaseData\n- GET /Household/PublicBaseData\n- GET /Rpme/FullData\n- GET /Rpme/BaseData\n*What's Changed*:\n- Changed summary in GET /MFI/Surveys \n- Changed summary in GET /MFI/Surveys/ProcessedData \n- Changed description in GET /MarketPrices/PriceDaily \n", + "version" : "1.4.0" + }, { + "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's Changed*:\n- Changed response schema in GET /MFI/XlsForms (Non-backward compatible)\n- Changed response schema in GET /Markets/GeoJSONList (Non-backward compatible)\n- Changed response schema in GET /Markets/List (Non-backward compatible)\n- GET /Markets/MarketsAsCSV \n- Changed response schema in GET /Rpme/XLSForms (Non-backward compatible)\n- Changed response schema in GET /EconomicData/{indicatorName} (Non-backward compatible)\n- Changed response schema in GET /Household/DraftInternalBaseData \n- Changed response schema in GET /Household/FullData \n- Changed response schema in GET /Household/OfficialUseBaseData \n- Changed response schema in GET /Household/PublicBaseData \n- Changed response schema in GET /Household/Surveys (Non-backward compatible)\n- Changed response schema in GET /MFI/Surveys (Non-backward compatible)\n- Changed response schema in GET /MFI/Surveys/BaseData \n- Changed response schema in GET /MFI/Surveys/FullData \n- Changed response schema in GET /MFI/XlsForms/definition (Non-backward compatible)\n- Changed response schema in GET /Markets/NearbyMarkets (Non-backward compatible)\n- Changed response schema in GET /Rpme/BaseData \n- Changed response schema in GET /Rpme/FullData \n- Changed response schema in GET /Rpme/Surveys (Non-backward compatible)\n- GET /Currency/List \n- Changed response schema in GET /Currency/UsdIndirectQuotation \n- Changed response schema in GET /EconomicData/IndicatorList (Non-backward compatible)\n- Changed response schema in GET /FoodSecurity/List \n- Changed response schema in GET /Gorp/Latest \n- Changed response schema in GET /Gorp/List \n- GET /MFI/Surveys/ProcessedData \n- Changed response schema in GET /MarketPrices/Alps \n- Changed response schema in GET /MarketPrices/PriceDaily \n- Changed response schema in GET /MarketPrices/PriceMonthly \n- GET /MarketPrices/PriceRaw \n- GET /MarketPrices/PriceWeekly \n- Changed response schema in GET /Rpme/Variables \n- GET /Commodities/Categories/List \n- GET /Commodities/List \n- GET /CommodityUnits/Conversion/List \n- GET /CommodityUnits/List \n- Changed response schema in GET /Rpme/OutputValues \n", + "version" : "2.0.0" + }, { + "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's Changed*:\n- Add access scope to GET /Markets/MarketsAsCSV (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys/BaseData (Non-backward compatible)\n- Add access scope to GET /MFI/XlsForms/definition (Non-backward compatible)\n- Add access scope to GET /Markets/NearbyMarkets (Non-backward compatible)\n- Add access scope to GET /Rpme/BaseData (Non-backward compatible)\n- Add access scope to GET /Currency/List (Non-backward compatible)\n- Add access scope to GET /Currency/UsdIndirectQuotation (Non-backward compatible)\n- Add access scope to GET /EconomicData/IndicatorList (Non-backward compatible)\n- Add access scope to GET /EconomicData/{indicatorName} (Non-backward compatible)\n- Add access scope to GET /FoodSecurity/List (Non-backward compatible)\n- Add access scope to GET /Gorp/Latest (Non-backward compatible)\n- Add access scope to GET /Gorp/List (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys/ProcessedData (Non-backward compatible)\n- Add access scope to GET /MFI/XlsForms (Non-backward compatible)\n- Add access scope to GET /MarketPrices/Alps (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceDaily (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceMonthly (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceWeekly (Non-backward compatible)\n- Add access scope to GET /Markets/List (Non-backward compatible)\n- Add access scope to GET /Rpme/Surveys (Non-backward compatible)\n- Add access scope to GET /Rpme/Variables (Non-backward compatible)\n- Add access scope to GET /Rpme/XLSForms (Non-backward compatible)\n- Add access scope to GET /Commodities/Categories/List (Non-backward compatible)\n- Add access scope to GET /Commodities/List (Non-backward compatible)\n- Add access scope to GET /CommodityUnits/Conversion/List (Non-backward compatible)\n- Add access scope to GET /CommodityUnits/List (Non-backward compatible)\n- Add access scope to GET /Household/Surveys (Non-backward compatible)\n- Add access scope to GET /Markets/GeoJSONList (Non-backward compatible)\n- Add access scope to GET /Rpme/OutputValues (Non-backward compatible)\n", + "version" : "3.0.0" + }, { + "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's New*:\n- GET /XlsForms/definition\n*What's Deleted*:\n- GET /MFI/XlsForms/definition\n*What's Changed*:\n- Added _pageSize_ query parameter to GET /Household/DraftInternalBaseData \n- Added _pageSize_ query parameter to GET /Household/FullData \n- Added _pageSize_ query parameter to GET /Household/OfficialUseBaseData \n- Added _pageSize_ query parameter to GET /Household/PublicBaseData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/BaseData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/FullData \n- Added _pageSize_ query parameter to GET /Rpme/BaseData \n- Added _pageSize_ query parameter to GET /Rpme/FullData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/ProcessedData \n- Minor changes to summaries\n", + "version" : "4.0.0" + }, { + "changes" : "\n*What's New*:\n- GET /Aims/DownloadAllAnalysisRounds\n- GET /Aims/DownloadPolygonFiles\n- GET /Gorp/CountryLatest\n- GET /Gorp/RegionalLatest\n- GET /Gorp/GlobalLatest\n*What's Changed*:\n- Minor changes to descriptions\n", + "version" : "4.1.0" + }, { + "changes" : "\n*What's Changed*:\n- Changed response schema and added _apiKey_ query parameter to GET /Household/DraftInternalBaseData (Non-backward compatible)\n- Changed response schema and added _apiKey_ query parameter to GET /Household/FullData (Non-backward compatible)\n- Changed response schema and added _surveyId_ query parameter to GET /Household/Surveys \n- Minor changes to summaries\n", + "version" : "5.0.0" + }, { + "changes" : "\n\n\n*What's New*:\n- GET /MFI/Surveys/ProcessedDataWithKeysetPagination", + "version" : "5.1.0" + }, { + "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's Deleted*:\n- GET /Gorp/Latest\n- GET /Gorp/List\n*What's Changed*:\n- Changed response schema in GET /FoodSecurity/List (Non-backward compatible)\n", + "version" : "6.0.0" + }, { + "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's New*:\n- GET /Cari/Adm0Values\n- GET /Cari/Adm1Values\n- GET /GlobalOutlook/CountryLatest\n- GET /GlobalOutlook/RegionalLatest\n- GET /GlobalOutlook/GlobalLatest\n- GET /HungerHotspot/CategoriesAndIndicators\n- GET /HungerHotspot/Data\n- GET /Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard\n- GET /Ipcch/IPCCH-HistoricalData\n- GET /Ipcch/IPCCHAndEquivalent-MostRecent\n- GET /Ipcch/IPCCHAndEquivalent-LatestPeaks\n- GET /Ipcch/IPCCHAndEquivalent-HistoricalPeaks\n*What's Deleted*:\n- GET /Aims/DownloadAllAnalysisRounds\n- GET /Aims/DownloadPolygonFiles\n- GET /FoodSecurity/List\n- GET /Gorp/CountryLatest\n- GET /Gorp/GlobalLatest\n- GET /Gorp/RegionalLatest\n*What's Changed*:\n- Changed response schema in GET /MarketPrices/Alps \n- Changed response schema in GET /MarketPrices/PriceDaily \n- Changed response schema in GET /MarketPrices/PriceMonthly \n- Changed response schema in GET /MarketPrices/PriceWeekly \n", + "version" : "7.0.0" + } ] +} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0363b0a..29fd210 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "data_bridges_client" -version = "6.0.0" +version = "1.0.0" description = "VAM-Data-Bridges" authors = ["VAM-INFO "] license = "NoLicense" diff --git a/setup.py b/setup.py index 9cf0a94..fcb9d51 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,11 +22,10 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "data-bridges-client" -VERSION = "6.0.0" +VERSION = "1.0.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", - "httpx", "python-dateutil", "pydantic >= 2", "typing-extensions >= 4.7.1", @@ -48,4 +47,4 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern """, # noqa: E501 package_data={"data_bridges_client": ["py.typed"]}, -) \ No newline at end of file +) diff --git a/test/test_bad_request_dto.py b/test/test_bad_request_dto.py index 2ebe3c4..c48a452 100644 --- a/test/test_bad_request_dto.py +++ b/test/test_bad_request_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_cari_adm0_values_dto.py b/test/test_cari_adm0_values_dto.py new file mode 100644 index 0000000..9ad7610 --- /dev/null +++ b/test/test_cari_adm0_values_dto.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO + +class TestCariAdm0ValuesDTO(unittest.TestCase): + """CariAdm0ValuesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CariAdm0ValuesDTO: + """Test CariAdm0ValuesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CariAdm0ValuesDTO` + """ + model = CariAdm0ValuesDTO() + if include_optional: + return CariAdm0ValuesDTO( + survey_id = 56, + survey_name = '', + cari_methodology_name = '', + fcs_methodology_name = '', + additional_survey_metadata = '', + adm0_code = 56, + adm0_name = '', + cari_indicator_id = 56, + cari_indicator_name = '', + cari_indicator_category_id = 56, + indicator_category_label = '' + ) + else: + return CariAdm0ValuesDTO( + ) + """ + + def testCariAdm0ValuesDTO(self): + """Test CariAdm0ValuesDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_view_extended_alps_value_paged_result.py b/test/test_cari_adm0_values_dto_paged_result.py similarity index 65% rename from test/test_view_extended_alps_value_paged_result.py rename to test/test_cari_adm0_values_dto_paged_result.py index c9dd9ca..8c6e32c 100644 --- a/test/test_view_extended_alps_value_paged_result.py +++ b/test/test_cari_adm0_values_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.view_extended_alps_value_paged_result import ViewExtendedAlpsValuePagedResult +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult -class TestViewExtendedAlpsValuePagedResult(unittest.TestCase): - """ViewExtendedAlpsValuePagedResult unit test stubs""" +class TestCariAdm0ValuesDTOPagedResult(unittest.TestCase): + """CariAdm0ValuesDTOPagedResult unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ViewExtendedAlpsValuePagedResult: - """Test ViewExtendedAlpsValuePagedResult + def make_instance(self, include_optional) -> CariAdm0ValuesDTOPagedResult: + """Test CariAdm0ValuesDTOPagedResult include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ViewExtendedAlpsValuePagedResult` + # uncomment below to create an instance of `CariAdm0ValuesDTOPagedResult` """ - model = ViewExtendedAlpsValuePagedResult() + model = CariAdm0ValuesDTOPagedResult() if include_optional: - return ViewExtendedAlpsValuePagedResult( + return CariAdm0ValuesDTOPagedResult( items = [ { 'key' : null @@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> ViewExtendedAlpsValuePagedResult: total_items = 56 ) else: - return ViewExtendedAlpsValuePagedResult( + return CariAdm0ValuesDTOPagedResult( ) """ - def testViewExtendedAlpsValuePagedResult(self): - """Test ViewExtendedAlpsValuePagedResult""" + def testCariAdm0ValuesDTOPagedResult(self): + """Test CariAdm0ValuesDTOPagedResult""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_cari_adm1_values_dto.py b/test/test_cari_adm1_values_dto.py new file mode 100644 index 0000000..19f741c --- /dev/null +++ b/test/test_cari_adm1_values_dto.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO + +class TestCariAdm1ValuesDTO(unittest.TestCase): + """CariAdm1ValuesDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CariAdm1ValuesDTO: + """Test CariAdm1ValuesDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CariAdm1ValuesDTO` + """ + model = CariAdm1ValuesDTO() + if include_optional: + return CariAdm1ValuesDTO( + survey_id = 56, + survey_name = '', + cari_methodology_name = '', + fcs_methodology_name = '', + additional_survey_metadata = '', + adm0_code = 56, + adm0_name = '', + cari_indicator_id = 56, + cari_indicator_name = '', + cari_indicator_category_id = 56, + indicator_category_label = '', + adm1_code = 56, + adm1_name = '' + ) + else: + return CariAdm1ValuesDTO( + ) + """ + + def testCariAdm1ValuesDTO(self): + """Test CariAdm1ValuesDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cari_adm1_values_dto_paged_result.py b/test/test_cari_adm1_values_dto_paged_result.py new file mode 100644 index 0000000..379ee72 --- /dev/null +++ b/test/test_cari_adm1_values_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult + +class TestCariAdm1ValuesDTOPagedResult(unittest.TestCase): + """CariAdm1ValuesDTOPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CariAdm1ValuesDTOPagedResult: + """Test CariAdm1ValuesDTOPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CariAdm1ValuesDTOPagedResult` + """ + model = CariAdm1ValuesDTOPagedResult() + if include_optional: + return CariAdm1ValuesDTOPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return CariAdm1ValuesDTOPagedResult( + ) + """ + + def testCariAdm1ValuesDTOPagedResult(self): + """Test CariAdm1ValuesDTOPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_categories_and_indicators_dto.py b/test/test_categories_and_indicators_dto.py new file mode 100644 index 0000000..c2d8efa --- /dev/null +++ b/test/test_categories_and_indicators_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO + +class TestCategoriesAndIndicatorsDTO(unittest.TestCase): + """CategoriesAndIndicatorsDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CategoriesAndIndicatorsDTO: + """Test CategoriesAndIndicatorsDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CategoriesAndIndicatorsDTO` + """ + model = CategoriesAndIndicatorsDTO() + if include_optional: + return CategoriesAndIndicatorsDTO( + categories = [ + { + 'key' : null + } + ], + indicators = [ + { + 'key' : null + } + ] + ) + else: + return CategoriesAndIndicatorsDTO( + ) + """ + + def testCategoriesAndIndicatorsDTO(self): + """Test CategoriesAndIndicatorsDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_commodities_api.py b/test/test_commodities_api.py index 3dd8c98..78e8cd3 100644 --- a/test/test_commodities_api.py +++ b/test/test_commodities_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_commodity_dto.py b/test/test_commodity_dto.py index 05bdc9c..c89a83e 100644 --- a/test/test_commodity_dto.py +++ b/test/test_commodity_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_commodity_price_dto.py b/test/test_commodity_price_dto.py index bc70f31..c618476 100644 --- a/test/test_commodity_price_dto.py +++ b/test/test_commodity_price_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_commodity_processing_dto.py b/test/test_commodity_processing_dto.py index 1b3ad17..2ec77c0 100644 --- a/test/test_commodity_processing_dto.py +++ b/test/test_commodity_processing_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_commodity_quality_dto.py b/test/test_commodity_quality_dto.py index 2e3bd41..ec8293d 100644 --- a/test/test_commodity_quality_dto.py +++ b/test/test_commodity_quality_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_commodity_units_api.py b/test/test_commodity_units_api.py index e6a296e..7d3ac99 100644 --- a/test/test_commodity_units_api.py +++ b/test/test_commodity_units_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_currency_api.py b/test/test_currency_api.py index 170772c..4720bfa 100644 --- a/test/test_currency_api.py +++ b/test/test_currency_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_currency_dto.py b/test/test_currency_dto.py index 217e709..83b4a87 100644 --- a/test/test_currency_dto.py +++ b/test/test_currency_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_economic_data_api.py b/test/test_economic_data_api.py index af73ad4..42e7dbe 100644 --- a/test/test_economic_data_api.py +++ b/test/test_economic_data_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_economic_data_dto.py b/test/test_economic_data_dto.py index a6b9754..9623cef 100644 --- a/test/test_economic_data_dto.py +++ b/test/test_economic_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_economic_indicator_property.py b/test/test_economic_indicator_property.py index 2397c78..d54dcea 100644 --- a/test/test_economic_indicator_property.py +++ b/test/test_economic_indicator_property.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_economic_indicator_property_paged_result.py b/test/test_economic_indicator_property_paged_result.py index cbd9b70..43281c7 100644 --- a/test/test_economic_indicator_property_paged_result.py +++ b/test/test_economic_indicator_property_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_view_extended_alps_value.py b/test/test_extended_alps_value_dto.py similarity index 77% rename from test/test_view_extended_alps_value.py rename to test/test_extended_alps_value_dto.py index 624d631..e5befce 100644 --- a/test/test_view_extended_alps_value.py +++ b/test/test_extended_alps_value_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.view_extended_alps_value import ViewExtendedAlpsValue +from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto -class TestViewExtendedAlpsValue(unittest.TestCase): - """ViewExtendedAlpsValue unit test stubs""" +class TestExtendedAlpsValueDto(unittest.TestCase): + """ExtendedAlpsValueDto unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ViewExtendedAlpsValue: - """Test ViewExtendedAlpsValue + def make_instance(self, include_optional) -> ExtendedAlpsValueDto: + """Test ExtendedAlpsValueDto include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ViewExtendedAlpsValue` + # uncomment below to create an instance of `ExtendedAlpsValueDto` """ - model = ViewExtendedAlpsValue() + model = ExtendedAlpsValueDto() if include_optional: - return ViewExtendedAlpsValue( + return ExtendedAlpsValueDto( commodity_id = 56, market_id = 56, price_type_id = 56, @@ -57,12 +57,12 @@ def make_instance(self, include_optional) -> ViewExtendedAlpsValue: analysis_value_price_flag = '' ) else: - return ViewExtendedAlpsValue( + return ExtendedAlpsValueDto( ) """ - def testViewExtendedAlpsValue(self): - """Test ViewExtendedAlpsValue""" + def testExtendedAlpsValueDto(self): + """Test ExtendedAlpsValueDto""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_extended_alps_value_dto_paged_result.py b/test/test_extended_alps_value_dto_paged_result.py new file mode 100644 index 0000000..81edf80 --- /dev/null +++ b/test/test_extended_alps_value_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult + +class TestExtendedAlpsValueDtoPagedResult(unittest.TestCase): + """ExtendedAlpsValueDtoPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExtendedAlpsValueDtoPagedResult: + """Test ExtendedAlpsValueDtoPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ExtendedAlpsValueDtoPagedResult` + """ + model = ExtendedAlpsValueDtoPagedResult() + if include_optional: + return ExtendedAlpsValueDtoPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return ExtendedAlpsValueDtoPagedResult( + ) + """ + + def testExtendedAlpsValueDtoPagedResult(self): + """Test ExtendedAlpsValueDtoPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py index 473cb6a..c105fdf 100644 --- a/test/test_feature.py +++ b/test/test_feature.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_geometry.py b/test/test_geometry.py index 9147433..a8e05f0 100644 --- a/test/test_geometry.py +++ b/test/test_geometry.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_gorp_api.py b/test/test_global_outlook_api.py similarity index 58% rename from test/test_gorp_api.py rename to test/test_global_outlook_api.py index fb8f6ba..9384bf5 100644 --- a/test/test_gorp_api.py +++ b/test/test_global_outlook_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,36 +15,36 @@ import unittest -from data_bridges_client.api.gorp_api import GorpApi +from data_bridges_client.api.global_outlook_api import GlobalOutlookApi -class TestGorpApi(unittest.TestCase): - """GorpApi unit test stubs""" +class TestGlobalOutlookApi(unittest.TestCase): + """GlobalOutlookApi unit test stubs""" def setUp(self) -> None: - self.api = GorpApi() + self.api = GlobalOutlookApi() def tearDown(self) -> None: pass - def test_gorp_country_latest_get(self) -> None: - """Test case for gorp_country_latest_get + def test_global_outlook_country_latest_get(self) -> None: + """Test case for global_outlook_country_latest_get - Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan. + Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP's Global Outlook. """ pass - def test_gorp_global_latest_get(self) -> None: - """Test case for gorp_global_latest_get + def test_global_outlook_global_latest_get(self) -> None: + """Test case for global_outlook_global_latest_get - Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + Return the latest global dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. """ pass - def test_gorp_regional_latest_get(self) -> None: - """Test case for gorp_regional_latest_get + def test_global_outlook_regional_latest_get(self) -> None: + """Test case for global_outlook_regional_latest_get - Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan. + Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP's Global Outlook. """ pass diff --git a/test/test_gorp_global_api_dto.py b/test/test_global_outlook_api_dto.py similarity index 63% rename from test/test_gorp_global_api_dto.py rename to test/test_global_outlook_api_dto.py index 0f29b5d..99c7e69 100644 --- a/test/test_gorp_global_api_dto.py +++ b/test/test_global_outlook_api_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.gorp_global_api_dto import GorpGlobalApiDto +from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -class TestGorpGlobalApiDto(unittest.TestCase): - """GorpGlobalApiDto unit test stubs""" +class TestGlobalOutlookApiDto(unittest.TestCase): + """GlobalOutlookApiDto unit test stubs""" def setUp(self): pass @@ -26,29 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GorpGlobalApiDto: - """Test GorpGlobalApiDto + def make_instance(self, include_optional) -> GlobalOutlookApiDto: + """Test GlobalOutlookApiDto include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GorpGlobalApiDto` + # uncomment below to create an instance of `GlobalOutlookApiDto` """ - model = GorpGlobalApiDto() + model = GlobalOutlookApiDto() if include_optional: - return GorpGlobalApiDto( - gorp_date = '', - gorp_region_name = '', - gorp_total_value = 1.337, + return GlobalOutlookApiDto( + var_date = '', + region_name = '', + total_value = 1.337, number_of_countries = 56, - gorp_comment = '' + comment = '' ) else: - return GorpGlobalApiDto( + return GlobalOutlookApiDto( ) """ - def testGorpGlobalApiDto(self): - """Test GorpGlobalApiDto""" + def testGlobalOutlookApiDto(self): + """Test GlobalOutlookApiDto""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_global_outlook_country_api_dto.py b/test/test_global_outlook_country_api_dto.py new file mode 100644 index 0000000..389541c --- /dev/null +++ b/test/test_global_outlook_country_api_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto + +class TestGlobalOutlookCountryApiDto(unittest.TestCase): + """GlobalOutlookCountryApiDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GlobalOutlookCountryApiDto: + """Test GlobalOutlookCountryApiDto + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GlobalOutlookCountryApiDto` + """ + model = GlobalOutlookCountryApiDto() + if include_optional: + return GlobalOutlookCountryApiDto( + var_date = '', + country_office_iso3 = '', + total_value = 1.337, + comment = '' + ) + else: + return GlobalOutlookCountryApiDto( + ) + """ + + def testGlobalOutlookCountryApiDto(self): + """Test GlobalOutlookCountryApiDto""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_gorp_regional_api_dto.py b/test/test_global_outlook_regional_api_dto.py similarity index 60% rename from test/test_gorp_regional_api_dto.py rename to test/test_global_outlook_regional_api_dto.py index aa2df2d..921b63f 100644 --- a/test/test_gorp_regional_api_dto.py +++ b/test/test_global_outlook_regional_api_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.gorp_regional_api_dto import GorpRegionalApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto -class TestGorpRegionalApiDto(unittest.TestCase): - """GorpRegionalApiDto unit test stubs""" +class TestGlobalOutlookRegionalApiDto(unittest.TestCase): + """GlobalOutlookRegionalApiDto unit test stubs""" def setUp(self): pass @@ -26,29 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GorpRegionalApiDto: - """Test GorpRegionalApiDto + def make_instance(self, include_optional) -> GlobalOutlookRegionalApiDto: + """Test GlobalOutlookRegionalApiDto include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GorpRegionalApiDto` + # uncomment below to create an instance of `GlobalOutlookRegionalApiDto` """ - model = GorpRegionalApiDto() + model = GlobalOutlookRegionalApiDto() if include_optional: - return GorpRegionalApiDto( - gorp_date = '', - gorp_region_name = '', - gorp_total_value = 1.337, + return GlobalOutlookRegionalApiDto( + var_date = '', + region_name = '', + total_value = 1.337, number_of_countries = 56, - gorp_comment = '' + comment = '' ) else: - return GorpRegionalApiDto( + return GlobalOutlookRegionalApiDto( ) """ - def testGorpRegionalApiDto(self): - """Test GorpRegionalApiDto""" + def testGlobalOutlookRegionalApiDto(self): + """Test GlobalOutlookRegionalApiDto""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_household_survey_list_dto.py b/test/test_household_survey_list_dto.py index 24e8423..6ed206a 100644 --- a/test/test_household_survey_list_dto.py +++ b/test/test_household_survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_household_survey_list_dto_paged_result.py b/test/test_household_survey_list_dto_paged_result.py index 0cbc1d7..c2409e1 100644 --- a/test/test_household_survey_list_dto_paged_result.py +++ b/test/test_household_survey_list_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_hunger_hot_spot_data_dto.py b/test/test_hunger_hot_spot_data_dto.py new file mode 100644 index 0000000..2ed48ec --- /dev/null +++ b/test/test_hunger_hot_spot_data_dto.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO + +class TestHungerHotSpotDataDTO(unittest.TestCase): + """HungerHotSpotDataDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HungerHotSpotDataDTO: + """Test HungerHotSpotDataDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `HungerHotSpotDataDTO` + """ + model = HungerHotSpotDataDTO() + if include_optional: + return HungerHotSpotDataDTO( + iso3_code = '', + hunger_hotspots_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + category = { + 'key' : null + }, + indicators = [ + { + 'key' : null + } + ] + ) + else: + return HungerHotSpotDataDTO( + ) + """ + + def testHungerHotSpotDataDTO(self): + """Test HungerHotSpotDataDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_hunger_hot_spot_data_dto_paged_result.py b/test/test_hunger_hot_spot_data_dto_paged_result.py new file mode 100644 index 0000000..3ce65c9 --- /dev/null +++ b/test/test_hunger_hot_spot_data_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult + +class TestHungerHotSpotDataDTOPagedResult(unittest.TestCase): + """HungerHotSpotDataDTOPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HungerHotSpotDataDTOPagedResult: + """Test HungerHotSpotDataDTOPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `HungerHotSpotDataDTOPagedResult` + """ + model = HungerHotSpotDataDTOPagedResult() + if include_optional: + return HungerHotSpotDataDTOPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return HungerHotSpotDataDTOPagedResult( + ) + """ + + def testHungerHotSpotDataDTOPagedResult(self): + """Test HungerHotSpotDataDTOPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_food_security_api.py b/test/test_hunger_hotspot_api.py similarity index 57% rename from test/test_food_security_api.py rename to test/test_hunger_hotspot_api.py index e35bc6e..2049c9a 100644 --- a/test/test_food_security_api.py +++ b/test/test_hunger_hotspot_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,21 +15,29 @@ import unittest -from data_bridges_client.api.food_security_api import FoodSecurityApi +from data_bridges_client.api.hunger_hotspot_api import HungerHotspotApi -class TestFoodSecurityApi(unittest.TestCase): - """FoodSecurityApi unit test stubs""" +class TestHungerHotspotApi(unittest.TestCase): + """HungerHotspotApi unit test stubs""" def setUp(self) -> None: - self.api = FoodSecurityApi() + self.api = HungerHotspotApi() def tearDown(self) -> None: pass - def test_food_security_list_get(self) -> None: - """Test case for food_security_list_get + def test_hunger_hotspot_categories_and_indicators_get(self) -> None: + """Test case for hunger_hotspot_categories_and_indicators_get + Retrieves Hunger Hotspot categories and indicators. + """ + pass + + def test_hunger_hotspot_data_get(self) -> None: + """Test case for hunger_hotspot_data_get + + Retrieves a paginated list of Hunger Hotspot data. """ pass diff --git a/test/test_incubation_api.py b/test/test_incubation_api.py index 7f4b1e6..e294dc7 100644 --- a/test/test_incubation_api.py +++ b/test/test_incubation_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,17 +27,17 @@ def setUp(self) -> None: def tearDown(self) -> None: pass - def test_aims_download_all_analysis_rounds_get(self) -> None: - """Test case for aims_download_all_analysis_rounds_get + def test_cari_adm0_values_get(self) -> None: + """Test case for cari_adm0_values_get - Each asset has a baseline and several rounds. Each round reflects the number of times the asset has been analysed over time. The number of total rounds changes according to the workstream: Asset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of Landscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + Retrieves a paginated list of Adm0 CARI results based on the specified indicator, administrative code, and survey. """ pass - def test_aims_download_polygon_files_get(self) -> None: - """Test case for aims_download_polygon_files_get + def test_cari_adm1_values_get(self) -> None: + """Test case for cari_adm1_values_get - Polygon files are available for Landscape Impact Assessment (LIA) assets only. The file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only). + Retrieves a paginated list of Adm1 CARI results based on the specified indicator, administrative code, and survey. """ pass diff --git a/test/test_ipc_historical_datum_dto.py b/test/test_ipc_historical_datum_dto.py new file mode 100644 index 0000000..b68a78e --- /dev/null +++ b/test/test_ipc_historical_datum_dto.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto + +class TestIpcHistoricalDatumDto(unittest.TestCase): + """IpcHistoricalDatumDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcHistoricalDatumDto: + """Test IpcHistoricalDatumDto + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcHistoricalDatumDto` + """ + model = IpcHistoricalDatumDto() + if include_optional: + return IpcHistoricalDatumDto( + analysis_id = 56, + analysis_title = '', + iso3_alpha3 = '', + country_name = '', + analysis_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + start_date_current_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date_current_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + start_date_projected_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date_projected_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + start_date_second_projected_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + end_date_second_projected_period = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + population = 1.337, + population_percentage = 1.337, + phase3_plus_population = 1.337, + phase3_plus_percentage = 1.337, + estimated_population = 1.337, + phase1_population = 1.337, + phase1_percentage = 1.337, + phase2_population = 1.337, + phase2_percentage = 1.337, + phase3_population = 1.337, + phase3_percentage = 1.337, + phase4_population = 1.337, + phase4_percentage = 1.337, + phase5_population = 1.337, + phase5_percentage = 1.337, + phase3_plus_population_projected = 1.337, + phase3_plus_percentage_projected = 1.337, + estimated_population_projected = 1.337, + phase1_population_projected = 1.337, + phase1_percentage_projected = 1.337, + phase2_population_projected = 1.337, + phase2_percentage_projected = 1.337, + phase3_population_projected = 1.337, + phase3_percentage_projected = 1.337, + phase4_population_projected = 1.337, + phase4_percentage_projected = 1.337, + phase5_population_projected = 1.337, + phase5_percentage_projected = 1.337, + phase3_plus_population_second_projected = 1.337, + phase3_plus_percentage_second_projected = 1.337, + estimated_population_second_projected = 1.337, + phase1_population_second_projected = 1.337, + phase1_percentage_second_projected = 1.337, + phase2_population_second_projected = 1.337, + phase2_percentage_second_projected = 1.337, + phase3_population_second_projected = 1.337, + phase3_percentage_second_projected = 1.337, + phase4_population_second_projected = 1.337, + phase4_percentage_second_projected = 1.337, + phase5_population_second_projected = 1.337, + phase5_percentage_second_projected = 1.337 + ) + else: + return IpcHistoricalDatumDto( + ) + """ + + def testIpcHistoricalDatumDto(self): + """Test IpcHistoricalDatumDto""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipc_historical_datum_dto_paged_result.py b/test/test_ipc_historical_datum_dto_paged_result.py new file mode 100644 index 0000000..c1cb934 --- /dev/null +++ b/test/test_ipc_historical_datum_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult + +class TestIpcHistoricalDatumDtoPagedResult(unittest.TestCase): + """IpcHistoricalDatumDtoPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcHistoricalDatumDtoPagedResult: + """Test IpcHistoricalDatumDtoPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcHistoricalDatumDtoPagedResult` + """ + model = IpcHistoricalDatumDtoPagedResult() + if include_optional: + return IpcHistoricalDatumDtoPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return IpcHistoricalDatumDtoPagedResult( + ) + """ + + def testIpcHistoricalDatumDtoPagedResult(self): + """Test IpcHistoricalDatumDtoPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipc_value.py b/test/test_ipc_value.py deleted file mode 100644 index 3fbc229..0000000 --- a/test/test_ipc_value.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding: utf-8 - -""" - VAM-Data-Bridges - - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - - The version of the OpenAPI document: 6.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from data_bridges_client.models.ipc_value import IpcValue - -class TestIpcValue(unittest.TestCase): - """IpcValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> IpcValue: - """Test IpcValue - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `IpcValue` - """ - model = IpcValue() - if include_optional: - return IpcValue( - ipc_id = 56, - ipc_year = 56, - ipc_update_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - iso3_alpha3 = '', - ipc_country_name = '', - ipc_area_name = '', - ipc_phase3_population = 56, - ipc_phase4_population = 56, - ipc_phase5_population = 56, - ipc_phase35population = 56, - ipc_phase45population = 56, - ipc_phase3_percentage = 1.337, - ipc_phase4_percentage = 1.337, - ipc_phase5_percentage = 1.337, - ipc_phase35percentage = 1.337, - ipc_phase45percentage = 1.337, - ipc_analysed_population = 56, - ipc_analysed_percentage = 1.337, - ipc_analysis_comment = '', - ipc_data_type = '', - ipc_data_source = '', - ipc_reference_period = '', - ipc_create_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ipc_show_on_data_viz = True, - ipc_is_latest_value = True - ) - else: - return IpcValue( - ) - """ - - def testIpcValue(self): - """Test IpcValue""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto.py b/test/test_ipcch_and_equivalent_peaks_dto.py new file mode 100644 index 0000000..cdddbf2 --- /dev/null +++ b/test/test_ipcch_and_equivalent_peaks_dto.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO + +class TestIpcchAndEquivalentPeaksDTO(unittest.TestCase): + """IpcchAndEquivalentPeaksDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTO: + """Test IpcchAndEquivalentPeaksDTO + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTO` + """ + model = IpcchAndEquivalentPeaksDTO() + if include_optional: + return IpcchAndEquivalentPeaksDTO( + regional_bureau_id = 56, + regional_bureau_name = '', + iso3_alpha3 = '', + country_name = '', + phase3_population = 56, + phase4_population = 56, + phase5_population = 56, + phase3_plus_population = 56 + ) + else: + return IpcchAndEquivalentPeaksDTO( + ) + """ + + def testIpcchAndEquivalentPeaksDTO(self): + """Test IpcchAndEquivalentPeaksDTO""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py new file mode 100644 index 0000000..e10e0cf --- /dev/null +++ b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult + +class TestIpcchAndEquivalentPeaksDTOPagedResult(unittest.TestCase): + """IpcchAndEquivalentPeaksDTOPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTOPagedResult: + """Test IpcchAndEquivalentPeaksDTOPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTOPagedResult` + """ + model = IpcchAndEquivalentPeaksDTOPagedResult() + if include_optional: + return IpcchAndEquivalentPeaksDTOPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return IpcchAndEquivalentPeaksDTOPagedResult( + ) + """ + + def testIpcchAndEquivalentPeaksDTOPagedResult(self): + """Test IpcchAndEquivalentPeaksDTOPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipcch_api.py b/test/test_ipcch_api.py new file mode 100644 index 0000000..e75f289 --- /dev/null +++ b/test/test_ipcch_api.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.api.ipcch_api import IpcchApi + + +class TestIpcchApi(unittest.TestCase): + """IpcchApi unit test stubs""" + + def setUp(self) -> None: + self.api = IpcchApi() + + def tearDown(self) -> None: + pass + + def test_ipcch_ipcch_and_equivalent_historical_peaks_get(self) -> None: + """Test case for ipcch_ipcch_and_equivalent_historical_peaks_get + + Retrieves a paginated list of historical IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + """ + pass + + def test_ipcch_ipcch_and_equivalent_latest_peaks_get(self) -> None: + """Test case for ipcch_ipcch_and_equivalent_latest_peaks_get + + Retrieves a paginated list of the latest IPCCH and Equivalent peaks data, optionally filtered by ISO3 country code. + """ + pass + + def test_ipcch_ipcch_and_equivalent_most_recent_get(self) -> None: + """Test case for ipcch_ipcch_and_equivalent_most_recent_get + + Retrieves a paginated list of the most recent IPCCH and Equivalent data, optionally filtered by ISO3 country code. + """ + pass + + def test_ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get(self) -> None: + """Test case for ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get + + Retrieves a paginated list of IPCCH and Equivalent Peaks data for the WFP Dashboard. + """ + pass + + def test_ipcch_ipcch_historical_data_get(self) -> None: + """Test case for ipcch_ipcch_historical_data_get + + Retrieves a paginated list of IPCCH and Equivalent Historical Data. + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipcch_base_dto.py b/test/test_ipcch_base_dto.py new file mode 100644 index 0000000..52e2e42 --- /dev/null +++ b/test/test_ipcch_base_dto.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto + +class TestIpcchBaseDto(unittest.TestCase): + """IpcchBaseDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcchBaseDto: + """Test IpcchBaseDto + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcchBaseDto` + """ + model = IpcchBaseDto() + if include_optional: + return IpcchBaseDto( + iso3_alpha3 = '', + country_name = '', + population_group_id = 56, + population_group_name = '', + analysis_title = '', + analysis_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_type = '', + population = 1.337, + population_analysed = 56, + population_analysed_percentage = 1.337, + phase3_population = 1.337, + phase4_population = 1.337, + phase5_population = 1.337, + phase3_plus_population = 1.337, + phase4_plus_population = 56, + phase3_percentage = 1.337, + phase4_percentage = 1.337, + phase5_percentage = 1.337, + phase3_plus_percentage = 1.337, + phase4_plus_percentage = 1.337, + data_source = '' + ) + else: + return IpcchBaseDto( + ) + """ + + def testIpcchBaseDto(self): + """Test IpcchBaseDto""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipc_value_paged_result.py b/test/test_ipcch_base_dto_paged_result.py similarity index 68% rename from test/test_ipc_value_paged_result.py rename to test/test_ipcch_base_dto_paged_result.py index 4678d33..b6a34f1 100644 --- a/test/test_ipc_value_paged_result.py +++ b/test/test_ipcch_base_dto_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.ipc_value_paged_result import IpcValuePagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult -class TestIpcValuePagedResult(unittest.TestCase): - """IpcValuePagedResult unit test stubs""" +class TestIpcchBaseDtoPagedResult(unittest.TestCase): + """IpcchBaseDtoPagedResult unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> IpcValuePagedResult: - """Test IpcValuePagedResult + def make_instance(self, include_optional) -> IpcchBaseDtoPagedResult: + """Test IpcchBaseDtoPagedResult include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `IpcValuePagedResult` + # uncomment below to create an instance of `IpcchBaseDtoPagedResult` """ - model = IpcValuePagedResult() + model = IpcchBaseDtoPagedResult() if include_optional: - return IpcValuePagedResult( + return IpcchBaseDtoPagedResult( items = [ { 'key' : null @@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> IpcValuePagedResult: total_items = 56 ) else: - return IpcValuePagedResult( + return IpcchBaseDtoPagedResult( ) """ - def testIpcValuePagedResult(self): - """Test IpcValuePagedResult""" + def testIpcchBaseDtoPagedResult(self): + """Test IpcchBaseDtoPagedResult""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_ipcch_peaks_dto.py b/test/test_ipcch_peaks_dto.py new file mode 100644 index 0000000..f72f64a --- /dev/null +++ b/test/test_ipcch_peaks_dto.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto + +class TestIpcchPeaksDto(unittest.TestCase): + """IpcchPeaksDto unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcchPeaksDto: + """Test IpcchPeaksDto + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcchPeaksDto` + """ + model = IpcchPeaksDto() + if include_optional: + return IpcchPeaksDto( + iso3_alpha3 = '', + country_name = '', + population_group_id = 56, + population_group_name = '', + analysis_title = '', + analysis_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_start = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_end = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + period_type = '', + population = 1.337, + population_analysed = 56, + population_analysed_percentage = 1.337, + phase3_population = 1.337, + phase4_population = 1.337, + phase5_population = 1.337, + phase3_plus_population = 1.337, + phase4_plus_population = 56, + phase3_percentage = 1.337, + phase4_percentage = 1.337, + phase5_percentage = 1.337, + phase3_plus_percentage = 1.337, + phase4_plus_percentage = 1.337, + data_source = '', + reference_year = 56 + ) + else: + return IpcchPeaksDto( + ) + """ + + def testIpcchPeaksDto(self): + """Test IpcchPeaksDto""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ipcch_peaks_dto_paged_result.py b/test/test_ipcch_peaks_dto_paged_result.py new file mode 100644 index 0000000..c2529b6 --- /dev/null +++ b/test/test_ipcch_peaks_dto_paged_result.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + VAM-Data-Bridges + + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult + +class TestIpcchPeaksDtoPagedResult(unittest.TestCase): + """IpcchPeaksDtoPagedResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IpcchPeaksDtoPagedResult: + """Test IpcchPeaksDtoPagedResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IpcchPeaksDtoPagedResult` + """ + model = IpcchPeaksDtoPagedResult() + if include_optional: + return IpcchPeaksDtoPagedResult( + items = [ + { + 'key' : null + } + ], + page = 56, + total_items = 56 + ) + else: + return IpcchPeaksDtoPagedResult( + ) + """ + + def testIpcchPeaksDtoPagedResult(self): + """Test IpcchPeaksDtoPagedResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_key_name_dto.py b/test/test_key_name_dto.py index 0d8a5d1..027ce92 100644 --- a/test/test_key_name_dto.py +++ b/test/test_key_name_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_gorp_country_api_dto.py b/test/test_list_item_dto.py similarity index 63% rename from test/test_gorp_country_api_dto.py rename to test/test_list_item_dto.py index a23fd40..82ca947 100644 --- a/test/test_gorp_country_api_dto.py +++ b/test/test_list_item_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.gorp_country_api_dto import GorpCountryApiDto +from data_bridges_client.models.list_item_dto import ListItemDto -class TestGorpCountryApiDto(unittest.TestCase): - """GorpCountryApiDto unit test stubs""" +class TestListItemDto(unittest.TestCase): + """ListItemDto unit test stubs""" def setUp(self): pass @@ -26,28 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GorpCountryApiDto: - """Test GorpCountryApiDto + def make_instance(self, include_optional) -> ListItemDto: + """Test ListItemDto include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GorpCountryApiDto` + # uncomment below to create an instance of `ListItemDto` """ - model = GorpCountryApiDto() + model = ListItemDto() if include_optional: - return GorpCountryApiDto( - gorp_date = '', - country_office_iso3 = '', - gorp_total_value = 1.337, - gorp_comment = '' + return ListItemDto( + id = 56, + name = '', + label = '' ) else: - return GorpCountryApiDto( + return ListItemDto( + name = '', + label = '', ) """ - def testGorpCountryApiDto(self): - """Test GorpCountryApiDto""" + def testListItemDto(self): + """Test ListItemDto""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_market_dto.py b/test/test_market_dto.py index c94cbf1..9aea88b 100644 --- a/test/test_market_dto.py +++ b/test/test_market_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_market_geo_json_root.py b/test/test_market_geo_json_root.py index 859b469..dd2046d 100644 --- a/test/test_market_geo_json_root.py +++ b/test/test_market_geo_json_root.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_market_prices_api.py b/test/test_market_prices_api.py index 3e791a3..afa438e 100644 --- a/test/test_market_prices_api.py +++ b/test/test_market_prices_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_markets_api.py b/test/test_markets_api.py index 42a3126..0824098 100644 --- a/test/test_markets_api.py +++ b/test/test_markets_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_mfi_processed_data_dto.py b/test/test_mfi_processed_data_dto.py index 88cba06..aad07e6 100644 --- a/test/test_mfi_processed_data_dto.py +++ b/test/test_mfi_processed_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_nearby_markets_dto.py b/test/test_nearby_markets_dto.py index ce3b46a..a8730fb 100644 --- a/test/test_nearby_markets_dto.py +++ b/test/test_nearby_markets_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_commodity_list_dto.py b/test/test_paged_commodity_list_dto.py index 7d453db..2678850 100644 --- a/test/test_paged_commodity_list_dto.py +++ b/test/test_paged_commodity_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_commodity_price_list_dto.py b/test/test_paged_commodity_price_list_dto.py index c31f778..e84c767 100644 --- a/test/test_paged_commodity_price_list_dto.py +++ b/test/test_paged_commodity_price_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py index 294f758..178477f 100644 --- a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py +++ b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_currency_list_dto.py b/test/test_paged_currency_list_dto.py index 6aee4b1..2c223d9 100644 --- a/test/test_paged_currency_list_dto.py +++ b/test/test_paged_currency_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_economic_data_dto.py b/test/test_paged_economic_data_dto.py index 7b5423c..4e1ffe5 100644 --- a/test/test_paged_economic_data_dto.py +++ b/test/test_paged_economic_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_market_list_dto.py b/test/test_paged_market_list_dto.py index 8cd4e0e..614e9f5 100644 --- a/test/test_paged_market_list_dto.py +++ b/test/test_paged_market_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_processed_data_dto.py b/test/test_paged_processed_data_dto.py index 04f288e..defdca5 100644 --- a/test/test_paged_processed_data_dto.py +++ b/test/test_paged_processed_data_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_survey_list_dto.py b/test/test_paged_survey_list_dto.py index efa74a9..e58be18 100644 --- a/test/test_paged_survey_list_dto.py +++ b/test/test_paged_survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_survey_responses_dto.py b/test/test_paged_survey_responses_dto.py index b1ff09d..6fad96c 100644 --- a/test/test_paged_survey_responses_dto.py +++ b/test/test_paged_survey_responses_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paged_xls_form_list_dto.py b/test/test_paged_xls_form_list_dto.py index 917e13a..8776611 100644 --- a/test/test_paged_xls_form_list_dto.py +++ b/test/test_paged_xls_form_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_problem_details.py b/test/test_problem_details.py index e729a28..f99cac6 100644 --- a/test/test_problem_details.py +++ b/test/test_problem_details.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_properties.py b/test/test_properties.py index 650140c..924ed94 100644 --- a/test/test_properties.py +++ b/test/test_properties.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_api.py b/test/test_rpme_api.py index 0b91898..316ae48 100644 --- a/test/test_rpme_api.py +++ b/test/test_rpme_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_assessment.py b/test/test_rpme_assessment.py index 5f38116..d441ebf 100644 --- a/test/test_rpme_assessment.py +++ b/test/test_rpme_assessment.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_assessment_paged_result.py b/test/test_rpme_assessment_paged_result.py index 9e088c0..d68b4ec 100644 --- a/test/test_rpme_assessment_paged_result.py +++ b/test/test_rpme_assessment_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_output_values.py b/test/test_rpme_output_values.py index d7f5660..3eec31a 100644 --- a/test/test_rpme_output_values.py +++ b/test/test_rpme_output_values.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_variable.py b/test/test_rpme_variable.py index e783c15..2888b1c 100644 --- a/test/test_rpme_variable.py +++ b/test/test_rpme_variable.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rpme_variable_paged_result.py b/test/test_rpme_variable_paged_result.py index 042b3b6..8d9cfe2 100644 --- a/test/test_rpme_variable_paged_result.py +++ b/test/test_rpme_variable_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_survey_list_dto.py b/test/test_survey_list_dto.py index d5c7d42..cf44dc3 100644 --- a/test/test_survey_list_dto.py +++ b/test/test_survey_list_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_surveys_api.py b/test/test_surveys_api.py index 161e3cb..5e06055 100644 --- a/test/test_surveys_api.py +++ b/test/test_surveys_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_usd_indirect_quotation.py b/test/test_usd_indirect_quotation.py index ca5e394..ba6728a 100644 --- a/test/test_usd_indirect_quotation.py +++ b/test/test_usd_indirect_quotation.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_usd_indirect_quotation_paged_result.py b/test/test_usd_indirect_quotation_paged_result.py index b9eb27f..3ee915d 100644 --- a/test/test_usd_indirect_quotation_paged_result.py +++ b/test/test_usd_indirect_quotation_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_view_extended_aggregated_price.py b/test/test_view_extended_monthly_aggregated_price.py similarity index 75% rename from test/test_view_extended_aggregated_price.py rename to test/test_view_extended_monthly_aggregated_price.py index 69e7ac2..4b0626a 100644 --- a/test/test_view_extended_aggregated_price.py +++ b/test/test_view_extended_monthly_aggregated_price.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.view_extended_aggregated_price import ViewExtendedAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice -class TestViewExtendedAggregatedPrice(unittest.TestCase): - """ViewExtendedAggregatedPrice unit test stubs""" +class TestViewExtendedMonthlyAggregatedPrice(unittest.TestCase): + """ViewExtendedMonthlyAggregatedPrice unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ViewExtendedAggregatedPrice: - """Test ViewExtendedAggregatedPrice + def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPrice: + """Test ViewExtendedMonthlyAggregatedPrice include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ViewExtendedAggregatedPrice` + # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPrice` """ - model = ViewExtendedAggregatedPrice() + model = ViewExtendedMonthlyAggregatedPrice() if include_optional: - return ViewExtendedAggregatedPrice( + return ViewExtendedMonthlyAggregatedPrice( commodity_id = 56, market_id = 56, price_type_id = 56, @@ -60,12 +60,12 @@ def make_instance(self, include_optional) -> ViewExtendedAggregatedPrice: commodity_price_flag = '' ) else: - return ViewExtendedAggregatedPrice( + return ViewExtendedMonthlyAggregatedPrice( ) """ - def testViewExtendedAggregatedPrice(self): - """Test ViewExtendedAggregatedPrice""" + def testViewExtendedMonthlyAggregatedPrice(self): + """Test ViewExtendedMonthlyAggregatedPrice""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_view_extended_aggregated_price_paged_result.py b/test/test_view_extended_monthly_aggregated_price_paged_result.py similarity index 63% rename from test/test_view_extended_aggregated_price_paged_result.py rename to test/test_view_extended_monthly_aggregated_price_paged_result.py index 79b6876..9c2023b 100644 --- a/test/test_view_extended_aggregated_price_paged_result.py +++ b/test/test_view_extended_monthly_aggregated_price_paged_result.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from data_bridges_client.models.view_extended_aggregated_price_paged_result import ViewExtendedAggregatedPricePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult -class TestViewExtendedAggregatedPricePagedResult(unittest.TestCase): - """ViewExtendedAggregatedPricePagedResult unit test stubs""" +class TestViewExtendedMonthlyAggregatedPricePagedResult(unittest.TestCase): + """ViewExtendedMonthlyAggregatedPricePagedResult unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ViewExtendedAggregatedPricePagedResult: - """Test ViewExtendedAggregatedPricePagedResult + def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPricePagedResult: + """Test ViewExtendedMonthlyAggregatedPricePagedResult include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ViewExtendedAggregatedPricePagedResult` + # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPricePagedResult` """ - model = ViewExtendedAggregatedPricePagedResult() + model = ViewExtendedMonthlyAggregatedPricePagedResult() if include_optional: - return ViewExtendedAggregatedPricePagedResult( + return ViewExtendedMonthlyAggregatedPricePagedResult( items = [ { 'key' : null @@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> ViewExtendedAggregatedPricePagedRes total_items = 56 ) else: - return ViewExtendedAggregatedPricePagedResult( + return ViewExtendedMonthlyAggregatedPricePagedResult( ) """ - def testViewExtendedAggregatedPricePagedResult(self): - """Test ViewExtendedAggregatedPricePagedResult""" + def testViewExtendedMonthlyAggregatedPricePagedResult(self): + """Test ViewExtendedMonthlyAggregatedPricePagedResult""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_weekly_aggregated_price.py b/test/test_weekly_aggregated_price.py index 399db62..5e69e77 100644 --- a/test/test_weekly_aggregated_price.py +++ b/test/test_weekly_aggregated_price.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,21 +41,22 @@ def make_instance(self, include_optional) -> WeeklyAggregatedPrice: price_type_id = 56, commodity_unit_id = 56, currency_id = 56, + adm0_code = 56, + commodity_date_week = 56, + commodity_date_month = 56, + commodity_date_year = 56, + commodity_price_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), commodity_name = '', market_name = '', price_type_name = '', commodity_unit_name = '', currency_name = '', - adm0_code = 56, country_iso3 = '', country_name = '', - commodity_price = 1.337, - original_frequency = '', commodity_price_source_name = '', + original_frequency = '', + commodity_price = 1.337, commodity_price_observations = 56, - commodity_date_month = 56, - commodity_date_year = 56, - commodity_price_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), commodity_price_flag = '' ) else: diff --git a/test/test_xls_form_definition_new_schema_dto.py b/test/test_xls_form_definition_new_schema_dto.py index 5c7f918..05cf842 100644 --- a/test/test_xls_form_definition_new_schema_dto.py +++ b/test/test_xls_form_definition_new_schema_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_xls_form_dto.py b/test/test_xls_form_dto.py index 3432cb2..d07276e 100644 --- a/test/test_xls_form_dto.py +++ b/test/test_xls_form_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_xls_form_fields_dto.py b/test/test_xls_form_fields_dto.py index 5c7e965..183d1c3 100644 --- a/test/test_xls_form_fields_dto.py +++ b/test/test_xls_form_fields_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_xls_form_list_choice_dto.py b/test/test_xls_form_list_choice_dto.py index b1bf100..5941f05 100644 --- a/test/test_xls_form_list_choice_dto.py +++ b/test/test_xls_form_list_choice_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_xls_form_list_choices_dto.py b/test/test_xls_form_list_choices_dto.py index a52d87d..055181f 100644 --- a/test/test_xls_form_list_choices_dto.py +++ b/test/test_xls_form_list_choices_dto.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_xls_forms_api.py b/test/test_xls_forms_api.py index b41b62c..fbea411 100644 --- a/test/test_xls_forms_api.py +++ b/test/test_xls_forms_api.py @@ -5,7 +5,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 6.0.0 + The version of the OpenAPI document: 7.0.0 Contact: wfp.economicanalysis@wfp.org Generated by OpenAPI Generator (https://openapi-generator.tech) From ed324e2ebe1ff6cc18f4149a453370c92d527414 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 12:55:46 +0100 Subject: [PATCH 2/9] docs: update README and setup.py --- README.md | 21 ++++++++++----------- setup.py | 2 +- uv.lock | 3 +++ 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 uv.lock diff --git a/README.md b/README.md index 59ff7f9..50b90d3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.o This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 7.0.0 -- Package version: 1.0.0 +- Package version: 7.0.0 - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -50,24 +50,23 @@ Execute `pytest` to run the tests. Please follow the [installation procedure](#installation--usage) and then run the following: ```python - import data_bridges_client from data_bridges_client.rest import ApiException +from data_bridges_client.token import WfpApiToken from pprint import pprint -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 +# Configure OAuth2 access token for authorization: default +KEY = '' +SECRET = '' +SCOPES = ['', ''] +token = WfpApiToken(api_key=KEY, api_secret=SECRET) + +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/1.4.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -configuration.access_token = os.environ["ACCESS_TOKEN"] - +configuration.access_token = token.refresh(scopes=SCOPES) # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: diff --git a/setup.py b/setup.py index fcb9d51..d215527 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "data-bridges-client" -VERSION = "1.0.0" +VERSION = "7.0.0" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..7518fc9 --- /dev/null +++ b/uv.lock @@ -0,0 +1,3 @@ +version = 1 +revision = 3 +requires-python = ">=3.12" From 894d49824fbe2083f4065b5a977c87e8d74c0546 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 13:14:59 +0100 Subject: [PATCH 3/9] docs: add LICENSE.md --- LICENSE.md | 661 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 661 insertions(+) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..29ebfa5 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. \ No newline at end of file From ba47c2ecc126521e13563e1cb24eac483a8d088f Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 13:22:42 +0100 Subject: [PATCH 4/9] chore: update supported Python version in setup.py and GitHub action to >=3.9 --- data_bridges_client/api_response.py | 21 ------- data_bridges_client/py.typed | 0 docs/BadRequestDTO.md | 30 ---------- docs/CommodityDTO.md | 38 ------------- docs/CommodityPriceDTO.md | 54 ------------------ docs/CommodityProcessingDTO.md | 30 ---------- docs/CommodityQualityDTO.md | 30 ---------- docs/CurrencyDTO.md | 33 ----------- docs/EconomicDataDTO.md | 30 ---------- docs/EconomicIndicatorProperty.md | 36 ------------ docs/EconomicIndicatorPropertyPagedResult.md | 31 ----------- docs/Feature.md | 33 ----------- docs/Geometry.md | 30 ---------- docs/HouseholdSurveyListDTO.md | 55 ------------------- docs/HouseholdSurveyListDTOPagedResult.md | 31 ----------- docs/KeyNameDto.md | 30 ---------- docs/MFIProcessedDataDTO.md | 54 ------------------ docs/MarketDTO.md | 37 ------------- docs/MarketGeoJsonRoot.md | 31 ----------- docs/NearbyMarketsDTO.md | 31 ----------- docs/PagedCommodityListDTO.md | 31 ----------- docs/PagedCommodityPriceListDTO.md | 31 ----------- ...edCommodityWeeklyAggregatedPriceListDTO.md | 31 ----------- docs/PagedCurrencyListDTO.md | 31 ----------- docs/PagedEconomicDataDTO.md | 34 ------------ docs/PagedMarketListDTO.md | 31 ----------- docs/PagedProcessedDataDTO.md | 32 ----------- docs/PagedSurveyListDTO.md | 31 ----------- docs/PagedSurveyResponsesDTO.md | 31 ----------- docs/PagedXlsFormListDTO.md | 31 ----------- docs/ProblemDetails.md | 33 ----------- docs/Properties.md | 29 ---------- docs/RpmeAssessment.md | 48 ---------------- docs/RpmeAssessmentPagedResult.md | 31 ----------- docs/RpmeOutputValues.md | 30 ---------- docs/RpmeVariable.md | 37 ------------- docs/RpmeVariablePagedResult.md | 31 ----------- docs/SurveyListDTO.md | 43 --------------- docs/UsdIndirectQuotation.md | 36 ------------ docs/UsdIndirectQuotationPagedResult.md | 31 ----------- docs/XlsFormDTO.md | 35 ------------ docs/XlsFormDefinitionNewSchemaDTO.md | 36 ------------ docs/XlsFormFieldsDTO.md | 32 ----------- docs/XlsFormListChoiceDTO.md | 30 ---------- docs/XlsFormListChoicesDTO.md | 30 ---------- generate/README.md | 2 +- generate/generate.sh | 2 +- setup.py | 2 +- test/__init__.py | 0 49 files changed, 3 insertions(+), 1494 deletions(-) delete mode 100644 data_bridges_client/api_response.py delete mode 100644 data_bridges_client/py.typed delete mode 100644 docs/BadRequestDTO.md delete mode 100644 docs/CommodityDTO.md delete mode 100644 docs/CommodityPriceDTO.md delete mode 100644 docs/CommodityProcessingDTO.md delete mode 100644 docs/CommodityQualityDTO.md delete mode 100644 docs/CurrencyDTO.md delete mode 100644 docs/EconomicDataDTO.md delete mode 100644 docs/EconomicIndicatorProperty.md delete mode 100644 docs/EconomicIndicatorPropertyPagedResult.md delete mode 100644 docs/Feature.md delete mode 100644 docs/Geometry.md delete mode 100644 docs/HouseholdSurveyListDTO.md delete mode 100644 docs/HouseholdSurveyListDTOPagedResult.md delete mode 100644 docs/KeyNameDto.md delete mode 100644 docs/MFIProcessedDataDTO.md delete mode 100644 docs/MarketDTO.md delete mode 100644 docs/MarketGeoJsonRoot.md delete mode 100644 docs/NearbyMarketsDTO.md delete mode 100644 docs/PagedCommodityListDTO.md delete mode 100644 docs/PagedCommodityPriceListDTO.md delete mode 100644 docs/PagedCommodityWeeklyAggregatedPriceListDTO.md delete mode 100644 docs/PagedCurrencyListDTO.md delete mode 100644 docs/PagedEconomicDataDTO.md delete mode 100644 docs/PagedMarketListDTO.md delete mode 100644 docs/PagedProcessedDataDTO.md delete mode 100644 docs/PagedSurveyListDTO.md delete mode 100644 docs/PagedSurveyResponsesDTO.md delete mode 100644 docs/PagedXlsFormListDTO.md delete mode 100644 docs/ProblemDetails.md delete mode 100644 docs/Properties.md delete mode 100644 docs/RpmeAssessment.md delete mode 100644 docs/RpmeAssessmentPagedResult.md delete mode 100644 docs/RpmeOutputValues.md delete mode 100644 docs/RpmeVariable.md delete mode 100644 docs/RpmeVariablePagedResult.md delete mode 100644 docs/SurveyListDTO.md delete mode 100644 docs/UsdIndirectQuotation.md delete mode 100644 docs/UsdIndirectQuotationPagedResult.md delete mode 100644 docs/XlsFormDTO.md delete mode 100644 docs/XlsFormDefinitionNewSchemaDTO.md delete mode 100644 docs/XlsFormFieldsDTO.md delete mode 100644 docs/XlsFormListChoiceDTO.md delete mode 100644 docs/XlsFormListChoicesDTO.md delete mode 100644 test/__init__.py diff --git a/data_bridges_client/api_response.py b/data_bridges_client/api_response.py deleted file mode 100644 index 9bc7c11..0000000 --- a/data_bridges_client/api_response.py +++ /dev/null @@ -1,21 +0,0 @@ -"""API response object.""" - -from __future__ import annotations -from typing import Optional, Generic, Mapping, TypeVar -from pydantic import Field, StrictInt, StrictBytes, BaseModel - -T = TypeVar("T") - -class ApiResponse(BaseModel, Generic[T]): - """ - API response object - """ - - status_code: StrictInt = Field(description="HTTP status code") - headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") - data: T = Field(description="Deserialized data given the data type") - raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") - - model_config = { - "arbitrary_types_allowed": True - } diff --git a/data_bridges_client/py.typed b/data_bridges_client/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/docs/BadRequestDTO.md b/docs/BadRequestDTO.md deleted file mode 100644 index a61ef1d..0000000 --- a/docs/BadRequestDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# BadRequestDTO - - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **str** | The error message returned by the application | [optional] - -## Example - -```python -from data_bridges_client.models.bad_request_dto import BadRequestDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of BadRequestDTO from a JSON string -bad_request_dto_instance = BadRequestDTO.from_json(json) -# print the JSON string representation of the object -print(BadRequestDTO.to_json()) - -# convert the object into a dict -bad_request_dto_dict = bad_request_dto_instance.to_dict() -# create an instance of BadRequestDTO from a dict -bad_request_dto_from_dict = BadRequestDTO.from_dict(bad_request_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CommodityDTO.md b/docs/CommodityDTO.md deleted file mode 100644 index fe49bae..0000000 --- a/docs/CommodityDTO.md +++ /dev/null @@ -1,38 +0,0 @@ -# CommodityDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The internal ID of the commodity | [optional] -**parent_id** | **int** | The internal parent ID of the commodity | [optional] -**name** | **str** | The name of the commodity | [optional] -**coicop2018** | **str** | The COICOP 2018 definition | [optional] -**supply** | **int** | | [optional] -**category_id** | **int** | | [optional] -**create_date** | **datetime** | | [optional] -**update_date** | **datetime** | | [optional] -**qualities** | [**List[CommodityQualityDTO]**](CommodityQualityDTO.md) | | [optional] -**processing** | [**List[CommodityProcessingDTO]**](CommodityProcessingDTO.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.commodity_dto import CommodityDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of CommodityDTO from a JSON string -commodity_dto_instance = CommodityDTO.from_json(json) -# print the JSON string representation of the object -print(CommodityDTO.to_json()) - -# convert the object into a dict -commodity_dto_dict = commodity_dto_instance.to_dict() -# create an instance of CommodityDTO from a dict -commodity_dto_from_dict = CommodityDTO.from_dict(commodity_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CommodityPriceDTO.md b/docs/CommodityPriceDTO.md deleted file mode 100644 index 995c793..0000000 --- a/docs/CommodityPriceDTO.md +++ /dev/null @@ -1,54 +0,0 @@ -# CommodityPriceDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The internal ID of the commodity | [optional] -**commodity_id** | **int** | | [optional] -**market_id** | **int** | | [optional] -**price_type_id** | **int** | | [optional] -**commodity_unit_id** | **int** | | [optional] -**currency_id** | **int** | | [optional] -**commodity_name** | **str** | | [optional] -**market_name** | **str** | | [optional] -**price_type_name** | **str** | | [optional] -**unit_name** | **str** | | [optional] -**currency_name** | **str** | | [optional] -**original_frequency** | **str** | | [optional] -**adm0_code** | **int** | | [optional] -**country_iso3** | **str** | | [optional] -**country_name** | **str** | | [optional] -**commodity_price** | **float** | | [optional] -**commodity_price_source_name** | **str** | | [optional] -**commodity_price_metadata** | **object** | | [optional] -**commodity_price_date** | **datetime** | | [optional] -**commodity_price_observations** | **int** | | [optional] -**commodity_price_date_day** | **int** | | [optional] -**commodity_price_date_week** | **int** | | [optional] -**commodity_price_date_month** | **int** | | [optional] -**commodity_price_date_year** | **int** | | [optional] -**commodity_price_insert_date** | **datetime** | | [optional] -**commodity_price_flag** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of CommodityPriceDTO from a JSON string -commodity_price_dto_instance = CommodityPriceDTO.from_json(json) -# print the JSON string representation of the object -print(CommodityPriceDTO.to_json()) - -# convert the object into a dict -commodity_price_dto_dict = commodity_price_dto_instance.to_dict() -# create an instance of CommodityPriceDTO from a dict -commodity_price_dto_from_dict = CommodityPriceDTO.from_dict(commodity_price_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CommodityProcessingDTO.md b/docs/CommodityProcessingDTO.md deleted file mode 100644 index 91ea47b..0000000 --- a/docs/CommodityProcessingDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# CommodityProcessingDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The internal ID of the commodity | [optional] -**name** | **str** | The name of the process | [optional] - -## Example - -```python -from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of CommodityProcessingDTO from a JSON string -commodity_processing_dto_instance = CommodityProcessingDTO.from_json(json) -# print the JSON string representation of the object -print(CommodityProcessingDTO.to_json()) - -# convert the object into a dict -commodity_processing_dto_dict = commodity_processing_dto_instance.to_dict() -# create an instance of CommodityProcessingDTO from a dict -commodity_processing_dto_from_dict = CommodityProcessingDTO.from_dict(commodity_processing_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CommodityQualityDTO.md b/docs/CommodityQualityDTO.md deleted file mode 100644 index 8039b63..0000000 --- a/docs/CommodityQualityDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# CommodityQualityDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The internal ID of the commodity | [optional] -**name** | **str** | The name of the commodity | [optional] - -## Example - -```python -from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of CommodityQualityDTO from a JSON string -commodity_quality_dto_instance = CommodityQualityDTO.from_json(json) -# print the JSON string representation of the object -print(CommodityQualityDTO.to_json()) - -# convert the object into a dict -commodity_quality_dto_dict = commodity_quality_dto_instance.to_dict() -# create an instance of CommodityQualityDTO from a dict -commodity_quality_dto_from_dict = CommodityQualityDTO.from_dict(commodity_quality_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CurrencyDTO.md b/docs/CurrencyDTO.md deleted file mode 100644 index d2fb06f..0000000 --- a/docs/CurrencyDTO.md +++ /dev/null @@ -1,33 +0,0 @@ -# CurrencyDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | The internal ID of the unit | [optional] -**name** | **str** | The name of the unit | [optional] -**extended_name** | **str** | | [optional] -**create_date** | **datetime** | | [optional] -**update_date** | **datetime** | | [optional] - -## Example - -```python -from data_bridges_client.models.currency_dto import CurrencyDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of CurrencyDTO from a JSON string -currency_dto_instance = CurrencyDTO.from_json(json) -# print the JSON string representation of the object -print(CurrencyDTO.to_json()) - -# convert the object into a dict -currency_dto_dict = currency_dto_instance.to_dict() -# create an instance of CurrencyDTO from a dict -currency_dto_from_dict = CurrencyDTO.from_dict(currency_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EconomicDataDTO.md b/docs/EconomicDataDTO.md deleted file mode 100644 index 46dca1e..0000000 --- a/docs/EconomicDataDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# EconomicDataDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**var_date** | **datetime** | | [optional] -**value** | **float** | | [optional] - -## Example - -```python -from data_bridges_client.models.economic_data_dto import EconomicDataDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of EconomicDataDTO from a JSON string -economic_data_dto_instance = EconomicDataDTO.from_json(json) -# print the JSON string representation of the object -print(EconomicDataDTO.to_json()) - -# convert the object into a dict -economic_data_dto_dict = economic_data_dto_instance.to_dict() -# create an instance of EconomicDataDTO from a dict -economic_data_dto_from_dict = EconomicDataDTO.from_dict(economic_data_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EconomicIndicatorProperty.md b/docs/EconomicIndicatorProperty.md deleted file mode 100644 index efe7add..0000000 --- a/docs/EconomicIndicatorProperty.md +++ /dev/null @@ -1,36 +0,0 @@ -# EconomicIndicatorProperty - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**name** | **str** | | [optional] -**frequency** | **str** | | [optional] -**unit** | **str** | | [optional] -**data_source** | **str** | | [optional] -**country_iso3** | **str** | | [optional] -**latest_value** | **float** | | [optional] -**latest_value_date** | **datetime** | | [optional] - -## Example - -```python -from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty - -# TODO update the JSON string below -json = "{}" -# create an instance of EconomicIndicatorProperty from a JSON string -economic_indicator_property_instance = EconomicIndicatorProperty.from_json(json) -# print the JSON string representation of the object -print(EconomicIndicatorProperty.to_json()) - -# convert the object into a dict -economic_indicator_property_dict = economic_indicator_property_instance.to_dict() -# create an instance of EconomicIndicatorProperty from a dict -economic_indicator_property_from_dict = EconomicIndicatorProperty.from_dict(economic_indicator_property_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/EconomicIndicatorPropertyPagedResult.md b/docs/EconomicIndicatorPropertyPagedResult.md deleted file mode 100644 index 5a67a36..0000000 --- a/docs/EconomicIndicatorPropertyPagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# EconomicIndicatorPropertyPagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[EconomicIndicatorProperty]**](EconomicIndicatorProperty.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of EconomicIndicatorPropertyPagedResult from a JSON string -economic_indicator_property_paged_result_instance = EconomicIndicatorPropertyPagedResult.from_json(json) -# print the JSON string representation of the object -print(EconomicIndicatorPropertyPagedResult.to_json()) - -# convert the object into a dict -economic_indicator_property_paged_result_dict = economic_indicator_property_paged_result_instance.to_dict() -# create an instance of EconomicIndicatorPropertyPagedResult from a dict -economic_indicator_property_paged_result_from_dict = EconomicIndicatorPropertyPagedResult.from_dict(economic_indicator_property_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Feature.md b/docs/Feature.md deleted file mode 100644 index a76c353..0000000 --- a/docs/Feature.md +++ /dev/null @@ -1,33 +0,0 @@ -# Feature - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**id** | **int** | | [optional] -**bbox** | **List[float]** | | [optional] -**geometry** | [**Geometry**](Geometry.md) | | [optional] -**properties** | [**Properties**](Properties.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.feature import Feature - -# TODO update the JSON string below -json = "{}" -# create an instance of Feature from a JSON string -feature_instance = Feature.from_json(json) -# print the JSON string representation of the object -print(Feature.to_json()) - -# convert the object into a dict -feature_dict = feature_instance.to_dict() -# create an instance of Feature from a dict -feature_from_dict = Feature.from_dict(feature_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Geometry.md b/docs/Geometry.md deleted file mode 100644 index e65b4d5..0000000 --- a/docs/Geometry.md +++ /dev/null @@ -1,30 +0,0 @@ -# Geometry - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**coordinates** | **List[float]** | | [optional] - -## Example - -```python -from data_bridges_client.models.geometry import Geometry - -# TODO update the JSON string below -json = "{}" -# create an instance of Geometry from a JSON string -geometry_instance = Geometry.from_json(json) -# print the JSON string representation of the object -print(Geometry.to_json()) - -# convert the object into a dict -geometry_dict = geometry_instance.to_dict() -# create an instance of Geometry from a dict -geometry_from_dict = Geometry.from_dict(geometry_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/HouseholdSurveyListDTO.md b/docs/HouseholdSurveyListDTO.md deleted file mode 100644 index c8332b1..0000000 --- a/docs/HouseholdSurveyListDTO.md +++ /dev/null @@ -1,55 +0,0 @@ -# HouseholdSurveyListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**survey_id** | **int** | The Id of the Survey | [optional] -**survey_status_id** | **int** | The Id of the Survey status | [optional] -**survey_start_date** | **datetime** | The date when the survey has started | [optional] -**survey_end_date** | **datetime** | The date when the survey has ended | [optional] -**survey_create_date** | **datetime** | The date when the survey has been uploaded in the Data Bridges platform | [optional] -**survey_validation_report** | **str** | The detailed report on the validation performed on the survey schema | [optional] -**survey_original_filename** | **str** | The filename of the survey CSV file | [optional] -**xls_form_name** | **str** | The name of the XLSForm used to collect data | [optional] -**base_xls_form_name** | **str** | The name of the base XLSForm used to build the XLSForm | [optional] -**country_name** | **str** | The name of the country where the survey has taken place | [optional] -**adm0_code** | **int** | The internal code of the country where the survey has taken place | [optional] -**iso3_alpha3** | **str** | The ISO3 alpha code of the country where the survey has taken place | [optional] -**user_name** | **str** | The name of the user that has uploaded the survey data | [optional] -**approved_by** | **str** | | [optional] -**original_csv_file** | **str** | The link to download the original CSV file | [optional] -**base_data** | **str** | The link to the JSON data reshaped on the base XLSForm | [optional] -**survey_attributes** | [**List[KeyNameDto]**](KeyNameDto.md) | | [optional] -**organizations** | [**List[KeyNameDto]**](KeyNameDto.md) | | [optional] -**survey_modality_name** | **str** | | [optional] -**survey_category_name** | **str** | | [optional] -**survey_sub_category_name** | **str** | | [optional] -**survey_phase_name** | **str** | | [optional] -**survey_visibility** | **str** | | [optional] -**is_continuous_monitoring** | **bool** | | [optional] -**survey_name** | **str** | | [optional] -**xls_form_id** | **int** | | [optional] -**base_xls_form_id** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of HouseholdSurveyListDTO from a JSON string -household_survey_list_dto_instance = HouseholdSurveyListDTO.from_json(json) -# print the JSON string representation of the object -print(HouseholdSurveyListDTO.to_json()) - -# convert the object into a dict -household_survey_list_dto_dict = household_survey_list_dto_instance.to_dict() -# create an instance of HouseholdSurveyListDTO from a dict -household_survey_list_dto_from_dict = HouseholdSurveyListDTO.from_dict(household_survey_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/HouseholdSurveyListDTOPagedResult.md b/docs/HouseholdSurveyListDTOPagedResult.md deleted file mode 100644 index bb04d2f..0000000 --- a/docs/HouseholdSurveyListDTOPagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# HouseholdSurveyListDTOPagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[HouseholdSurveyListDTO]**](HouseholdSurveyListDTO.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of HouseholdSurveyListDTOPagedResult from a JSON string -household_survey_list_dto_paged_result_instance = HouseholdSurveyListDTOPagedResult.from_json(json) -# print the JSON string representation of the object -print(HouseholdSurveyListDTOPagedResult.to_json()) - -# convert the object into a dict -household_survey_list_dto_paged_result_dict = household_survey_list_dto_paged_result_instance.to_dict() -# create an instance of HouseholdSurveyListDTOPagedResult from a dict -household_survey_list_dto_paged_result_from_dict = HouseholdSurveyListDTOPagedResult.from_dict(household_survey_list_dto_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/KeyNameDto.md b/docs/KeyNameDto.md deleted file mode 100644 index 98c1b72..0000000 --- a/docs/KeyNameDto.md +++ /dev/null @@ -1,30 +0,0 @@ -# KeyNameDto - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**name** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.key_name_dto import KeyNameDto - -# TODO update the JSON string below -json = "{}" -# create an instance of KeyNameDto from a JSON string -key_name_dto_instance = KeyNameDto.from_json(json) -# print the JSON string representation of the object -print(KeyNameDto.to_json()) - -# convert the object into a dict -key_name_dto_dict = key_name_dto_instance.to_dict() -# create an instance of KeyNameDto from a dict -key_name_dto_from_dict = KeyNameDto.from_dict(key_name_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/MFIProcessedDataDTO.md b/docs/MFIProcessedDataDTO.md deleted file mode 100644 index 865c151..0000000 --- a/docs/MFIProcessedDataDTO.md +++ /dev/null @@ -1,54 +0,0 @@ -# MFIProcessedDataDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**survey_id** | **int** | The Id of the Survey | [optional] -**start_date** | **datetime** | The Id of the Survey status | [optional] -**end_date** | **datetime** | | [optional] -**market_id** | **int** | | [optional] -**market_name** | **str** | | [optional] -**market_latitude** | **float** | | [optional] -**market_longitude** | **float** | | [optional] -**regional_bureau_id** | **int** | | [optional] -**regional_bureau_name** | **str** | | [optional] -**adm0_code** | **int** | | [optional] -**adm0_name** | **str** | | [optional] -**adm1_code** | **int** | | [optional] -**adm1_name** | **str** | | [optional] -**adm2_code** | **int** | | [optional] -**adm2_name** | **str** | | [optional] -**level_id** | **int** | | [optional] -**level_name** | **str** | | [optional] -**dimension_id** | **int** | | [optional] -**dimension_name** | **str** | | [optional] -**variable_id** | **int** | | [optional] -**variable_name** | **str** | | [optional] -**variable_label** | **str** | | [optional] -**output_value** | **float** | | [optional] -**traders_sample_size** | **int** | | [optional] -**base_xls_form_id** | **int** | | [optional] -**base_xls_form_name** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of MFIProcessedDataDTO from a JSON string -mfi_processed_data_dto_instance = MFIProcessedDataDTO.from_json(json) -# print the JSON string representation of the object -print(MFIProcessedDataDTO.to_json()) - -# convert the object into a dict -mfi_processed_data_dto_dict = mfi_processed_data_dto_instance.to_dict() -# create an instance of MFIProcessedDataDTO from a dict -mfi_processed_data_dto_from_dict = MFIProcessedDataDTO.from_dict(mfi_processed_data_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/MarketDTO.md b/docs/MarketDTO.md deleted file mode 100644 index 384f8e1..0000000 --- a/docs/MarketDTO.md +++ /dev/null @@ -1,37 +0,0 @@ -# MarketDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**market_id** | **int** | The internal ID of the market | [optional] -**market_name** | **str** | The name of the market | [optional] -**market_local_name** | **str** | The local name of the market | [optional] -**market_latitude** | **float** | The decimal latitude | [optional] -**market_longitude** | **float** | The decimal longitude | [optional] -**admin1_name** | **str** | The name of the first level administrative division where the market is placed | [optional] -**admin1_code** | **int** | The code of the first level administrative division where the market is placed | [optional] -**admin2_name** | **str** | The name of the second level administrative division where the market is placed | [optional] -**admin2_code** | **int** | The code of the second level administrative division where the market is placed | [optional] - -## Example - -```python -from data_bridges_client.models.market_dto import MarketDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of MarketDTO from a JSON string -market_dto_instance = MarketDTO.from_json(json) -# print the JSON string representation of the object -print(MarketDTO.to_json()) - -# convert the object into a dict -market_dto_dict = market_dto_instance.to_dict() -# create an instance of MarketDTO from a dict -market_dto_from_dict = MarketDTO.from_dict(market_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/MarketGeoJsonRoot.md b/docs/MarketGeoJsonRoot.md deleted file mode 100644 index ec7be0b..0000000 --- a/docs/MarketGeoJsonRoot.md +++ /dev/null @@ -1,31 +0,0 @@ -# MarketGeoJsonRoot - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**features** | [**List[Feature]**](Feature.md) | | [optional] -**bbox** | **object** | | [optional] - -## Example - -```python -from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot - -# TODO update the JSON string below -json = "{}" -# create an instance of MarketGeoJsonRoot from a JSON string -market_geo_json_root_instance = MarketGeoJsonRoot.from_json(json) -# print the JSON string representation of the object -print(MarketGeoJsonRoot.to_json()) - -# convert the object into a dict -market_geo_json_root_dict = market_geo_json_root_instance.to_dict() -# create an instance of MarketGeoJsonRoot from a dict -market_geo_json_root_from_dict = MarketGeoJsonRoot.from_dict(market_geo_json_root_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/NearbyMarketsDTO.md b/docs/NearbyMarketsDTO.md deleted file mode 100644 index ea03730..0000000 --- a/docs/NearbyMarketsDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# NearbyMarketsDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**market_id** | **int** | The internal ID of the market | [optional] -**market_name** | **str** | The name of the market | [optional] -**distance** | **float** | The distance in meters of the market from the provided point | [optional] - -## Example - -```python -from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of NearbyMarketsDTO from a JSON string -nearby_markets_dto_instance = NearbyMarketsDTO.from_json(json) -# print the JSON string representation of the object -print(NearbyMarketsDTO.to_json()) - -# convert the object into a dict -nearby_markets_dto_dict = nearby_markets_dto_instance.to_dict() -# create an instance of NearbyMarketsDTO from a dict -nearby_markets_dto_from_dict = NearbyMarketsDTO.from_dict(nearby_markets_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedCommodityListDTO.md b/docs/PagedCommodityListDTO.md deleted file mode 100644 index b386cc4..0000000 --- a/docs/PagedCommodityListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedCommodityListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[CommodityDTO]**](CommodityDTO.md) | The list of paged items | [optional] - -## Example - -```python -from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedCommodityListDTO from a JSON string -paged_commodity_list_dto_instance = PagedCommodityListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedCommodityListDTO.to_json()) - -# convert the object into a dict -paged_commodity_list_dto_dict = paged_commodity_list_dto_instance.to_dict() -# create an instance of PagedCommodityListDTO from a dict -paged_commodity_list_dto_from_dict = PagedCommodityListDTO.from_dict(paged_commodity_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedCommodityPriceListDTO.md b/docs/PagedCommodityPriceListDTO.md deleted file mode 100644 index 59e11db..0000000 --- a/docs/PagedCommodityPriceListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedCommodityPriceListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[CommodityPriceDTO]**](CommodityPriceDTO.md) | The list of paged items | [optional] - -## Example - -```python -from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedCommodityPriceListDTO from a JSON string -paged_commodity_price_list_dto_instance = PagedCommodityPriceListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedCommodityPriceListDTO.to_json()) - -# convert the object into a dict -paged_commodity_price_list_dto_dict = paged_commodity_price_list_dto_instance.to_dict() -# create an instance of PagedCommodityPriceListDTO from a dict -paged_commodity_price_list_dto_from_dict = PagedCommodityPriceListDTO.from_dict(paged_commodity_price_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md b/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md deleted file mode 100644 index 719ff31..0000000 --- a/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedCommodityWeeklyAggregatedPriceListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[WeeklyAggregatedPrice]**](WeeklyAggregatedPrice.md) | The list of paged items | [optional] - -## Example - -```python -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedCommodityWeeklyAggregatedPriceListDTO from a JSON string -paged_commodity_weekly_aggregated_price_list_dto_instance = PagedCommodityWeeklyAggregatedPriceListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedCommodityWeeklyAggregatedPriceListDTO.to_json()) - -# convert the object into a dict -paged_commodity_weekly_aggregated_price_list_dto_dict = paged_commodity_weekly_aggregated_price_list_dto_instance.to_dict() -# create an instance of PagedCommodityWeeklyAggregatedPriceListDTO from a dict -paged_commodity_weekly_aggregated_price_list_dto_from_dict = PagedCommodityWeeklyAggregatedPriceListDTO.from_dict(paged_commodity_weekly_aggregated_price_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedCurrencyListDTO.md b/docs/PagedCurrencyListDTO.md deleted file mode 100644 index 6a789f3..0000000 --- a/docs/PagedCurrencyListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedCurrencyListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[CurrencyDTO]**](CurrencyDTO.md) | The list of paged items | [optional] - -## Example - -```python -from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedCurrencyListDTO from a JSON string -paged_currency_list_dto_instance = PagedCurrencyListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedCurrencyListDTO.to_json()) - -# convert the object into a dict -paged_currency_list_dto_dict = paged_currency_list_dto_instance.to_dict() -# create an instance of PagedCurrencyListDTO from a dict -paged_currency_list_dto_from_dict = PagedCurrencyListDTO.from_dict(paged_currency_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedEconomicDataDTO.md b/docs/PagedEconomicDataDTO.md deleted file mode 100644 index 5d387cf..0000000 --- a/docs/PagedEconomicDataDTO.md +++ /dev/null @@ -1,34 +0,0 @@ -# PagedEconomicDataDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**unit** | **str** | | [optional] -**frequency** | **str** | | [optional] -**data_source** | **str** | | [optional] -**items** | [**List[EconomicDataDTO]**](EconomicDataDTO.md) | The list of paged items | [optional] - -## Example - -```python -from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedEconomicDataDTO from a JSON string -paged_economic_data_dto_instance = PagedEconomicDataDTO.from_json(json) -# print the JSON string representation of the object -print(PagedEconomicDataDTO.to_json()) - -# convert the object into a dict -paged_economic_data_dto_dict = paged_economic_data_dto_instance.to_dict() -# create an instance of PagedEconomicDataDTO from a dict -paged_economic_data_dto_from_dict = PagedEconomicDataDTO.from_dict(paged_economic_data_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedMarketListDTO.md b/docs/PagedMarketListDTO.md deleted file mode 100644 index 1ca691a..0000000 --- a/docs/PagedMarketListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedMarketListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[MarketDTO]**](MarketDTO.md) | The list of markets | [optional] - -## Example - -```python -from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedMarketListDTO from a JSON string -paged_market_list_dto_instance = PagedMarketListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedMarketListDTO.to_json()) - -# convert the object into a dict -paged_market_list_dto_dict = paged_market_list_dto_instance.to_dict() -# create an instance of PagedMarketListDTO from a dict -paged_market_list_dto_from_dict = PagedMarketListDTO.from_dict(paged_market_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedProcessedDataDTO.md b/docs/PagedProcessedDataDTO.md deleted file mode 100644 index a43ee85..0000000 --- a/docs/PagedProcessedDataDTO.md +++ /dev/null @@ -1,32 +0,0 @@ -# PagedProcessedDataDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**scroll_id** | **int** | | [optional] -**items** | [**List[MFIProcessedDataDTO]**](MFIProcessedDataDTO.md) | The list of processed data | [optional] - -## Example - -```python -from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedProcessedDataDTO from a JSON string -paged_processed_data_dto_instance = PagedProcessedDataDTO.from_json(json) -# print the JSON string representation of the object -print(PagedProcessedDataDTO.to_json()) - -# convert the object into a dict -paged_processed_data_dto_dict = paged_processed_data_dto_instance.to_dict() -# create an instance of PagedProcessedDataDTO from a dict -paged_processed_data_dto_from_dict = PagedProcessedDataDTO.from_dict(paged_processed_data_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedSurveyListDTO.md b/docs/PagedSurveyListDTO.md deleted file mode 100644 index 5953e2e..0000000 --- a/docs/PagedSurveyListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedSurveyListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[SurveyListDTO]**](SurveyListDTO.md) | The list of surveys | [optional] - -## Example - -```python -from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedSurveyListDTO from a JSON string -paged_survey_list_dto_instance = PagedSurveyListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedSurveyListDTO.to_json()) - -# convert the object into a dict -paged_survey_list_dto_dict = paged_survey_list_dto_instance.to_dict() -# create an instance of PagedSurveyListDTO from a dict -paged_survey_list_dto_from_dict = PagedSurveyListDTO.from_dict(paged_survey_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedSurveyResponsesDTO.md b/docs/PagedSurveyResponsesDTO.md deleted file mode 100644 index 05a1e3f..0000000 --- a/docs/PagedSurveyResponsesDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedSurveyResponsesDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of responses | [optional] -**page** | **int** | The current page | [optional] -**items** | **List[object]** | The list of survey responses | [optional] - -## Example - -```python -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedSurveyResponsesDTO from a JSON string -paged_survey_responses_dto_instance = PagedSurveyResponsesDTO.from_json(json) -# print the JSON string representation of the object -print(PagedSurveyResponsesDTO.to_json()) - -# convert the object into a dict -paged_survey_responses_dto_dict = paged_survey_responses_dto_instance.to_dict() -# create an instance of PagedSurveyResponsesDTO from a dict -paged_survey_responses_dto_from_dict = PagedSurveyResponsesDTO.from_dict(paged_survey_responses_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PagedXlsFormListDTO.md b/docs/PagedXlsFormListDTO.md deleted file mode 100644 index 40a0afb..0000000 --- a/docs/PagedXlsFormListDTO.md +++ /dev/null @@ -1,31 +0,0 @@ -# PagedXlsFormListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_items** | **int** | The total number of items | [optional] -**page** | **int** | The current page | [optional] -**items** | [**List[XlsFormDTO]**](XlsFormDTO.md) | The list of XlsForms | [optional] - -## Example - -```python -from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of PagedXlsFormListDTO from a JSON string -paged_xls_form_list_dto_instance = PagedXlsFormListDTO.from_json(json) -# print the JSON string representation of the object -print(PagedXlsFormListDTO.to_json()) - -# convert the object into a dict -paged_xls_form_list_dto_dict = paged_xls_form_list_dto_instance.to_dict() -# create an instance of PagedXlsFormListDTO from a dict -paged_xls_form_list_dto_from_dict = PagedXlsFormListDTO.from_dict(paged_xls_form_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ProblemDetails.md b/docs/ProblemDetails.md deleted file mode 100644 index 1dd7d96..0000000 --- a/docs/ProblemDetails.md +++ /dev/null @@ -1,33 +0,0 @@ -# ProblemDetails - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **str** | | [optional] -**title** | **str** | | [optional] -**status** | **int** | | [optional] -**detail** | **str** | | [optional] -**instance** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.problem_details import ProblemDetails - -# TODO update the JSON string below -json = "{}" -# create an instance of ProblemDetails from a JSON string -problem_details_instance = ProblemDetails.from_json(json) -# print the JSON string representation of the object -print(ProblemDetails.to_json()) - -# convert the object into a dict -problem_details_dict = problem_details_instance.to_dict() -# create an instance of ProblemDetails from a dict -problem_details_from_dict = ProblemDetails.from_dict(problem_details_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Properties.md b/docs/Properties.md deleted file mode 100644 index 7ce4c66..0000000 --- a/docs/Properties.md +++ /dev/null @@ -1,29 +0,0 @@ -# Properties - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.properties import Properties - -# TODO update the JSON string below -json = "{}" -# create an instance of Properties from a JSON string -properties_instance = Properties.from_json(json) -# print the JSON string representation of the object -print(Properties.to_json()) - -# convert the object into a dict -properties_dict = properties_instance.to_dict() -# create an instance of Properties from a dict -properties_from_dict = Properties.from_dict(properties_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RpmeAssessment.md b/docs/RpmeAssessment.md deleted file mode 100644 index 9958e13..0000000 --- a/docs/RpmeAssessment.md +++ /dev/null @@ -1,48 +0,0 @@ -# RpmeAssessment - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**survey_id** | **int** | | [optional] -**assessment_date** | **datetime** | | [optional] -**shop_id** | **int** | | [optional] -**adm0_code** | **int** | | [optional] -**adm1_code** | **int** | | [optional] -**adm2_code** | **int** | | [optional] -**adm0_code_dots** | **str** | | [optional] -**adm1_code_dots** | **str** | | [optional] -**adm2_code_dots** | **str** | | [optional] -**market_id** | **int** | | [optional] -**sh_latitude** | **float** | | [optional] -**sh_longitude** | **float** | | [optional] -**nb_beneficiaries_interviewed** | **int** | | [optional] -**price_score_tbu** | **bool** | | [optional] -**price_score_tbd** | **bool** | | [optional] -**beneficiaries_score_tbu** | **bool** | | [optional] -**trd_name** | **str** | | [optional] -**sev_cntr_dev** | **str** | | [optional] -**ben_sev_cntr_dev** | **str** | | [optional] -**output_values** | [**List[RpmeOutputValues]**](RpmeOutputValues.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.rpme_assessment import RpmeAssessment - -# TODO update the JSON string below -json = "{}" -# create an instance of RpmeAssessment from a JSON string -rpme_assessment_instance = RpmeAssessment.from_json(json) -# print the JSON string representation of the object -print(RpmeAssessment.to_json()) - -# convert the object into a dict -rpme_assessment_dict = rpme_assessment_instance.to_dict() -# create an instance of RpmeAssessment from a dict -rpme_assessment_from_dict = RpmeAssessment.from_dict(rpme_assessment_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RpmeAssessmentPagedResult.md b/docs/RpmeAssessmentPagedResult.md deleted file mode 100644 index 6625a03..0000000 --- a/docs/RpmeAssessmentPagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# RpmeAssessmentPagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[RpmeAssessment]**](RpmeAssessment.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of RpmeAssessmentPagedResult from a JSON string -rpme_assessment_paged_result_instance = RpmeAssessmentPagedResult.from_json(json) -# print the JSON string representation of the object -print(RpmeAssessmentPagedResult.to_json()) - -# convert the object into a dict -rpme_assessment_paged_result_dict = rpme_assessment_paged_result_instance.to_dict() -# create an instance of RpmeAssessmentPagedResult from a dict -rpme_assessment_paged_result_from_dict = RpmeAssessmentPagedResult.from_dict(rpme_assessment_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RpmeOutputValues.md b/docs/RpmeOutputValues.md deleted file mode 100644 index 371295e..0000000 --- a/docs/RpmeOutputValues.md +++ /dev/null @@ -1,30 +0,0 @@ -# RpmeOutputValues - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**variable_id** | **int** | | [optional] -**output_value** | **float** | | [optional] - -## Example - -```python -from data_bridges_client.models.rpme_output_values import RpmeOutputValues - -# TODO update the JSON string below -json = "{}" -# create an instance of RpmeOutputValues from a JSON string -rpme_output_values_instance = RpmeOutputValues.from_json(json) -# print the JSON string representation of the object -print(RpmeOutputValues.to_json()) - -# convert the object into a dict -rpme_output_values_dict = rpme_output_values_instance.to_dict() -# create an instance of RpmeOutputValues from a dict -rpme_output_values_from_dict = RpmeOutputValues.from_dict(rpme_output_values_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RpmeVariable.md b/docs/RpmeVariable.md deleted file mode 100644 index dfb9ba5..0000000 --- a/docs/RpmeVariable.md +++ /dev/null @@ -1,37 +0,0 @@ -# RpmeVariable - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**variable_id** | **int** | | [optional] -**variable_name** | **str** | | [optional] -**variable_description** | **str** | | [optional] -**dimension_id** | **int** | | [optional] -**dimension_name** | **str** | | [optional] -**level_id** | **int** | | [optional] -**level_name** | **str** | | [optional] -**survey_mode_id** | **int** | | [optional] -**survey_mode_name** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.rpme_variable import RpmeVariable - -# TODO update the JSON string below -json = "{}" -# create an instance of RpmeVariable from a JSON string -rpme_variable_instance = RpmeVariable.from_json(json) -# print the JSON string representation of the object -print(RpmeVariable.to_json()) - -# convert the object into a dict -rpme_variable_dict = rpme_variable_instance.to_dict() -# create an instance of RpmeVariable from a dict -rpme_variable_from_dict = RpmeVariable.from_dict(rpme_variable_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/RpmeVariablePagedResult.md b/docs/RpmeVariablePagedResult.md deleted file mode 100644 index d067faf..0000000 --- a/docs/RpmeVariablePagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# RpmeVariablePagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[RpmeVariable]**](RpmeVariable.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of RpmeVariablePagedResult from a JSON string -rpme_variable_paged_result_instance = RpmeVariablePagedResult.from_json(json) -# print the JSON string representation of the object -print(RpmeVariablePagedResult.to_json()) - -# convert the object into a dict -rpme_variable_paged_result_dict = rpme_variable_paged_result_instance.to_dict() -# create an instance of RpmeVariablePagedResult from a dict -rpme_variable_paged_result_from_dict = RpmeVariablePagedResult.from_dict(rpme_variable_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SurveyListDTO.md b/docs/SurveyListDTO.md deleted file mode 100644 index 9e4df27..0000000 --- a/docs/SurveyListDTO.md +++ /dev/null @@ -1,43 +0,0 @@ -# SurveyListDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**survey_id** | **int** | The Id of the Survey | [optional] -**survey_status_id** | **int** | The Id of the Survey status | [optional] -**survey_start_date** | **datetime** | The date when the survey has started | [optional] -**survey_end_date** | **datetime** | The date when the survey has ended | [optional] -**survey_create_date** | **datetime** | The date when the survey has been uploaded in the Data Bridges platform | [optional] -**survey_validation_report** | **str** | The detailed report on the validation performed on the survey schema | [optional] -**survey_original_filename** | **str** | The filename of the survey CSV file | [optional] -**xls_form_name** | **str** | The name of the XLSForm used to collect data | [optional] -**base_xls_form_name** | **str** | The name of the base XLSForm used to build the XLSForm | [optional] -**country_name** | **str** | The name of the country where the survey has taken place | [optional] -**adm0_code** | **int** | The internal code of the country where the survey has taken place | [optional] -**iso3_alpha3** | **str** | The ISO3 alpha code of the country where the survey has taken place | [optional] -**user_name** | **str** | The name of the user that has uploaded the survey data | [optional] -**original_csv_file** | **str** | The link to download the original CSV file | [optional] -**base_data** | **str** | The link to the JSON data reshaped on the base XLSForm | [optional] - -## Example - -```python -from data_bridges_client.models.survey_list_dto import SurveyListDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of SurveyListDTO from a JSON string -survey_list_dto_instance = SurveyListDTO.from_json(json) -# print the JSON string representation of the object -print(SurveyListDTO.to_json()) - -# convert the object into a dict -survey_list_dto_dict = survey_list_dto_instance.to_dict() -# create an instance of SurveyListDTO from a dict -survey_list_dto_from_dict = SurveyListDTO.from_dict(survey_list_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UsdIndirectQuotation.md b/docs/UsdIndirectQuotation.md deleted file mode 100644 index f8d9ced..0000000 --- a/docs/UsdIndirectQuotation.md +++ /dev/null @@ -1,36 +0,0 @@ -# UsdIndirectQuotation - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**name** | **str** | the ISO3 code for the currency, based on ISO4217 | [optional] -**adm0_code** | **int** | | [optional] -**country_iso3** | **str** | | [optional] -**is_official** | **bool** | The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database | [optional] -**frequency** | **str** | (it’s from the reporting commodity named Exchange Rate | [optional] -**value** | **float** | | [optional] -**var_date** | **datetime** | | [optional] - -## Example - -```python -from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation - -# TODO update the JSON string below -json = "{}" -# create an instance of UsdIndirectQuotation from a JSON string -usd_indirect_quotation_instance = UsdIndirectQuotation.from_json(json) -# print the JSON string representation of the object -print(UsdIndirectQuotation.to_json()) - -# convert the object into a dict -usd_indirect_quotation_dict = usd_indirect_quotation_instance.to_dict() -# create an instance of UsdIndirectQuotation from a dict -usd_indirect_quotation_from_dict = UsdIndirectQuotation.from_dict(usd_indirect_quotation_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UsdIndirectQuotationPagedResult.md b/docs/UsdIndirectQuotationPagedResult.md deleted file mode 100644 index b93be35..0000000 --- a/docs/UsdIndirectQuotationPagedResult.md +++ /dev/null @@ -1,31 +0,0 @@ -# UsdIndirectQuotationPagedResult - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**List[UsdIndirectQuotation]**](UsdIndirectQuotation.md) | | [optional] [readonly] -**page** | **int** | | [optional] -**total_items** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult - -# TODO update the JSON string below -json = "{}" -# create an instance of UsdIndirectQuotationPagedResult from a JSON string -usd_indirect_quotation_paged_result_instance = UsdIndirectQuotationPagedResult.from_json(json) -# print the JSON string representation of the object -print(UsdIndirectQuotationPagedResult.to_json()) - -# convert the object into a dict -usd_indirect_quotation_paged_result_dict = usd_indirect_quotation_paged_result_instance.to_dict() -# create an instance of UsdIndirectQuotationPagedResult from a dict -usd_indirect_quotation_paged_result_from_dict = UsdIndirectQuotationPagedResult.from_dict(usd_indirect_quotation_paged_result_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/XlsFormDTO.md b/docs/XlsFormDTO.md deleted file mode 100644 index fd1d487..0000000 --- a/docs/XlsFormDTO.md +++ /dev/null @@ -1,35 +0,0 @@ -# XlsFormDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**xls_form_id** | **int** | | [optional] -**xls_form_name** | **str** | | [optional] -**xls_form_create_date** | **datetime** | | [optional] -**user_name** | **str** | | [optional] -**xls_form_source_file** | **str** | | [optional] -**xls_form_is_base_schema** | **bool** | | [optional] -**adm0_code** | **int** | | [optional] - -## Example - -```python -from data_bridges_client.models.xls_form_dto import XlsFormDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of XlsFormDTO from a JSON string -xls_form_dto_instance = XlsFormDTO.from_json(json) -# print the JSON string representation of the object -print(XlsFormDTO.to_json()) - -# convert the object into a dict -xls_form_dto_dict = xls_form_dto_instance.to_dict() -# create an instance of XlsFormDTO from a dict -xls_form_dto_from_dict = XlsFormDTO.from_dict(xls_form_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/XlsFormDefinitionNewSchemaDTO.md b/docs/XlsFormDefinitionNewSchemaDTO.md deleted file mode 100644 index 7da518e..0000000 --- a/docs/XlsFormDefinitionNewSchemaDTO.md +++ /dev/null @@ -1,36 +0,0 @@ -# XlsFormDefinitionNewSchemaDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**form_name** | **str** | | [optional] -**form_description** | **str** | | [optional] -**form_type** | **str** | | [optional] -**adm0_code** | **int** | | [optional] -**base_schema_id** | **int** | | [optional] -**category** | **str** | | [optional] -**type** | **str** | | [optional] -**fields** | [**List[XlsFormFieldsDTO]**](XlsFormFieldsDTO.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of XlsFormDefinitionNewSchemaDTO from a JSON string -xls_form_definition_new_schema_dto_instance = XlsFormDefinitionNewSchemaDTO.from_json(json) -# print the JSON string representation of the object -print(XlsFormDefinitionNewSchemaDTO.to_json()) - -# convert the object into a dict -xls_form_definition_new_schema_dto_dict = xls_form_definition_new_schema_dto_instance.to_dict() -# create an instance of XlsFormDefinitionNewSchemaDTO from a dict -xls_form_definition_new_schema_dto_from_dict = XlsFormDefinitionNewSchemaDTO.from_dict(xls_form_definition_new_schema_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/XlsFormFieldsDTO.md b/docs/XlsFormFieldsDTO.md deleted file mode 100644 index dc42b48..0000000 --- a/docs/XlsFormFieldsDTO.md +++ /dev/null @@ -1,32 +0,0 @@ -# XlsFormFieldsDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**label** | **str** | | [optional] -**type** | **str** | | [optional] -**choice_list** | [**XlsFormListChoicesDTO**](XlsFormListChoicesDTO.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of XlsFormFieldsDTO from a JSON string -xls_form_fields_dto_instance = XlsFormFieldsDTO.from_json(json) -# print the JSON string representation of the object -print(XlsFormFieldsDTO.to_json()) - -# convert the object into a dict -xls_form_fields_dto_dict = xls_form_fields_dto_instance.to_dict() -# create an instance of XlsFormFieldsDTO from a dict -xls_form_fields_dto_from_dict = XlsFormFieldsDTO.from_dict(xls_form_fields_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/XlsFormListChoiceDTO.md b/docs/XlsFormListChoiceDTO.md deleted file mode 100644 index 953e247..0000000 --- a/docs/XlsFormListChoiceDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# XlsFormListChoiceDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**label** | **str** | | [optional] - -## Example - -```python -from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of XlsFormListChoiceDTO from a JSON string -xls_form_list_choice_dto_instance = XlsFormListChoiceDTO.from_json(json) -# print the JSON string representation of the object -print(XlsFormListChoiceDTO.to_json()) - -# convert the object into a dict -xls_form_list_choice_dto_dict = xls_form_list_choice_dto_instance.to_dict() -# create an instance of XlsFormListChoiceDTO from a dict -xls_form_list_choice_dto_from_dict = XlsFormListChoiceDTO.from_dict(xls_form_list_choice_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/XlsFormListChoicesDTO.md b/docs/XlsFormListChoicesDTO.md deleted file mode 100644 index 4173b54..0000000 --- a/docs/XlsFormListChoicesDTO.md +++ /dev/null @@ -1,30 +0,0 @@ -# XlsFormListChoicesDTO - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] -**choices** | [**List[XlsFormListChoiceDTO]**](XlsFormListChoiceDTO.md) | | [optional] - -## Example - -```python -from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO - -# TODO update the JSON string below -json = "{}" -# create an instance of XlsFormListChoicesDTO from a JSON string -xls_form_list_choices_dto_instance = XlsFormListChoicesDTO.from_json(json) -# print the JSON string representation of the object -print(XlsFormListChoicesDTO.to_json()) - -# convert the object into a dict -xls_form_list_choices_dto_dict = xls_form_list_choices_dto_instance.to_dict() -# create an instance of XlsFormListChoicesDTO from a dict -xls_form_list_choices_dto_from_dict = XlsFormListChoicesDTO.from_dict(xls_form_list_choices_dto_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/generate/README.md b/generate/README.md index 7df193e..c13e806 100644 --- a/generate/README.md +++ b/generate/README.md @@ -26,5 +26,5 @@ mv ./token.py data_bridges_client/ ``` openapi-generator-cli generate -g python -i generate/swagger.json -o . --package-name data_bridges_client --git-user-id WFP-VAM --git-repo-id DataBridgesAPI ``` -4. Manually revert changes to `setup.py` and `README.md`. These relate to additional functionality we developed to handle the WFP token refresh workflow. +4. Manually revert changes to `setup.py`, `README.md` and `License.md`. These relate to additional functionality we developed to handle the WFP token refresh workflow. 5. Commit, push and open a PR into `dev` for review. \ No newline at end of file diff --git a/generate/generate.sh b/generate/generate.sh index 1e2cb26..06ba55a 100644 --- a/generate/generate.sh +++ b/generate/generate.sh @@ -1,3 +1,3 @@ #!/bin/bash -openapi-generator-cli version-manager set 5.4.0 +openapi-generator-cli version-manager set 7.8.0 openapi-generator-cli generate -g python -i generate/swagger.json -o . --package-name data_bridges_client --git-user-id WFP-VAM --git-repo-id DataBridgesAPI \ No newline at end of file diff --git a/setup.py b/setup.py index d215527..cb989d2 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "data-bridges-client" VERSION = "7.0.0" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.9" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", "python-dateutil", diff --git a/test/__init__.py b/test/__init__.py deleted file mode 100644 index e69de29..0000000 From 36b9e1ccb004a2b1f1cb5fb5b28417762e32d384 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 13:25:21 +0100 Subject: [PATCH 5/9] chore: run lint on files --- data_bridges_client/__init__.py | 109 +- data_bridges_client/api/__init__.py | 1 - data_bridges_client/api/commodities_api.py | 445 ++-- .../api/commodity_units_api.py | 471 +++-- data_bridges_client/api/currency_api.py | 420 ++-- data_bridges_client/api/economic_data_api.py | 458 ++-- data_bridges_client/api/global_outlook_api.py | 338 ++- data_bridges_client/api/hunger_hotspot_api.py | 252 ++- data_bridges_client/api/incubation_api.py | 1776 +++++++++------- data_bridges_client/api/ipcch_api.py | 757 +++---- data_bridges_client/api/market_prices_api.py | 1838 +++++++++++------ data_bridges_client/api/markets_api.py | 631 +++--- data_bridges_client/api/rpme_api.py | 1134 +++++----- data_bridges_client/api/surveys_api.py | 874 ++++---- data_bridges_client/api/xls_forms_api.py | 217 +- data_bridges_client/api_client.py | 259 +-- data_bridges_client/configuration.py | 129 +- data_bridges_client/exceptions.py | 43 +- data_bridges_client/models/__init__.py | 109 +- data_bridges_client/models/bad_request_dto.py | 40 +- .../models/cari_adm0_values_dto.py | 139 +- .../cari_adm0_values_dto_paged_result.py | 48 +- .../models/cari_adm1_values_dto.py | 149 +- .../cari_adm1_values_dto_paged_result.py | 48 +- .../models/categories_and_indicators_dto.py | 54 +- data_bridges_client/models/commodity_dto.py | 112 +- .../models/commodity_price_dto.py | 248 ++- .../models/commodity_processing_dto.py | 43 +- .../models/commodity_quality_dto.py | 43 +- data_bridges_client/models/currency_dto.py | 62 +- .../models/economic_data_dto.py | 33 +- .../models/economic_indicator_property.py | 75 +- ...conomic_indicator_property_paged_result.py | 54 +- .../models/extended_alps_value_dto.py | 177 +- .../extended_alps_value_dto_paged_result.py | 50 +- data_bridges_client/models/feature.py | 56 +- data_bridges_client/models/geometry.py | 39 +- .../models/global_outlook_api_dto.py | 73 +- .../models/global_outlook_country_api_dto.py | 68 +- .../models/global_outlook_regional_api_dto.py | 73 +- .../models/household_survey_list_dto.py | 341 ++- .../household_survey_list_dto_paged_result.py | 50 +- .../models/hunger_hot_spot_data_dto.py | 67 +- .../hunger_hot_spot_data_dto_paged_result.py | 50 +- .../models/ipc_historical_datum_dto.py | 743 +++++-- .../ipc_historical_datum_dto_paged_result.py | 50 +- .../models/ipcch_and_equivalent_peaks_dto.py | 131 +- ...h_and_equivalent_peaks_dto_paged_result.py | 55 +- data_bridges_client/models/ipcch_base_dto.py | 271 ++- .../models/ipcch_base_dto_paged_result.py | 48 +- data_bridges_client/models/ipcch_peaks_dto.py | 274 ++- .../models/ipcch_peaks_dto_paged_result.py | 48 +- data_bridges_client/models/key_name_dto.py | 35 +- data_bridges_client/models/list_item_dto.py | 40 +- data_bridges_client/models/market_dto.py | 136 +- .../models/market_geo_json_root.py | 50 +- .../models/mfi_processed_data_dto.py | 203 +- .../models/nearby_markets_dto.py | 55 +- .../models/paged_commodity_list_dto.py | 54 +- .../models/paged_commodity_price_list_dto.py | 54 +- ...modity_weekly_aggregated_price_list_dto.py | 56 +- .../models/paged_currency_list_dto.py | 54 +- .../models/paged_economic_data_dto.py | 75 +- .../models/paged_market_list_dto.py | 54 +- .../models/paged_processed_data_dto.py | 58 +- .../models/paged_survey_list_dto.py | 54 +- .../models/paged_survey_responses_dto.py | 50 +- .../models/paged_xls_form_list_dto.py | 54 +- data_bridges_client/models/problem_details.py | 62 +- data_bridges_client/models/properties.py | 34 +- data_bridges_client/models/rpme_assessment.py | 165 +- .../models/rpme_assessment_paged_result.py | 48 +- .../models/rpme_output_values.py | 41 +- data_bridges_client/models/rpme_variable.py | 88 +- .../models/rpme_variable_paged_result.py | 48 +- data_bridges_client/models/survey_list_dto.py | 217 +- .../models/usd_indirect_quotation.py | 94 +- .../usd_indirect_quotation_paged_result.py | 50 +- .../view_extended_monthly_aggregated_price.py | 226 +- ...d_monthly_aggregated_price_paged_result.py | 55 +- .../models/weekly_aggregated_price.py | 224 +- .../xls_form_definition_new_schema_dto.py | 86 +- data_bridges_client/models/xls_form_dto.py | 83 +- .../models/xls_form_fields_dto.py | 56 +- .../models/xls_form_list_choice_dto.py | 37 +- .../models/xls_form_list_choices_dto.py | 48 +- data_bridges_client/rest.py | 85 +- data_bridges_client/token.py | 4 +- setup.py | 15 +- test/test_bad_request_dto.py | 23 +- test/test_cari_adm0_values_dto.py | 23 +- .../test_cari_adm0_values_dto_paged_result.py | 27 +- test/test_cari_adm1_values_dto.py | 23 +- .../test_cari_adm1_values_dto_paged_result.py | 27 +- test/test_categories_and_indicators_dto.py | 27 +- test/test_commodities_api.py | 15 +- test/test_commodity_dto.py | 23 +- test/test_commodity_price_dto.py | 23 +- test/test_commodity_processing_dto.py | 23 +- test/test_commodity_quality_dto.py | 23 +- test/test_commodity_units_api.py | 15 +- test/test_currency_api.py | 15 +- test/test_currency_dto.py | 23 +- test/test_economic_data_api.py | 15 +- test/test_economic_data_dto.py | 23 +- test/test_economic_indicator_property.py | 27 +- ...conomic_indicator_property_paged_result.py | 27 +- test/test_extended_alps_value_dto.py | 23 +- ...st_extended_alps_value_dto_paged_result.py | 27 +- test/test_feature.py | 23 +- test/test_geometry.py | 23 +- test/test_global_outlook_api.py | 15 +- test/test_global_outlook_api_dto.py | 23 +- test/test_global_outlook_country_api_dto.py | 27 +- test/test_global_outlook_regional_api_dto.py | 27 +- test/test_household_survey_list_dto.py | 23 +- ..._household_survey_list_dto_paged_result.py | 27 +- test/test_hunger_hot_spot_data_dto.py | 23 +- ...t_hunger_hot_spot_data_dto_paged_result.py | 27 +- test/test_hunger_hotspot_api.py | 15 +- test/test_incubation_api.py | 15 +- test/test_ipc_historical_datum_dto.py | 23 +- ...t_ipc_historical_datum_dto_paged_result.py | 27 +- test/test_ipcch_and_equivalent_peaks_dto.py | 27 +- ...h_and_equivalent_peaks_dto_paged_result.py | 27 +- test/test_ipcch_api.py | 15 +- test/test_ipcch_base_dto.py | 23 +- test/test_ipcch_base_dto_paged_result.py | 27 +- test/test_ipcch_peaks_dto.py | 23 +- test/test_ipcch_peaks_dto_paged_result.py | 27 +- test/test_key_name_dto.py | 23 +- test/test_list_item_dto.py | 23 +- test/test_market_dto.py | 23 +- test/test_market_geo_json_root.py | 23 +- test/test_market_prices_api.py | 15 +- test/test_markets_api.py | 15 +- test/test_mfi_processed_data_dto.py | 23 +- test/test_nearby_markets_dto.py | 23 +- test/test_paged_commodity_list_dto.py | 23 +- test/test_paged_commodity_price_list_dto.py | 27 +- ...modity_weekly_aggregated_price_list_dto.py | 31 +- test/test_paged_currency_list_dto.py | 23 +- test/test_paged_economic_data_dto.py | 23 +- test/test_paged_market_list_dto.py | 23 +- test/test_paged_processed_data_dto.py | 23 +- test/test_paged_survey_list_dto.py | 23 +- test/test_paged_survey_responses_dto.py | 27 +- test/test_paged_xls_form_list_dto.py | 23 +- test/test_problem_details.py | 23 +- test/test_properties.py | 23 +- test/test_rpme_api.py | 15 +- test/test_rpme_assessment.py | 23 +- test/test_rpme_assessment_paged_result.py | 27 +- test/test_rpme_output_values.py | 23 +- test/test_rpme_variable.py | 23 +- test/test_rpme_variable_paged_result.py | 27 +- test/test_survey_list_dto.py | 23 +- test/test_surveys_api.py | 15 +- test/test_usd_indirect_quotation.py | 23 +- ...est_usd_indirect_quotation_paged_result.py | 27 +- ..._view_extended_monthly_aggregated_price.py | 27 +- ...d_monthly_aggregated_price_paged_result.py | 31 +- test/test_weekly_aggregated_price.py | 23 +- ...test_xls_form_definition_new_schema_dto.py | 27 +- test/test_xls_form_dto.py | 23 +- test/test_xls_form_fields_dto.py | 23 +- test/test_xls_form_list_choice_dto.py | 23 +- test/test_xls_form_list_choices_dto.py | 23 +- test/test_xls_forms_api.py | 15 +- 169 files changed, 11107 insertions(+), 7654 deletions(-) diff --git a/data_bridges_client/__init__.py b/data_bridges_client/__init__.py index 6a54a59..4ed0bbd 100644 --- a/data_bridges_client/__init__.py +++ b/data_bridges_client/__init__.py @@ -3,18 +3,17 @@ # flake8: noqa """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - __version__ = "1.0.0" # import apis into sdk package @@ -46,37 +45,67 @@ # import models into sdk package from data_bridges_client.models.bad_request_dto import BadRequestDTO from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO -from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( + CariAdm0ValuesDTOPagedResult, +) from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO -from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult -from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( + CariAdm1ValuesDTOPagedResult, +) +from data_bridges_client.models.categories_and_indicators_dto import ( + CategoriesAndIndicatorsDTO, +) from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO from data_bridges_client.models.currency_dto import CurrencyDTO from data_bridges_client.models.economic_data_dto import EconomicDataDTO -from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty -from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.economic_indicator_property import ( + EconomicIndicatorProperty, +) +from data_bridges_client.models.economic_indicator_property_paged_result import ( + EconomicIndicatorPropertyPagedResult, +) from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto -from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult +from data_bridges_client.models.extended_alps_value_dto_paged_result import ( + ExtendedAlpsValueDtoPagedResult, +) from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto -from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto +from data_bridges_client.models.global_outlook_country_api_dto import ( + GlobalOutlookCountryApiDto, +) +from data_bridges_client.models.global_outlook_regional_api_dto import ( + GlobalOutlookRegionalApiDto, +) from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO -from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult +from data_bridges_client.models.household_survey_list_dto_paged_result import ( + HouseholdSurveyListDTOPagedResult, +) from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( + HungerHotSpotDataDTOPagedResult, +) from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( + IpcHistoricalDatumDtoPagedResult, +) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( + IpcchAndEquivalentPeaksDTO, +) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( + IpcchAndEquivalentPeaksDTOPagedResult, +) from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto -from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import ( + IpcchBaseDtoPagedResult, +) from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto -from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( + IpcchPeaksDtoPagedResult, +) from data_bridges_client.models.key_name_dto import KeyNameDto from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO @@ -84,30 +113,48 @@ from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO -from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO +from data_bridges_client.models.paged_commodity_price_list_dto import ( + PagedCommodityPriceListDTO, +) +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( + PagedCommodityWeeklyAggregatedPriceListDTO, +) from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO from data_bridges_client.models.problem_details import ProblemDetails from data_bridges_client.models.properties import Properties from data_bridges_client.models.rpme_assessment import RpmeAssessment -from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult +from data_bridges_client.models.rpme_assessment_paged_result import ( + RpmeAssessmentPagedResult, +) from data_bridges_client.models.rpme_output_values import RpmeOutputValues from data_bridges_client.models.rpme_variable import RpmeVariable -from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult +from data_bridges_client.models.rpme_variable_paged_result import ( + RpmeVariablePagedResult, +) from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation -from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult -from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult +from data_bridges_client.models.usd_indirect_quotation_paged_result import ( + UsdIndirectQuotationPagedResult, +) +from data_bridges_client.models.view_extended_monthly_aggregated_price import ( + ViewExtendedMonthlyAggregatedPrice, +) +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( + ViewExtendedMonthlyAggregatedPricePagedResult, +) from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO -from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO +from data_bridges_client.models.xls_form_definition_new_schema_dto import ( + XlsFormDefinitionNewSchemaDTO, +) from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO diff --git a/data_bridges_client/api/__init__.py b/data_bridges_client/api/__init__.py index 21e5cdf..a276be2 100644 --- a/data_bridges_client/api/__init__.py +++ b/data_bridges_client/api/__init__.py @@ -14,4 +14,3 @@ from data_bridges_client.api.rpme_api import RpmeApi from data_bridges_client.api.surveys_api import SurveysApi from data_bridges_client.api.xls_forms_api import XlsFormsApi - diff --git a/data_bridges_client/api/commodities_api.py b/data_bridges_client/api/commodities_api.py index b94eb8a..04b93be 100644 --- a/data_bridges_client/api/commodities_api.py +++ b/data_bridges_client/api/commodities_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -39,23 +39,46 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def commodities_categories_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, - category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + category_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity category." + ), + ] = None, + category_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -98,7 +121,7 @@ def commodities_categories_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -110,16 +133,15 @@ def commodities_categories_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -127,23 +149,46 @@ def commodities_categories_list_get( response_types_map=_response_types_map, ).data - @validate_call def commodities_categories_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, - category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + category_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity category." + ), + ] = None, + category_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -186,7 +231,7 @@ def commodities_categories_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -198,16 +243,15 @@ def commodities_categories_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -215,23 +259,46 @@ def commodities_categories_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def commodities_categories_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, - category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + category_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity category." + ), + ] = None, + category_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -274,7 +341,7 @@ def commodities_categories_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -286,20 +353,18 @@ def commodities_categories_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _commodities_categories_list_get_serialize( self, country_code, @@ -313,11 +378,9 @@ def _commodities_categories_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -329,53 +392,39 @@ def _commodities_categories_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if category_name is not None: - - _query_params.append(('categoryName', category_name)) - + _query_params.append(("categoryName", category_name)) + if category_id is not None: - - _query_params.append(('categoryID', category_id)) - + _query_params.append(("categoryID", category_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Commodities/Categories/List', + method="GET", + resource_path="/Commodities/Categories/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -385,28 +434,46 @@ def _commodities_categories_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def commodities_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -449,7 +516,7 @@ def commodities_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -461,16 +528,15 @@ def commodities_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -478,23 +544,43 @@ def commodities_list_get( response_types_map=_response_types_map, ).data - @validate_call def commodities_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -537,7 +623,7 @@ def commodities_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -549,16 +635,15 @@ def commodities_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -566,23 +651,43 @@ def commodities_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def commodities_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -625,7 +730,7 @@ def commodities_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -637,20 +742,18 @@ def commodities_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _commodities_list_get_serialize( self, country_code, @@ -664,11 +767,9 @@ def _commodities_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -680,53 +781,39 @@ def _commodities_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if commodity_name is not None: - - _query_params.append(('commodityName', commodity_name)) - + _query_params.append(("commodityName", commodity_name)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Commodities/List', + method="GET", + resource_path="/Commodities/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -736,7 +823,5 @@ def _commodities_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/commodity_units_api.py b/data_bridges_client/api/commodity_units_api.py index 664482b..0850a02 100644 --- a/data_bridges_client/api/commodity_units_api.py +++ b/data_bridges_client/api/commodity_units_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -39,24 +39,52 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def commodity_units_conversion_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + from_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + to_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -101,7 +129,7 @@ def commodity_units_conversion_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -114,16 +142,15 @@ def commodity_units_conversion_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -131,24 +158,52 @@ def commodity_units_conversion_list_get( response_types_map=_response_types_map, ).data - @validate_call def commodity_units_conversion_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + from_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + to_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -193,7 +248,7 @@ def commodity_units_conversion_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -206,16 +261,15 @@ def commodity_units_conversion_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -223,24 +277,52 @@ def commodity_units_conversion_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def commodity_units_conversion_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + from_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + to_unit_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -285,7 +367,7 @@ def commodity_units_conversion_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -298,20 +380,18 @@ def commodity_units_conversion_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _commodity_units_conversion_list_get_serialize( self, country_code, @@ -326,11 +406,9 @@ def _commodity_units_conversion_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -342,57 +420,42 @@ def _commodity_units_conversion_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if from_unit_id is not None: - - _query_params.append(('fromUnitID', from_unit_id)) - + _query_params.append(("fromUnitID", from_unit_id)) + if to_unit_id is not None: - - _query_params.append(('toUnitID', to_unit_id)) - + _query_params.append(("toUnitID", to_unit_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/CommodityUnits/Conversion/List', + method="GET", + resource_path="/CommodityUnits/Conversion/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -402,28 +465,46 @@ def _commodity_units_conversion_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def commodity_units_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, - commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_unit_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity unit" + ), + ] = None, + commodity_unit_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity unit") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -466,7 +547,7 @@ def commodity_units_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -478,16 +559,15 @@ def commodity_units_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -495,23 +575,43 @@ def commodity_units_list_get( response_types_map=_response_types_map, ).data - @validate_call def commodity_units_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, - commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_unit_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity unit" + ), + ] = None, + commodity_unit_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity unit") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -554,7 +654,7 @@ def commodity_units_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -566,16 +666,15 @@ def commodity_units_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -583,23 +682,43 @@ def commodity_units_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def commodity_units_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, - commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + commodity_unit_name: Annotated[ + Optional[StrictStr], + Field( + description="The name, even partial and case insensitive, of a commodity unit" + ), + ] = None, + commodity_unit_id: Annotated[ + Optional[StrictInt], Field(description="The exact ID of a commodity unit") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -642,7 +761,7 @@ def commodity_units_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -654,20 +773,18 @@ def commodity_units_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _commodity_units_list_get_serialize( self, country_code, @@ -681,11 +798,9 @@ def _commodity_units_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -697,53 +812,39 @@ def _commodity_units_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if commodity_unit_name is not None: - - _query_params.append(('commodityUnitName', commodity_unit_name)) - + _query_params.append(("commodityUnitName", commodity_unit_name)) + if commodity_unit_id is not None: - - _query_params.append(('commodityUnitID', commodity_unit_id)) - + _query_params.append(("commodityUnitID", commodity_unit_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/CommodityUnits/List', + method="GET", + resource_path="/CommodityUnits/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -753,7 +854,5 @@ def _commodity_units_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/currency_api.py b/data_bridges_client/api/currency_api.py index 82a0875..f7827e6 100644 --- a/data_bridges_client/api/currency_api.py +++ b/data_bridges_client/api/currency_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,7 +21,9 @@ from typing import Optional from typing_extensions import Annotated from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO -from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult +from data_bridges_client.models.usd_indirect_quotation_paged_result import ( + UsdIndirectQuotationPagedResult, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -40,23 +42,44 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def currency_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="Currency 3-letter code, matching with ISO 4217."), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique code to identify the currency in internal VAM currencies." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -99,7 +122,7 @@ def currency_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -111,16 +134,15 @@ def currency_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCurrencyListDTO", - '400': "BadRequestDTO", + "200": "PagedCurrencyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -128,23 +150,44 @@ def currency_list_get( response_types_map=_response_types_map, ).data - @validate_call def currency_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="Currency 3-letter code, matching with ISO 4217."), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique code to identify the currency in internal VAM currencies." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -187,7 +230,7 @@ def currency_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -199,16 +242,15 @@ def currency_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCurrencyListDTO", - '400': "BadRequestDTO", + "200": "PagedCurrencyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -216,23 +258,44 @@ def currency_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def currency_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="Currency 3-letter code, matching with ISO 4217."), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique code to identify the currency in internal VAM currencies." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -275,7 +338,7 @@ def currency_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -287,20 +350,18 @@ def currency_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCurrencyListDTO", - '400': "BadRequestDTO", + "200": "PagedCurrencyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _currency_list_get_serialize( self, country_code, @@ -314,11 +375,9 @@ def _currency_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -330,53 +389,39 @@ def _currency_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if currency_name is not None: - - _query_params.append(('currencyName', currency_name)) - + _query_params.append(("currencyName", currency_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Currency/List', + method="GET", + resource_path="/Currency/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -386,27 +431,41 @@ def _currency_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def currency_usd_indirect_quotation_get( self, - country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="the ISO3 code for the currency, based on ISO4217"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -447,7 +506,7 @@ def currency_usd_indirect_quotation_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -458,16 +517,15 @@ def currency_usd_indirect_quotation_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsdIndirectQuotationPagedResult", - '400': "BadRequestDTO", + "200": "UsdIndirectQuotationPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -475,22 +533,38 @@ def currency_usd_indirect_quotation_get( response_types_map=_response_types_map, ).data - @validate_call def currency_usd_indirect_quotation_get_with_http_info( self, - country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="the ISO3 code for the currency, based on ISO4217"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -531,7 +605,7 @@ def currency_usd_indirect_quotation_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -542,16 +616,15 @@ def currency_usd_indirect_quotation_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsdIndirectQuotationPagedResult", - '400': "BadRequestDTO", + "200": "UsdIndirectQuotationPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -559,22 +632,38 @@ def currency_usd_indirect_quotation_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def currency_usd_indirect_quotation_get_without_preload_content( self, - country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + currency_name: Annotated[ + Optional[StrictStr], + Field(description="the ISO3 code for the currency, based on ISO4217"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -615,7 +704,7 @@ def currency_usd_indirect_quotation_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -626,20 +715,18 @@ def currency_usd_indirect_quotation_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UsdIndirectQuotationPagedResult", - '400': "BadRequestDTO", + "200": "UsdIndirectQuotationPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _currency_usd_indirect_quotation_get_serialize( self, country_iso3, @@ -652,11 +739,9 @@ def _currency_usd_indirect_quotation_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -668,49 +753,36 @@ def _currency_usd_indirect_quotation_get_serialize( # process the path parameters # process the query parameters if country_iso3 is not None: - - _query_params.append(('countryIso3', country_iso3)) - + _query_params.append(("countryIso3", country_iso3)) + if currency_name is not None: - - _query_params.append(('currencyName', currency_name)) - + _query_params.append(("currencyName", currency_name)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Currency/UsdIndirectQuotation', + method="GET", + resource_path="/Currency/UsdIndirectQuotation", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -720,7 +792,5 @@ def _currency_usd_indirect_quotation_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/economic_data_api.py b/data_bridges_client/api/economic_data_api.py index 8e5862f..119ad22 100644 --- a/data_bridges_client/api/economic_data_api.py +++ b/data_bridges_client/api/economic_data_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,7 +21,9 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.economic_indicator_property_paged_result import ( + EconomicIndicatorPropertyPagedResult, +) from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.api_client import ApiClient, RequestSerialized @@ -41,22 +43,37 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def economic_data_indicator_list_get( self, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + indicator_name: Annotated[ + Optional[StrictStr], Field(description="Unique indicator name.") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -97,7 +114,7 @@ def economic_data_indicator_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -108,16 +125,15 @@ def economic_data_indicator_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EconomicIndicatorPropertyPagedResult", - '400': "BadRequestDTO", + "200": "EconomicIndicatorPropertyPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -125,22 +141,37 @@ def economic_data_indicator_list_get( response_types_map=_response_types_map, ).data - @validate_call def economic_data_indicator_list_get_with_http_info( self, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + indicator_name: Annotated[ + Optional[StrictStr], Field(description="Unique indicator name.") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -181,7 +212,7 @@ def economic_data_indicator_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -192,16 +223,15 @@ def economic_data_indicator_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EconomicIndicatorPropertyPagedResult", - '400': "BadRequestDTO", + "200": "EconomicIndicatorPropertyPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -209,22 +239,37 @@ def economic_data_indicator_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def economic_data_indicator_list_get_without_preload_content( self, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + indicator_name: Annotated[ + Optional[StrictStr], Field(description="Unique indicator name.") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -265,7 +310,7 @@ def economic_data_indicator_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -276,20 +321,18 @@ def economic_data_indicator_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EconomicIndicatorPropertyPagedResult", - '400': "BadRequestDTO", + "200": "EconomicIndicatorPropertyPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _economic_data_indicator_list_get_serialize( self, page, @@ -302,11 +345,9 @@ def _economic_data_indicator_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -318,49 +359,36 @@ def _economic_data_indicator_list_get_serialize( # process the path parameters # process the query parameters if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if indicator_name is not None: - - _query_params.append(('indicatorName', indicator_name)) - + _query_params.append(("indicatorName", indicator_name)) + if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/EconomicData/IndicatorList', + method="GET", + resource_path="/EconomicData/IndicatorList", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -370,29 +398,55 @@ def _economic_data_indicator_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def economic_data_indicator_name_get( self, - indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + indicator_name: Annotated[ + StrictStr, + Field( + description="Name of the indicator as found in /EconomicData/IndicatorList." + ), + ], + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -437,7 +491,7 @@ def economic_data_indicator_name_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -450,17 +504,16 @@ def economic_data_indicator_name_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedEconomicDataDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedEconomicDataDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -468,24 +521,52 @@ def economic_data_indicator_name_get( response_types_map=_response_types_map, ).data - @validate_call def economic_data_indicator_name_get_with_http_info( self, - indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + indicator_name: Annotated[ + StrictStr, + Field( + description="Name of the indicator as found in /EconomicData/IndicatorList." + ), + ], + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -530,7 +611,7 @@ def economic_data_indicator_name_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -543,17 +624,16 @@ def economic_data_indicator_name_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedEconomicDataDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedEconomicDataDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -561,24 +641,52 @@ def economic_data_indicator_name_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def economic_data_indicator_name_get_without_preload_content( self, - indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + indicator_name: Annotated[ + StrictStr, + Field( + description="Name of the indicator as found in /EconomicData/IndicatorList." + ), + ], + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + iso3: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -623,7 +731,7 @@ def economic_data_indicator_name_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -636,21 +744,19 @@ def economic_data_indicator_name_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedEconomicDataDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedEconomicDataDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _economic_data_indicator_name_get_serialize( self, indicator_name, @@ -665,11 +771,9 @@ def _economic_data_indicator_name_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -680,74 +784,62 @@ def _economic_data_indicator_name_get_serialize( # process the path parameters if indicator_name is not None: - _path_params['indicatorName'] = indicator_name + _path_params["indicatorName"] = indicator_name # process the query parameters if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/EconomicData/{indicatorName}', + method="GET", + resource_path="/EconomicData/{indicatorName}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -757,7 +849,5 @@ def _economic_data_indicator_name_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/global_outlook_api.py b/data_bridges_client/api/global_outlook_api.py index 948f144..2f4c69c 100644 --- a/data_bridges_client/api/global_outlook_api.py +++ b/data_bridges_client/api/global_outlook_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,8 +21,12 @@ from typing import List, Optional from typing_extensions import Annotated from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto -from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto +from data_bridges_client.models.global_outlook_country_api_dto import ( + GlobalOutlookCountryApiDto, +) +from data_bridges_client.models.global_outlook_regional_api_dto import ( + GlobalOutlookRegionalApiDto, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -41,18 +45,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def global_outlook_country_latest_get( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,23 +92,22 @@ def global_outlook_country_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookCountryApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookCountryApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -109,18 +115,21 @@ def global_outlook_country_latest_get( response_types_map=_response_types_map, ).data - @validate_call def global_outlook_country_latest_get_with_http_info( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -153,23 +162,22 @@ def global_outlook_country_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookCountryApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookCountryApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -177,18 +185,21 @@ def global_outlook_country_latest_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def global_outlook_country_latest_get_without_preload_content( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -221,27 +232,25 @@ def global_outlook_country_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookCountryApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookCountryApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _global_outlook_country_latest_get_serialize( self, env, @@ -250,11 +259,9 @@ def _global_outlook_country_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -266,33 +273,24 @@ def _global_outlook_country_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/GlobalOutlook/CountryLatest', + method="GET", + resource_path="/GlobalOutlook/CountryLatest", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -302,23 +300,24 @@ def _global_outlook_country_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def global_outlook_global_latest_get( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -351,23 +350,22 @@ def global_outlook_global_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GlobalOutlookApiDto", - '400': "BadRequestDTO", + "200": "GlobalOutlookApiDto", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -375,18 +373,21 @@ def global_outlook_global_latest_get( response_types_map=_response_types_map, ).data - @validate_call def global_outlook_global_latest_get_with_http_info( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -419,23 +420,22 @@ def global_outlook_global_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GlobalOutlookApiDto", - '400': "BadRequestDTO", + "200": "GlobalOutlookApiDto", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -443,18 +443,21 @@ def global_outlook_global_latest_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def global_outlook_global_latest_get_without_preload_content( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -487,27 +490,25 @@ def global_outlook_global_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GlobalOutlookApiDto", - '400': "BadRequestDTO", + "200": "GlobalOutlookApiDto", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _global_outlook_global_latest_get_serialize( self, env, @@ -516,11 +517,9 @@ def _global_outlook_global_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -532,33 +531,24 @@ def _global_outlook_global_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/GlobalOutlook/GlobalLatest', + method="GET", + resource_path="/GlobalOutlook/GlobalLatest", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -568,23 +558,24 @@ def _global_outlook_global_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def global_outlook_regional_latest_get( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -617,23 +608,22 @@ def global_outlook_regional_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookRegionalApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookRegionalApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -641,18 +631,21 @@ def global_outlook_regional_latest_get( response_types_map=_response_types_map, ).data - @validate_call def global_outlook_regional_latest_get_with_http_info( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -685,23 +678,22 @@ def global_outlook_regional_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookRegionalApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookRegionalApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -709,18 +701,21 @@ def global_outlook_regional_latest_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def global_outlook_regional_latest_get_without_preload_content( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -753,27 +748,25 @@ def global_outlook_regional_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[GlobalOutlookRegionalApiDto]", - '400': "BadRequestDTO", + "200": "List[GlobalOutlookRegionalApiDto]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _global_outlook_regional_latest_get_serialize( self, env, @@ -782,11 +775,9 @@ def _global_outlook_regional_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -798,33 +789,24 @@ def _global_outlook_regional_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/GlobalOutlook/RegionalLatest', + method="GET", + resource_path="/GlobalOutlook/RegionalLatest", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -834,7 +816,5 @@ def _global_outlook_regional_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/hunger_hotspot_api.py b/data_bridges_client/api/hunger_hotspot_api.py index 246fe7b..98ef257 100644 --- a/data_bridges_client/api/hunger_hotspot_api.py +++ b/data_bridges_client/api/hunger_hotspot_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,8 +20,12 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.categories_and_indicators_dto import ( + CategoriesAndIndicatorsDTO, +) +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( + HungerHotSpotDataDTOPagedResult, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -40,18 +44,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def hunger_hotspot_categories_and_indicators_get( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,23 +91,22 @@ def hunger_hotspot_categories_and_indicators_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CategoriesAndIndicatorsDTO", - '400': "BadRequestDTO", + "200": "CategoriesAndIndicatorsDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -108,18 +114,21 @@ def hunger_hotspot_categories_and_indicators_get( response_types_map=_response_types_map, ).data - @validate_call def hunger_hotspot_categories_and_indicators_get_with_http_info( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -152,23 +161,22 @@ def hunger_hotspot_categories_and_indicators_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CategoriesAndIndicatorsDTO", - '400': "BadRequestDTO", + "200": "CategoriesAndIndicatorsDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -176,18 +184,21 @@ def hunger_hotspot_categories_and_indicators_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def hunger_hotspot_categories_and_indicators_get_without_preload_content( self, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -220,27 +231,25 @@ def hunger_hotspot_categories_and_indicators_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CategoriesAndIndicatorsDTO", - '400': "BadRequestDTO", + "200": "CategoriesAndIndicatorsDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _hunger_hotspot_categories_and_indicators_get_serialize( self, env, @@ -249,11 +258,9 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -265,33 +272,24 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( # process the path parameters # process the query parameters if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/HungerHotspot/CategoriesAndIndicators', + method="GET", + resource_path="/HungerHotspot/CategoriesAndIndicators", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -301,24 +299,28 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def hunger_hotspot_data_get( self, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -353,7 +355,7 @@ def hunger_hotspot_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -361,16 +363,15 @@ def hunger_hotspot_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HungerHotSpotDataDTOPagedResult", - '400': "BadRequestDTO", + "200": "HungerHotSpotDataDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -378,19 +379,25 @@ def hunger_hotspot_data_get( response_types_map=_response_types_map, ).data - @validate_call def hunger_hotspot_data_get_with_http_info( self, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -425,7 +432,7 @@ def hunger_hotspot_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -433,16 +440,15 @@ def hunger_hotspot_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HungerHotSpotDataDTOPagedResult", - '400': "BadRequestDTO", + "200": "HungerHotSpotDataDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -450,19 +456,25 @@ def hunger_hotspot_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def hunger_hotspot_data_get_without_preload_content( self, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -497,7 +509,7 @@ def hunger_hotspot_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -505,20 +517,18 @@ def hunger_hotspot_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HungerHotSpotDataDTOPagedResult", - '400': "BadRequestDTO", + "200": "HungerHotSpotDataDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _hunger_hotspot_data_get_serialize( self, page, @@ -528,11 +538,9 @@ def _hunger_hotspot_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -544,37 +552,27 @@ def _hunger_hotspot_data_get_serialize( # process the path parameters # process the query parameters if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/HungerHotspot/Data', + method="GET", + resource_path="/HungerHotspot/Data", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -584,7 +582,5 @@ def _hunger_hotspot_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/incubation_api.py b/data_bridges_client/api/incubation_api.py index 5685b37..12a8f7e 100644 --- a/data_bridges_client/api/incubation_api.py +++ b/data_bridges_client/api/incubation_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,12 +21,22 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult -from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult -from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult +from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( + CariAdm0ValuesDTOPagedResult, +) +from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( + CariAdm1ValuesDTOPagedResult, +) +from data_bridges_client.models.household_survey_list_dto_paged_result import ( + HouseholdSurveyListDTOPagedResult, +) from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO -from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) +from data_bridges_client.models.xls_form_definition_new_schema_dto import ( + XlsFormDefinitionNewSchemaDTO, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -45,22 +55,41 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def cari_adm0_values_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -101,7 +130,7 @@ def cari_adm0_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -112,16 +141,15 @@ def cari_adm0_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm0ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm0ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -129,22 +157,41 @@ def cari_adm0_values_get( response_types_map=_response_types_map, ).data - @validate_call def cari_adm0_values_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -185,7 +232,7 @@ def cari_adm0_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -196,16 +243,15 @@ def cari_adm0_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm0ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm0ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -213,22 +259,41 @@ def cari_adm0_values_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def cari_adm0_values_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -269,7 +334,7 @@ def cari_adm0_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -280,20 +345,18 @@ def cari_adm0_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm0ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm0ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _cari_adm0_values_get_serialize( self, adm0_code, @@ -306,11 +369,9 @@ def _cari_adm0_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -322,49 +383,36 @@ def _cari_adm0_values_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if survey_id is not None: - - _query_params.append(('surveyId', survey_id)) - + _query_params.append(("surveyId", survey_id)) + if indicator_id is not None: - - _query_params.append(('indicatorId', indicator_id)) - + _query_params.append(("indicatorId", indicator_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Cari/Adm0Values', + method="GET", + resource_path="/Cari/Adm0Values", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -374,27 +422,44 @@ def _cari_adm0_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def cari_adm1_values_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -435,7 +500,7 @@ def cari_adm1_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -446,16 +511,15 @@ def cari_adm1_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm1ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm1ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -463,22 +527,41 @@ def cari_adm1_values_get( response_types_map=_response_types_map, ).data - @validate_call def cari_adm1_values_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -519,7 +602,7 @@ def cari_adm1_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -530,16 +613,15 @@ def cari_adm1_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm1ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm1ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -547,22 +629,41 @@ def cari_adm1_values_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def cari_adm1_values_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, - indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field(description="The administrative level 0 code to filter the results."), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the survey to filter the results." + ), + ] = None, + indicator_id: Annotated[ + Optional[StrictInt], + Field( + description="The unique identifier of the indicator to filter the results." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -603,7 +704,7 @@ def cari_adm1_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -614,20 +715,18 @@ def cari_adm1_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CariAdm1ValuesDTOPagedResult", - '400': "BadRequestDTO", + "200": "CariAdm1ValuesDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _cari_adm1_values_get_serialize( self, adm0_code, @@ -640,11 +739,9 @@ def _cari_adm1_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -656,49 +753,36 @@ def _cari_adm1_values_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if survey_id is not None: - - _query_params.append(('surveyId', survey_id)) - + _query_params.append(("surveyId", survey_id)) + if indicator_id is not None: - - _query_params.append(('indicatorId', indicator_id)) - + _query_params.append(("indicatorId", indicator_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Cari/Adm1Values', + method="GET", + resource_path="/Cari/Adm1Values", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -708,27 +792,38 @@ def _cari_adm1_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def household_draft_internal_base_data_get( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -769,7 +864,7 @@ def household_draft_internal_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -780,18 +875,17 @@ def household_draft_internal_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -799,22 +893,35 @@ def household_draft_internal_base_data_get( response_types_map=_response_types_map, ).data - @validate_call def household_draft_internal_base_data_get_with_http_info( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -855,7 +962,7 @@ def household_draft_internal_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -866,18 +973,17 @@ def household_draft_internal_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -885,22 +991,35 @@ def household_draft_internal_base_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def household_draft_internal_base_data_get_without_preload_content( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -941,7 +1060,7 @@ def household_draft_internal_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -952,22 +1071,20 @@ def household_draft_internal_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _household_draft_internal_base_data_get_serialize( self, api_key, @@ -980,11 +1097,9 @@ def _household_draft_internal_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -996,49 +1111,36 @@ def _household_draft_internal_base_data_get_serialize( # process the path parameters # process the query parameters if api_key is not None: - - _query_params.append(('apiKey', api_key)) - + _query_params.append(("apiKey", api_key)) + if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Household/DraftInternalBaseData', + method="GET", + resource_path="/Household/DraftInternalBaseData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1048,28 +1150,42 @@ def _household_draft_internal_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def household_full_data_get( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1112,7 +1228,7 @@ def household_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1124,18 +1240,17 @@ def household_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1143,23 +1258,39 @@ def household_full_data_get( response_types_map=_response_types_map, ).data - @validate_call def household_full_data_get_with_http_info( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1202,7 +1333,7 @@ def household_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1214,18 +1345,17 @@ def household_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1233,23 +1363,39 @@ def household_full_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def household_full_data_get_without_preload_content( self, api_key: StrictStr, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1292,7 +1438,7 @@ def household_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1304,22 +1450,20 @@ def household_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '403': "ProblemDetails", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "403": "ProblemDetails", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _household_full_data_get_serialize( self, api_key, @@ -1333,11 +1477,9 @@ def _household_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1349,53 +1491,39 @@ def _household_full_data_get_serialize( # process the path parameters # process the query parameters if api_key is not None: - - _query_params.append(('apiKey', api_key)) - + _query_params.append(("apiKey", api_key)) + if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Household/FullData', + method="GET", + resource_path="/Household/FullData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1405,26 +1533,37 @@ def _household_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def household_official_use_base_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1463,7 +1602,7 @@ def household_official_use_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1473,17 +1612,16 @@ def household_official_use_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1491,21 +1629,34 @@ def household_official_use_base_data_get( response_types_map=_response_types_map, ).data - @validate_call def household_official_use_base_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1544,7 +1695,7 @@ def household_official_use_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1554,17 +1705,16 @@ def household_official_use_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1572,21 +1722,34 @@ def household_official_use_base_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def household_official_use_base_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1625,7 +1788,7 @@ def household_official_use_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1635,21 +1798,19 @@ def household_official_use_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _household_official_use_base_data_get_serialize( self, survey_id, @@ -1661,11 +1822,9 @@ def _household_official_use_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1677,45 +1836,33 @@ def _household_official_use_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Household/OfficialUseBaseData', + method="GET", + resource_path="/Household/OfficialUseBaseData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1725,26 +1872,37 @@ def _household_official_use_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def household_public_base_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1783,7 +1941,7 @@ def household_public_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -1793,17 +1951,16 @@ def household_public_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1811,21 +1968,34 @@ def household_public_base_data_get( response_types_map=_response_types_map, ).data - @validate_call def household_public_base_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1864,7 +2034,7 @@ def household_public_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -1874,17 +2044,16 @@ def household_public_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1892,21 +2061,34 @@ def household_public_base_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def household_public_base_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1945,7 +2127,7 @@ def household_public_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -1955,21 +2137,19 @@ def household_public_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _household_public_base_data_get_serialize( self, survey_id, @@ -1981,11 +2161,9 @@ def _household_public_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1997,45 +2175,33 @@ def _household_public_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Household/PublicBaseData', + method="GET", + resource_path="/Household/PublicBaseData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2045,28 +2211,46 @@ def _household_public_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def household_surveys_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2109,7 +2293,7 @@ def household_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2121,16 +2305,15 @@ def household_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HouseholdSurveyListDTOPagedResult", - '400': "BadRequestDTO", + "200": "HouseholdSurveyListDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2138,23 +2321,43 @@ def household_surveys_get( response_types_map=_response_types_map, ).data - @validate_call def household_surveys_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2197,7 +2400,7 @@ def household_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2209,16 +2412,15 @@ def household_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HouseholdSurveyListDTOPagedResult", - '400': "BadRequestDTO", + "200": "HouseholdSurveyListDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2226,23 +2428,43 @@ def household_surveys_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def household_surveys_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2285,7 +2507,7 @@ def household_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2297,20 +2519,18 @@ def household_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "HouseholdSurveyListDTOPagedResult", - '400': "BadRequestDTO", + "200": "HouseholdSurveyListDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _household_surveys_get_serialize( self, adm0_code, @@ -2324,11 +2544,9 @@ def _household_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2340,69 +2558,59 @@ def _household_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if survey_id is not None: - - _query_params.append(('surveyId', survey_id)) - + _query_params.append(("surveyId", survey_id)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Household/Surveys', + method="GET", + resource_path="/Household/Surveys", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2412,31 +2620,56 @@ def _household_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + scroll_id: Annotated[ + Optional[StrictInt], + Field(description="The pointer to the next paged results"), + ] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2485,7 +2718,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2500,16 +2733,15 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2517,26 +2749,53 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + scroll_id: Annotated[ + Optional[StrictInt], + Field(description="The pointer to the next paged results"), + ] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2585,7 +2844,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2600,16 +2859,15 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2617,26 +2875,53 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + scroll_id: Annotated[ + Optional[StrictInt], + Field(description="The pointer to the next paged results"), + ] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2685,7 +2970,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_conte in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2700,20 +2985,18 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_conte _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( self, survey_id, @@ -2730,11 +3013,9 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2746,83 +3027,68 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if scroll_id is not None: - - _query_params.append(('scrollId', scroll_id)) - + _query_params.append(("scrollId", scroll_id)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if adm0_codes is not None: - - _query_params.append(('adm0Codes', adm0_codes)) - + _query_params.append(("adm0Codes", adm0_codes)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if survey_type is not None: - - _query_params.append(('surveyType', survey_type)) - + _query_params.append(("surveyType", survey_type)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/Surveys/ProcessedDataWithKeysetPagination', + method="GET", + resource_path="/MFI/Surveys/ProcessedDataWithKeysetPagination", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2832,24 +3098,30 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def xls_forms_definition_get( self, - xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + xls_form_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the XLS Form, as retrieved from /XLSForms" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2884,7 +3156,7 @@ def xls_forms_definition_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -2892,16 +3164,15 @@ def xls_forms_definition_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[XlsFormDefinitionNewSchemaDTO]", - '400': "BadRequestDTO", + "200": "List[XlsFormDefinitionNewSchemaDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2909,19 +3180,27 @@ def xls_forms_definition_get( response_types_map=_response_types_map, ).data - @validate_call def xls_forms_definition_get_with_http_info( self, - xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + xls_form_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the XLS Form, as retrieved from /XLSForms" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2956,7 +3235,7 @@ def xls_forms_definition_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -2964,16 +3243,15 @@ def xls_forms_definition_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[XlsFormDefinitionNewSchemaDTO]", - '400': "BadRequestDTO", + "200": "List[XlsFormDefinitionNewSchemaDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2981,19 +3259,27 @@ def xls_forms_definition_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def xls_forms_definition_get_without_preload_content( self, - xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + xls_form_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the XLS Form, as retrieved from /XLSForms" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3028,7 +3314,7 @@ def xls_forms_definition_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -3036,20 +3322,18 @@ def xls_forms_definition_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[XlsFormDefinitionNewSchemaDTO]", - '400': "BadRequestDTO", + "200": "List[XlsFormDefinitionNewSchemaDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _xls_forms_definition_get_serialize( self, xls_form_id, @@ -3059,11 +3343,9 @@ def _xls_forms_definition_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3075,35 +3357,27 @@ def _xls_forms_definition_get_serialize( # process the path parameters # process the query parameters if xls_form_id is not None: - - _query_params.append(('xlsFormId', xls_form_id)) - + _query_params.append(("xlsFormId", xls_form_id)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/XlsForms/definition', + method="GET", + resource_path="/XlsForms/definition", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3113,7 +3387,5 @@ def _xls_forms_definition_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/ipcch_api.py b/data_bridges_client/api/ipcch_api.py index 2341e05..c691789 100644 --- a/data_bridges_client/api/ipcch_api.py +++ b/data_bridges_client/api/ipcch_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,10 +21,18 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult -from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult -from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( + IpcHistoricalDatumDtoPagedResult, +) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( + IpcchAndEquivalentPeaksDTOPagedResult, +) +from data_bridges_client.models.ipcch_base_dto_paged_result import ( + IpcchBaseDtoPagedResult, +) +from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( + IpcchPeaksDtoPagedResult, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -43,21 +51,27 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get( self, - reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + reference_year: Annotated[ + Optional[StrictInt], + Field(description="Year in a 4 digit format, for example: 2025"), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -70,9 +84,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -96,7 +110,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -106,16 +120,15 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -123,21 +136,27 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( response_types_map=_response_types_map, ).data - @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( self, - reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + reference_year: Annotated[ + Optional[StrictInt], + Field(description="Year in a 4 digit format, for example: 2025"), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -150,9 +169,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -176,7 +195,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -186,16 +205,15 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -203,21 +221,27 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( self, - reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, + reference_year: Annotated[ + Optional[StrictInt], + Field(description="Year in a 4 digit format, for example: 2025"), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -230,9 +254,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -256,7 +280,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -266,20 +290,18 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( self, reference_year, @@ -291,11 +313,9 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -307,45 +327,33 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( # process the path parameters # process the query parameters if reference_year is not None: - - _query_params.append(('referenceYear', reference_year)) - + _query_params.append(("referenceYear", reference_year)) + if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Ipcch/IPCCHAndEquivalent-HistoricalPeaks', + method="GET", + resource_path="/Ipcch/IPCCHAndEquivalent-HistoricalPeaks", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -355,25 +363,26 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -384,9 +393,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -410,7 +419,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -419,16 +428,15 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -436,20 +444,23 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( response_types_map=_response_types_map, ).data - @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -460,9 +471,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -486,7 +497,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -495,16 +506,15 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -512,20 +522,23 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -536,9 +549,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -562,7 +575,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -571,20 +584,18 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchPeaksDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchPeaksDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( self, iso3, @@ -595,11 +606,9 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -611,41 +620,30 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Ipcch/IPCCHAndEquivalent-LatestPeaks', + method="GET", + resource_path="/Ipcch/IPCCHAndEquivalent-LatestPeaks", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -655,25 +653,26 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def ipcch_ipcch_and_equivalent_most_recent_get( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -684,9 +683,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -710,7 +709,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -719,16 +718,15 @@ def ipcch_ipcch_and_equivalent_most_recent_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchBaseDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchBaseDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -736,20 +734,23 @@ def ipcch_ipcch_and_equivalent_most_recent_get( response_types_map=_response_types_map, ).data - @validate_call def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -760,9 +761,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -786,7 +787,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -795,16 +796,15 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchBaseDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchBaseDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -812,20 +812,23 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -836,9 +839,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -862,7 +865,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -871,20 +874,18 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchBaseDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcchBaseDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( self, iso3, @@ -895,11 +896,9 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -911,41 +910,30 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Ipcch/IPCCHAndEquivalent-MostRecent', + method="GET", + resource_path="/Ipcch/IPCCHAndEquivalent-MostRecent", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -955,25 +943,29 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( self, iso3: Optional[StrictStr] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -984,7 +976,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1010,7 +1002,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1019,16 +1011,15 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchAndEquivalentPeaksDTOPagedResult", - '400': "BadRequestDTO", + "200": "IpcchAndEquivalentPeaksDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1036,20 +1027,26 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( response_types_map=_response_types_map, ).data - @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( self, iso3: Optional[StrictStr] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1060,7 +1057,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1086,7 +1083,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1095,16 +1092,15 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchAndEquivalentPeaksDTOPagedResult", - '400': "BadRequestDTO", + "200": "IpcchAndEquivalentPeaksDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1112,20 +1108,26 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( self, iso3: Optional[StrictStr] = None, - page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + page: Annotated[ + Optional[StrictInt], + Field(description="The page number for pagination. Defaults to 1."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1136,7 +1138,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1162,7 +1164,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1171,20 +1173,18 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcchAndEquivalentPeaksDTOPagedResult", - '400': "BadRequestDTO", + "200": "IpcchAndEquivalentPeaksDTOPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( self, iso3, @@ -1195,11 +1195,9 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1211,41 +1209,30 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard', + method="GET", + resource_path="/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1255,27 +1242,38 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def ipcch_ipcch_historical_data_get( self, - from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, - to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + from_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, + to_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1290,9 +1288,9 @@ def ipcch_ipcch_historical_data_get( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1316,7 +1314,7 @@ def ipcch_ipcch_historical_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1327,16 +1325,15 @@ def ipcch_ipcch_historical_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcHistoricalDatumDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcHistoricalDatumDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1344,22 +1341,35 @@ def ipcch_ipcch_historical_data_get( response_types_map=_response_types_map, ).data - @validate_call def ipcch_ipcch_historical_data_get_with_http_info( self, - from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, - to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + from_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, + to_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1374,9 +1384,9 @@ def ipcch_ipcch_historical_data_get_with_http_info( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1400,7 +1410,7 @@ def ipcch_ipcch_historical_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1411,16 +1421,15 @@ def ipcch_ipcch_historical_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcHistoricalDatumDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcHistoricalDatumDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1428,22 +1437,35 @@ def ipcch_ipcch_historical_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def ipcch_ipcch_historical_data_get_without_preload_content( self, - from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, - to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + from_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, + to_date: Annotated[ + Optional[datetime], + Field( + description="Date in the format yyyy-mm-dd, refers to the analysis date" + ), + ] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1458,9 +1480,9 @@ def ipcch_ipcch_historical_data_get_without_preload_content( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1484,7 +1506,7 @@ def ipcch_ipcch_historical_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1495,20 +1517,18 @@ def ipcch_ipcch_historical_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "IpcHistoricalDatumDtoPagedResult", - '400': "BadRequestDTO", + "200": "IpcHistoricalDatumDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _ipcch_ipcch_historical_data_get_serialize( self, from_date, @@ -1521,11 +1541,9 @@ def _ipcch_ipcch_historical_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1540,64 +1558,51 @@ def _ipcch_ipcch_historical_data_get_serialize( if isinstance(from_date, datetime): _query_params.append( ( - 'fromDate', + "fromDate", from_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('fromDate', from_date)) - + _query_params.append(("fromDate", from_date)) + if to_date is not None: if isinstance(to_date, datetime): _query_params.append( ( - 'toDate', - to_date.strftime( - self.api_client.configuration.datetime_format - ) + "toDate", + to_date.strftime(self.api_client.configuration.datetime_format), ) ) else: - _query_params.append(('toDate', to_date)) - + _query_params.append(("toDate", to_date)) + if iso3 is not None: - - _query_params.append(('iso3', iso3)) - + _query_params.append(("iso3", iso3)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Ipcch/IPCCH-HistoricalData', + method="GET", + resource_path="/Ipcch/IPCCH-HistoricalData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1607,7 +1612,5 @@ def _ipcch_ipcch_historical_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/market_prices_api.py b/data_bridges_client/api/market_prices_api.py index 7360c91..981d405 100644 --- a/data_bridges_client/api/market_prices_api.py +++ b/data_bridges_client/api/market_prices_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,10 +21,18 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult -from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult +from data_bridges_client.models.extended_alps_value_dto_paged_result import ( + ExtendedAlpsValueDtoPagedResult, +) +from data_bridges_client.models.paged_commodity_price_list_dto import ( + PagedCommodityPriceListDTO, +) +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( + PagedCommodityWeeklyAggregatedPriceListDTO, +) +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( + ViewExtendedMonthlyAggregatedPricePagedResult, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -43,29 +51,75 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def market_prices_alps_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -120,7 +174,7 @@ def market_prices_alps_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -138,16 +192,15 @@ def market_prices_alps_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtendedAlpsValueDtoPagedResult", - '400': "BadRequestDTO", + "200": "ExtendedAlpsValueDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -155,29 +208,75 @@ def market_prices_alps_get( response_types_map=_response_types_map, ).data - @validate_call def market_prices_alps_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,7 +331,7 @@ def market_prices_alps_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -250,16 +349,15 @@ def market_prices_alps_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtendedAlpsValueDtoPagedResult", - '400': "BadRequestDTO", + "200": "ExtendedAlpsValueDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -267,29 +365,75 @@ def market_prices_alps_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def market_prices_alps_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -344,7 +488,7 @@ def market_prices_alps_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -362,20 +506,18 @@ def market_prices_alps_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtendedAlpsValueDtoPagedResult", - '400': "BadRequestDTO", + "200": "ExtendedAlpsValueDtoPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _market_prices_alps_get_serialize( self, country_code, @@ -395,11 +537,9 @@ def _market_prices_alps_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -411,95 +551,77 @@ def _market_prices_alps_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if price_type_name is not None: - - _query_params.append(('priceTypeName', price_type_name)) - + _query_params.append(("priceTypeName", price_type_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if price_flag is not None: - - _query_params.append(('priceFlag', price_flag)) - + _query_params.append(("priceFlag", price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if latest_value_only is not None: - - _query_params.append(('latestValueOnly', latest_value_only)) - + _query_params.append(("latestValueOnly", latest_value_only)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MarketPrices/Alps', + method="GET", + resource_path="/MarketPrices/Alps", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -509,34 +631,78 @@ def _market_prices_alps_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def market_prices_price_daily_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -591,7 +757,7 @@ def market_prices_price_daily_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -609,16 +775,15 @@ def market_prices_price_daily_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -626,29 +791,75 @@ def market_prices_price_daily_get( response_types_map=_response_types_map, ).data - @validate_call def market_prices_price_daily_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -703,7 +914,7 @@ def market_prices_price_daily_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -721,16 +932,15 @@ def market_prices_price_daily_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -738,29 +948,75 @@ def market_prices_price_daily_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def market_prices_price_daily_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -815,7 +1071,7 @@ def market_prices_price_daily_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -833,20 +1089,18 @@ def market_prices_price_daily_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _market_prices_price_daily_get_serialize( self, country_code, @@ -866,11 +1120,9 @@ def _market_prices_price_daily_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -882,95 +1134,77 @@ def _market_prices_price_daily_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if price_type_name is not None: - - _query_params.append(('priceTypeName', price_type_name)) - + _query_params.append(("priceTypeName", price_type_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if price_flag is not None: - - _query_params.append(('priceFlag', price_flag)) - + _query_params.append(("priceFlag", price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if latest_value_only is not None: - - _query_params.append(('latestValueOnly', latest_value_only)) - + _query_params.append(("latestValueOnly", latest_value_only)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MarketPrices/PriceDaily', + method="GET", + resource_path="/MarketPrices/PriceDaily", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -980,34 +1214,78 @@ def _market_prices_price_daily_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def market_prices_price_monthly_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1062,7 +1340,7 @@ def market_prices_price_monthly_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1080,16 +1358,15 @@ def market_prices_price_monthly_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1097,29 +1374,75 @@ def market_prices_price_monthly_get( response_types_map=_response_types_map, ).data - @validate_call def market_prices_price_monthly_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1174,7 +1497,7 @@ def market_prices_price_monthly_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1192,16 +1515,15 @@ def market_prices_price_monthly_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1209,29 +1531,75 @@ def market_prices_price_monthly_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def market_prices_price_monthly_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1286,7 +1654,7 @@ def market_prices_price_monthly_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1304,20 +1672,18 @@ def market_prices_price_monthly_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ViewExtendedMonthlyAggregatedPricePagedResult", - '400': "BadRequestDTO", + "200": "ViewExtendedMonthlyAggregatedPricePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _market_prices_price_monthly_get_serialize( self, country_code, @@ -1337,11 +1703,9 @@ def _market_prices_price_monthly_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1353,95 +1717,77 @@ def _market_prices_price_monthly_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if price_type_name is not None: - - _query_params.append(('priceTypeName', price_type_name)) - + _query_params.append(("priceTypeName", price_type_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if price_flag is not None: - - _query_params.append(('priceFlag', price_flag)) - + _query_params.append(("priceFlag", price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if latest_value_only is not None: - - _query_params.append(('latestValueOnly', latest_value_only)) - + _query_params.append(("latestValueOnly", latest_value_only)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MarketPrices/PriceMonthly', + method="GET", + resource_path="/MarketPrices/PriceMonthly", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1451,34 +1797,78 @@ def _market_prices_price_monthly_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def market_prices_price_raw_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1533,7 +1923,7 @@ def market_prices_price_raw_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -1551,16 +1941,15 @@ def market_prices_price_raw_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1568,29 +1957,75 @@ def market_prices_price_raw_get( response_types_map=_response_types_map, ).data - @validate_call def market_prices_price_raw_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1645,7 +2080,7 @@ def market_prices_price_raw_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -1663,16 +2098,15 @@ def market_prices_price_raw_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1680,29 +2114,75 @@ def market_prices_price_raw_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def market_prices_price_raw_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1757,7 +2237,7 @@ def market_prices_price_raw_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -1775,20 +2255,18 @@ def market_prices_price_raw_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _market_prices_price_raw_get_serialize( self, country_code, @@ -1808,11 +2286,9 @@ def _market_prices_price_raw_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1824,95 +2300,77 @@ def _market_prices_price_raw_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if price_type_name is not None: - - _query_params.append(('priceTypeName', price_type_name)) - + _query_params.append(("priceTypeName", price_type_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if price_flag is not None: - - _query_params.append(('priceFlag', price_flag)) - + _query_params.append(("priceFlag", price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if latest_value_only is not None: - - _query_params.append(('latestValueOnly', latest_value_only)) - + _query_params.append(("latestValueOnly", latest_value_only)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MarketPrices/PriceRaw', + method="GET", + resource_path="/MarketPrices/PriceRaw", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1922,34 +2380,78 @@ def _market_prices_price_raw_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def market_prices_price_weekly_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2004,7 +2506,7 @@ def market_prices_price_weekly_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2022,16 +2524,15 @@ def market_prices_price_weekly_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityWeeklyAggregatedPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityWeeklyAggregatedPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2039,29 +2540,75 @@ def market_prices_price_weekly_get( response_types_map=_response_types_map, ).data - @validate_call def market_prices_price_weekly_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2116,7 +2663,7 @@ def market_prices_price_weekly_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2134,16 +2681,15 @@ def market_prices_price_weekly_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityWeeklyAggregatedPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityWeeklyAggregatedPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2151,29 +2697,75 @@ def market_prices_price_weekly_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def market_prices_price_weekly_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, - commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, - price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, - currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, - price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, - latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, - page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], + Field( + description="Unique ID of a Market, as found in /Markets/GeoJSONList" + ), + ] = None, + commodity_id: Annotated[ + Optional[StrictInt], + Field( + description="The exact ID of a Commodity, as found in /Commodities/List" + ), + ] = None, + price_type_name: Annotated[ + Optional[StrictStr], + Field(description="Price type: [retail|wholesale|farmgate]"), + ] = None, + currency_id: Annotated[ + Optional[StrictInt], + Field(description="The exact ID of a currency, as found in /Currency/List"), + ] = None, + price_flag: Annotated[ + Optional[StrictStr], + Field( + description="Type of price data: [actual|aggregate|estimated|forecasted]" + ), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' + ), + ] = None, + latest_value_only: Annotated[ + Optional[StrictBool], Field(description="[TRUE|FALSE]") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="Page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2228,7 +2820,7 @@ def market_prices_price_weekly_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2246,20 +2838,18 @@ def market_prices_price_weekly_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedCommodityWeeklyAggregatedPriceListDTO", - '400': "BadRequestDTO", + "200": "PagedCommodityWeeklyAggregatedPriceListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _market_prices_price_weekly_get_serialize( self, country_code, @@ -2279,11 +2869,9 @@ def _market_prices_price_weekly_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2295,95 +2883,77 @@ def _market_prices_price_weekly_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if commodity_id is not None: - - _query_params.append(('commodityID', commodity_id)) - + _query_params.append(("commodityID", commodity_id)) + if price_type_name is not None: - - _query_params.append(('priceTypeName', price_type_name)) - + _query_params.append(("priceTypeName", price_type_name)) + if currency_id is not None: - - _query_params.append(('currencyID', currency_id)) - + _query_params.append(("currencyID", currency_id)) + if price_flag is not None: - - _query_params.append(('priceFlag', price_flag)) - + _query_params.append(("priceFlag", price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if latest_value_only is not None: - - _query_params.append(('latestValueOnly', latest_value_only)) - + _query_params.append(("latestValueOnly", latest_value_only)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MarketPrices/PriceWeekly', + method="GET", + resource_path="/MarketPrices/PriceWeekly", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2393,7 +2963,5 @@ def _market_prices_price_weekly_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/markets_api.py b/data_bridges_client/api/markets_api.py index 6708e74..ecaaff4 100644 --- a/data_bridges_client/api/markets_api.py +++ b/data_bridges_client/api/markets_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,7 +17,15 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator +from pydantic import ( + Field, + StrictBool, + StrictBytes, + StrictFloat, + StrictInt, + StrictStr, + field_validator, +) from typing import List, Optional, Union from typing_extensions import Annotated from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot @@ -41,19 +49,24 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def markets_geo_json_list_get( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -88,7 +101,7 @@ def markets_geo_json_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -96,16 +109,15 @@ def markets_geo_json_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MarketGeoJsonRoot", - '400': "BadRequestDTO", + "200": "MarketGeoJsonRoot", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,19 +125,24 @@ def markets_geo_json_list_get( response_types_map=_response_types_map, ).data - @validate_call def markets_geo_json_list_get_with_http_info( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -160,7 +177,7 @@ def markets_geo_json_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -168,16 +185,15 @@ def markets_geo_json_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MarketGeoJsonRoot", - '400': "BadRequestDTO", + "200": "MarketGeoJsonRoot", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -185,19 +201,24 @@ def markets_geo_json_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def markets_geo_json_list_get_without_preload_content( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,7 +253,7 @@ def markets_geo_json_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -240,20 +261,18 @@ def markets_geo_json_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "MarketGeoJsonRoot", - '400': "BadRequestDTO", + "200": "MarketGeoJsonRoot", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _markets_geo_json_list_get_serialize( self, adm0code, @@ -263,11 +282,9 @@ def _markets_geo_json_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -279,35 +296,27 @@ def _markets_geo_json_list_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - - _query_params.append(('adm0code', adm0code)) - + _query_params.append(("adm0code", adm0code)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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/geo+json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/geo+json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Markets/GeoJSONList', + method="GET", + resource_path="/Markets/GeoJSONList", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -317,26 +326,37 @@ def _markets_geo_json_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def markets_list_get( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -375,7 +395,7 @@ def markets_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -385,15 +405,14 @@ def markets_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedMarketListDTO", + "200": "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -401,21 +420,34 @@ def markets_list_get( response_types_map=_response_types_map, ).data - @validate_call def markets_list_get_with_http_info( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -454,7 +486,7 @@ def markets_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -464,15 +496,14 @@ def markets_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedMarketListDTO", + "200": "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -480,21 +511,34 @@ def markets_list_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def markets_list_get_without_preload_content( self, - country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + country_code: Annotated[ + Optional[StrictStr], + Field( + description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -533,7 +577,7 @@ def markets_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -543,19 +587,17 @@ def markets_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedMarketListDTO", + "200": "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _markets_list_get_serialize( self, country_code, @@ -567,11 +609,9 @@ def _markets_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -583,45 +623,33 @@ def _markets_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - - _query_params.append(('countryCode', country_code)) - + _query_params.append(("countryCode", country_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Markets/List', + method="GET", + resource_path="/Markets/List", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -631,25 +659,33 @@ def _markets_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def markets_markets_as_csv_get( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + local_names: Annotated[ + Optional[StrictBool], + Field( + description="If true the name of markets and regions will be localized if available" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -686,7 +722,7 @@ def markets_markets_as_csv_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -695,15 +731,14 @@ def markets_markets_as_csv_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + "200": "bytearray", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -711,20 +746,30 @@ def markets_markets_as_csv_get( response_types_map=_response_types_map, ).data - @validate_call def markets_markets_as_csv_get_with_http_info( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + local_names: Annotated[ + Optional[StrictBool], + Field( + description="If true the name of markets and regions will be localized if available" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -761,7 +806,7 @@ def markets_markets_as_csv_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -770,15 +815,14 @@ def markets_markets_as_csv_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + "200": "bytearray", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -786,20 +830,30 @@ def markets_markets_as_csv_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def markets_markets_as_csv_get_without_preload_content( self, - adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, - local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], Field(description="The admin code of the country") + ] = None, + local_names: Annotated[ + Optional[StrictBool], + Field( + description="If true the name of markets and regions will be localized if available" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -836,7 +890,7 @@ def markets_markets_as_csv_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -845,19 +899,17 @@ def markets_markets_as_csv_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytearray", + "200": "bytearray", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _markets_markets_as_csv_get_serialize( self, adm0code, @@ -868,11 +920,9 @@ def _markets_markets_as_csv_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -884,41 +934,30 @@ def _markets_markets_as_csv_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - - _query_params.append(('adm0code', adm0code)) - + _query_params.append(("adm0code", adm0code)) + if local_names is not None: - - _query_params.append(('localNames', local_names)) - + _query_params.append(("localNames", local_names)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Markets/MarketsAsCSV', + method="GET", + resource_path="/Markets/MarketsAsCSV", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -928,26 +967,42 @@ def _markets_markets_as_csv_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def markets_nearby_markets_get( self, - adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + lat: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + lng: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -986,7 +1041,7 @@ def markets_nearby_markets_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -996,16 +1051,15 @@ def markets_nearby_markets_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[NearbyMarketsDTO]", - '400': "BadRequestDTO", + "200": "List[NearbyMarketsDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1013,21 +1067,39 @@ def markets_nearby_markets_get( response_types_map=_response_types_map, ).data - @validate_call def markets_nearby_markets_get_with_http_info( self, - adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + lat: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + lng: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1066,7 +1138,7 @@ def markets_nearby_markets_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -1076,16 +1148,15 @@ def markets_nearby_markets_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[NearbyMarketsDTO]", - '400': "BadRequestDTO", + "200": "List[NearbyMarketsDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1093,21 +1164,39 @@ def markets_nearby_markets_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def markets_nearby_markets_get_without_preload_content( self, - adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + lat: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + lng: Annotated[ + Optional[Union[StrictFloat, StrictInt]], + Field( + description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1146,7 +1235,7 @@ def markets_nearby_markets_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -1156,20 +1245,18 @@ def markets_nearby_markets_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[NearbyMarketsDTO]", - '400': "BadRequestDTO", + "200": "List[NearbyMarketsDTO]", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _markets_nearby_markets_get_serialize( self, adm0code, @@ -1181,11 +1268,9 @@ def _markets_nearby_markets_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1197,43 +1282,33 @@ def _markets_nearby_markets_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - - _query_params.append(('adm0code', adm0code)) - + _query_params.append(("adm0code", adm0code)) + if lat is not None: - - _query_params.append(('lat', lat)) - + _query_params.append(("lat", lat)) + if lng is not None: - - _query_params.append(('lng', lng)) - + _query_params.append(("lng", lng)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Markets/NearbyMarkets', + method="GET", + resource_path="/Markets/NearbyMarkets", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1243,7 +1318,5 @@ def _markets_nearby_markets_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/rpme_api.py b/data_bridges_client/api/rpme_api.py index 6834b5e..806b73c 100644 --- a/data_bridges_client/api/rpme_api.py +++ b/data_bridges_client/api/rpme_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -22,10 +22,16 @@ from typing import Optional from typing_extensions import Annotated from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO -from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult -from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult +from data_bridges_client.models.rpme_assessment_paged_result import ( + RpmeAssessmentPagedResult, +) +from data_bridges_client.models.rpme_variable_paged_result import ( + RpmeVariablePagedResult, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -44,21 +50,34 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def rpme_base_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -97,7 +116,7 @@ def rpme_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -107,17 +126,16 @@ def rpme_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -125,21 +143,34 @@ def rpme_base_data_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_base_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -178,7 +209,7 @@ def rpme_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -188,17 +219,16 @@ def rpme_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -206,21 +236,34 @@ def rpme_base_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_base_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -259,7 +302,7 @@ def rpme_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -269,21 +312,19 @@ def rpme_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_base_data_get_serialize( self, survey_id, @@ -295,11 +336,9 @@ def _rpme_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -311,45 +350,33 @@ def _rpme_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/BaseData', + method="GET", + resource_path="/Rpme/BaseData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -359,27 +386,41 @@ def _rpme_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def rpme_full_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -420,7 +461,7 @@ def rpme_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -431,17 +472,16 @@ def rpme_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -449,22 +489,38 @@ def rpme_full_data_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_full_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -505,7 +561,7 @@ def rpme_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -516,17 +572,16 @@ def rpme_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -534,22 +589,38 @@ def rpme_full_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_full_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -590,7 +661,7 @@ def rpme_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -601,21 +672,19 @@ def rpme_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_full_data_get_serialize( self, survey_id, @@ -628,11 +697,9 @@ def _rpme_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -644,49 +711,36 @@ def _rpme_full_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/FullData', + method="GET", + resource_path="/Rpme/FullData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -696,29 +750,43 @@ def _rpme_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def rpme_output_values_get( self, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + shop_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the shop") + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -739,7 +807,7 @@ def rpme_output_values_get( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -763,7 +831,7 @@ def rpme_output_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -776,16 +844,15 @@ def rpme_output_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeAssessmentPagedResult", - '400': "BadRequestDTO", + "200": "RpmeAssessmentPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -793,24 +860,40 @@ def rpme_output_values_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_output_values_get_with_http_info( self, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + shop_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the shop") + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -831,7 +914,7 @@ def rpme_output_values_get_with_http_info( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -855,7 +938,7 @@ def rpme_output_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -868,16 +951,15 @@ def rpme_output_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeAssessmentPagedResult", - '400': "BadRequestDTO", + "200": "RpmeAssessmentPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -885,24 +967,40 @@ def rpme_output_values_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_output_values_get_without_preload_content( self, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + shop_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the shop") + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -923,7 +1021,7 @@ def rpme_output_values_get_without_preload_content( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -947,7 +1045,7 @@ def rpme_output_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -960,20 +1058,18 @@ def rpme_output_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeAssessmentPagedResult", - '400': "BadRequestDTO", + "200": "RpmeAssessmentPagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_output_values_get_serialize( self, page, @@ -988,11 +1084,9 @@ def _rpme_output_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1004,57 +1098,42 @@ def _rpme_output_values_get_serialize( # process the path parameters # process the query parameters if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if survey_id is not None: - - _query_params.append(('surveyId', survey_id)) - + _query_params.append(("surveyId", survey_id)) + if shop_id is not None: - - _query_params.append(('shopId', shop_id)) - + _query_params.append(("shopId", shop_id)) + if market_id is not None: - - _query_params.append(('marketId', market_id)) - + _query_params.append(("marketId", market_id)) + if adm0_code_dots is not None: - - _query_params.append(('adm0CodeDots', adm0_code_dots)) - + _query_params.append(("adm0CodeDots", adm0_code_dots)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/OutputValues', + method="GET", + resource_path="/Rpme/OutputValues", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1064,27 +1143,45 @@ def _rpme_output_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def rpme_surveys_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1125,7 +1222,7 @@ def rpme_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1136,16 +1233,15 @@ def rpme_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1153,22 +1249,42 @@ def rpme_surveys_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_surveys_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1209,7 +1325,7 @@ def rpme_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1220,16 +1336,15 @@ def rpme_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1237,22 +1352,42 @@ def rpme_surveys_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_surveys_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1293,7 +1428,7 @@ def rpme_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1304,20 +1439,18 @@ def rpme_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_surveys_get_serialize( self, adm0_code, @@ -1330,11 +1463,9 @@ def _rpme_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1346,67 +1477,56 @@ def _rpme_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/Surveys', + method="GET", + resource_path="/Rpme/Surveys", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1416,24 +1536,25 @@ def _rpme_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def rpme_variables_get( self, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1444,7 +1565,7 @@ def rpme_variables_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1468,7 +1589,7 @@ def rpme_variables_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1476,16 +1597,15 @@ def rpme_variables_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeVariablePagedResult", - '400': "BadRequestDTO", + "200": "RpmeVariablePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1493,19 +1613,22 @@ def rpme_variables_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_variables_get_with_http_info( self, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1516,7 +1639,7 @@ def rpme_variables_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1540,7 +1663,7 @@ def rpme_variables_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1548,16 +1671,15 @@ def rpme_variables_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeVariablePagedResult", - '400': "BadRequestDTO", + "200": "RpmeVariablePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1565,19 +1687,22 @@ def rpme_variables_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_variables_get_without_preload_content( self, page: Optional[StrictInt] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1588,7 +1713,7 @@ def rpme_variables_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1612,7 +1737,7 @@ def rpme_variables_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1620,20 +1745,18 @@ def rpme_variables_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RpmeVariablePagedResult", - '400': "BadRequestDTO", + "200": "RpmeVariablePagedResult", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_variables_get_serialize( self, page, @@ -1643,11 +1766,9 @@ def _rpme_variables_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1659,37 +1780,27 @@ def _rpme_variables_get_serialize( # process the path parameters # process the query parameters if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/Variables', + method="GET", + resource_path="/Rpme/Variables", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1699,27 +1810,45 @@ def _rpme_variables_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def rpme_xls_forms_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1760,7 +1889,7 @@ def rpme_xls_forms_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -1771,16 +1900,15 @@ def rpme_xls_forms_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1788,22 +1916,42 @@ def rpme_xls_forms_get( response_types_map=_response_types_map, ).data - @validate_call def rpme_xls_forms_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1844,7 +1992,7 @@ def rpme_xls_forms_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -1855,16 +2003,15 @@ def rpme_xls_forms_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1872,22 +2019,42 @@ def rpme_xls_forms_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def rpme_xls_forms_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1928,7 +2095,7 @@ def rpme_xls_forms_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -1939,20 +2106,18 @@ def rpme_xls_forms_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _rpme_xls_forms_get_serialize( self, adm0_code, @@ -1965,11 +2130,9 @@ def _rpme_xls_forms_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1981,65 +2144,56 @@ def _rpme_xls_forms_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/Rpme/XLSForms', + method="GET", + resource_path="/Rpme/XLSForms", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2049,7 +2203,5 @@ def _rpme_xls_forms_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/surveys_api.py b/data_bridges_client/api/surveys_api.py index 4f3e20d..39f34fa 100644 --- a/data_bridges_client/api/surveys_api.py +++ b/data_bridges_client/api/surveys_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -23,7 +23,9 @@ from typing_extensions import Annotated from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -42,21 +44,34 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def m_fi_surveys_base_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -95,7 +110,7 @@ def m_fi_surveys_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -105,17 +120,16 @@ def m_fi_surveys_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -123,21 +137,34 @@ def m_fi_surveys_base_data_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_surveys_base_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -176,7 +203,7 @@ def m_fi_surveys_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -186,17 +213,16 @@ def m_fi_surveys_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -204,21 +230,34 @@ def m_fi_surveys_base_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_surveys_base_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -257,7 +296,7 @@ def m_fi_surveys_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -267,21 +306,19 @@ def m_fi_surveys_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_surveys_base_data_get_serialize( self, survey_id, @@ -293,11 +330,9 @@ def _m_fi_surveys_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -309,45 +344,33 @@ def _m_fi_surveys_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/Surveys/BaseData', + method="GET", + resource_path="/MFI/Surveys/BaseData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -357,27 +380,41 @@ def _m_fi_surveys_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def m_fi_surveys_full_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -418,7 +455,7 @@ def m_fi_surveys_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -429,17 +466,16 @@ def m_fi_surveys_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -447,22 +483,38 @@ def m_fi_surveys_full_data_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_surveys_full_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -503,7 +555,7 @@ def m_fi_surveys_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -514,17 +566,16 @@ def m_fi_surveys_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -532,22 +583,38 @@ def m_fi_surveys_full_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_surveys_full_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + survey_id: Annotated[ + Optional[StrictInt], + Field( + description="unique identifier for the collected data, as retrieved from /Surveys API." + ), + ] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + page_size: Annotated[ + Optional[StrictInt], + Field(description="page size for paged results, default value is 20."), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -588,7 +655,7 @@ def m_fi_surveys_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -599,21 +666,19 @@ def m_fi_surveys_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyResponsesDTO", - '400': "BadRequestDTO", - '404': "ProblemDetails", + "200": "PagedSurveyResponsesDTO", + "400": "BadRequestDTO", + "404": "ProblemDetails", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_surveys_full_data_get_serialize( self, survey_id, @@ -626,11 +691,9 @@ def _m_fi_surveys_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -642,49 +705,36 @@ def _m_fi_surveys_full_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/Surveys/FullData', + method="GET", + resource_path="/MFI/Surveys/FullData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -694,27 +744,45 @@ def _m_fi_surveys_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def m_fi_surveys_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -755,7 +823,7 @@ def m_fi_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -766,16 +834,15 @@ def m_fi_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -783,22 +850,42 @@ def m_fi_surveys_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_surveys_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -839,7 +926,7 @@ def m_fi_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -850,16 +937,15 @@ def m_fi_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -867,22 +953,42 @@ def m_fi_surveys_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_surveys_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -923,7 +1029,7 @@ def m_fi_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -934,20 +1040,18 @@ def m_fi_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedSurveyListDTO", - '400': "BadRequestDTO", + "200": "PagedSurveyListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_surveys_get_serialize( self, adm0_code, @@ -960,11 +1064,9 @@ def _m_fi_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -976,65 +1078,56 @@ def _m_fi_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/Surveys', + method="GET", + resource_path="/MFI/Surveys", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1044,32 +1137,59 @@ def _m_fi_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def m_fi_surveys_processed_data_get( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, page_size: Optional[StrictInt] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1120,7 +1240,7 @@ def m_fi_surveys_processed_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1136,16 +1256,15 @@ def m_fi_surveys_processed_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1153,27 +1272,56 @@ def m_fi_surveys_processed_data_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_surveys_processed_data_get_with_http_info( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, page_size: Optional[StrictInt] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1224,7 +1372,7 @@ def m_fi_surveys_processed_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1240,16 +1388,15 @@ def m_fi_surveys_processed_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1257,27 +1404,56 @@ def m_fi_surveys_processed_data_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_surveys_processed_data_get_without_preload_content( self, - survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + survey_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the survey") + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, page_size: Optional[StrictInt] = None, - format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, - start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, - survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + format: Annotated[ + Optional[StrictStr], + Field(description="Output format: [JSON|CSV] Json is the default value"), + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + adm0_codes: Annotated[ + Optional[StrictStr], + Field( + description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + market_id: Annotated[ + Optional[StrictInt], Field(description="The ID of the market") + ] = None, + survey_type: Annotated[ + Optional[StrictStr], Field(description="The survey type") + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1328,7 +1504,7 @@ def m_fi_surveys_processed_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1344,20 +1520,18 @@ def m_fi_surveys_processed_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedProcessedDataDTO", - '400': "BadRequestDTO", + "200": "PagedProcessedDataDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_surveys_processed_data_get_serialize( self, survey_id, @@ -1375,11 +1549,9 @@ def _m_fi_surveys_processed_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1391,87 +1563,71 @@ def _m_fi_surveys_processed_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - - _query_params.append(('surveyID', survey_id)) - + _query_params.append(("surveyID", survey_id)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if page_size is not None: - - _query_params.append(('pageSize', page_size)) - + _query_params.append(("pageSize", page_size)) + if format is not None: - - _query_params.append(('format', format)) - + _query_params.append(("format", format)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if adm0_codes is not None: - - _query_params.append(('adm0Codes', adm0_codes)) - + _query_params.append(("adm0Codes", adm0_codes)) + if market_id is not None: - - _query_params.append(('marketID', market_id)) - + _query_params.append(("marketID", market_id)) + if survey_type is not None: - - _query_params.append(('surveyType', survey_type)) - + _query_params.append(("surveyType", survey_type)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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( - [ - 'text/plain', - 'application/json', - 'text/json' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/Surveys/ProcessedData', + method="GET", + resource_path="/MFI/Surveys/ProcessedData", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1481,7 +1637,5 @@ def _m_fi_surveys_processed_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api/xls_forms_api.py b/data_bridges_client/api/xls_forms_api.py index 72dfdb9..df2228a 100644 --- a/data_bridges_client/api/xls_forms_api.py +++ b/data_bridges_client/api/xls_forms_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -40,22 +40,42 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def m_fi_xls_forms_get( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -96,7 +116,7 @@ def m_fi_xls_forms_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -107,16 +127,15 @@ def m_fi_xls_forms_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -124,22 +143,42 @@ def m_fi_xls_forms_get( response_types_map=_response_types_map, ).data - @validate_call def m_fi_xls_forms_get_with_http_info( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -180,7 +219,7 @@ def m_fi_xls_forms_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -191,16 +230,15 @@ def m_fi_xls_forms_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -208,22 +246,42 @@ def m_fi_xls_forms_get_with_http_info( response_types_map=_response_types_map, ) - @validate_call def m_fi_xls_forms_get_without_preload_content( self, - adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, - page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, - start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, - env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, + adm0_code: Annotated[ + Optional[StrictInt], + Field( + description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" + ), + ] = None, + page: Annotated[ + Optional[StrictInt], Field(description="page number for paged results") + ] = None, + start_date: Annotated[ + Optional[datetime], + Field( + description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + end_date: Annotated[ + Optional[datetime], + Field( + description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' + ), + ] = None, + env: Annotated[ + Optional[StrictStr], + Field( + description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -264,7 +322,7 @@ def m_fi_xls_forms_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -275,20 +333,18 @@ def m_fi_xls_forms_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PagedXlsFormListDTO", - '400': "BadRequestDTO", + "200": "PagedXlsFormListDTO", + "400": "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _m_fi_xls_forms_get_serialize( self, adm0_code, @@ -301,11 +357,9 @@ def _m_fi_xls_forms_get_serialize( _headers, _host_index, ) -> RequestSerialized: - _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -317,65 +371,56 @@ def _m_fi_xls_forms_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - - _query_params.append(('adm0Code', adm0_code)) - + _query_params.append(("adm0Code", adm0_code)) + if page is not None: - - _query_params.append(('page', page)) - + _query_params.append(("page", page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - 'startDate', + "startDate", start_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('startDate', start_date)) - + _query_params.append(("startDate", start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - 'endDate', + "endDate", end_date.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('endDate', end_date)) - + _query_params.append(("endDate", end_date)) + if env is not None: - - _query_params.append(('env', env)) - + _query_params.append(("env", env)) + # process the header parameters # 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' - ] + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] ) - # authentication setting - _auth_settings: List[str] = [ - 'default' - ] + _auth_settings: List[str] = ["default"] return self.api_client.param_serialize( - method='GET', - resource_path='/MFI/XlsForms', + method="GET", + resource_path="/MFI/XlsForms", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -385,7 +430,5 @@ def _m_fi_xls_forms_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/data_bridges_client/api_client.py b/data_bridges_client/api_client.py index b89137d..aa5447f 100644 --- a/data_bridges_client/api_client.py +++ b/data_bridges_client/api_client.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import datetime from dateutil.parser import parse from enum import Enum @@ -38,11 +37,12 @@ UnauthorizedException, ForbiddenException, NotFoundException, - ServiceException + ServiceException, ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + class ApiClient: """Generic API client for OpenAPI client library builds. @@ -61,24 +61,20 @@ class ApiClient: PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int, # TODO remove as only py3 is supported? - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'decimal': decimal.Decimal, - 'object': object, + "int": int, + "long": int, # TODO remove as only py3 is supported? + "float": float, + "str": str, + "bool": bool, + "date": datetime.date, + "datetime": datetime.datetime, + "decimal": decimal.Decimal, + "object": object, } _pool = None def __init__( - self, - configuration=None, - header_name=None, - header_value=None, - cookie=None + self, configuration=None, header_name=None, header_value=None, cookie=None ) -> None: # use default configuration if none is provided if configuration is None: @@ -91,7 +87,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.0.0/python' + self.user_agent = "OpenAPI-Generator/1.0.0/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -103,16 +99,15 @@ def __exit__(self, exc_type, exc_value, traceback): @property def user_agent(self): """User agent for this API client""" - return self.default_headers['User-Agent'] + return self.default_headers["User-Agent"] @user_agent.setter def user_agent(self, value): - self.default_headers['User-Agent'] = value + self.default_headers["User-Agent"] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value - _default = None @classmethod @@ -148,12 +143,12 @@ def param_serialize( header_params=None, body=None, post_params=None, - files=None, auth_settings=None, + files=None, + auth_settings=None, collection_formats=None, _host=None, - _request_auth=None + _request_auth=None, ) -> RequestSerialized: - """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -182,35 +177,28 @@ def param_serialize( header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: - header_params['Cookie'] = self.cookie + header_params["Cookie"] = self.cookie if header_params: header_params = self.sanitize_for_serialization(header_params) header_params = dict( - self.parameters_to_tuples(header_params,collection_formats) + self.parameters_to_tuples(header_params, collection_formats) ) # path parameters if path_params: path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples( - path_params, - collection_formats - ) + path_params = self.parameters_to_tuples(path_params, collection_formats) for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) + "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param) ) # post parameters if post_params or files: post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples( - post_params, - collection_formats - ) + post_params = self.parameters_to_tuples(post_params, collection_formats) if files: post_params.extend(self.files_parameters(files)) @@ -222,7 +210,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth + request_auth=_request_auth, ) # body @@ -239,15 +227,11 @@ def param_serialize( # query parameters if query_params: query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query( - query_params, - collection_formats - ) + url_query = self.parameters_to_url_query(query_params, collection_formats) url += "?" + url_query return method, url, header_params, body, post_params - def call_api( self, method, @@ -255,7 +239,7 @@ def call_api( header_params=None, body=None, post_params=None, - _request_timeout=None + _request_timeout=None, ) -> rest.RESTResponse: """Makes the HTTP request (synchronous) :param method: Method to call. @@ -272,10 +256,12 @@ def call_api( try: # perform request and return response response_data = self.rest_client.request( - method, url, + method, + url, headers=header_params, - body=body, post_params=post_params, - _request_timeout=_request_timeout + body=body, + post_params=post_params, + _request_timeout=_request_timeout, ) except ApiException as e: @@ -286,7 +272,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]] = None, ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -298,9 +284,15 @@ def response_deserialize( assert response_data.data is not None, msg response_type = response_types_map.get(str(response_data.status), None) - if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + if ( + not response_type + and isinstance(response_data.status, int) + and 100 <= response_data.status <= 599 + ): # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) + response_type = response_types_map.get( + str(response_data.status)[0] + "XX", None + ) # deserialize response data response_text = None @@ -312,12 +304,14 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader('content-type') + content_type = response_data.getheader("content-type") if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - return_data = self.deserialize(response_text, response_type, content_type) + return_data = self.deserialize( + response_text, response_type, content_type + ) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -327,10 +321,10 @@ def response_deserialize( ) return ApiResponse( - status_code = response_data.status, - data = return_data, - headers = response_data.getheaders(), - raw_data = response_data.data + status_code=response_data.status, + data=return_data, + headers=response_data.getheaders(), + raw_data=response_data.data, ) def sanitize_for_serialization(self, obj): @@ -358,13 +352,9 @@ def sanitize_for_serialization(self, obj): elif isinstance(obj, self.PRIMITIVE_TYPES): return obj elif isinstance(obj, list): - return [ - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ] + return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] elif isinstance(obj, tuple): - return tuple( - self.sanitize_for_serialization(sub_obj) for sub_obj in obj - ) + return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() elif isinstance(obj, decimal.Decimal): @@ -378,17 +368,18 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): obj_dict = obj.to_dict() else: obj_dict = obj.__dict__ return { - key: self.sanitize_for_serialization(val) - for key, val in obj_dict.items() + key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() } - def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): + def deserialize( + self, response_text: str, response_type: str, content_type: Optional[str] + ): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. @@ -414,8 +405,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = response_text else: raise ApiException( - status=0, - reason="Unsupported content type: {0}".format(content_type) + status=0, reason="Unsupported content type: {0}".format(content_type) ) return self.__deserialize(data, response_type) @@ -432,19 +422,17 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) + if klass.startswith("List["): + m = re.match(r"List\[(.*)]", klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] + return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) + if klass.startswith("Dict["): + m = re.match(r"Dict\[([^,]*), (.*)]", klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in data.items()} + return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: @@ -480,19 +468,18 @@ def parameters_to_tuples(self, params, collection_formats): for k, v in params.items() if isinstance(params, dict) else params: if k in collection_formats: collection_format = collection_formats[k] - if collection_format == 'multi': + if collection_format == "multi": new_params.extend((k, value) for value in v) else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' + if collection_format == "ssv": + delimiter = " " + elif collection_format == "tsv": + delimiter = "\t" + elif collection_format == "pipes": + delimiter = "|" else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) + delimiter = "," + new_params.append((k, delimiter.join(str(value) for value in v))) else: new_params.append((k, v)) return new_params @@ -517,17 +504,17 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] - if collection_format == 'multi': + if collection_format == "multi": new_params.extend((k, str(value)) for value in v) else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' + if collection_format == "ssv": + delimiter = " " + elif collection_format == "tsv": + delimiter = "\t" + elif collection_format == "pipes": + delimiter = "|" else: # csv is the default - delimiter = ',' + delimiter = "," new_params.append( (k, delimiter.join(quote(str(value)) for value in v)) ) @@ -545,7 +532,7 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): params = [] for k, v in files.items(): if isinstance(v, str): - with open(v, 'rb') as f: + with open(v, "rb") as f: filename = os.path.basename(f.name) filedata = f.read() elif isinstance(v, bytes): @@ -553,13 +540,8 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): filedata = v else: raise ValueError("Unsupported file value") - mimetype = ( - mimetypes.guess_type(filename)[0] - or 'application/octet-stream' - ) - params.append( - tuple([k, tuple([filename, filedata, mimetype])]) - ) + mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" + params.append(tuple([k, tuple([filename, filedata, mimetype])])) return params def select_header_accept(self, accepts: List[str]) -> Optional[str]: @@ -572,7 +554,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: return None for accept in accepts: - if re.search('json', accept, re.IGNORECASE): + if re.search("json", accept, re.IGNORECASE): return accept return accepts[0] @@ -587,7 +569,7 @@ def select_header_content_type(self, content_types): return None for content_type in content_types: - if re.search('json', content_type, re.IGNORECASE): + if re.search("json", content_type, re.IGNORECASE): return content_type return content_types[0] @@ -600,7 +582,7 @@ def update_params_for_auth( resource_path, method, body, - request_auth=None + request_auth=None, ) -> None: """Updates header and query params based on authentication setting. @@ -619,34 +601,18 @@ def update_params_for_auth( if request_auth: self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - request_auth + headers, queries, resource_path, method, body, request_auth ) else: for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: self._apply_auth_params( - headers, - queries, - resource_path, - method, - body, - auth_setting + headers, queries, resource_path, method, body, auth_setting ) def _apply_auth_params( - self, - headers, - queries, - resource_path, - method, - body, - auth_setting + self, headers, queries, resource_path, method, body, auth_setting ) -> None: """Updates the request parameters based on a single auth_setting @@ -658,17 +624,15 @@ def _apply_auth_params( The object type is the return value of sanitize_for_serialization(). :param auth_setting: auth settings for the endpoint """ - if auth_setting['in'] == 'cookie': - headers['Cookie'] = auth_setting['value'] - elif auth_setting['in'] == 'header': - if auth_setting['type'] != 'http-signature': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - queries.append((auth_setting['key'], auth_setting['value'])) + if auth_setting["in"] == "cookie": + headers["Cookie"] = auth_setting["value"] + elif auth_setting["in"] == "header": + if auth_setting["type"] != "http-signature": + headers[auth_setting["key"]] = auth_setting["value"] + elif auth_setting["in"] == "query": + queries.append((auth_setting["key"], auth_setting["value"])) else: - raise ApiValueError( - 'Authentication token must be in `query` or `header`' - ) + raise ApiValueError("Authentication token must be in `query` or `header`") def __deserialize_file(self, response): """Deserializes body to file @@ -688,10 +652,7 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - m = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition - ) + m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) assert m is not None, "Unexpected 'content-disposition' header value" filename = m.group(1) path = os.path.join(os.path.dirname(path), filename) @@ -735,8 +696,7 @@ def __deserialize_date(self, string): return string except ValueError: raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) + status=0, reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datetime(self, string): @@ -754,10 +714,7 @@ def __deserialize_datetime(self, string): except ValueError: raise rest.ApiException( status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) + reason=("Failed to parse `{0}` as datetime object".format(string)), ) def __deserialize_enum(self, data, klass): @@ -771,11 +728,7 @@ def __deserialize_enum(self, data, klass): return klass(data) except ValueError: raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as `{1}`" - .format(data, klass) - ) + status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) ) def __deserialize_model(self, data, klass): diff --git a/data_bridges_client/configuration.py b/data_bridges_client/configuration.py index 3d043ab..f389f1d 100644 --- a/data_bridges_client/configuration.py +++ b/data_bridges_client/configuration.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import copy import logging from logging import FileHandler @@ -24,11 +23,19 @@ import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", } + class Configuration: """This class contains various settings of the API client. @@ -65,21 +72,28 @@ class Configuration: _default = None - def __init__(self, host=None, - api_key=None, api_key_prefix=None, - username=None, password=None, - access_token=None, - server_index=None, server_variables=None, - server_operation_index=None, server_operation_variables=None, - ignore_operation_servers=False, - ssl_ca_cert=None, - retries=None, - *, - debug: Optional[bool] = None - ) -> None: - """Constructor - """ - self._base_path = "https://api.wfp.org/vam-data-bridges/7.0.0" if host is None else host + def __init__( + self, + host=None, + api_key=None, + api_key_prefix=None, + username=None, + password=None, + access_token=None, + server_index=None, + server_variables=None, + server_operation_index=None, + server_operation_variables=None, + ignore_operation_servers=False, + ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None, + ) -> None: + """Constructor""" + self._base_path = ( + "https://api.wfp.org/vam-data-bridges/7.0.0" if host is None else host + ) """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -124,7 +138,7 @@ def __init__(self, host=None, """ self.logger["package_logger"] = logging.getLogger("data_bridges_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' + self.logger_format = "%(asctime)s %(levelname)s %(message)s" """Log format """ self.logger_stream_handler = None @@ -179,7 +193,7 @@ def __init__(self, host=None, self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = "" """Safe chars for path_param """ self.retries = retries @@ -205,7 +219,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): + if k not in ("logger", "logger_file_handler"): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -346,7 +360,9 @@ def get_api_key_with_prefix(self, identifier, alias=None): """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + key = self.api_key.get( + identifier, self.api_key.get(alias) if alias is not None else None + ) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -365,9 +381,9 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') + return urllib3.util.make_headers(basic_auth=username + ":" + password).get( + "authorization" + ) def auth_settings(self): """Gets Auth Settings dict for api client. @@ -376,11 +392,11 @@ def auth_settings(self): """ auth = {} if self.access_token is not None: - auth['default'] = { - 'type': 'oauth2', - 'in': 'header', - 'key': 'Authorization', - 'value': 'Bearer ' + self.access_token + auth["default"] = { + "type": "oauth2", + "in": "header", + "key": "Authorization", + "value": "Bearer " + self.access_token, } return auth @@ -389,12 +405,13 @@ def to_debug_report(self): :return: The report for debugging. """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 7.0.0\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) + return ( + "Python SDK Debug Report:\n" + "OS: {env}\n" + "Python Version: {pyversion}\n" + "Version of the API: 7.0.0\n" + "SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version) + ) def get_host_settings(self): """Gets an array of host settings @@ -403,8 +420,8 @@ def get_host_settings(self): """ return [ { - 'url': "https://api.wfp.org/vam-data-bridges/7.0.0", - 'description': "No description provided", + "url": "https://api.wfp.org/vam-data-bridges/7.0.0", + "description": "No description provided", } ] @@ -426,22 +443,22 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) + "Must be less than {1}".format(index, len(servers)) + ) - url = server['url'] + url = server["url"] # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) + for variable_name, variable in server.get("variables", {}).items(): + used_value = variables.get(variable_name, variable["default_value"]) - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: + if "enum_values" in variable and used_value not in variable["enum_values"]: raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) + variable_name, variables[variable_name], variable["enum_values"] + ) + ) url = url.replace("{" + variable_name + "}", used_value) @@ -450,7 +467,9 @@ def get_host_from_settings(self, index, variables=None, servers=None): @property def host(self): """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) + return self.get_host_from_settings( + self.server_index, variables=self.server_variables + ) @host.setter def host(self, value): diff --git a/data_bridges_client/exceptions.py b/data_bridges_client/exceptions.py index 1dd68e6..ef2e5d0 100644 --- a/data_bridges_client/exceptions.py +++ b/data_bridges_client/exceptions.py @@ -1,28 +1,30 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 from typing import Any, Optional from typing_extensions import Self + class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): - def __init__(self, msg, path_to_item=None, valid_classes=None, - key_type=None) -> None: - """ Raises an exception for TypeErrors + def __init__( + self, msg, path_to_item=None, valid_classes=None, key_type=None + ) -> None: + """Raises an exception for TypeErrors Args: msg (str): the exception message @@ -103,11 +105,10 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): - def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -126,17 +127,17 @@ def __init__( self.reason = http_resp.reason if self.body is None: try: - self.body = http_resp.data.decode('utf-8') + self.body = http_resp.data.decode("utf-8") except Exception: pass self.headers = http_resp.getheaders() @classmethod def from_response( - cls, - *, - http_resp, - body: Optional[str], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: @@ -157,11 +158,9 @@ def from_response( def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) + error_message = "({0})\nReason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) + error_message += "HTTP response headers: {0}\n".format(self.headers) if self.data or self.body: error_message += "HTTP response body: {0}\n".format(self.data or self.body) diff --git a/data_bridges_client/models/__init__.py b/data_bridges_client/models/__init__.py index 6815f5a..a700102 100644 --- a/data_bridges_client/models/__init__.py +++ b/data_bridges_client/models/__init__.py @@ -2,52 +2,81 @@ # flake8: noqa """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - # import models into model package from data_bridges_client.models.bad_request_dto import BadRequestDTO from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO -from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( + CariAdm0ValuesDTOPagedResult, +) from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO -from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult -from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( + CariAdm1ValuesDTOPagedResult, +) +from data_bridges_client.models.categories_and_indicators_dto import ( + CategoriesAndIndicatorsDTO, +) from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO from data_bridges_client.models.currency_dto import CurrencyDTO from data_bridges_client.models.economic_data_dto import EconomicDataDTO -from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty -from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.economic_indicator_property import ( + EconomicIndicatorProperty, +) +from data_bridges_client.models.economic_indicator_property_paged_result import ( + EconomicIndicatorPropertyPagedResult, +) from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto -from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult +from data_bridges_client.models.extended_alps_value_dto_paged_result import ( + ExtendedAlpsValueDtoPagedResult, +) from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto -from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto +from data_bridges_client.models.global_outlook_country_api_dto import ( + GlobalOutlookCountryApiDto, +) +from data_bridges_client.models.global_outlook_regional_api_dto import ( + GlobalOutlookRegionalApiDto, +) from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO -from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult +from data_bridges_client.models.household_survey_list_dto_paged_result import ( + HouseholdSurveyListDTOPagedResult, +) from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( + HungerHotSpotDataDTOPagedResult, +) from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( + IpcHistoricalDatumDtoPagedResult, +) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( + IpcchAndEquivalentPeaksDTO, +) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( + IpcchAndEquivalentPeaksDTOPagedResult, +) from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto -from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import ( + IpcchBaseDtoPagedResult, +) from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto -from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( + IpcchPeaksDtoPagedResult, +) from data_bridges_client.models.key_name_dto import KeyNameDto from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO @@ -55,30 +84,48 @@ from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO -from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO +from data_bridges_client.models.paged_commodity_price_list_dto import ( + PagedCommodityPriceListDTO, +) +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( + PagedCommodityWeeklyAggregatedPriceListDTO, +) from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO from data_bridges_client.models.problem_details import ProblemDetails from data_bridges_client.models.properties import Properties from data_bridges_client.models.rpme_assessment import RpmeAssessment -from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult +from data_bridges_client.models.rpme_assessment_paged_result import ( + RpmeAssessmentPagedResult, +) from data_bridges_client.models.rpme_output_values import RpmeOutputValues from data_bridges_client.models.rpme_variable import RpmeVariable -from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult +from data_bridges_client.models.rpme_variable_paged_result import ( + RpmeVariablePagedResult, +) from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation -from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult -from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult +from data_bridges_client.models.usd_indirect_quotation_paged_result import ( + UsdIndirectQuotationPagedResult, +) +from data_bridges_client.models.view_extended_monthly_aggregated_price import ( + ViewExtendedMonthlyAggregatedPrice, +) +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( + ViewExtendedMonthlyAggregatedPricePagedResult, +) from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO -from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO +from data_bridges_client.models.xls_form_definition_new_schema_dto import ( + XlsFormDefinitionNewSchemaDTO, +) from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO diff --git a/data_bridges_client/models/bad_request_dto.py b/data_bridges_client/models/bad_request_dto.py index edde947..bbee275 100644 --- a/data_bridges_client/models/bad_request_dto.py +++ b/data_bridges_client/models/bad_request_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,11 +22,13 @@ from typing import Optional, Set from typing_extensions import Self + class BadRequestDTO(BaseModel): - """ - - """ # noqa: E501 - error: Optional[StrictStr] = Field(default=None, description="The error message returned by the application") + """ """ # noqa: E501 + + error: Optional[StrictStr] = Field( + default=None, description="The error message returned by the application" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["error"] @@ -37,7 +38,6 @@ class BadRequestDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -80,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if error (nullable) is None # and model_fields_set contains the field if self.error is None and "error" in self.model_fields_set: - _dict['error'] = None + _dict["error"] = None return _dict @@ -93,14 +95,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "error": obj.get("error") - }) + _obj = cls.model_validate({"error": obj.get("error")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/cari_adm0_values_dto.py b/data_bridges_client/models/cari_adm0_values_dto.py index cd9cff0..a4bae02 100644 --- a/data_bridges_client/models/cari_adm0_values_dto.py +++ b/data_bridges_client/models/cari_adm0_values_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,23 +22,51 @@ from typing import Optional, Set from typing_extensions import Self + class CariAdm0ValuesDTO(BaseModel): """ CariAdm0ValuesDTO - """ # noqa: E501 + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") - cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") - fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") - additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") + cari_methodology_name: Optional[StrictStr] = Field( + default=None, alias="cariMethodologyName" + ) + fcs_methodology_name: Optional[StrictStr] = Field( + default=None, alias="fcsMethodologyName" + ) + additional_survey_metadata: Optional[StrictStr] = Field( + default=None, alias="additionalSurveyMetadata" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") - cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") - cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") - cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") - indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") + cari_indicator_id: Optional[StrictInt] = Field( + default=None, alias="cariIndicatorID" + ) + cari_indicator_name: Optional[StrictStr] = Field( + default=None, alias="cariIndicatorName" + ) + cari_indicator_category_id: Optional[StrictInt] = Field( + default=None, alias="cariIndicatorCategoryID" + ) + indicator_category_label: Optional[StrictStr] = Field( + default=None, alias="indicatorCategoryLabel" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel"] + __properties: ClassVar[List[str]] = [ + "surveyID", + "surveyName", + "cariMethodologyName", + "fcsMethodologyName", + "additionalSurveyMetadata", + "adm0Code", + "adm0Name", + "cariIndicatorID", + "cariIndicatorName", + "cariIndicatorCategoryID", + "indicatorCategoryLabel", + ] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +74,6 @@ class CariAdm0ValuesDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,9 +99,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -90,42 +118,57 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict['surveyName'] = None + _dict["surveyName"] = None # set to None if cari_methodology_name (nullable) is None # and model_fields_set contains the field - if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: - _dict['cariMethodologyName'] = None + if ( + self.cari_methodology_name is None + and "cari_methodology_name" in self.model_fields_set + ): + _dict["cariMethodologyName"] = None # set to None if fcs_methodology_name (nullable) is None # and model_fields_set contains the field - if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: - _dict['fcsMethodologyName'] = None + if ( + self.fcs_methodology_name is None + and "fcs_methodology_name" in self.model_fields_set + ): + _dict["fcsMethodologyName"] = None # set to None if additional_survey_metadata (nullable) is None # and model_fields_set contains the field - if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: - _dict['additionalSurveyMetadata'] = None + if ( + self.additional_survey_metadata is None + and "additional_survey_metadata" in self.model_fields_set + ): + _dict["additionalSurveyMetadata"] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict['adm0Name'] = None + _dict["adm0Name"] = None # set to None if cari_indicator_name (nullable) is None # and model_fields_set contains the field - if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: - _dict['cariIndicatorName'] = None + if ( + self.cari_indicator_name is None + and "cari_indicator_name" in self.model_fields_set + ): + _dict["cariIndicatorName"] = None # set to None if indicator_category_label (nullable) is None # and model_fields_set contains the field - if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: - _dict['indicatorCategoryLabel'] = None + if ( + self.indicator_category_label is None + and "indicator_category_label" in self.model_fields_set + ): + _dict["indicatorCategoryLabel"] = None return _dict @@ -138,24 +181,24 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyID": obj.get("surveyID"), - "surveyName": obj.get("surveyName"), - "cariMethodologyName": obj.get("cariMethodologyName"), - "fcsMethodologyName": obj.get("fcsMethodologyName"), - "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "cariIndicatorID": obj.get("cariIndicatorID"), - "cariIndicatorName": obj.get("cariIndicatorName"), - "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), - "indicatorCategoryLabel": obj.get("indicatorCategoryLabel") - }) + _obj = cls.model_validate( + { + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/cari_adm0_values_dto_paged_result.py b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py index 2311a3f..e82bd65 100644 --- a/data_bridges_client/models/cari_adm0_values_dto_paged_result.py +++ b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class CariAdm0ValuesDTOPagedResult(BaseModel): """ CariAdm0ValuesDTOPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[CariAdm0ValuesDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class CariAdm0ValuesDTOPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [CariAdm0ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [CariAdm0ValuesDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/cari_adm1_values_dto.py b/data_bridges_client/models/cari_adm1_values_dto.py index 9dd9e65..4c42fc4 100644 --- a/data_bridges_client/models/cari_adm1_values_dto.py +++ b/data_bridges_client/models/cari_adm1_values_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,25 +22,55 @@ from typing import Optional, Set from typing_extensions import Self + class CariAdm1ValuesDTO(BaseModel): """ CariAdm1ValuesDTO - """ # noqa: E501 + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") - cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") - fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") - additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") + cari_methodology_name: Optional[StrictStr] = Field( + default=None, alias="cariMethodologyName" + ) + fcs_methodology_name: Optional[StrictStr] = Field( + default=None, alias="fcsMethodologyName" + ) + additional_survey_metadata: Optional[StrictStr] = Field( + default=None, alias="additionalSurveyMetadata" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") - cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") - cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") - cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") - indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") + cari_indicator_id: Optional[StrictInt] = Field( + default=None, alias="cariIndicatorID" + ) + cari_indicator_name: Optional[StrictStr] = Field( + default=None, alias="cariIndicatorName" + ) + cari_indicator_category_id: Optional[StrictInt] = Field( + default=None, alias="cariIndicatorCategoryID" + ) + indicator_category_label: Optional[StrictStr] = Field( + default=None, alias="indicatorCategoryLabel" + ) adm1_code: Optional[StrictInt] = Field(default=None, alias="adm1Code") adm1_name: Optional[StrictStr] = Field(default=None, alias="adm1Name") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel", "adm1Code", "adm1Name"] + __properties: ClassVar[List[str]] = [ + "surveyID", + "surveyName", + "cariMethodologyName", + "fcsMethodologyName", + "additionalSurveyMetadata", + "adm0Code", + "adm0Name", + "cariIndicatorID", + "cariIndicatorName", + "cariIndicatorCategoryID", + "indicatorCategoryLabel", + "adm1Code", + "adm1Name", + ] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +78,6 @@ class CariAdm1ValuesDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,9 +103,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -92,52 +122,67 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict['surveyName'] = None + _dict["surveyName"] = None # set to None if cari_methodology_name (nullable) is None # and model_fields_set contains the field - if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: - _dict['cariMethodologyName'] = None + if ( + self.cari_methodology_name is None + and "cari_methodology_name" in self.model_fields_set + ): + _dict["cariMethodologyName"] = None # set to None if fcs_methodology_name (nullable) is None # and model_fields_set contains the field - if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: - _dict['fcsMethodologyName'] = None + if ( + self.fcs_methodology_name is None + and "fcs_methodology_name" in self.model_fields_set + ): + _dict["fcsMethodologyName"] = None # set to None if additional_survey_metadata (nullable) is None # and model_fields_set contains the field - if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: - _dict['additionalSurveyMetadata'] = None + if ( + self.additional_survey_metadata is None + and "additional_survey_metadata" in self.model_fields_set + ): + _dict["additionalSurveyMetadata"] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict['adm0Name'] = None + _dict["adm0Name"] = None # set to None if cari_indicator_name (nullable) is None # and model_fields_set contains the field - if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: - _dict['cariIndicatorName'] = None + if ( + self.cari_indicator_name is None + and "cari_indicator_name" in self.model_fields_set + ): + _dict["cariIndicatorName"] = None # set to None if indicator_category_label (nullable) is None # and model_fields_set contains the field - if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: - _dict['indicatorCategoryLabel'] = None + if ( + self.indicator_category_label is None + and "indicator_category_label" in self.model_fields_set + ): + _dict["indicatorCategoryLabel"] = None # set to None if adm1_code (nullable) is None # and model_fields_set contains the field if self.adm1_code is None and "adm1_code" in self.model_fields_set: - _dict['adm1Code'] = None + _dict["adm1Code"] = None # set to None if adm1_name (nullable) is None # and model_fields_set contains the field if self.adm1_name is None and "adm1_name" in self.model_fields_set: - _dict['adm1Name'] = None + _dict["adm1Name"] = None return _dict @@ -150,26 +195,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyID": obj.get("surveyID"), - "surveyName": obj.get("surveyName"), - "cariMethodologyName": obj.get("cariMethodologyName"), - "fcsMethodologyName": obj.get("fcsMethodologyName"), - "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "cariIndicatorID": obj.get("cariIndicatorID"), - "cariIndicatorName": obj.get("cariIndicatorName"), - "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), - "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), - "adm1Code": obj.get("adm1Code"), - "adm1Name": obj.get("adm1Name") - }) + _obj = cls.model_validate( + { + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), + "adm1Code": obj.get("adm1Code"), + "adm1Name": obj.get("adm1Name"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/cari_adm1_values_dto_paged_result.py b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py index 965d07e..688a618 100644 --- a/data_bridges_client/models/cari_adm1_values_dto_paged_result.py +++ b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class CariAdm1ValuesDTOPagedResult(BaseModel): """ CariAdm1ValuesDTOPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[CariAdm1ValuesDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class CariAdm1ValuesDTOPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [CariAdm1ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [CariAdm1ValuesDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/categories_and_indicators_dto.py b/data_bridges_client/models/categories_and_indicators_dto.py index 7e53417..1f5a271 100644 --- a/data_bridges_client/models/categories_and_indicators_dto.py +++ b/data_bridges_client/models/categories_and_indicators_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class CategoriesAndIndicatorsDTO(BaseModel): """ CategoriesAndIndicatorsDTO - """ # noqa: E501 + """ # noqa: E501 + categories: Optional[List[ListItemDto]] = None indicators: Optional[List[ListItemDto]] = None additional_properties: Dict[str, Any] = {} @@ -39,7 +40,6 @@ class CategoriesAndIndicatorsDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -80,14 +82,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_categories in self.categories: if _item_categories: _items.append(_item_categories.to_dict()) - _dict['categories'] = _items + _dict["categories"] = _items # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) _items = [] if self.indicators: for _item_indicators in self.indicators: if _item_indicators: _items.append(_item_indicators.to_dict()) - _dict['indicators'] = _items + _dict["indicators"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,12 +98,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if categories (nullable) is None # and model_fields_set contains the field if self.categories is None and "categories" in self.model_fields_set: - _dict['categories'] = None + _dict["categories"] = None # set to None if indicators (nullable) is None # and model_fields_set contains the field if self.indicators is None and "indicators" in self.model_fields_set: - _dict['indicators'] = None + _dict["indicators"] = None return _dict @@ -114,15 +116,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "categories": [ListItemDto.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, - "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None - }) + _obj = cls.model_validate( + { + "categories": [ + ListItemDto.from_dict(_item) for _item in obj["categories"] + ] + if obj.get("categories") is not None + else None, + "indicators": [ + ListItemDto.from_dict(_item) for _item in obj["indicators"] + ] + if obj.get("indicators") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/commodity_dto.py b/data_bridges_client/models/commodity_dto.py index 90e0985..f9c7ce8 100644 --- a/data_bridges_client/models/commodity_dto.py +++ b/data_bridges_client/models/commodity_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -26,14 +25,26 @@ from typing import Optional, Set from typing_extensions import Self + class CommodityDTO(BaseModel): """ CommodityDTO - """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") - parent_id: Optional[StrictInt] = Field(default=None, description="The internal parent ID of the commodity", alias="parentId") - name: Optional[StrictStr] = Field(default=None, description="The name of the commodity") - coicop2018: Optional[StrictStr] = Field(default=None, description="The COICOP 2018 definition") + """ # noqa: E501 + + id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the commodity" + ) + parent_id: Optional[StrictInt] = Field( + default=None, + description="The internal parent ID of the commodity", + alias="parentId", + ) + name: Optional[StrictStr] = Field( + default=None, description="The name of the commodity" + ) + coicop2018: Optional[StrictStr] = Field( + default=None, description="The COICOP 2018 definition" + ) supply: Optional[StrictInt] = None category_id: Optional[StrictInt] = Field(default=None, alias="categoryId") create_date: Optional[datetime] = Field(default=None, alias="createDate") @@ -41,7 +52,18 @@ class CommodityDTO(BaseModel): qualities: Optional[List[CommodityQualityDTO]] = None processing: Optional[List[CommodityProcessingDTO]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "parentId", "name", "coicop2018", "supply", "categoryId", "createDate", "updateDate", "qualities", "processing"] + __properties: ClassVar[List[str]] = [ + "id", + "parentId", + "name", + "coicop2018", + "supply", + "categoryId", + "createDate", + "updateDate", + "qualities", + "processing", + ] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +71,6 @@ class CommodityDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,9 +96,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -90,14 +113,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_qualities in self.qualities: if _item_qualities: _items.append(_item_qualities.to_dict()) - _dict['qualities'] = _items + _dict["qualities"] = _items # override the default output from pydantic by calling `to_dict()` of each item in processing (list) _items = [] if self.processing: for _item_processing in self.processing: if _item_processing: _items.append(_item_processing.to_dict()) - _dict['processing'] = _items + _dict["processing"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,37 +129,37 @@ def to_dict(self) -> Dict[str, Any]: # set to None if parent_id (nullable) is None # and model_fields_set contains the field if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict['parentId'] = None + _dict["parentId"] = None # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if coicop2018 (nullable) is None # and model_fields_set contains the field if self.coicop2018 is None and "coicop2018" in self.model_fields_set: - _dict['coicop2018'] = None + _dict["coicop2018"] = None # set to None if supply (nullable) is None # and model_fields_set contains the field if self.supply is None and "supply" in self.model_fields_set: - _dict['supply'] = None + _dict["supply"] = None # set to None if update_date (nullable) is None # and model_fields_set contains the field if self.update_date is None and "update_date" in self.model_fields_set: - _dict['updateDate'] = None + _dict["updateDate"] = None # set to None if qualities (nullable) is None # and model_fields_set contains the field if self.qualities is None and "qualities" in self.model_fields_set: - _dict['qualities'] = None + _dict["qualities"] = None # set to None if processing (nullable) is None # and model_fields_set contains the field if self.processing is None and "processing" in self.model_fields_set: - _dict['processing'] = None + _dict["processing"] = None return _dict @@ -149,23 +172,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "parentId": obj.get("parentId"), - "name": obj.get("name"), - "coicop2018": obj.get("coicop2018"), - "supply": obj.get("supply"), - "categoryId": obj.get("categoryId"), - "createDate": obj.get("createDate"), - "updateDate": obj.get("updateDate"), - "qualities": [CommodityQualityDTO.from_dict(_item) for _item in obj["qualities"]] if obj.get("qualities") is not None else None, - "processing": [CommodityProcessingDTO.from_dict(_item) for _item in obj["processing"]] if obj.get("processing") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "parentId": obj.get("parentId"), + "name": obj.get("name"), + "coicop2018": obj.get("coicop2018"), + "supply": obj.get("supply"), + "categoryId": obj.get("categoryId"), + "createDate": obj.get("createDate"), + "updateDate": obj.get("updateDate"), + "qualities": [ + CommodityQualityDTO.from_dict(_item) for _item in obj["qualities"] + ] + if obj.get("qualities") is not None + else None, + "processing": [ + CommodityProcessingDTO.from_dict(_item) + for _item in obj["processing"] + ] + if obj.get("processing") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/commodity_price_dto.py b/data_bridges_client/models/commodity_price_dto.py index 903c72f..ee953db 100644 --- a/data_bridges_client/models/commodity_price_dto.py +++ b/data_bridges_client/models/commodity_price_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,38 +23,95 @@ from typing import Optional, Set from typing_extensions import Self + class CommodityPriceDTO(BaseModel): """ CommodityPriceDTO - """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") + """ # noqa: E501 + + id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the commodity" + ) commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + commodity_unit_id: Optional[StrictInt] = Field( + default=None, alias="commodityUnitId" + ) currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") unit_name: Optional[StrictStr] = Field(default=None, alias="unitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") + original_frequency: Optional[StrictStr] = Field( + default=None, alias="originalFrequency" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") - commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") - commodity_price_metadata: Optional[Any] = Field(default=None, alias="commodityPriceMetadata") - commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") - commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") - commodity_price_date_day: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateDay") - commodity_price_date_week: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateWeek") - commodity_price_date_month: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateMonth") - commodity_price_date_year: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateYear") - commodity_price_insert_date: Optional[datetime] = Field(default=None, alias="commodityPriceInsertDate") - commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="commodityPrice" + ) + commodity_price_source_name: Optional[StrictStr] = Field( + default=None, alias="commodityPriceSourceName" + ) + commodity_price_metadata: Optional[Any] = Field( + default=None, alias="commodityPriceMetadata" + ) + commodity_price_date: Optional[datetime] = Field( + default=None, alias="commodityPriceDate" + ) + commodity_price_observations: Optional[StrictInt] = Field( + default=None, alias="commodityPriceObservations" + ) + commodity_price_date_day: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateDay" + ) + commodity_price_date_week: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateWeek" + ) + commodity_price_date_month: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateMonth" + ) + commodity_price_date_year: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateYear" + ) + commodity_price_insert_date: Optional[datetime] = Field( + default=None, alias="commodityPriceInsertDate" + ) + commodity_price_flag: Optional[StrictStr] = Field( + default=None, alias="commodityPriceFlag" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "commodityName", "marketName", "priceTypeName", "unitName", "currencyName", "originalFrequency", "adm0Code", "countryISO3", "countryName", "commodityPrice", "commodityPriceSourceName", "commodityPriceMetadata", "commodityPriceDate", "commodityPriceObservations", "commodityPriceDateDay", "commodityPriceDateWeek", "commodityPriceDateMonth", "commodityPriceDateYear", "commodityPriceInsertDate", "commodityPriceFlag"] + __properties: ClassVar[List[str]] = [ + "id", + "commodityId", + "marketId", + "priceTypeId", + "commodityUnitId", + "currencyId", + "commodityName", + "marketName", + "priceTypeName", + "unitName", + "currencyName", + "originalFrequency", + "adm0Code", + "countryISO3", + "countryName", + "commodityPrice", + "commodityPriceSourceName", + "commodityPriceMetadata", + "commodityPriceDate", + "commodityPriceObservations", + "commodityPriceDateDay", + "commodityPriceDateWeek", + "commodityPriceDateMonth", + "commodityPriceDateYear", + "commodityPriceInsertDate", + "commodityPriceFlag", + ] model_config = ConfigDict( populate_by_name=True, @@ -63,7 +119,6 @@ class CommodityPriceDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -89,9 +144,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -106,82 +163,109 @@ def to_dict(self) -> Dict[str, Any]: # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict['commodityName'] = None + _dict["commodityName"] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict['priceTypeName'] = None + _dict["priceTypeName"] = None # set to None if unit_name (nullable) is None # and model_fields_set contains the field if self.unit_name is None and "unit_name" in self.model_fields_set: - _dict['unitName'] = None + _dict["unitName"] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict['currencyName'] = None + _dict["currencyName"] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if self.original_frequency is None and "original_frequency" in self.model_fields_set: - _dict['originalFrequency'] = None + if ( + self.original_frequency is None + and "original_frequency" in self.model_fields_set + ): + _dict["originalFrequency"] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryISO3'] = None + _dict["countryISO3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: - _dict['commodityPriceSourceName'] = None + if ( + self.commodity_price_source_name is None + and "commodity_price_source_name" in self.model_fields_set + ): + _dict["commodityPriceSourceName"] = None # set to None if commodity_price_metadata (nullable) is None # and model_fields_set contains the field - if self.commodity_price_metadata is None and "commodity_price_metadata" in self.model_fields_set: - _dict['commodityPriceMetadata'] = None + if ( + self.commodity_price_metadata is None + and "commodity_price_metadata" in self.model_fields_set + ): + _dict["commodityPriceMetadata"] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: - _dict['commodityPriceObservations'] = None + if ( + self.commodity_price_observations is None + and "commodity_price_observations" in self.model_fields_set + ): + _dict["commodityPriceObservations"] = None # set to None if commodity_price_date_day (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date_day is None and "commodity_price_date_day" in self.model_fields_set: - _dict['commodityPriceDateDay'] = None + if ( + self.commodity_price_date_day is None + and "commodity_price_date_day" in self.model_fields_set + ): + _dict["commodityPriceDateDay"] = None # set to None if commodity_price_date_week (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date_week is None and "commodity_price_date_week" in self.model_fields_set: - _dict['commodityPriceDateWeek'] = None + if ( + self.commodity_price_date_week is None + and "commodity_price_date_week" in self.model_fields_set + ): + _dict["commodityPriceDateWeek"] = None # set to None if commodity_price_date_month (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date_month is None and "commodity_price_date_month" in self.model_fields_set: - _dict['commodityPriceDateMonth'] = None + if ( + self.commodity_price_date_month is None + and "commodity_price_date_month" in self.model_fields_set + ): + _dict["commodityPriceDateMonth"] = None # set to None if commodity_price_insert_date (nullable) is None # and model_fields_set contains the field - if self.commodity_price_insert_date is None and "commodity_price_insert_date" in self.model_fields_set: - _dict['commodityPriceInsertDate'] = None + if ( + self.commodity_price_insert_date is None + and "commodity_price_insert_date" in self.model_fields_set + ): + _dict["commodityPriceInsertDate"] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: - _dict['commodityPriceFlag'] = None + if ( + self.commodity_price_flag is None + and "commodity_price_flag" in self.model_fields_set + ): + _dict["commodityPriceFlag"] = None return _dict @@ -194,39 +278,39 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "unitName": obj.get("unitName"), - "currencyName": obj.get("currencyName"), - "originalFrequency": obj.get("originalFrequency"), - "adm0Code": obj.get("adm0Code"), - "countryISO3": obj.get("countryISO3"), - "countryName": obj.get("countryName"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "commodityPriceMetadata": obj.get("commodityPriceMetadata"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceDateDay": obj.get("commodityPriceDateDay"), - "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), - "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), - "commodityPriceDateYear": obj.get("commodityPriceDateYear"), - "commodityPriceInsertDate": obj.get("commodityPriceInsertDate"), - "commodityPriceFlag": obj.get("commodityPriceFlag") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "unitName": obj.get("unitName"), + "currencyName": obj.get("currencyName"), + "originalFrequency": obj.get("originalFrequency"), + "adm0Code": obj.get("adm0Code"), + "countryISO3": obj.get("countryISO3"), + "countryName": obj.get("countryName"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "commodityPriceMetadata": obj.get("commodityPriceMetadata"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceDateDay": obj.get("commodityPriceDateDay"), + "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), + "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), + "commodityPriceDateYear": obj.get("commodityPriceDateYear"), + "commodityPriceInsertDate": obj.get("commodityPriceInsertDate"), + "commodityPriceFlag": obj.get("commodityPriceFlag"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/commodity_processing_dto.py b/data_bridges_client/models/commodity_processing_dto.py index ce8d7b0..fb3440a 100644 --- a/data_bridges_client/models/commodity_processing_dto.py +++ b/data_bridges_client/models/commodity_processing_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +22,18 @@ from typing import Optional, Set from typing_extensions import Self + class CommodityProcessingDTO(BaseModel): """ CommodityProcessingDTO - """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") - name: Optional[StrictStr] = Field(default=None, description="The name of the process") + """ # noqa: E501 + + id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the commodity" + ) + name: Optional[StrictStr] = Field( + default=None, description="The name of the process" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name"] @@ -38,7 +43,6 @@ class CommodityProcessingDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +68,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None return _dict @@ -94,15 +100,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name") - }) + _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/commodity_quality_dto.py b/data_bridges_client/models/commodity_quality_dto.py index c62848b..3c7f8d6 100644 --- a/data_bridges_client/models/commodity_quality_dto.py +++ b/data_bridges_client/models/commodity_quality_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +22,18 @@ from typing import Optional, Set from typing_extensions import Self + class CommodityQualityDTO(BaseModel): """ CommodityQualityDTO - """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") - name: Optional[StrictStr] = Field(default=None, description="The name of the commodity") + """ # noqa: E501 + + id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the commodity" + ) + name: Optional[StrictStr] = Field( + default=None, description="The name of the commodity" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name"] @@ -38,7 +43,6 @@ class CommodityQualityDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +68,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None return _dict @@ -94,15 +100,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name") - }) + _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/currency_dto.py b/data_bridges_client/models/currency_dto.py index 06f8c06..8c14705 100644 --- a/data_bridges_client/models/currency_dto.py +++ b/data_bridges_client/models/currency_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,17 +23,27 @@ from typing import Optional, Set from typing_extensions import Self + class CurrencyDTO(BaseModel): """ CurrencyDTO - """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="The internal ID of the unit") + """ # noqa: E501 + + id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the unit" + ) name: Optional[StrictStr] = Field(default=None, description="The name of the unit") extended_name: Optional[StrictStr] = Field(default=None, alias="extendedName") create_date: Optional[datetime] = Field(default=None, alias="createDate") update_date: Optional[datetime] = Field(default=None, alias="updateDate") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name", "extendedName", "createDate", "updateDate"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "extendedName", + "createDate", + "updateDate", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +51,6 @@ class CurrencyDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,9 +76,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -85,17 +95,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if extended_name (nullable) is None # and model_fields_set contains the field if self.extended_name is None and "extended_name" in self.model_fields_set: - _dict['extendedName'] = None + _dict["extendedName"] = None # set to None if update_date (nullable) is None # and model_fields_set contains the field if self.update_date is None and "update_date" in self.model_fields_set: - _dict['updateDate'] = None + _dict["updateDate"] = None return _dict @@ -108,18 +118,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "extendedName": obj.get("extendedName"), - "createDate": obj.get("createDate"), - "updateDate": obj.get("updateDate") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "extendedName": obj.get("extendedName"), + "createDate": obj.get("createDate"), + "updateDate": obj.get("updateDate"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/economic_data_dto.py b/data_bridges_client/models/economic_data_dto.py index 7ec1abf..7f382b3 100644 --- a/data_bridges_client/models/economic_data_dto.py +++ b/data_bridges_client/models/economic_data_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class EconomicDataDTO(BaseModel): """ EconomicDataDTO - """ # noqa: E501 + """ # noqa: E501 + var_date: Optional[datetime] = Field(default=None, alias="date") value: Optional[Union[StrictFloat, StrictInt]] = None additional_properties: Dict[str, Any] = {} @@ -39,7 +40,6 @@ class EconomicDataDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -90,15 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "date": obj.get("date"), - "value": obj.get("value") - }) + _obj = cls.model_validate({"date": obj.get("date"), "value": obj.get("value")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/economic_indicator_property.py b/data_bridges_client/models/economic_indicator_property.py index f8ae0ec..2dfb175 100644 --- a/data_bridges_client/models/economic_indicator_property.py +++ b/data_bridges_client/models/economic_indicator_property.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,20 +23,33 @@ from typing import Optional, Set from typing_extensions import Self + class EconomicIndicatorProperty(BaseModel): """ EconomicIndicatorProperty - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictInt] = None name: Optional[StrictStr] = None frequency: Optional[StrictStr] = None unit: Optional[StrictStr] = None data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") - latest_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="latestValue") + latest_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="latestValue" + ) latest_value_date: Optional[datetime] = Field(default=None, alias="latestValueDate") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name", "frequency", "unit", "dataSource", "countryIso3", "latestValue", "latestValueDate"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "frequency", + "unit", + "dataSource", + "countryIso3", + "latestValue", + "latestValueDate", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +57,6 @@ class EconomicIndicatorProperty(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,9 +82,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -88,27 +101,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict['frequency'] = None + _dict["frequency"] = None # set to None if unit (nullable) is None # and model_fields_set contains the field if self.unit is None and "unit" in self.model_fields_set: - _dict['unit'] = None + _dict["unit"] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict['dataSource'] = None + _dict["dataSource"] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryIso3'] = None + _dict["countryIso3"] = None return _dict @@ -121,21 +134,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "frequency": obj.get("frequency"), - "unit": obj.get("unit"), - "dataSource": obj.get("dataSource"), - "countryIso3": obj.get("countryIso3"), - "latestValue": obj.get("latestValue"), - "latestValueDate": obj.get("latestValueDate") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "frequency": obj.get("frequency"), + "unit": obj.get("unit"), + "dataSource": obj.get("dataSource"), + "countryIso3": obj.get("countryIso3"), + "latestValue": obj.get("latestValue"), + "latestValueDate": obj.get("latestValueDate"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/economic_indicator_property_paged_result.py b/data_bridges_client/models/economic_indicator_property_paged_result.py index 6890f9f..3f20317 100644 --- a/data_bridges_client/models/economic_indicator_property_paged_result.py +++ b/data_bridges_client/models/economic_indicator_property_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,14 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty +from data_bridges_client.models.economic_indicator_property import ( + EconomicIndicatorProperty, +) from typing import Optional, Set from typing_extensions import Self + class EconomicIndicatorPropertyPagedResult(BaseModel): """ EconomicIndicatorPropertyPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[EconomicIndicatorProperty]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +43,6 @@ class EconomicIndicatorPropertyPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +69,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +109,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [EconomicIndicatorProperty.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + EconomicIndicatorProperty.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/extended_alps_value_dto.py b/data_bridges_client/models/extended_alps_value_dto.py index e53e911..06913a1 100644 --- a/data_bridges_client/models/extended_alps_value_dto.py +++ b/data_bridges_client/models/extended_alps_value_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,31 +23,71 @@ from typing import Optional, Set from typing_extensions import Self + class ExtendedAlpsValueDto(BaseModel): """ ExtendedAlpsValueDto - """ # noqa: E501 + """ # noqa: E501 + commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + commodity_unit_id: Optional[StrictInt] = Field( + default=None, alias="commodityUnitId" + ) currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_date_year: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateYear") - commodity_price_date_month: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateMonth") - commodity_price_date_week: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateWeek") - commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") + commodity_price_date_year: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateYear" + ) + commodity_price_date_month: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateMonth" + ) + commodity_price_date_week: Optional[StrictInt] = Field( + default=None, alias="commodityPriceDateWeek" + ) + commodity_price_date: Optional[datetime] = Field( + default=None, alias="commodityPriceDate" + ) commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") + commodity_unit_name: Optional[StrictStr] = Field( + default=None, alias="commodityUnitName" + ) currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - analysis_value_estimated_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="analysisValueEstimatedPrice") - analysis_value_pewi_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="analysisValuePewiValue") - analysis_value_price_flag: Optional[StrictStr] = Field(default=None, alias="analysisValuePriceFlag") + analysis_value_estimated_price: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="analysisValueEstimatedPrice" + ) + analysis_value_pewi_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="analysisValuePewiValue" + ) + analysis_value_price_flag: Optional[StrictStr] = Field( + default=None, alias="analysisValuePriceFlag" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "countryName", "commodityPriceDateYear", "commodityPriceDateMonth", "commodityPriceDateWeek", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "analysisValueEstimatedPrice", "analysisValuePewiValue", "analysisValuePriceFlag"] + __properties: ClassVar[List[str]] = [ + "commodityId", + "marketId", + "priceTypeId", + "commodityUnitId", + "currencyId", + "adm0Code", + "countryName", + "commodityPriceDateYear", + "commodityPriceDateMonth", + "commodityPriceDateWeek", + "commodityPriceDate", + "commodityName", + "marketName", + "priceTypeName", + "commodityUnitName", + "currencyName", + "analysisValueEstimatedPrice", + "analysisValuePewiValue", + "analysisValuePriceFlag", + ] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +95,6 @@ class ExtendedAlpsValueDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,9 +120,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,57 +139,72 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if commodity_price_date_month (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date_month is None and "commodity_price_date_month" in self.model_fields_set: - _dict['commodityPriceDateMonth'] = None + if ( + self.commodity_price_date_month is None + and "commodity_price_date_month" in self.model_fields_set + ): + _dict["commodityPriceDateMonth"] = None # set to None if commodity_price_date_week (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date_week is None and "commodity_price_date_week" in self.model_fields_set: - _dict['commodityPriceDateWeek'] = None + if ( + self.commodity_price_date_week is None + and "commodity_price_date_week" in self.model_fields_set + ): + _dict["commodityPriceDateWeek"] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: - _dict['commodityPriceDate'] = None + if ( + self.commodity_price_date is None + and "commodity_price_date" in self.model_fields_set + ): + _dict["commodityPriceDate"] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict['commodityName'] = None + _dict["commodityName"] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict['priceTypeName'] = None + _dict["priceTypeName"] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: - _dict['commodityUnitName'] = None + if ( + self.commodity_unit_name is None + and "commodity_unit_name" in self.model_fields_set + ): + _dict["commodityUnitName"] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict['currencyName'] = None + _dict["currencyName"] = None # set to None if analysis_value_price_flag (nullable) is None # and model_fields_set contains the field - if self.analysis_value_price_flag is None and "analysis_value_price_flag" in self.model_fields_set: - _dict['analysisValuePriceFlag'] = None + if ( + self.analysis_value_price_flag is None + and "analysis_value_price_flag" in self.model_fields_set + ): + _dict["analysisValuePriceFlag"] = None return _dict @@ -162,32 +217,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "countryName": obj.get("countryName"), - "commodityPriceDateYear": obj.get("commodityPriceDateYear"), - "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), - "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "analysisValueEstimatedPrice": obj.get("analysisValueEstimatedPrice"), - "analysisValuePewiValue": obj.get("analysisValuePewiValue"), - "analysisValuePriceFlag": obj.get("analysisValuePriceFlag") - }) + _obj = cls.model_validate( + { + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "countryName": obj.get("countryName"), + "commodityPriceDateYear": obj.get("commodityPriceDateYear"), + "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), + "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "analysisValueEstimatedPrice": obj.get("analysisValueEstimatedPrice"), + "analysisValuePewiValue": obj.get("analysisValuePewiValue"), + "analysisValuePriceFlag": obj.get("analysisValuePriceFlag"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/extended_alps_value_dto_paged_result.py b/data_bridges_client/models/extended_alps_value_dto_paged_result.py index 48f83bd..618d1e7 100644 --- a/data_bridges_client/models/extended_alps_value_dto_paged_result.py +++ b/data_bridges_client/models/extended_alps_value_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ExtendedAlpsValueDtoPagedResult(BaseModel): """ ExtendedAlpsValueDtoPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[ExtendedAlpsValueDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class ExtendedAlpsValueDtoPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [ExtendedAlpsValueDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + ExtendedAlpsValueDto.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/feature.py b/data_bridges_client/models/feature.py index c4da390..f35ce30 100644 --- a/data_bridges_client/models/feature.py +++ b/data_bridges_client/models/feature.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -25,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class Feature(BaseModel): """ Feature - """ # noqa: E501 + """ # noqa: E501 + type: Optional[StrictStr] = None id: Optional[StrictInt] = None bbox: Optional[List[Union[StrictFloat, StrictInt]]] = None @@ -43,7 +44,6 @@ class Feature(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -80,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of geometry if self.geometry: - _dict['geometry'] = self.geometry.to_dict() + _dict["geometry"] = self.geometry.to_dict() # override the default output from pydantic by calling `to_dict()` of properties if self.properties: - _dict['properties'] = self.properties.to_dict() + _dict["properties"] = self.properties.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,12 +94,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None # set to None if bbox (nullable) is None # and model_fields_set contains the field if self.bbox is None and "bbox" in self.model_fields_set: - _dict['bbox'] = None + _dict["bbox"] = None return _dict @@ -110,18 +112,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type"), - "id": obj.get("id"), - "bbox": obj.get("bbox"), - "geometry": Geometry.from_dict(obj["geometry"]) if obj.get("geometry") is not None else None, - "properties": Properties.from_dict(obj["properties"]) if obj.get("properties") is not None else None - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "id": obj.get("id"), + "bbox": obj.get("bbox"), + "geometry": Geometry.from_dict(obj["geometry"]) + if obj.get("geometry") is not None + else None, + "properties": Properties.from_dict(obj["properties"]) + if obj.get("properties") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/geometry.py b/data_bridges_client/models/geometry.py index a99946c..9501024 100644 --- a/data_bridges_client/models/geometry.py +++ b/data_bridges_client/models/geometry.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class Geometry(BaseModel): """ Geometry - """ # noqa: E501 + """ # noqa: E501 + type: Optional[StrictStr] = None coordinates: Optional[List[Union[StrictFloat, StrictInt]]] = None additional_properties: Dict[str, Any] = {} @@ -38,7 +39,6 @@ class Geometry(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +64,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,12 +83,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None # set to None if coordinates (nullable) is None # and model_fields_set contains the field if self.coordinates is None and "coordinates" in self.model_fields_set: - _dict['coordinates'] = None + _dict["coordinates"] = None return _dict @@ -99,15 +101,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type"), - "coordinates": obj.get("coordinates") - }) + _obj = cls.model_validate( + {"type": obj.get("type"), "coordinates": obj.get("coordinates")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/global_outlook_api_dto.py b/data_bridges_client/models/global_outlook_api_dto.py index da0ec87..292350b 100644 --- a/data_bridges_client/models/global_outlook_api_dto.py +++ b/data_bridges_client/models/global_outlook_api_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,17 +22,29 @@ from typing import Optional, Set from typing_extensions import Self + class GlobalOutlookApiDto(BaseModel): """ GlobalOutlookApiDto - """ # noqa: E501 + """ # noqa: E501 + var_date: Optional[StrictStr] = Field(default=None, alias="date") region_name: Optional[StrictStr] = Field(default=None, alias="regionName") - total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") - number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="totalValue" + ) + number_of_countries: Optional[StrictInt] = Field( + default=None, alias="numberOfCountries" + ) comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] + __properties: ClassVar[List[str]] = [ + "date", + "regionName", + "totalValue", + "numberOfCountries", + "comment", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +52,6 @@ class GlobalOutlookApiDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,9 +77,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -84,22 +96,25 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict['date'] = None + _dict["date"] = None # set to None if region_name (nullable) is None # and model_fields_set contains the field if self.region_name is None and "region_name" in self.model_fields_set: - _dict['regionName'] = None + _dict["regionName"] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field - if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: - _dict['numberOfCountries'] = None + if ( + self.number_of_countries is None + and "number_of_countries" in self.model_fields_set + ): + _dict["numberOfCountries"] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None + _dict["comment"] = None return _dict @@ -112,18 +127,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "date": obj.get("date"), - "regionName": obj.get("regionName"), - "totalValue": obj.get("totalValue"), - "numberOfCountries": obj.get("numberOfCountries"), - "comment": obj.get("comment") - }) + _obj = cls.model_validate( + { + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), + "numberOfCountries": obj.get("numberOfCountries"), + "comment": obj.get("comment"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/global_outlook_country_api_dto.py b/data_bridges_client/models/global_outlook_country_api_dto.py index 43944df..0ee7cd9 100644 --- a/data_bridges_client/models/global_outlook_country_api_dto.py +++ b/data_bridges_client/models/global_outlook_country_api_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,16 +22,27 @@ from typing import Optional, Set from typing_extensions import Self + class GlobalOutlookCountryApiDto(BaseModel): """ GlobalOutlookCountryApiDto - """ # noqa: E501 + """ # noqa: E501 + var_date: Optional[StrictStr] = Field(default=None, alias="date") - country_office_iso3: Optional[StrictStr] = Field(default=None, alias="countryOfficeIso3") - total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") + country_office_iso3: Optional[StrictStr] = Field( + default=None, alias="countryOfficeIso3" + ) + total_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="totalValue" + ) comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["date", "countryOfficeIso3", "totalValue", "comment"] + __properties: ClassVar[List[str]] = [ + "date", + "countryOfficeIso3", + "totalValue", + "comment", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +50,6 @@ class GlobalOutlookCountryApiDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +75,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,17 +94,20 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict['date'] = None + _dict["date"] = None # set to None if country_office_iso3 (nullable) is None # and model_fields_set contains the field - if self.country_office_iso3 is None and "country_office_iso3" in self.model_fields_set: - _dict['countryOfficeIso3'] = None + if ( + self.country_office_iso3 is None + and "country_office_iso3" in self.model_fields_set + ): + _dict["countryOfficeIso3"] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None + _dict["comment"] = None return _dict @@ -106,17 +120,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "date": obj.get("date"), - "countryOfficeIso3": obj.get("countryOfficeIso3"), - "totalValue": obj.get("totalValue"), - "comment": obj.get("comment") - }) + _obj = cls.model_validate( + { + "date": obj.get("date"), + "countryOfficeIso3": obj.get("countryOfficeIso3"), + "totalValue": obj.get("totalValue"), + "comment": obj.get("comment"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/global_outlook_regional_api_dto.py b/data_bridges_client/models/global_outlook_regional_api_dto.py index 60b0ee5..5a021f9 100644 --- a/data_bridges_client/models/global_outlook_regional_api_dto.py +++ b/data_bridges_client/models/global_outlook_regional_api_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,17 +22,29 @@ from typing import Optional, Set from typing_extensions import Self + class GlobalOutlookRegionalApiDto(BaseModel): """ GlobalOutlookRegionalApiDto - """ # noqa: E501 + """ # noqa: E501 + var_date: Optional[StrictStr] = Field(default=None, alias="date") region_name: Optional[StrictStr] = Field(default=None, alias="regionName") - total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") - number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="totalValue" + ) + number_of_countries: Optional[StrictInt] = Field( + default=None, alias="numberOfCountries" + ) comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] + __properties: ClassVar[List[str]] = [ + "date", + "regionName", + "totalValue", + "numberOfCountries", + "comment", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +52,6 @@ class GlobalOutlookRegionalApiDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,9 +77,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -84,22 +96,25 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict['date'] = None + _dict["date"] = None # set to None if region_name (nullable) is None # and model_fields_set contains the field if self.region_name is None and "region_name" in self.model_fields_set: - _dict['regionName'] = None + _dict["regionName"] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field - if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: - _dict['numberOfCountries'] = None + if ( + self.number_of_countries is None + and "number_of_countries" in self.model_fields_set + ): + _dict["numberOfCountries"] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict['comment'] = None + _dict["comment"] = None return _dict @@ -112,18 +127,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "date": obj.get("date"), - "regionName": obj.get("regionName"), - "totalValue": obj.get("totalValue"), - "numberOfCountries": obj.get("numberOfCountries"), - "comment": obj.get("comment") - }) + _obj = cls.model_validate( + { + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), + "numberOfCountries": obj.get("numberOfCountries"), + "comment": obj.get("comment"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/household_survey_list_dto.py b/data_bridges_client/models/household_survey_list_dto.py index 139efe7..2407250 100644 --- a/data_bridges_client/models/household_survey_list_dto.py +++ b/data_bridges_client/models/household_survey_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -26,39 +25,141 @@ from typing import Optional, Set from typing_extensions import Self + class HouseholdSurveyListDTO(BaseModel): """ HouseholdSurveyListDTO - """ # noqa: E501 - survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") - survey_status_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey status", alias="surveyStatusID") - survey_start_date: Optional[datetime] = Field(default=None, description="The date when the survey has started", alias="surveyStartDate") - survey_end_date: Optional[datetime] = Field(default=None, description="The date when the survey has ended", alias="surveyEndDate") - survey_create_date: Optional[datetime] = Field(default=None, description="The date when the survey has been uploaded in the Data Bridges platform", alias="surveyCreateDate") - survey_validation_report: Optional[StrictStr] = Field(default=None, description="The detailed report on the validation performed on the survey schema", alias="surveyValidationReport") - survey_original_filename: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=256)]] = Field(default=None, description="The filename of the survey CSV file", alias="surveyOriginalFilename") - xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the XLSForm used to collect data", alias="xlsFormName") - base_xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the base XLSForm used to build the XLSForm", alias="baseXlsFormName") - country_name: Optional[StrictStr] = Field(default=None, description="The name of the country where the survey has taken place", alias="countryName") - adm0_code: Optional[StrictInt] = Field(default=None, description="The internal code of the country where the survey has taken place", alias="adm0Code") - iso3_alpha3: Optional[StrictStr] = Field(default=None, description="The ISO3 alpha code of the country where the survey has taken place", alias="iso3Alpha3") - user_name: Optional[StrictStr] = Field(default=None, description="The name of the user that has uploaded the survey data", alias="userName") + """ # noqa: E501 + + survey_id: Optional[StrictInt] = Field( + default=None, description="The Id of the Survey", alias="surveyID" + ) + survey_status_id: Optional[StrictInt] = Field( + default=None, description="The Id of the Survey status", alias="surveyStatusID" + ) + survey_start_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has started", + alias="surveyStartDate", + ) + survey_end_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has ended", + alias="surveyEndDate", + ) + survey_create_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has been uploaded in the Data Bridges platform", + alias="surveyCreateDate", + ) + survey_validation_report: Optional[StrictStr] = Field( + default=None, + description="The detailed report on the validation performed on the survey schema", + alias="surveyValidationReport", + ) + survey_original_filename: Optional[ + Annotated[str, Field(min_length=0, strict=True, max_length=256)] + ] = Field( + default=None, + description="The filename of the survey CSV file", + alias="surveyOriginalFilename", + ) + xls_form_name: Optional[StrictStr] = Field( + default=None, + description="The name of the XLSForm used to collect data", + alias="xlsFormName", + ) + base_xls_form_name: Optional[StrictStr] = Field( + default=None, + description="The name of the base XLSForm used to build the XLSForm", + alias="baseXlsFormName", + ) + country_name: Optional[StrictStr] = Field( + default=None, + description="The name of the country where the survey has taken place", + alias="countryName", + ) + adm0_code: Optional[StrictInt] = Field( + default=None, + description="The internal code of the country where the survey has taken place", + alias="adm0Code", + ) + iso3_alpha3: Optional[StrictStr] = Field( + default=None, + description="The ISO3 alpha code of the country where the survey has taken place", + alias="iso3Alpha3", + ) + user_name: Optional[StrictStr] = Field( + default=None, + description="The name of the user that has uploaded the survey data", + alias="userName", + ) approved_by: Optional[StrictStr] = Field(default=None, alias="approvedBy") - original_csv_file: Optional[StrictStr] = Field(default=None, description="The link to download the original CSV file", alias="originalCsvFile") - base_data: Optional[StrictStr] = Field(default=None, description="The link to the JSON data reshaped on the base XLSForm", alias="baseData") - survey_attributes: Optional[List[KeyNameDto]] = Field(default=None, alias="surveyAttributes") + original_csv_file: Optional[StrictStr] = Field( + default=None, + description="The link to download the original CSV file", + alias="originalCsvFile", + ) + base_data: Optional[StrictStr] = Field( + default=None, + description="The link to the JSON data reshaped on the base XLSForm", + alias="baseData", + ) + survey_attributes: Optional[List[KeyNameDto]] = Field( + default=None, alias="surveyAttributes" + ) organizations: Optional[List[KeyNameDto]] = None - survey_modality_name: Optional[StrictStr] = Field(default=None, alias="surveyModalityName") - survey_category_name: Optional[StrictStr] = Field(default=None, alias="surveyCategoryName") - survey_sub_category_name: Optional[StrictStr] = Field(default=None, alias="surveySubCategoryName") - survey_phase_name: Optional[StrictStr] = Field(default=None, alias="surveyPhaseName") - survey_visibility: Optional[StrictStr] = Field(default=None, alias="surveyVisibility") - is_continuous_monitoring: Optional[StrictBool] = Field(default=None, alias="isContinuousMonitoring") + survey_modality_name: Optional[StrictStr] = Field( + default=None, alias="surveyModalityName" + ) + survey_category_name: Optional[StrictStr] = Field( + default=None, alias="surveyCategoryName" + ) + survey_sub_category_name: Optional[StrictStr] = Field( + default=None, alias="surveySubCategoryName" + ) + survey_phase_name: Optional[StrictStr] = Field( + default=None, alias="surveyPhaseName" + ) + survey_visibility: Optional[StrictStr] = Field( + default=None, alias="surveyVisibility" + ) + is_continuous_monitoring: Optional[StrictBool] = Field( + default=None, alias="isContinuousMonitoring" + ) survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") xls_form_id: Optional[StrictInt] = Field(default=None, alias="xlsFormId") base_xls_form_id: Optional[StrictInt] = Field(default=None, alias="baseXlsFormId") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyID", "surveyStatusID", "surveyStartDate", "surveyEndDate", "surveyCreateDate", "surveyValidationReport", "surveyOriginalFilename", "xlsFormName", "baseXlsFormName", "countryName", "adm0Code", "iso3Alpha3", "userName", "approvedBy", "originalCsvFile", "baseData", "surveyAttributes", "organizations", "surveyModalityName", "surveyCategoryName", "surveySubCategoryName", "surveyPhaseName", "surveyVisibility", "isContinuousMonitoring", "surveyName", "xlsFormId", "baseXlsFormId"] + __properties: ClassVar[List[str]] = [ + "surveyID", + "surveyStatusID", + "surveyStartDate", + "surveyEndDate", + "surveyCreateDate", + "surveyValidationReport", + "surveyOriginalFilename", + "xlsFormName", + "baseXlsFormName", + "countryName", + "adm0Code", + "iso3Alpha3", + "userName", + "approvedBy", + "originalCsvFile", + "baseData", + "surveyAttributes", + "organizations", + "surveyModalityName", + "surveyCategoryName", + "surveySubCategoryName", + "surveyPhaseName", + "surveyVisibility", + "isContinuousMonitoring", + "surveyName", + "xlsFormId", + "baseXlsFormId", + ] model_config = ConfigDict( populate_by_name=True, @@ -66,7 +167,6 @@ class HouseholdSurveyListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -92,9 +192,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -107,14 +209,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_survey_attributes in self.survey_attributes: if _item_survey_attributes: _items.append(_item_survey_attributes.to_dict()) - _dict['surveyAttributes'] = _items + _dict["surveyAttributes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) _items = [] if self.organizations: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict['organizations'] = _items + _dict["organizations"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -122,103 +224,136 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_start_date (nullable) is None # and model_fields_set contains the field - if self.survey_start_date is None and "survey_start_date" in self.model_fields_set: - _dict['surveyStartDate'] = None + if ( + self.survey_start_date is None + and "survey_start_date" in self.model_fields_set + ): + _dict["surveyStartDate"] = None # set to None if survey_end_date (nullable) is None # and model_fields_set contains the field if self.survey_end_date is None and "survey_end_date" in self.model_fields_set: - _dict['surveyEndDate'] = None + _dict["surveyEndDate"] = None # set to None if survey_validation_report (nullable) is None # and model_fields_set contains the field - if self.survey_validation_report is None and "survey_validation_report" in self.model_fields_set: - _dict['surveyValidationReport'] = None + if ( + self.survey_validation_report is None + and "survey_validation_report" in self.model_fields_set + ): + _dict["surveyValidationReport"] = None # set to None if survey_original_filename (nullable) is None # and model_fields_set contains the field - if self.survey_original_filename is None and "survey_original_filename" in self.model_fields_set: - _dict['surveyOriginalFilename'] = None + if ( + self.survey_original_filename is None + and "survey_original_filename" in self.model_fields_set + ): + _dict["surveyOriginalFilename"] = None # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict['xlsFormName'] = None + _dict["xlsFormName"] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: - _dict['baseXlsFormName'] = None + if ( + self.base_xls_form_name is None + and "base_xls_form_name" in self.model_fields_set + ): + _dict["baseXlsFormName"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict['userName'] = None + _dict["userName"] = None # set to None if approved_by (nullable) is None # and model_fields_set contains the field if self.approved_by is None and "approved_by" in self.model_fields_set: - _dict['approvedBy'] = None + _dict["approvedBy"] = None # set to None if original_csv_file (nullable) is None # and model_fields_set contains the field - if self.original_csv_file is None and "original_csv_file" in self.model_fields_set: - _dict['originalCsvFile'] = None + if ( + self.original_csv_file is None + and "original_csv_file" in self.model_fields_set + ): + _dict["originalCsvFile"] = None # set to None if base_data (nullable) is None # and model_fields_set contains the field if self.base_data is None and "base_data" in self.model_fields_set: - _dict['baseData'] = None + _dict["baseData"] = None # set to None if survey_attributes (nullable) is None # and model_fields_set contains the field - if self.survey_attributes is None and "survey_attributes" in self.model_fields_set: - _dict['surveyAttributes'] = None + if ( + self.survey_attributes is None + and "survey_attributes" in self.model_fields_set + ): + _dict["surveyAttributes"] = None # set to None if organizations (nullable) is None # and model_fields_set contains the field if self.organizations is None and "organizations" in self.model_fields_set: - _dict['organizations'] = None + _dict["organizations"] = None # set to None if survey_modality_name (nullable) is None # and model_fields_set contains the field - if self.survey_modality_name is None and "survey_modality_name" in self.model_fields_set: - _dict['surveyModalityName'] = None + if ( + self.survey_modality_name is None + and "survey_modality_name" in self.model_fields_set + ): + _dict["surveyModalityName"] = None # set to None if survey_category_name (nullable) is None # and model_fields_set contains the field - if self.survey_category_name is None and "survey_category_name" in self.model_fields_set: - _dict['surveyCategoryName'] = None + if ( + self.survey_category_name is None + and "survey_category_name" in self.model_fields_set + ): + _dict["surveyCategoryName"] = None # set to None if survey_sub_category_name (nullable) is None # and model_fields_set contains the field - if self.survey_sub_category_name is None and "survey_sub_category_name" in self.model_fields_set: - _dict['surveySubCategoryName'] = None + if ( + self.survey_sub_category_name is None + and "survey_sub_category_name" in self.model_fields_set + ): + _dict["surveySubCategoryName"] = None # set to None if survey_phase_name (nullable) is None # and model_fields_set contains the field - if self.survey_phase_name is None and "survey_phase_name" in self.model_fields_set: - _dict['surveyPhaseName'] = None + if ( + self.survey_phase_name is None + and "survey_phase_name" in self.model_fields_set + ): + _dict["surveyPhaseName"] = None # set to None if survey_visibility (nullable) is None # and model_fields_set contains the field - if self.survey_visibility is None and "survey_visibility" in self.model_fields_set: - _dict['surveyVisibility'] = None + if ( + self.survey_visibility is None + and "survey_visibility" in self.model_fields_set + ): + _dict["surveyVisibility"] = None # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict['surveyName'] = None + _dict["surveyName"] = None return _dict @@ -231,40 +366,48 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyID": obj.get("surveyID"), - "surveyStatusID": obj.get("surveyStatusID"), - "surveyStartDate": obj.get("surveyStartDate"), - "surveyEndDate": obj.get("surveyEndDate"), - "surveyCreateDate": obj.get("surveyCreateDate"), - "surveyValidationReport": obj.get("surveyValidationReport"), - "surveyOriginalFilename": obj.get("surveyOriginalFilename"), - "xlsFormName": obj.get("xlsFormName"), - "baseXlsFormName": obj.get("baseXlsFormName"), - "countryName": obj.get("countryName"), - "adm0Code": obj.get("adm0Code"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "userName": obj.get("userName"), - "approvedBy": obj.get("approvedBy"), - "originalCsvFile": obj.get("originalCsvFile"), - "baseData": obj.get("baseData"), - "surveyAttributes": [KeyNameDto.from_dict(_item) for _item in obj["surveyAttributes"]] if obj.get("surveyAttributes") is not None else None, - "organizations": [KeyNameDto.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, - "surveyModalityName": obj.get("surveyModalityName"), - "surveyCategoryName": obj.get("surveyCategoryName"), - "surveySubCategoryName": obj.get("surveySubCategoryName"), - "surveyPhaseName": obj.get("surveyPhaseName"), - "surveyVisibility": obj.get("surveyVisibility"), - "isContinuousMonitoring": obj.get("isContinuousMonitoring"), - "surveyName": obj.get("surveyName"), - "xlsFormId": obj.get("xlsFormId"), - "baseXlsFormId": obj.get("baseXlsFormId") - }) + _obj = cls.model_validate( + { + "surveyID": obj.get("surveyID"), + "surveyStatusID": obj.get("surveyStatusID"), + "surveyStartDate": obj.get("surveyStartDate"), + "surveyEndDate": obj.get("surveyEndDate"), + "surveyCreateDate": obj.get("surveyCreateDate"), + "surveyValidationReport": obj.get("surveyValidationReport"), + "surveyOriginalFilename": obj.get("surveyOriginalFilename"), + "xlsFormName": obj.get("xlsFormName"), + "baseXlsFormName": obj.get("baseXlsFormName"), + "countryName": obj.get("countryName"), + "adm0Code": obj.get("adm0Code"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "userName": obj.get("userName"), + "approvedBy": obj.get("approvedBy"), + "originalCsvFile": obj.get("originalCsvFile"), + "baseData": obj.get("baseData"), + "surveyAttributes": [ + KeyNameDto.from_dict(_item) for _item in obj["surveyAttributes"] + ] + if obj.get("surveyAttributes") is not None + else None, + "organizations": [ + KeyNameDto.from_dict(_item) for _item in obj["organizations"] + ] + if obj.get("organizations") is not None + else None, + "surveyModalityName": obj.get("surveyModalityName"), + "surveyCategoryName": obj.get("surveyCategoryName"), + "surveySubCategoryName": obj.get("surveySubCategoryName"), + "surveyPhaseName": obj.get("surveyPhaseName"), + "surveyVisibility": obj.get("surveyVisibility"), + "isContinuousMonitoring": obj.get("isContinuousMonitoring"), + "surveyName": obj.get("surveyName"), + "xlsFormId": obj.get("xlsFormId"), + "baseXlsFormId": obj.get("baseXlsFormId"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/household_survey_list_dto_paged_result.py b/data_bridges_client/models/household_survey_list_dto_paged_result.py index 06d0cf4..8b7e3f7 100644 --- a/data_bridges_client/models/household_survey_list_dto_paged_result.py +++ b/data_bridges_client/models/household_survey_list_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class HouseholdSurveyListDTOPagedResult(BaseModel): """ HouseholdSurveyListDTOPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[HouseholdSurveyListDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class HouseholdSurveyListDTOPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [HouseholdSurveyListDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + HouseholdSurveyListDTO.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto.py b/data_bridges_client/models/hunger_hot_spot_data_dto.py index 023469f..fcf9c97 100644 --- a/data_bridges_client/models/hunger_hot_spot_data_dto.py +++ b/data_bridges_client/models/hunger_hot_spot_data_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -25,16 +24,25 @@ from typing import Optional, Set from typing_extensions import Self + class HungerHotSpotDataDTO(BaseModel): """ HungerHotSpotDataDTO - """ # noqa: E501 + """ # noqa: E501 + iso3_code: Optional[StrictStr] = Field(default=None, alias="iso3Code") - hunger_hotspots_date: Optional[datetime] = Field(default=None, alias="hungerHotspotsDate") + hunger_hotspots_date: Optional[datetime] = Field( + default=None, alias="hungerHotspotsDate" + ) category: Optional[ListItemDto] = None indicators: Optional[List[ListItemDto]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["iso3Code", "hungerHotspotsDate", "category", "indicators"] + __properties: ClassVar[List[str]] = [ + "iso3Code", + "hungerHotspotsDate", + "category", + "indicators", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +50,6 @@ class HungerHotSpotDataDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,9 +75,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -79,14 +88,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of category if self.category: - _dict['category'] = self.category.to_dict() + _dict["category"] = self.category.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) _items = [] if self.indicators: for _item_indicators in self.indicators: if _item_indicators: _items.append(_item_indicators.to_dict()) - _dict['indicators'] = _items + _dict["indicators"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -95,12 +104,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_code (nullable) is None # and model_fields_set contains the field if self.iso3_code is None and "iso3_code" in self.model_fields_set: - _dict['iso3Code'] = None + _dict["iso3Code"] = None # set to None if indicators (nullable) is None # and model_fields_set contains the field if self.indicators is None and "indicators" in self.model_fields_set: - _dict['indicators'] = None + _dict["indicators"] = None return _dict @@ -113,17 +122,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "iso3Code": obj.get("iso3Code"), - "hungerHotspotsDate": obj.get("hungerHotspotsDate"), - "category": ListItemDto.from_dict(obj["category"]) if obj.get("category") is not None else None, - "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None - }) + _obj = cls.model_validate( + { + "iso3Code": obj.get("iso3Code"), + "hungerHotspotsDate": obj.get("hungerHotspotsDate"), + "category": ListItemDto.from_dict(obj["category"]) + if obj.get("category") is not None + else None, + "indicators": [ + ListItemDto.from_dict(_item) for _item in obj["indicators"] + ] + if obj.get("indicators") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py index d709f7b..c5352ea 100644 --- a/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py +++ b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class HungerHotSpotDataDTOPagedResult(BaseModel): """ HungerHotSpotDataDTOPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[HungerHotSpotDataDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class HungerHotSpotDataDTOPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [HungerHotSpotDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + HungerHotSpotDataDTO.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipc_historical_datum_dto.py b/data_bridges_client/models/ipc_historical_datum_dto.py index 582e157..ac3be67 100644 --- a/data_bridges_client/models/ipc_historical_datum_dto.py +++ b/data_bridges_client/models/ipc_historical_datum_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,64 +23,211 @@ from typing import Optional, Set from typing_extensions import Self + class IpcHistoricalDatumDto(BaseModel): """ IpcHistoricalDatumDto - """ # noqa: E501 + """ # noqa: E501 + analysis_id: Optional[StrictInt] = Field(default=None, alias="analysisId") analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") - start_date_current_period: Optional[datetime] = Field(default=None, alias="StartDate_CurrentPeriod") - end_date_current_period: Optional[datetime] = Field(default=None, alias="EndDate_CurrentPeriod") - start_date_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_ProjectedPeriod") - end_date_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_ProjectedPeriod") - start_date_second_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_SecondProjectedPeriod") - end_date_second_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_SecondProjectedPeriod") + start_date_current_period: Optional[datetime] = Field( + default=None, alias="StartDate_CurrentPeriod" + ) + end_date_current_period: Optional[datetime] = Field( + default=None, alias="EndDate_CurrentPeriod" + ) + start_date_projected_period: Optional[datetime] = Field( + default=None, alias="StartDate_ProjectedPeriod" + ) + end_date_projected_period: Optional[datetime] = Field( + default=None, alias="EndDate_ProjectedPeriod" + ) + start_date_second_projected_period: Optional[datetime] = Field( + default=None, alias="StartDate_SecondProjectedPeriod" + ) + end_date_second_projected_period: Optional[datetime] = Field( + default=None, alias="EndDate_SecondProjectedPeriod" + ) population: Optional[Union[StrictFloat, StrictInt]] = None - population_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationPercentage") - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") - estimated_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulation") - phase1_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Population") - phase1_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Percentage") - phase2_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Population") - phase2_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Percentage") - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") - phase3_plus_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationProjected") - phase3_plus_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageProjected") - estimated_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationProjected") - phase1_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationProjected") - phase1_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageProjected") - phase2_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationProjected") - phase2_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageProjected") - phase3_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationProjected") - phase3_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageProjected") - phase4_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationProjected") - phase4_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageProjected") - phase5_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationProjected") - phase5_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageProjected") - phase3_plus_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationSecondProjected") - phase3_plus_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageSecondProjected") - estimated_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationSecondProjected") - phase1_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationSecondProjected") - phase1_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageSecondProjected") - phase2_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationSecondProjected") - phase2_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageSecondProjected") - phase3_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationSecondProjected") - phase3_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageSecondProjected") - phase4_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationSecondProjected") - phase4_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageSecondProjected") - phase5_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationSecondProjected") - phase5_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageSecondProjected") + population_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="populationPercentage" + ) + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPopulation" + ) + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPercentage" + ) + estimated_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="estimatedPopulation" + ) + phase1_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1Population" + ) + phase1_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1Percentage" + ) + phase2_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2Population" + ) + phase2_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2Percentage" + ) + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Population" + ) + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Percentage" + ) + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Population" + ) + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Percentage" + ) + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Population" + ) + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Percentage" + ) + phase3_plus_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPopulationProjected" + ) + phase3_plus_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPercentageProjected" + ) + estimated_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="estimatedPopulationProjected" + ) + phase1_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1PopulationProjected" + ) + phase1_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1PercentageProjected" + ) + phase2_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2PopulationProjected" + ) + phase2_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2PercentageProjected" + ) + phase3_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PopulationProjected" + ) + phase3_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PercentageProjected" + ) + phase4_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PopulationProjected" + ) + phase4_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PercentageProjected" + ) + phase5_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5PopulationProjected" + ) + phase5_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5PercentageProjected" + ) + phase3_plus_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( + Field(default=None, alias="phase3PlusPopulationSecondProjected") + ) + phase3_plus_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( + Field(default=None, alias="phase3PlusPercentageSecondProjected") + ) + estimated_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( + Field(default=None, alias="estimatedPopulationSecondProjected") + ) + phase1_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1PopulationSecondProjected" + ) + phase1_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase1PercentageSecondProjected" + ) + phase2_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2PopulationSecondProjected" + ) + phase2_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase2PercentageSecondProjected" + ) + phase3_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PopulationSecondProjected" + ) + phase3_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PercentageSecondProjected" + ) + phase4_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PopulationSecondProjected" + ) + phase4_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PercentageSecondProjected" + ) + phase5_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5PopulationSecondProjected" + ) + phase5_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5PercentageSecondProjected" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["analysisId", "analysisTitle", "iso3Alpha3", "countryName", "analysisDate", "StartDate_CurrentPeriod", "EndDate_CurrentPeriod", "StartDate_ProjectedPeriod", "EndDate_ProjectedPeriod", "StartDate_SecondProjectedPeriod", "EndDate_SecondProjectedPeriod", "population", "populationPercentage", "phase3PlusPopulation", "phase3PlusPercentage", "estimatedPopulation", "phase1Population", "phase1Percentage", "phase2Population", "phase2Percentage", "phase3Population", "phase3Percentage", "phase4Population", "phase4Percentage", "phase5Population", "phase5Percentage", "phase3PlusPopulationProjected", "phase3PlusPercentageProjected", "estimatedPopulationProjected", "phase1PopulationProjected", "phase1PercentageProjected", "phase2PopulationProjected", "phase2PercentageProjected", "phase3PopulationProjected", "phase3PercentageProjected", "phase4PopulationProjected", "phase4PercentageProjected", "phase5PopulationProjected", "phase5PercentageProjected", "phase3PlusPopulationSecondProjected", "phase3PlusPercentageSecondProjected", "estimatedPopulationSecondProjected", "phase1PopulationSecondProjected", "phase1PercentageSecondProjected", "phase2PopulationSecondProjected", "phase2PercentageSecondProjected", "phase3PopulationSecondProjected", "phase3PercentageSecondProjected", "phase4PopulationSecondProjected", "phase4PercentageSecondProjected", "phase5PopulationSecondProjected", "phase5PercentageSecondProjected"] + __properties: ClassVar[List[str]] = [ + "analysisId", + "analysisTitle", + "iso3Alpha3", + "countryName", + "analysisDate", + "StartDate_CurrentPeriod", + "EndDate_CurrentPeriod", + "StartDate_ProjectedPeriod", + "EndDate_ProjectedPeriod", + "StartDate_SecondProjectedPeriod", + "EndDate_SecondProjectedPeriod", + "population", + "populationPercentage", + "phase3PlusPopulation", + "phase3PlusPercentage", + "estimatedPopulation", + "phase1Population", + "phase1Percentage", + "phase2Population", + "phase2Percentage", + "phase3Population", + "phase3Percentage", + "phase4Population", + "phase4Percentage", + "phase5Population", + "phase5Percentage", + "phase3PlusPopulationProjected", + "phase3PlusPercentageProjected", + "estimatedPopulationProjected", + "phase1PopulationProjected", + "phase1PercentageProjected", + "phase2PopulationProjected", + "phase2PercentageProjected", + "phase3PopulationProjected", + "phase3PercentageProjected", + "phase4PopulationProjected", + "phase4PercentageProjected", + "phase5PopulationProjected", + "phase5PercentageProjected", + "phase3PlusPopulationSecondProjected", + "phase3PlusPercentageSecondProjected", + "estimatedPopulationSecondProjected", + "phase1PopulationSecondProjected", + "phase1PercentageSecondProjected", + "phase2PopulationSecondProjected", + "phase2PercentageSecondProjected", + "phase3PopulationSecondProjected", + "phase3PercentageSecondProjected", + "phase4PopulationSecondProjected", + "phase4PercentageSecondProjected", + "phase5PopulationSecondProjected", + "phase5PercentageSecondProjected", + ] model_config = ConfigDict( populate_by_name=True, @@ -89,7 +235,6 @@ class IpcHistoricalDatumDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -115,9 +260,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -132,257 +279,395 @@ def to_dict(self) -> Dict[str, Any]: # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict['analysisTitle'] = None + _dict["analysisTitle"] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict['analysisDate'] = None + _dict["analysisDate"] = None # set to None if start_date_current_period (nullable) is None # and model_fields_set contains the field - if self.start_date_current_period is None and "start_date_current_period" in self.model_fields_set: - _dict['StartDate_CurrentPeriod'] = None + if ( + self.start_date_current_period is None + and "start_date_current_period" in self.model_fields_set + ): + _dict["StartDate_CurrentPeriod"] = None # set to None if end_date_current_period (nullable) is None # and model_fields_set contains the field - if self.end_date_current_period is None and "end_date_current_period" in self.model_fields_set: - _dict['EndDate_CurrentPeriod'] = None + if ( + self.end_date_current_period is None + and "end_date_current_period" in self.model_fields_set + ): + _dict["EndDate_CurrentPeriod"] = None # set to None if start_date_projected_period (nullable) is None # and model_fields_set contains the field - if self.start_date_projected_period is None and "start_date_projected_period" in self.model_fields_set: - _dict['StartDate_ProjectedPeriod'] = None + if ( + self.start_date_projected_period is None + and "start_date_projected_period" in self.model_fields_set + ): + _dict["StartDate_ProjectedPeriod"] = None # set to None if end_date_projected_period (nullable) is None # and model_fields_set contains the field - if self.end_date_projected_period is None and "end_date_projected_period" in self.model_fields_set: - _dict['EndDate_ProjectedPeriod'] = None + if ( + self.end_date_projected_period is None + and "end_date_projected_period" in self.model_fields_set + ): + _dict["EndDate_ProjectedPeriod"] = None # set to None if start_date_second_projected_period (nullable) is None # and model_fields_set contains the field - if self.start_date_second_projected_period is None and "start_date_second_projected_period" in self.model_fields_set: - _dict['StartDate_SecondProjectedPeriod'] = None + if ( + self.start_date_second_projected_period is None + and "start_date_second_projected_period" in self.model_fields_set + ): + _dict["StartDate_SecondProjectedPeriod"] = None # set to None if end_date_second_projected_period (nullable) is None # and model_fields_set contains the field - if self.end_date_second_projected_period is None and "end_date_second_projected_period" in self.model_fields_set: - _dict['EndDate_SecondProjectedPeriod'] = None + if ( + self.end_date_second_projected_period is None + and "end_date_second_projected_period" in self.model_fields_set + ): + _dict["EndDate_SecondProjectedPeriod"] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict['population'] = None + _dict["population"] = None # set to None if population_percentage (nullable) is None # and model_fields_set contains the field - if self.population_percentage is None and "population_percentage" in self.model_fields_set: - _dict['populationPercentage'] = None + if ( + self.population_percentage is None + and "population_percentage" in self.model_fields_set + ): + _dict["populationPercentage"] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: - _dict['phase3PlusPopulation'] = None + if ( + self.phase3_plus_population is None + and "phase3_plus_population" in self.model_fields_set + ): + _dict["phase3PlusPopulation"] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: - _dict['phase3PlusPercentage'] = None + if ( + self.phase3_plus_percentage is None + and "phase3_plus_percentage" in self.model_fields_set + ): + _dict["phase3PlusPercentage"] = None # set to None if estimated_population (nullable) is None # and model_fields_set contains the field - if self.estimated_population is None and "estimated_population" in self.model_fields_set: - _dict['estimatedPopulation'] = None + if ( + self.estimated_population is None + and "estimated_population" in self.model_fields_set + ): + _dict["estimatedPopulation"] = None # set to None if phase1_population (nullable) is None # and model_fields_set contains the field - if self.phase1_population is None and "phase1_population" in self.model_fields_set: - _dict['phase1Population'] = None + if ( + self.phase1_population is None + and "phase1_population" in self.model_fields_set + ): + _dict["phase1Population"] = None # set to None if phase1_percentage (nullable) is None # and model_fields_set contains the field - if self.phase1_percentage is None and "phase1_percentage" in self.model_fields_set: - _dict['phase1Percentage'] = None + if ( + self.phase1_percentage is None + and "phase1_percentage" in self.model_fields_set + ): + _dict["phase1Percentage"] = None # set to None if phase2_population (nullable) is None # and model_fields_set contains the field - if self.phase2_population is None and "phase2_population" in self.model_fields_set: - _dict['phase2Population'] = None + if ( + self.phase2_population is None + and "phase2_population" in self.model_fields_set + ): + _dict["phase2Population"] = None # set to None if phase2_percentage (nullable) is None # and model_fields_set contains the field - if self.phase2_percentage is None and "phase2_percentage" in self.model_fields_set: - _dict['phase2Percentage'] = None + if ( + self.phase2_percentage is None + and "phase2_percentage" in self.model_fields_set + ): + _dict["phase2Percentage"] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if self.phase3_population is None and "phase3_population" in self.model_fields_set: - _dict['phase3Population'] = None + if ( + self.phase3_population is None + and "phase3_population" in self.model_fields_set + ): + _dict["phase3Population"] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: - _dict['phase3Percentage'] = None + if ( + self.phase3_percentage is None + and "phase3_percentage" in self.model_fields_set + ): + _dict["phase3Percentage"] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if self.phase4_population is None and "phase4_population" in self.model_fields_set: - _dict['phase4Population'] = None + if ( + self.phase4_population is None + and "phase4_population" in self.model_fields_set + ): + _dict["phase4Population"] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: - _dict['phase4Percentage'] = None + if ( + self.phase4_percentage is None + and "phase4_percentage" in self.model_fields_set + ): + _dict["phase4Percentage"] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if self.phase5_population is None and "phase5_population" in self.model_fields_set: - _dict['phase5Population'] = None + if ( + self.phase5_population is None + and "phase5_population" in self.model_fields_set + ): + _dict["phase5Population"] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: - _dict['phase5Percentage'] = None + if ( + self.phase5_percentage is None + and "phase5_percentage" in self.model_fields_set + ): + _dict["phase5Percentage"] = None # set to None if phase3_plus_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population_projected is None and "phase3_plus_population_projected" in self.model_fields_set: - _dict['phase3PlusPopulationProjected'] = None + if ( + self.phase3_plus_population_projected is None + and "phase3_plus_population_projected" in self.model_fields_set + ): + _dict["phase3PlusPopulationProjected"] = None # set to None if phase3_plus_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_percentage_projected is None and "phase3_plus_percentage_projected" in self.model_fields_set: - _dict['phase3PlusPercentageProjected'] = None + if ( + self.phase3_plus_percentage_projected is None + and "phase3_plus_percentage_projected" in self.model_fields_set + ): + _dict["phase3PlusPercentageProjected"] = None # set to None if estimated_population_projected (nullable) is None # and model_fields_set contains the field - if self.estimated_population_projected is None and "estimated_population_projected" in self.model_fields_set: - _dict['estimatedPopulationProjected'] = None + if ( + self.estimated_population_projected is None + and "estimated_population_projected" in self.model_fields_set + ): + _dict["estimatedPopulationProjected"] = None # set to None if phase1_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase1_population_projected is None and "phase1_population_projected" in self.model_fields_set: - _dict['phase1PopulationProjected'] = None + if ( + self.phase1_population_projected is None + and "phase1_population_projected" in self.model_fields_set + ): + _dict["phase1PopulationProjected"] = None # set to None if phase1_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase1_percentage_projected is None and "phase1_percentage_projected" in self.model_fields_set: - _dict['phase1PercentageProjected'] = None + if ( + self.phase1_percentage_projected is None + and "phase1_percentage_projected" in self.model_fields_set + ): + _dict["phase1PercentageProjected"] = None # set to None if phase2_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase2_population_projected is None and "phase2_population_projected" in self.model_fields_set: - _dict['phase2PopulationProjected'] = None + if ( + self.phase2_population_projected is None + and "phase2_population_projected" in self.model_fields_set + ): + _dict["phase2PopulationProjected"] = None # set to None if phase2_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase2_percentage_projected is None and "phase2_percentage_projected" in self.model_fields_set: - _dict['phase2PercentageProjected'] = None + if ( + self.phase2_percentage_projected is None + and "phase2_percentage_projected" in self.model_fields_set + ): + _dict["phase2PercentageProjected"] = None # set to None if phase3_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_population_projected is None and "phase3_population_projected" in self.model_fields_set: - _dict['phase3PopulationProjected'] = None + if ( + self.phase3_population_projected is None + and "phase3_population_projected" in self.model_fields_set + ): + _dict["phase3PopulationProjected"] = None # set to None if phase3_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_percentage_projected is None and "phase3_percentage_projected" in self.model_fields_set: - _dict['phase3PercentageProjected'] = None + if ( + self.phase3_percentage_projected is None + and "phase3_percentage_projected" in self.model_fields_set + ): + _dict["phase3PercentageProjected"] = None # set to None if phase4_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase4_population_projected is None and "phase4_population_projected" in self.model_fields_set: - _dict['phase4PopulationProjected'] = None + if ( + self.phase4_population_projected is None + and "phase4_population_projected" in self.model_fields_set + ): + _dict["phase4PopulationProjected"] = None # set to None if phase4_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase4_percentage_projected is None and "phase4_percentage_projected" in self.model_fields_set: - _dict['phase4PercentageProjected'] = None + if ( + self.phase4_percentage_projected is None + and "phase4_percentage_projected" in self.model_fields_set + ): + _dict["phase4PercentageProjected"] = None # set to None if phase5_population_projected (nullable) is None # and model_fields_set contains the field - if self.phase5_population_projected is None and "phase5_population_projected" in self.model_fields_set: - _dict['phase5PopulationProjected'] = None + if ( + self.phase5_population_projected is None + and "phase5_population_projected" in self.model_fields_set + ): + _dict["phase5PopulationProjected"] = None # set to None if phase5_percentage_projected (nullable) is None # and model_fields_set contains the field - if self.phase5_percentage_projected is None and "phase5_percentage_projected" in self.model_fields_set: - _dict['phase5PercentageProjected'] = None + if ( + self.phase5_percentage_projected is None + and "phase5_percentage_projected" in self.model_fields_set + ): + _dict["phase5PercentageProjected"] = None # set to None if phase3_plus_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population_second_projected is None and "phase3_plus_population_second_projected" in self.model_fields_set: - _dict['phase3PlusPopulationSecondProjected'] = None + if ( + self.phase3_plus_population_second_projected is None + and "phase3_plus_population_second_projected" in self.model_fields_set + ): + _dict["phase3PlusPopulationSecondProjected"] = None # set to None if phase3_plus_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_percentage_second_projected is None and "phase3_plus_percentage_second_projected" in self.model_fields_set: - _dict['phase3PlusPercentageSecondProjected'] = None + if ( + self.phase3_plus_percentage_second_projected is None + and "phase3_plus_percentage_second_projected" in self.model_fields_set + ): + _dict["phase3PlusPercentageSecondProjected"] = None # set to None if estimated_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.estimated_population_second_projected is None and "estimated_population_second_projected" in self.model_fields_set: - _dict['estimatedPopulationSecondProjected'] = None + if ( + self.estimated_population_second_projected is None + and "estimated_population_second_projected" in self.model_fields_set + ): + _dict["estimatedPopulationSecondProjected"] = None # set to None if phase1_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase1_population_second_projected is None and "phase1_population_second_projected" in self.model_fields_set: - _dict['phase1PopulationSecondProjected'] = None + if ( + self.phase1_population_second_projected is None + and "phase1_population_second_projected" in self.model_fields_set + ): + _dict["phase1PopulationSecondProjected"] = None # set to None if phase1_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase1_percentage_second_projected is None and "phase1_percentage_second_projected" in self.model_fields_set: - _dict['phase1PercentageSecondProjected'] = None + if ( + self.phase1_percentage_second_projected is None + and "phase1_percentage_second_projected" in self.model_fields_set + ): + _dict["phase1PercentageSecondProjected"] = None # set to None if phase2_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase2_population_second_projected is None and "phase2_population_second_projected" in self.model_fields_set: - _dict['phase2PopulationSecondProjected'] = None + if ( + self.phase2_population_second_projected is None + and "phase2_population_second_projected" in self.model_fields_set + ): + _dict["phase2PopulationSecondProjected"] = None # set to None if phase2_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase2_percentage_second_projected is None and "phase2_percentage_second_projected" in self.model_fields_set: - _dict['phase2PercentageSecondProjected'] = None + if ( + self.phase2_percentage_second_projected is None + and "phase2_percentage_second_projected" in self.model_fields_set + ): + _dict["phase2PercentageSecondProjected"] = None # set to None if phase3_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_population_second_projected is None and "phase3_population_second_projected" in self.model_fields_set: - _dict['phase3PopulationSecondProjected'] = None + if ( + self.phase3_population_second_projected is None + and "phase3_population_second_projected" in self.model_fields_set + ): + _dict["phase3PopulationSecondProjected"] = None # set to None if phase3_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase3_percentage_second_projected is None and "phase3_percentage_second_projected" in self.model_fields_set: - _dict['phase3PercentageSecondProjected'] = None + if ( + self.phase3_percentage_second_projected is None + and "phase3_percentage_second_projected" in self.model_fields_set + ): + _dict["phase3PercentageSecondProjected"] = None # set to None if phase4_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase4_population_second_projected is None and "phase4_population_second_projected" in self.model_fields_set: - _dict['phase4PopulationSecondProjected'] = None + if ( + self.phase4_population_second_projected is None + and "phase4_population_second_projected" in self.model_fields_set + ): + _dict["phase4PopulationSecondProjected"] = None # set to None if phase4_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase4_percentage_second_projected is None and "phase4_percentage_second_projected" in self.model_fields_set: - _dict['phase4PercentageSecondProjected'] = None + if ( + self.phase4_percentage_second_projected is None + and "phase4_percentage_second_projected" in self.model_fields_set + ): + _dict["phase4PercentageSecondProjected"] = None # set to None if phase5_population_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase5_population_second_projected is None and "phase5_population_second_projected" in self.model_fields_set: - _dict['phase5PopulationSecondProjected'] = None + if ( + self.phase5_population_second_projected is None + and "phase5_population_second_projected" in self.model_fields_set + ): + _dict["phase5PopulationSecondProjected"] = None # set to None if phase5_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if self.phase5_percentage_second_projected is None and "phase5_percentage_second_projected" in self.model_fields_set: - _dict['phase5PercentageSecondProjected'] = None + if ( + self.phase5_percentage_second_projected is None + and "phase5_percentage_second_projected" in self.model_fields_set + ): + _dict["phase5PercentageSecondProjected"] = None return _dict @@ -395,65 +680,99 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "analysisId": obj.get("analysisId"), - "analysisTitle": obj.get("analysisTitle"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "analysisDate": obj.get("analysisDate"), - "StartDate_CurrentPeriod": obj.get("StartDate_CurrentPeriod"), - "EndDate_CurrentPeriod": obj.get("EndDate_CurrentPeriod"), - "StartDate_ProjectedPeriod": obj.get("StartDate_ProjectedPeriod"), - "EndDate_ProjectedPeriod": obj.get("EndDate_ProjectedPeriod"), - "StartDate_SecondProjectedPeriod": obj.get("StartDate_SecondProjectedPeriod"), - "EndDate_SecondProjectedPeriod": obj.get("EndDate_SecondProjectedPeriod"), - "population": obj.get("population"), - "populationPercentage": obj.get("populationPercentage"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "estimatedPopulation": obj.get("estimatedPopulation"), - "phase1Population": obj.get("phase1Population"), - "phase1Percentage": obj.get("phase1Percentage"), - "phase2Population": obj.get("phase2Population"), - "phase2Percentage": obj.get("phase2Percentage"), - "phase3Population": obj.get("phase3Population"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Population": obj.get("phase4Population"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Population": obj.get("phase5Population"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPopulationProjected": obj.get("phase3PlusPopulationProjected"), - "phase3PlusPercentageProjected": obj.get("phase3PlusPercentageProjected"), - "estimatedPopulationProjected": obj.get("estimatedPopulationProjected"), - "phase1PopulationProjected": obj.get("phase1PopulationProjected"), - "phase1PercentageProjected": obj.get("phase1PercentageProjected"), - "phase2PopulationProjected": obj.get("phase2PopulationProjected"), - "phase2PercentageProjected": obj.get("phase2PercentageProjected"), - "phase3PopulationProjected": obj.get("phase3PopulationProjected"), - "phase3PercentageProjected": obj.get("phase3PercentageProjected"), - "phase4PopulationProjected": obj.get("phase4PopulationProjected"), - "phase4PercentageProjected": obj.get("phase4PercentageProjected"), - "phase5PopulationProjected": obj.get("phase5PopulationProjected"), - "phase5PercentageProjected": obj.get("phase5PercentageProjected"), - "phase3PlusPopulationSecondProjected": obj.get("phase3PlusPopulationSecondProjected"), - "phase3PlusPercentageSecondProjected": obj.get("phase3PlusPercentageSecondProjected"), - "estimatedPopulationSecondProjected": obj.get("estimatedPopulationSecondProjected"), - "phase1PopulationSecondProjected": obj.get("phase1PopulationSecondProjected"), - "phase1PercentageSecondProjected": obj.get("phase1PercentageSecondProjected"), - "phase2PopulationSecondProjected": obj.get("phase2PopulationSecondProjected"), - "phase2PercentageSecondProjected": obj.get("phase2PercentageSecondProjected"), - "phase3PopulationSecondProjected": obj.get("phase3PopulationSecondProjected"), - "phase3PercentageSecondProjected": obj.get("phase3PercentageSecondProjected"), - "phase4PopulationSecondProjected": obj.get("phase4PopulationSecondProjected"), - "phase4PercentageSecondProjected": obj.get("phase4PercentageSecondProjected"), - "phase5PopulationSecondProjected": obj.get("phase5PopulationSecondProjected"), - "phase5PercentageSecondProjected": obj.get("phase5PercentageSecondProjected") - }) + _obj = cls.model_validate( + { + "analysisId": obj.get("analysisId"), + "analysisTitle": obj.get("analysisTitle"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "analysisDate": obj.get("analysisDate"), + "StartDate_CurrentPeriod": obj.get("StartDate_CurrentPeriod"), + "EndDate_CurrentPeriod": obj.get("EndDate_CurrentPeriod"), + "StartDate_ProjectedPeriod": obj.get("StartDate_ProjectedPeriod"), + "EndDate_ProjectedPeriod": obj.get("EndDate_ProjectedPeriod"), + "StartDate_SecondProjectedPeriod": obj.get( + "StartDate_SecondProjectedPeriod" + ), + "EndDate_SecondProjectedPeriod": obj.get( + "EndDate_SecondProjectedPeriod" + ), + "population": obj.get("population"), + "populationPercentage": obj.get("populationPercentage"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "estimatedPopulation": obj.get("estimatedPopulation"), + "phase1Population": obj.get("phase1Population"), + "phase1Percentage": obj.get("phase1Percentage"), + "phase2Population": obj.get("phase2Population"), + "phase2Percentage": obj.get("phase2Percentage"), + "phase3Population": obj.get("phase3Population"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Population": obj.get("phase4Population"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Population": obj.get("phase5Population"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPopulationProjected": obj.get( + "phase3PlusPopulationProjected" + ), + "phase3PlusPercentageProjected": obj.get( + "phase3PlusPercentageProjected" + ), + "estimatedPopulationProjected": obj.get("estimatedPopulationProjected"), + "phase1PopulationProjected": obj.get("phase1PopulationProjected"), + "phase1PercentageProjected": obj.get("phase1PercentageProjected"), + "phase2PopulationProjected": obj.get("phase2PopulationProjected"), + "phase2PercentageProjected": obj.get("phase2PercentageProjected"), + "phase3PopulationProjected": obj.get("phase3PopulationProjected"), + "phase3PercentageProjected": obj.get("phase3PercentageProjected"), + "phase4PopulationProjected": obj.get("phase4PopulationProjected"), + "phase4PercentageProjected": obj.get("phase4PercentageProjected"), + "phase5PopulationProjected": obj.get("phase5PopulationProjected"), + "phase5PercentageProjected": obj.get("phase5PercentageProjected"), + "phase3PlusPopulationSecondProjected": obj.get( + "phase3PlusPopulationSecondProjected" + ), + "phase3PlusPercentageSecondProjected": obj.get( + "phase3PlusPercentageSecondProjected" + ), + "estimatedPopulationSecondProjected": obj.get( + "estimatedPopulationSecondProjected" + ), + "phase1PopulationSecondProjected": obj.get( + "phase1PopulationSecondProjected" + ), + "phase1PercentageSecondProjected": obj.get( + "phase1PercentageSecondProjected" + ), + "phase2PopulationSecondProjected": obj.get( + "phase2PopulationSecondProjected" + ), + "phase2PercentageSecondProjected": obj.get( + "phase2PercentageSecondProjected" + ), + "phase3PopulationSecondProjected": obj.get( + "phase3PopulationSecondProjected" + ), + "phase3PercentageSecondProjected": obj.get( + "phase3PercentageSecondProjected" + ), + "phase4PopulationSecondProjected": obj.get( + "phase4PopulationSecondProjected" + ), + "phase4PercentageSecondProjected": obj.get( + "phase4PercentageSecondProjected" + ), + "phase5PopulationSecondProjected": obj.get( + "phase5PopulationSecondProjected" + ), + "phase5PercentageSecondProjected": obj.get( + "phase5PercentageSecondProjected" + ), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py index 2e952f6..4fceb9d 100644 --- a/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py +++ b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class IpcHistoricalDatumDtoPagedResult(BaseModel): """ IpcHistoricalDatumDtoPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[IpcHistoricalDatumDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class IpcHistoricalDatumDtoPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [IpcHistoricalDatumDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + IpcHistoricalDatumDto.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py index a27e563..260dec4 100644 --- a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,20 +22,43 @@ from typing import Optional, Set from typing_extensions import Self + class IpcchAndEquivalentPeaksDTO(BaseModel): """ IpcchAndEquivalentPeaksDTO - """ # noqa: E501 - regional_bureau_id: Optional[StrictInt] = Field(default=None, alias="regionalBureauID") - regional_bureau_name: Optional[StrictStr] = Field(default=None, alias="regionalBureauName") + """ # noqa: E501 + + regional_bureau_id: Optional[StrictInt] = Field( + default=None, alias="regionalBureauID" + ) + regional_bureau_name: Optional[StrictStr] = Field( + default=None, alias="regionalBureauName" + ) iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - phase3_population: Optional[StrictInt] = Field(default=None, alias="phase3Population") - phase4_population: Optional[StrictInt] = Field(default=None, alias="phase4Population") - phase5_population: Optional[StrictInt] = Field(default=None, alias="phase5Population") - phase3_plus_population: Optional[StrictInt] = Field(default=None, alias="phase3PlusPopulation") + phase3_population: Optional[StrictInt] = Field( + default=None, alias="phase3Population" + ) + phase4_population: Optional[StrictInt] = Field( + default=None, alias="phase4Population" + ) + phase5_population: Optional[StrictInt] = Field( + default=None, alias="phase5Population" + ) + phase3_plus_population: Optional[StrictInt] = Field( + default=None, alias="phase3PlusPopulation" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["regionalBureauID", "regionalBureauName", "iso3Alpha3", "countryName", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation"] + __properties: ClassVar[List[str]] = [ + "regionalBureauID", + "regionalBureauName", + "iso3Alpha3", + "countryName", + "phase3Population", + "phase4Population", + "phase5Population", + "phase3PlusPopulation", + ] model_config = ConfigDict( populate_by_name=True, @@ -44,7 +66,6 @@ class IpcchAndEquivalentPeaksDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,9 +91,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -86,43 +109,61 @@ def to_dict(self) -> Dict[str, Any]: # set to None if regional_bureau_id (nullable) is None # and model_fields_set contains the field - if self.regional_bureau_id is None and "regional_bureau_id" in self.model_fields_set: - _dict['regionalBureauID'] = None + if ( + self.regional_bureau_id is None + and "regional_bureau_id" in self.model_fields_set + ): + _dict["regionalBureauID"] = None # set to None if regional_bureau_name (nullable) is None # and model_fields_set contains the field - if self.regional_bureau_name is None and "regional_bureau_name" in self.model_fields_set: - _dict['regionalBureauName'] = None + if ( + self.regional_bureau_name is None + and "regional_bureau_name" in self.model_fields_set + ): + _dict["regionalBureauName"] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if self.phase3_population is None and "phase3_population" in self.model_fields_set: - _dict['phase3Population'] = None + if ( + self.phase3_population is None + and "phase3_population" in self.model_fields_set + ): + _dict["phase3Population"] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if self.phase4_population is None and "phase4_population" in self.model_fields_set: - _dict['phase4Population'] = None + if ( + self.phase4_population is None + and "phase4_population" in self.model_fields_set + ): + _dict["phase4Population"] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if self.phase5_population is None and "phase5_population" in self.model_fields_set: - _dict['phase5Population'] = None + if ( + self.phase5_population is None + and "phase5_population" in self.model_fields_set + ): + _dict["phase5Population"] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: - _dict['phase3PlusPopulation'] = None + if ( + self.phase3_plus_population is None + and "phase3_plus_population" in self.model_fields_set + ): + _dict["phase3PlusPopulation"] = None return _dict @@ -135,21 +176,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "regionalBureauID": obj.get("regionalBureauID"), - "regionalBureauName": obj.get("regionalBureauName"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation") - }) + _obj = cls.model_validate( + { + "regionalBureauID": obj.get("regionalBureauID"), + "regionalBureauName": obj.get("regionalBureauName"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py index 362cad9..81cbee1 100644 --- a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,14 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( + IpcchAndEquivalentPeaksDTO, +) from typing import Optional, Set from typing_extensions import Self + class IpcchAndEquivalentPeaksDTOPagedResult(BaseModel): """ IpcchAndEquivalentPeaksDTOPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[IpcchAndEquivalentPeaksDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +43,6 @@ class IpcchAndEquivalentPeaksDTOPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +69,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +109,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [IpcchAndEquivalentPeaksDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + IpcchAndEquivalentPeaksDTO.from_dict(_item) + for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_base_dto.py b/data_bridges_client/models/ipcch_base_dto.py index 134699d..0a5e3a3 100644 --- a/data_bridges_client/models/ipcch_base_dto.py +++ b/data_bridges_client/models/ipcch_base_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,35 +23,89 @@ from typing import Optional, Set from typing_extensions import Self + class IpcchBaseDto(BaseModel): """ IpcchBaseDto - """ # noqa: E501 + """ # noqa: E501 + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") - population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") + population_group_id: Optional[StrictInt] = Field( + default=None, alias="populationGroupId" + ) + population_group_name: Optional[StrictStr] = Field( + default=None, alias="populationGroupName" + ) analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") period_start: Optional[datetime] = Field(default=None, alias="periodStart") period_end: Optional[datetime] = Field(default=None, alias="periodEnd") period_type: Optional[StrictStr] = Field(default=None, alias="periodType") population: Optional[Union[StrictFloat, StrictInt]] = None - population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") - population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") - phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") - phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") + population_analysed: Optional[StrictInt] = Field( + default=None, alias="populationAnalysed" + ) + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="populationAnalysedPercentage" + ) + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Population" + ) + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Population" + ) + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Population" + ) + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPopulation" + ) + phase4_plus_population: Optional[StrictInt] = Field( + default=None, alias="phase4PlusPopulation" + ) + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Percentage" + ) + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Percentage" + ) + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Percentage" + ) + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPercentage" + ) + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PlusPercentage" + ) data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource"] + __properties: ClassVar[List[str]] = [ + "iso3Alpha3", + "countryName", + "populationGroupId", + "populationGroupName", + "analysisTitle", + "analysisDate", + "periodStart", + "periodEnd", + "periodType", + "population", + "populationAnalysed", + "populationAnalysedPercentage", + "phase3Population", + "phase4Population", + "phase5Population", + "phase3PlusPopulation", + "phase4PlusPopulation", + "phase3Percentage", + "phase4Percentage", + "phase5Percentage", + "phase3PlusPercentage", + "phase4PlusPercentage", + "dataSource", + ] model_config = ConfigDict( populate_by_name=True, @@ -60,7 +113,6 @@ class IpcchBaseDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -86,9 +138,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -103,112 +157,151 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if population_group_name (nullable) is None # and model_fields_set contains the field - if self.population_group_name is None and "population_group_name" in self.model_fields_set: - _dict['populationGroupName'] = None + if ( + self.population_group_name is None + and "population_group_name" in self.model_fields_set + ): + _dict["populationGroupName"] = None # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict['analysisTitle'] = None + _dict["analysisTitle"] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict['analysisDate'] = None + _dict["analysisDate"] = None # set to None if period_start (nullable) is None # and model_fields_set contains the field if self.period_start is None and "period_start" in self.model_fields_set: - _dict['periodStart'] = None + _dict["periodStart"] = None # set to None if period_end (nullable) is None # and model_fields_set contains the field if self.period_end is None and "period_end" in self.model_fields_set: - _dict['periodEnd'] = None + _dict["periodEnd"] = None # set to None if period_type (nullable) is None # and model_fields_set contains the field if self.period_type is None and "period_type" in self.model_fields_set: - _dict['periodType'] = None + _dict["periodType"] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict['population'] = None + _dict["population"] = None # set to None if population_analysed (nullable) is None # and model_fields_set contains the field - if self.population_analysed is None and "population_analysed" in self.model_fields_set: - _dict['populationAnalysed'] = None + if ( + self.population_analysed is None + and "population_analysed" in self.model_fields_set + ): + _dict["populationAnalysed"] = None # set to None if population_analysed_percentage (nullable) is None # and model_fields_set contains the field - if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: - _dict['populationAnalysedPercentage'] = None + if ( + self.population_analysed_percentage is None + and "population_analysed_percentage" in self.model_fields_set + ): + _dict["populationAnalysedPercentage"] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if self.phase3_population is None and "phase3_population" in self.model_fields_set: - _dict['phase3Population'] = None + if ( + self.phase3_population is None + and "phase3_population" in self.model_fields_set + ): + _dict["phase3Population"] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if self.phase4_population is None and "phase4_population" in self.model_fields_set: - _dict['phase4Population'] = None + if ( + self.phase4_population is None + and "phase4_population" in self.model_fields_set + ): + _dict["phase4Population"] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if self.phase5_population is None and "phase5_population" in self.model_fields_set: - _dict['phase5Population'] = None + if ( + self.phase5_population is None + and "phase5_population" in self.model_fields_set + ): + _dict["phase5Population"] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: - _dict['phase3PlusPopulation'] = None + if ( + self.phase3_plus_population is None + and "phase3_plus_population" in self.model_fields_set + ): + _dict["phase3PlusPopulation"] = None # set to None if phase4_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: - _dict['phase4PlusPopulation'] = None + if ( + self.phase4_plus_population is None + and "phase4_plus_population" in self.model_fields_set + ): + _dict["phase4PlusPopulation"] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: - _dict['phase3Percentage'] = None + if ( + self.phase3_percentage is None + and "phase3_percentage" in self.model_fields_set + ): + _dict["phase3Percentage"] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: - _dict['phase4Percentage'] = None + if ( + self.phase4_percentage is None + and "phase4_percentage" in self.model_fields_set + ): + _dict["phase4Percentage"] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: - _dict['phase5Percentage'] = None + if ( + self.phase5_percentage is None + and "phase5_percentage" in self.model_fields_set + ): + _dict["phase5Percentage"] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: - _dict['phase3PlusPercentage'] = None + if ( + self.phase3_plus_percentage is None + and "phase3_plus_percentage" in self.model_fields_set + ): + _dict["phase3PlusPercentage"] = None # set to None if phase4_plus_percentage (nullable) is None # and model_fields_set contains the field - if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: - _dict['phase4PlusPercentage'] = None + if ( + self.phase4_plus_percentage is None + and "phase4_plus_percentage" in self.model_fields_set + ): + _dict["phase4PlusPercentage"] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict['dataSource'] = None + _dict["dataSource"] = None return _dict @@ -221,36 +314,36 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "populationGroupId": obj.get("populationGroupId"), - "populationGroupName": obj.get("populationGroupName"), - "analysisTitle": obj.get("analysisTitle"), - "analysisDate": obj.get("analysisDate"), - "periodStart": obj.get("periodStart"), - "periodEnd": obj.get("periodEnd"), - "periodType": obj.get("periodType"), - "population": obj.get("population"), - "populationAnalysed": obj.get("populationAnalysed"), - "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase4PlusPopulation": obj.get("phase4PlusPopulation"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "phase4PlusPercentage": obj.get("phase4PlusPercentage"), - "dataSource": obj.get("dataSource") - }) + _obj = cls.model_validate( + { + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_base_dto_paged_result.py b/data_bridges_client/models/ipcch_base_dto_paged_result.py index cc2ca2b..7653d1e 100644 --- a/data_bridges_client/models/ipcch_base_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_base_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class IpcchBaseDtoPagedResult(BaseModel): """ IpcchBaseDtoPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[IpcchBaseDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class IpcchBaseDtoPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [IpcchBaseDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [IpcchBaseDto.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_peaks_dto.py b/data_bridges_client/models/ipcch_peaks_dto.py index abdcf69..c705625 100644 --- a/data_bridges_client/models/ipcch_peaks_dto.py +++ b/data_bridges_client/models/ipcch_peaks_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,36 +23,91 @@ from typing import Optional, Set from typing_extensions import Self + class IpcchPeaksDto(BaseModel): """ IpcchPeaksDto - """ # noqa: E501 + """ # noqa: E501 + iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") - population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") + population_group_id: Optional[StrictInt] = Field( + default=None, alias="populationGroupId" + ) + population_group_name: Optional[StrictStr] = Field( + default=None, alias="populationGroupName" + ) analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") period_start: Optional[datetime] = Field(default=None, alias="periodStart") period_end: Optional[datetime] = Field(default=None, alias="periodEnd") period_type: Optional[StrictStr] = Field(default=None, alias="periodType") population: Optional[Union[StrictFloat, StrictInt]] = None - population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") - population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") - phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") - phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") + population_analysed: Optional[StrictInt] = Field( + default=None, alias="populationAnalysed" + ) + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="populationAnalysedPercentage" + ) + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Population" + ) + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Population" + ) + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Population" + ) + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPopulation" + ) + phase4_plus_population: Optional[StrictInt] = Field( + default=None, alias="phase4PlusPopulation" + ) + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3Percentage" + ) + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4Percentage" + ) + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase5Percentage" + ) + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase3PlusPercentage" + ) + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="phase4PlusPercentage" + ) data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") reference_year: Optional[StrictInt] = Field(default=None, alias="referenceYear") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource", "referenceYear"] + __properties: ClassVar[List[str]] = [ + "iso3Alpha3", + "countryName", + "populationGroupId", + "populationGroupName", + "analysisTitle", + "analysisDate", + "periodStart", + "periodEnd", + "periodType", + "population", + "populationAnalysed", + "populationAnalysedPercentage", + "phase3Population", + "phase4Population", + "phase5Population", + "phase3PlusPopulation", + "phase4PlusPopulation", + "phase3Percentage", + "phase4Percentage", + "phase5Percentage", + "phase3PlusPercentage", + "phase4PlusPercentage", + "dataSource", + "referenceYear", + ] model_config = ConfigDict( populate_by_name=True, @@ -61,7 +115,6 @@ class IpcchPeaksDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -87,9 +140,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -104,112 +159,151 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if population_group_name (nullable) is None # and model_fields_set contains the field - if self.population_group_name is None and "population_group_name" in self.model_fields_set: - _dict['populationGroupName'] = None + if ( + self.population_group_name is None + and "population_group_name" in self.model_fields_set + ): + _dict["populationGroupName"] = None # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict['analysisTitle'] = None + _dict["analysisTitle"] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict['analysisDate'] = None + _dict["analysisDate"] = None # set to None if period_start (nullable) is None # and model_fields_set contains the field if self.period_start is None and "period_start" in self.model_fields_set: - _dict['periodStart'] = None + _dict["periodStart"] = None # set to None if period_end (nullable) is None # and model_fields_set contains the field if self.period_end is None and "period_end" in self.model_fields_set: - _dict['periodEnd'] = None + _dict["periodEnd"] = None # set to None if period_type (nullable) is None # and model_fields_set contains the field if self.period_type is None and "period_type" in self.model_fields_set: - _dict['periodType'] = None + _dict["periodType"] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict['population'] = None + _dict["population"] = None # set to None if population_analysed (nullable) is None # and model_fields_set contains the field - if self.population_analysed is None and "population_analysed" in self.model_fields_set: - _dict['populationAnalysed'] = None + if ( + self.population_analysed is None + and "population_analysed" in self.model_fields_set + ): + _dict["populationAnalysed"] = None # set to None if population_analysed_percentage (nullable) is None # and model_fields_set contains the field - if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: - _dict['populationAnalysedPercentage'] = None + if ( + self.population_analysed_percentage is None + and "population_analysed_percentage" in self.model_fields_set + ): + _dict["populationAnalysedPercentage"] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if self.phase3_population is None and "phase3_population" in self.model_fields_set: - _dict['phase3Population'] = None + if ( + self.phase3_population is None + and "phase3_population" in self.model_fields_set + ): + _dict["phase3Population"] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if self.phase4_population is None and "phase4_population" in self.model_fields_set: - _dict['phase4Population'] = None + if ( + self.phase4_population is None + and "phase4_population" in self.model_fields_set + ): + _dict["phase4Population"] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if self.phase5_population is None and "phase5_population" in self.model_fields_set: - _dict['phase5Population'] = None + if ( + self.phase5_population is None + and "phase5_population" in self.model_fields_set + ): + _dict["phase5Population"] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: - _dict['phase3PlusPopulation'] = None + if ( + self.phase3_plus_population is None + and "phase3_plus_population" in self.model_fields_set + ): + _dict["phase3PlusPopulation"] = None # set to None if phase4_plus_population (nullable) is None # and model_fields_set contains the field - if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: - _dict['phase4PlusPopulation'] = None + if ( + self.phase4_plus_population is None + and "phase4_plus_population" in self.model_fields_set + ): + _dict["phase4PlusPopulation"] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: - _dict['phase3Percentage'] = None + if ( + self.phase3_percentage is None + and "phase3_percentage" in self.model_fields_set + ): + _dict["phase3Percentage"] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: - _dict['phase4Percentage'] = None + if ( + self.phase4_percentage is None + and "phase4_percentage" in self.model_fields_set + ): + _dict["phase4Percentage"] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: - _dict['phase5Percentage'] = None + if ( + self.phase5_percentage is None + and "phase5_percentage" in self.model_fields_set + ): + _dict["phase5Percentage"] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: - _dict['phase3PlusPercentage'] = None + if ( + self.phase3_plus_percentage is None + and "phase3_plus_percentage" in self.model_fields_set + ): + _dict["phase3PlusPercentage"] = None # set to None if phase4_plus_percentage (nullable) is None # and model_fields_set contains the field - if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: - _dict['phase4PlusPercentage'] = None + if ( + self.phase4_plus_percentage is None + and "phase4_plus_percentage" in self.model_fields_set + ): + _dict["phase4PlusPercentage"] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict['dataSource'] = None + _dict["dataSource"] = None return _dict @@ -222,37 +316,37 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "populationGroupId": obj.get("populationGroupId"), - "populationGroupName": obj.get("populationGroupName"), - "analysisTitle": obj.get("analysisTitle"), - "analysisDate": obj.get("analysisDate"), - "periodStart": obj.get("periodStart"), - "periodEnd": obj.get("periodEnd"), - "periodType": obj.get("periodType"), - "population": obj.get("population"), - "populationAnalysed": obj.get("populationAnalysed"), - "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase4PlusPopulation": obj.get("phase4PlusPopulation"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "phase4PlusPercentage": obj.get("phase4PlusPercentage"), - "dataSource": obj.get("dataSource"), - "referenceYear": obj.get("referenceYear") - }) + _obj = cls.model_validate( + { + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource"), + "referenceYear": obj.get("referenceYear"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/ipcch_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py index 2328d38..74ca6b1 100644 --- a/data_bridges_client/models/ipcch_peaks_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class IpcchPeaksDtoPagedResult(BaseModel): """ IpcchPeaksDtoPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[IpcchPeaksDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class IpcchPeaksDtoPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [IpcchPeaksDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [IpcchPeaksDto.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/key_name_dto.py b/data_bridges_client/models/key_name_dto.py index 5faf2ca..bbb6326 100644 --- a/data_bridges_client/models/key_name_dto.py +++ b/data_bridges_client/models/key_name_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class KeyNameDto(BaseModel): """ KeyNameDto - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictInt] = None name: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} @@ -38,7 +39,6 @@ class KeyNameDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +64,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None return _dict @@ -94,15 +96,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name") - }) + _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/list_item_dto.py b/data_bridges_client/models/list_item_dto.py index 9a49452..fe4c833 100644 --- a/data_bridges_client/models/list_item_dto.py +++ b/data_bridges_client/models/list_item_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListItemDto(BaseModel): """ ListItemDto - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictInt] = None name: Optional[StrictStr] label: Optional[StrictStr] @@ -39,7 +40,6 @@ class ListItemDto(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -82,12 +84,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict['label'] = None + _dict["label"] = None return _dict @@ -100,16 +102,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "label": obj.get("label") - }) + _obj = cls.model_validate( + {"id": obj.get("id"), "name": obj.get("name"), "label": obj.get("label")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/market_dto.py b/data_bridges_client/models/market_dto.py index 15ba568..2b6dede 100644 --- a/data_bridges_client/models/market_dto.py +++ b/data_bridges_client/models/market_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,21 +22,61 @@ from typing import Optional, Set from typing_extensions import Self + class MarketDTO(BaseModel): """ MarketDTO - """ # noqa: E501 - market_id: Optional[StrictInt] = Field(default=None, description="The internal ID of the market", alias="marketId") - market_name: Optional[StrictStr] = Field(default=None, description="The name of the market", alias="marketName") - market_local_name: Optional[StrictStr] = Field(default=None, description="The local name of the market", alias="marketLocalName") - market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The decimal latitude", alias="marketLatitude") - market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The decimal longitude", alias="marketLongitude") - admin1_name: Optional[StrictStr] = Field(default=None, description="The name of the first level administrative division where the market is placed", alias="admin1Name") - admin1_code: Optional[StrictInt] = Field(default=None, description="The code of the first level administrative division where the market is placed", alias="admin1Code") - admin2_name: Optional[StrictStr] = Field(default=None, description="The name of the second level administrative division where the market is placed", alias="admin2Name") - admin2_code: Optional[StrictInt] = Field(default=None, description="The code of the second level administrative division where the market is placed", alias="admin2Code") + """ # noqa: E501 + + market_id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the market", alias="marketId" + ) + market_name: Optional[StrictStr] = Field( + default=None, description="The name of the market", alias="marketName" + ) + market_local_name: Optional[StrictStr] = Field( + default=None, + description="The local name of the market", + alias="marketLocalName", + ) + market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="The decimal latitude", alias="marketLatitude" + ) + market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="The decimal longitude", alias="marketLongitude" + ) + admin1_name: Optional[StrictStr] = Field( + default=None, + description="The name of the first level administrative division where the market is placed", + alias="admin1Name", + ) + admin1_code: Optional[StrictInt] = Field( + default=None, + description="The code of the first level administrative division where the market is placed", + alias="admin1Code", + ) + admin2_name: Optional[StrictStr] = Field( + default=None, + description="The name of the second level administrative division where the market is placed", + alias="admin2Name", + ) + admin2_code: Optional[StrictInt] = Field( + default=None, + description="The code of the second level administrative division where the market is placed", + alias="admin2Code", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["marketId", "marketName", "marketLocalName", "marketLatitude", "marketLongitude", "admin1Name", "admin1Code", "admin2Name", "admin2Code"] + __properties: ClassVar[List[str]] = [ + "marketId", + "marketName", + "marketLocalName", + "marketLatitude", + "marketLongitude", + "admin1Name", + "admin1Code", + "admin2Name", + "admin2Code", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +84,6 @@ class MarketDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,9 +109,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -88,42 +128,48 @@ def to_dict(self) -> Dict[str, Any]: # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if market_local_name (nullable) is None # and model_fields_set contains the field - if self.market_local_name is None and "market_local_name" in self.model_fields_set: - _dict['marketLocalName'] = None + if ( + self.market_local_name is None + and "market_local_name" in self.model_fields_set + ): + _dict["marketLocalName"] = None # set to None if market_latitude (nullable) is None # and model_fields_set contains the field if self.market_latitude is None and "market_latitude" in self.model_fields_set: - _dict['marketLatitude'] = None + _dict["marketLatitude"] = None # set to None if market_longitude (nullable) is None # and model_fields_set contains the field - if self.market_longitude is None and "market_longitude" in self.model_fields_set: - _dict['marketLongitude'] = None + if ( + self.market_longitude is None + and "market_longitude" in self.model_fields_set + ): + _dict["marketLongitude"] = None # set to None if admin1_name (nullable) is None # and model_fields_set contains the field if self.admin1_name is None and "admin1_name" in self.model_fields_set: - _dict['admin1Name'] = None + _dict["admin1Name"] = None # set to None if admin1_code (nullable) is None # and model_fields_set contains the field if self.admin1_code is None and "admin1_code" in self.model_fields_set: - _dict['admin1Code'] = None + _dict["admin1Code"] = None # set to None if admin2_name (nullable) is None # and model_fields_set contains the field if self.admin2_name is None and "admin2_name" in self.model_fields_set: - _dict['admin2Name'] = None + _dict["admin2Name"] = None # set to None if admin2_code (nullable) is None # and model_fields_set contains the field if self.admin2_code is None and "admin2_code" in self.model_fields_set: - _dict['admin2Code'] = None + _dict["admin2Code"] = None return _dict @@ -136,22 +182,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "marketId": obj.get("marketId"), - "marketName": obj.get("marketName"), - "marketLocalName": obj.get("marketLocalName"), - "marketLatitude": obj.get("marketLatitude"), - "marketLongitude": obj.get("marketLongitude"), - "admin1Name": obj.get("admin1Name"), - "admin1Code": obj.get("admin1Code"), - "admin2Name": obj.get("admin2Name"), - "admin2Code": obj.get("admin2Code") - }) + _obj = cls.model_validate( + { + "marketId": obj.get("marketId"), + "marketName": obj.get("marketName"), + "marketLocalName": obj.get("marketLocalName"), + "marketLatitude": obj.get("marketLatitude"), + "marketLongitude": obj.get("marketLongitude"), + "admin1Name": obj.get("admin1Name"), + "admin1Code": obj.get("admin1Code"), + "admin2Name": obj.get("admin2Name"), + "admin2Code": obj.get("admin2Code"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/market_geo_json_root.py b/data_bridges_client/models/market_geo_json_root.py index 455eeaa..4d1f72f 100644 --- a/data_bridges_client/models/market_geo_json_root.py +++ b/data_bridges_client/models/market_geo_json_root.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class MarketGeoJsonRoot(BaseModel): """ MarketGeoJsonRoot - """ # noqa: E501 + """ # noqa: E501 + type: Optional[StrictStr] = None features: Optional[List[Feature]] = None bbox: Optional[Any] = None @@ -40,7 +41,6 @@ class MarketGeoJsonRoot(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +66,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_features in self.features: if _item_features: _items.append(_item_features.to_dict()) - _dict['features'] = _items + _dict["features"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,17 +92,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None # set to None if features (nullable) is None # and model_fields_set contains the field if self.features is None and "features" in self.model_fields_set: - _dict['features'] = None + _dict["features"] = None # set to None if bbox (nullable) is None # and model_fields_set contains the field if self.bbox is None and "bbox" in self.model_fields_set: - _dict['bbox'] = None + _dict["bbox"] = None return _dict @@ -113,16 +115,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type"), - "features": [Feature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None, - "bbox": obj.get("bbox") - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "features": [Feature.from_dict(_item) for _item in obj["features"]] + if obj.get("features") is not None + else None, + "bbox": obj.get("bbox"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/mfi_processed_data_dto.py b/data_bridges_client/models/mfi_processed_data_dto.py index 8b707e2..f6a4980 100644 --- a/data_bridges_client/models/mfi_processed_data_dto.py +++ b/data_bridges_client/models/mfi_processed_data_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,19 +23,33 @@ from typing import Optional, Set from typing_extensions import Self + class MFIProcessedDataDTO(BaseModel): """ MFIProcessedDataDTO - """ # noqa: E501 - survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") - start_date: Optional[datetime] = Field(default=None, description="The Id of the Survey status", alias="startDate") + """ # noqa: E501 + + survey_id: Optional[StrictInt] = Field( + default=None, description="The Id of the Survey", alias="surveyID" + ) + start_date: Optional[datetime] = Field( + default=None, description="The Id of the Survey status", alias="startDate" + ) end_date: Optional[datetime] = Field(default=None, alias="endDate") market_id: Optional[StrictInt] = Field(default=None, alias="marketID") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") - market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="marketLatitude") - market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="marketLongitude") - regional_bureau_id: Optional[StrictInt] = Field(default=None, alias="regionalBureauID") - regional_bureau_name: Optional[StrictStr] = Field(default=None, alias="regionalBureauName") + market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="marketLatitude" + ) + market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="marketLongitude" + ) + regional_bureau_id: Optional[StrictInt] = Field( + default=None, alias="regionalBureauID" + ) + regional_bureau_name: Optional[StrictStr] = Field( + default=None, alias="regionalBureauName" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") adm1_code: Optional[StrictInt] = Field(default=None, alias="adm1Code") @@ -50,12 +63,45 @@ class MFIProcessedDataDTO(BaseModel): variable_id: Optional[StrictInt] = Field(default=None, alias="variableID") variable_name: Optional[StrictStr] = Field(default=None, alias="variableName") variable_label: Optional[StrictStr] = Field(default=None, alias="variableLabel") - output_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="outputValue") - traders_sample_size: Optional[StrictInt] = Field(default=None, alias="tradersSampleSize") + output_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="outputValue" + ) + traders_sample_size: Optional[StrictInt] = Field( + default=None, alias="tradersSampleSize" + ) base_xls_form_id: Optional[StrictInt] = Field(default=None, alias="baseXlsFormID") - base_xls_form_name: Optional[StrictStr] = Field(default=None, alias="baseXlsFormName") + base_xls_form_name: Optional[StrictStr] = Field( + default=None, alias="baseXlsFormName" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyID", "startDate", "endDate", "marketID", "marketName", "marketLatitude", "marketLongitude", "regionalBureauID", "regionalBureauName", "adm0Code", "adm0Name", "adm1Code", "adm1Name", "adm2Code", "adm2Name", "levelID", "levelName", "dimensionID", "dimensionName", "variableID", "variableName", "variableLabel", "outputValue", "tradersSampleSize", "baseXlsFormID", "baseXlsFormName"] + __properties: ClassVar[List[str]] = [ + "surveyID", + "startDate", + "endDate", + "marketID", + "marketName", + "marketLatitude", + "marketLongitude", + "regionalBureauID", + "regionalBureauName", + "adm0Code", + "adm0Name", + "adm1Code", + "adm1Name", + "adm2Code", + "adm2Name", + "levelID", + "levelName", + "dimensionID", + "dimensionName", + "variableID", + "variableName", + "variableLabel", + "outputValue", + "tradersSampleSize", + "baseXlsFormID", + "baseXlsFormName", + ] model_config = ConfigDict( populate_by_name=True, @@ -63,7 +109,6 @@ class MFIProcessedDataDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -89,9 +134,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -106,82 +153,94 @@ def to_dict(self) -> Dict[str, Any]: # set to None if start_date (nullable) is None # and model_fields_set contains the field if self.start_date is None and "start_date" in self.model_fields_set: - _dict['startDate'] = None + _dict["startDate"] = None # set to None if end_date (nullable) is None # and model_fields_set contains the field if self.end_date is None and "end_date" in self.model_fields_set: - _dict['endDate'] = None + _dict["endDate"] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if market_latitude (nullable) is None # and model_fields_set contains the field if self.market_latitude is None and "market_latitude" in self.model_fields_set: - _dict['marketLatitude'] = None + _dict["marketLatitude"] = None # set to None if market_longitude (nullable) is None # and model_fields_set contains the field - if self.market_longitude is None and "market_longitude" in self.model_fields_set: - _dict['marketLongitude'] = None + if ( + self.market_longitude is None + and "market_longitude" in self.model_fields_set + ): + _dict["marketLongitude"] = None # set to None if regional_bureau_name (nullable) is None # and model_fields_set contains the field - if self.regional_bureau_name is None and "regional_bureau_name" in self.model_fields_set: - _dict['regionalBureauName'] = None + if ( + self.regional_bureau_name is None + and "regional_bureau_name" in self.model_fields_set + ): + _dict["regionalBureauName"] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict['adm0Name'] = None + _dict["adm0Name"] = None # set to None if adm1_name (nullable) is None # and model_fields_set contains the field if self.adm1_name is None and "adm1_name" in self.model_fields_set: - _dict['adm1Name'] = None + _dict["adm1Name"] = None # set to None if adm2_name (nullable) is None # and model_fields_set contains the field if self.adm2_name is None and "adm2_name" in self.model_fields_set: - _dict['adm2Name'] = None + _dict["adm2Name"] = None # set to None if level_name (nullable) is None # and model_fields_set contains the field if self.level_name is None and "level_name" in self.model_fields_set: - _dict['levelName'] = None + _dict["levelName"] = None # set to None if dimension_name (nullable) is None # and model_fields_set contains the field if self.dimension_name is None and "dimension_name" in self.model_fields_set: - _dict['dimensionName'] = None + _dict["dimensionName"] = None # set to None if variable_name (nullable) is None # and model_fields_set contains the field if self.variable_name is None and "variable_name" in self.model_fields_set: - _dict['variableName'] = None + _dict["variableName"] = None # set to None if variable_label (nullable) is None # and model_fields_set contains the field if self.variable_label is None and "variable_label" in self.model_fields_set: - _dict['variableLabel'] = None + _dict["variableLabel"] = None # set to None if output_value (nullable) is None # and model_fields_set contains the field if self.output_value is None and "output_value" in self.model_fields_set: - _dict['outputValue'] = None + _dict["outputValue"] = None # set to None if traders_sample_size (nullable) is None # and model_fields_set contains the field - if self.traders_sample_size is None and "traders_sample_size" in self.model_fields_set: - _dict['tradersSampleSize'] = None + if ( + self.traders_sample_size is None + and "traders_sample_size" in self.model_fields_set + ): + _dict["tradersSampleSize"] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: - _dict['baseXlsFormName'] = None + if ( + self.base_xls_form_name is None + and "base_xls_form_name" in self.model_fields_set + ): + _dict["baseXlsFormName"] = None return _dict @@ -194,39 +253,39 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyID": obj.get("surveyID"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "marketID": obj.get("marketID"), - "marketName": obj.get("marketName"), - "marketLatitude": obj.get("marketLatitude"), - "marketLongitude": obj.get("marketLongitude"), - "regionalBureauID": obj.get("regionalBureauID"), - "regionalBureauName": obj.get("regionalBureauName"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "adm1Code": obj.get("adm1Code"), - "adm1Name": obj.get("adm1Name"), - "adm2Code": obj.get("adm2Code"), - "adm2Name": obj.get("adm2Name"), - "levelID": obj.get("levelID"), - "levelName": obj.get("levelName"), - "dimensionID": obj.get("dimensionID"), - "dimensionName": obj.get("dimensionName"), - "variableID": obj.get("variableID"), - "variableName": obj.get("variableName"), - "variableLabel": obj.get("variableLabel"), - "outputValue": obj.get("outputValue"), - "tradersSampleSize": obj.get("tradersSampleSize"), - "baseXlsFormID": obj.get("baseXlsFormID"), - "baseXlsFormName": obj.get("baseXlsFormName") - }) + _obj = cls.model_validate( + { + "surveyID": obj.get("surveyID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "marketID": obj.get("marketID"), + "marketName": obj.get("marketName"), + "marketLatitude": obj.get("marketLatitude"), + "marketLongitude": obj.get("marketLongitude"), + "regionalBureauID": obj.get("regionalBureauID"), + "regionalBureauName": obj.get("regionalBureauName"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "adm1Code": obj.get("adm1Code"), + "adm1Name": obj.get("adm1Name"), + "adm2Code": obj.get("adm2Code"), + "adm2Name": obj.get("adm2Name"), + "levelID": obj.get("levelID"), + "levelName": obj.get("levelName"), + "dimensionID": obj.get("dimensionID"), + "dimensionName": obj.get("dimensionName"), + "variableID": obj.get("variableID"), + "variableName": obj.get("variableName"), + "variableLabel": obj.get("variableLabel"), + "outputValue": obj.get("outputValue"), + "tradersSampleSize": obj.get("tradersSampleSize"), + "baseXlsFormID": obj.get("baseXlsFormID"), + "baseXlsFormName": obj.get("baseXlsFormName"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/nearby_markets_dto.py b/data_bridges_client/models/nearby_markets_dto.py index 816d070..090aee7 100644 --- a/data_bridges_client/models/nearby_markets_dto.py +++ b/data_bridges_client/models/nearby_markets_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,13 +22,22 @@ from typing import Optional, Set from typing_extensions import Self + class NearbyMarketsDTO(BaseModel): """ NearbyMarketsDTO - """ # noqa: E501 - market_id: Optional[StrictInt] = Field(default=None, description="The internal ID of the market", alias="marketId") - market_name: Optional[StrictStr] = Field(default=None, description="The name of the market", alias="marketName") - distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The distance in meters of the market from the provided point") + """ # noqa: E501 + + market_id: Optional[StrictInt] = Field( + default=None, description="The internal ID of the market", alias="marketId" + ) + market_name: Optional[StrictStr] = Field( + default=None, description="The name of the market", alias="marketName" + ) + distance: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, + description="The distance in meters of the market from the provided point", + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["marketId", "marketName", "distance"] @@ -39,7 +47,6 @@ class NearbyMarketsDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +72,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -82,7 +91,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None return _dict @@ -95,16 +104,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "marketId": obj.get("marketId"), - "marketName": obj.get("marketName"), - "distance": obj.get("distance") - }) + _obj = cls.model_validate( + { + "marketId": obj.get("marketId"), + "marketName": obj.get("marketName"), + "distance": obj.get("distance"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_commodity_list_dto.py b/data_bridges_client/models/paged_commodity_list_dto.py index 9d5f5b1..0b6cf9c 100644 --- a/data_bridges_client/models/paged_commodity_list_dto.py +++ b/data_bridges_client/models/paged_commodity_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedCommodityListDTO(BaseModel): """ PagedCommodityListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CommodityDTO]] = Field(default=None, description="The list of paged items") + items: Optional[List[CommodityDTO]] = Field( + default=None, description="The list of paged items" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedCommodityListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CommodityDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CommodityDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_commodity_price_list_dto.py b/data_bridges_client/models/paged_commodity_price_list_dto.py index 9a52216..5cfb61a 100644 --- a/data_bridges_client/models/paged_commodity_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_price_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedCommodityPriceListDTO(BaseModel): """ PagedCommodityPriceListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CommodityPriceDTO]] = Field(default=None, description="The list of paged items") + items: Optional[List[CommodityPriceDTO]] = Field( + default=None, description="The list of paged items" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedCommodityPriceListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CommodityPriceDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CommodityPriceDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py index 6e9ae72..f694be9 100644 --- a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedCommodityWeeklyAggregatedPriceListDTO(BaseModel): """ PagedCommodityWeeklyAggregatedPriceListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[WeeklyAggregatedPrice]] = Field(default=None, description="The list of paged items") + items: Optional[List[WeeklyAggregatedPrice]] = Field( + default=None, description="The list of paged items" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedCommodityWeeklyAggregatedPriceListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [WeeklyAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [ + WeeklyAggregatedPrice.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_currency_list_dto.py b/data_bridges_client/models/paged_currency_list_dto.py index 70dbe8f..758da77 100644 --- a/data_bridges_client/models/paged_currency_list_dto.py +++ b/data_bridges_client/models/paged_currency_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedCurrencyListDTO(BaseModel): """ PagedCurrencyListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CurrencyDTO]] = Field(default=None, description="The list of paged items") + items: Optional[List[CurrencyDTO]] = Field( + default=None, description="The list of paged items" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedCurrencyListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CurrencyDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CurrencyDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_economic_data_dto.py b/data_bridges_client/models/paged_economic_data_dto.py index ae50d86..9644ccd 100644 --- a/data_bridges_client/models/paged_economic_data_dto.py +++ b/data_bridges_client/models/paged_economic_data_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,18 +23,31 @@ from typing import Optional, Set from typing_extensions import Self + class PagedEconomicDataDTO(BaseModel): """ PagedEconomicDataDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") unit: Optional[StrictStr] = None frequency: Optional[StrictStr] = None data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") - items: Optional[List[EconomicDataDTO]] = Field(default=None, description="The list of paged items") + items: Optional[List[EconomicDataDTO]] = Field( + default=None, description="The list of paged items" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["totalItems", "page", "unit", "frequency", "dataSource", "items"] + __properties: ClassVar[List[str]] = [ + "totalItems", + "page", + "unit", + "frequency", + "dataSource", + "items", + ] model_config = ConfigDict( populate_by_name=True, @@ -43,7 +55,6 @@ class PagedEconomicDataDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,9 +80,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -84,7 +97,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -93,22 +106,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if unit (nullable) is None # and model_fields_set contains the field if self.unit is None and "unit" in self.model_fields_set: - _dict['unit'] = None + _dict["unit"] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict['frequency'] = None + _dict["frequency"] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict['dataSource'] = None + _dict["dataSource"] = None # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -121,19 +134,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "unit": obj.get("unit"), - "frequency": obj.get("frequency"), - "dataSource": obj.get("dataSource"), - "items": [EconomicDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "unit": obj.get("unit"), + "frequency": obj.get("frequency"), + "dataSource": obj.get("dataSource"), + "items": [EconomicDataDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_market_list_dto.py b/data_bridges_client/models/paged_market_list_dto.py index 4cea267..f12f133 100644 --- a/data_bridges_client/models/paged_market_list_dto.py +++ b/data_bridges_client/models/paged_market_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedMarketListDTO(BaseModel): """ PagedMarketListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[MarketDTO]] = Field(default=None, description="The list of markets") + items: Optional[List[MarketDTO]] = Field( + default=None, description="The list of markets" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedMarketListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [MarketDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [MarketDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_processed_data_dto.py b/data_bridges_client/models/paged_processed_data_dto.py index da9e1aa..00743f4 100644 --- a/data_bridges_client/models/paged_processed_data_dto.py +++ b/data_bridges_client/models/paged_processed_data_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,14 +23,20 @@ from typing import Optional, Set from typing_extensions import Self + class PagedProcessedDataDTO(BaseModel): """ PagedProcessedDataDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") scroll_id: Optional[StrictInt] = Field(default=None, alias="scrollId") - items: Optional[List[MFIProcessedDataDTO]] = Field(default=None, description="The list of processed data") + items: Optional[List[MFIProcessedDataDTO]] = Field( + default=None, description="The list of processed data" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "scrollId", "items"] @@ -41,7 +46,6 @@ class PagedProcessedDataDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,9 +71,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -82,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -91,7 +97,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -104,17 +110,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "scrollId": obj.get("scrollId"), - "items": [MFIProcessedDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "scrollId": obj.get("scrollId"), + "items": [ + MFIProcessedDataDTO.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_survey_list_dto.py b/data_bridges_client/models/paged_survey_list_dto.py index 587fb36..fb4dc30 100644 --- a/data_bridges_client/models/paged_survey_list_dto.py +++ b/data_bridges_client/models/paged_survey_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedSurveyListDTO(BaseModel): """ PagedSurveyListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[SurveyListDTO]] = Field(default=None, description="The list of surveys") + items: Optional[List[SurveyListDTO]] = Field( + default=None, description="The list of surveys" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedSurveyListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [SurveyListDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [SurveyListDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_survey_responses_dto.py b/data_bridges_client/models/paged_survey_responses_dto.py index 29d73bd..772456d 100644 --- a/data_bridges_client/models/paged_survey_responses_dto.py +++ b/data_bridges_client/models/paged_survey_responses_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,13 +22,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedSurveyResponsesDTO(BaseModel): """ PagedSurveyResponsesDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of responses", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of responses", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[Any]] = Field(default=None, description="The list of survey responses") + items: Optional[List[Any]] = Field( + default=None, description="The list of survey responses" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -39,7 +44,6 @@ class PagedSurveyResponsesDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -82,7 +88,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -95,16 +101,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": obj.get("items") - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": obj.get("items"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/paged_xls_form_list_dto.py b/data_bridges_client/models/paged_xls_form_list_dto.py index 0dec87a..bb17e9e 100644 --- a/data_bridges_client/models/paged_xls_form_list_dto.py +++ b/data_bridges_client/models/paged_xls_form_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,13 +23,19 @@ from typing import Optional, Set from typing_extensions import Self + class PagedXlsFormListDTO(BaseModel): """ PagedXlsFormListDTO - """ # noqa: E501 - total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") + """ # noqa: E501 + + total_items: Optional[StrictInt] = Field( + default=None, description="The total number of items", alias="totalItems" + ) page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[XlsFormDTO]] = Field(default=None, description="The list of XlsForms") + items: Optional[List[XlsFormDTO]] = Field( + default=None, description="The list of XlsForms" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -40,7 +45,6 @@ class PagedXlsFormListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,9 +70,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -90,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -103,16 +109,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [XlsFormDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None - }) + _obj = cls.model_validate( + { + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [XlsFormDTO.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/problem_details.py b/data_bridges_client/models/problem_details.py index 225c7ba..8b6ef16 100644 --- a/data_bridges_client/models/problem_details.py +++ b/data_bridges_client/models/problem_details.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,17 +22,25 @@ from typing import Optional, Set from typing_extensions import Self + class ProblemDetails(BaseModel): """ ProblemDetails - """ # noqa: E501 + """ # noqa: E501 + type: Optional[StrictStr] = None title: Optional[StrictStr] = None status: Optional[StrictInt] = None detail: Optional[StrictStr] = None instance: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"] + __properties: ClassVar[List[str]] = [ + "type", + "title", + "status", + "detail", + "instance", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +48,6 @@ class ProblemDetails(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,9 +73,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -84,27 +92,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None # set to None if title (nullable) is None # and model_fields_set contains the field if self.title is None and "title" in self.model_fields_set: - _dict['title'] = None + _dict["title"] = None # set to None if status (nullable) is None # and model_fields_set contains the field if self.status is None and "status" in self.model_fields_set: - _dict['status'] = None + _dict["status"] = None # set to None if detail (nullable) is None # and model_fields_set contains the field if self.detail is None and "detail" in self.model_fields_set: - _dict['detail'] = None + _dict["detail"] = None # set to None if instance (nullable) is None # and model_fields_set contains the field if self.instance is None and "instance" in self.model_fields_set: - _dict['instance'] = None + _dict["instance"] = None return _dict @@ -117,18 +125,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type"), - "title": obj.get("title"), - "status": obj.get("status"), - "detail": obj.get("detail"), - "instance": obj.get("instance") - }) + _obj = cls.model_validate( + { + "type": obj.get("type"), + "title": obj.get("title"), + "status": obj.get("status"), + "detail": obj.get("detail"), + "instance": obj.get("instance"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/properties.py b/data_bridges_client/models/properties.py index 297eccf..8d4e984 100644 --- a/data_bridges_client/models/properties.py +++ b/data_bridges_client/models/properties.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class Properties(BaseModel): """ Properties - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name"] @@ -37,7 +38,6 @@ class Properties(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,9 +63,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -80,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None return _dict @@ -93,14 +95,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name") - }) + _obj = cls.model_validate({"name": obj.get("name")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/rpme_assessment.py b/data_bridges_client/models/rpme_assessment.py index 7c5ce11..d2c9460 100644 --- a/data_bridges_client/models/rpme_assessment.py +++ b/data_bridges_client/models/rpme_assessment.py @@ -1,34 +1,43 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ( + BaseModel, + ConfigDict, + Field, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, +) from typing import Any, ClassVar, Dict, List, Optional, Union from data_bridges_client.models.rpme_output_values import RpmeOutputValues from typing import Optional, Set from typing_extensions import Self + class RpmeAssessment(BaseModel): """ RpmeAssessment - """ # noqa: E501 + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, alias="surveyId") assessment_date: Optional[datetime] = Field(default=None, alias="assessmentDate") shop_id: Optional[StrictInt] = Field(default=None, alias="shopId") @@ -39,18 +48,49 @@ class RpmeAssessment(BaseModel): adm1_code_dots: Optional[StrictStr] = Field(default=None, alias="adm1CodeDOTS") adm2_code_dots: Optional[StrictStr] = Field(default=None, alias="adm2CodeDOTS") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") - sh_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="shLatitude") - sh_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="shLongitude") - nb_beneficiaries_interviewed: Optional[StrictInt] = Field(default=None, alias="nbBeneficiariesInterviewed") + sh_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="shLatitude" + ) + sh_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="shLongitude" + ) + nb_beneficiaries_interviewed: Optional[StrictInt] = Field( + default=None, alias="nbBeneficiariesInterviewed" + ) price_score_tbu: Optional[StrictBool] = Field(default=None, alias="priceScoreTbu") price_score_tbd: Optional[StrictBool] = Field(default=None, alias="priceScoreTbd") - beneficiaries_score_tbu: Optional[StrictBool] = Field(default=None, alias="beneficiariesScoreTbu") + beneficiaries_score_tbu: Optional[StrictBool] = Field( + default=None, alias="beneficiariesScoreTbu" + ) trd_name: Optional[StrictStr] = Field(default=None, alias="trdName") sev_cntr_dev: Optional[StrictStr] = Field(default=None, alias="sevCntrDev") ben_sev_cntr_dev: Optional[StrictStr] = Field(default=None, alias="benSevCntrDev") - output_values: Optional[List[RpmeOutputValues]] = Field(default=None, alias="outputValues") + output_values: Optional[List[RpmeOutputValues]] = Field( + default=None, alias="outputValues" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyId", "assessmentDate", "shopId", "adm0Code", "adm1Code", "adm2Code", "adm0CodeDOTS", "adm1CodeDOTS", "adm2CodeDOTS", "marketId", "shLatitude", "shLongitude", "nbBeneficiariesInterviewed", "priceScoreTbu", "priceScoreTbd", "beneficiariesScoreTbu", "trdName", "sevCntrDev", "benSevCntrDev", "outputValues"] + __properties: ClassVar[List[str]] = [ + "surveyId", + "assessmentDate", + "shopId", + "adm0Code", + "adm1Code", + "adm2Code", + "adm0CodeDOTS", + "adm1CodeDOTS", + "adm2CodeDOTS", + "marketId", + "shLatitude", + "shLongitude", + "nbBeneficiariesInterviewed", + "priceScoreTbu", + "priceScoreTbd", + "beneficiariesScoreTbu", + "trdName", + "sevCntrDev", + "benSevCntrDev", + "outputValues", + ] model_config = ConfigDict( populate_by_name=True, @@ -58,7 +98,6 @@ class RpmeAssessment(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -84,9 +123,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -99,7 +140,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_output_values in self.output_values: if _item_output_values: _items.append(_item_output_values.to_dict()) - _dict['outputValues'] = _items + _dict["outputValues"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -108,57 +149,63 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code_dots (nullable) is None # and model_fields_set contains the field if self.adm0_code_dots is None and "adm0_code_dots" in self.model_fields_set: - _dict['adm0CodeDOTS'] = None + _dict["adm0CodeDOTS"] = None # set to None if adm1_code_dots (nullable) is None # and model_fields_set contains the field if self.adm1_code_dots is None and "adm1_code_dots" in self.model_fields_set: - _dict['adm1CodeDOTS'] = None + _dict["adm1CodeDOTS"] = None # set to None if adm2_code_dots (nullable) is None # and model_fields_set contains the field if self.adm2_code_dots is None and "adm2_code_dots" in self.model_fields_set: - _dict['adm2CodeDOTS'] = None + _dict["adm2CodeDOTS"] = None # set to None if market_id (nullable) is None # and model_fields_set contains the field if self.market_id is None and "market_id" in self.model_fields_set: - _dict['marketId'] = None + _dict["marketId"] = None # set to None if sh_latitude (nullable) is None # and model_fields_set contains the field if self.sh_latitude is None and "sh_latitude" in self.model_fields_set: - _dict['shLatitude'] = None + _dict["shLatitude"] = None # set to None if sh_longitude (nullable) is None # and model_fields_set contains the field if self.sh_longitude is None and "sh_longitude" in self.model_fields_set: - _dict['shLongitude'] = None + _dict["shLongitude"] = None # set to None if nb_beneficiaries_interviewed (nullable) is None # and model_fields_set contains the field - if self.nb_beneficiaries_interviewed is None and "nb_beneficiaries_interviewed" in self.model_fields_set: - _dict['nbBeneficiariesInterviewed'] = None + if ( + self.nb_beneficiaries_interviewed is None + and "nb_beneficiaries_interviewed" in self.model_fields_set + ): + _dict["nbBeneficiariesInterviewed"] = None # set to None if trd_name (nullable) is None # and model_fields_set contains the field if self.trd_name is None and "trd_name" in self.model_fields_set: - _dict['trdName'] = None + _dict["trdName"] = None # set to None if sev_cntr_dev (nullable) is None # and model_fields_set contains the field if self.sev_cntr_dev is None and "sev_cntr_dev" in self.model_fields_set: - _dict['sevCntrDev'] = None + _dict["sevCntrDev"] = None # set to None if ben_sev_cntr_dev (nullable) is None # and model_fields_set contains the field - if self.ben_sev_cntr_dev is None and "ben_sev_cntr_dev" in self.model_fields_set: - _dict['benSevCntrDev'] = None + if ( + self.ben_sev_cntr_dev is None + and "ben_sev_cntr_dev" in self.model_fields_set + ): + _dict["benSevCntrDev"] = None # set to None if output_values (nullable) is None # and model_fields_set contains the field if self.output_values is None and "output_values" in self.model_fields_set: - _dict['outputValues'] = None + _dict["outputValues"] = None return _dict @@ -171,33 +218,37 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyId": obj.get("surveyId"), - "assessmentDate": obj.get("assessmentDate"), - "shopId": obj.get("shopId"), - "adm0Code": obj.get("adm0Code"), - "adm1Code": obj.get("adm1Code"), - "adm2Code": obj.get("adm2Code"), - "adm0CodeDOTS": obj.get("adm0CodeDOTS"), - "adm1CodeDOTS": obj.get("adm1CodeDOTS"), - "adm2CodeDOTS": obj.get("adm2CodeDOTS"), - "marketId": obj.get("marketId"), - "shLatitude": obj.get("shLatitude"), - "shLongitude": obj.get("shLongitude"), - "nbBeneficiariesInterviewed": obj.get("nbBeneficiariesInterviewed"), - "priceScoreTbu": obj.get("priceScoreTbu"), - "priceScoreTbd": obj.get("priceScoreTbd"), - "beneficiariesScoreTbu": obj.get("beneficiariesScoreTbu"), - "trdName": obj.get("trdName"), - "sevCntrDev": obj.get("sevCntrDev"), - "benSevCntrDev": obj.get("benSevCntrDev"), - "outputValues": [RpmeOutputValues.from_dict(_item) for _item in obj["outputValues"]] if obj.get("outputValues") is not None else None - }) + _obj = cls.model_validate( + { + "surveyId": obj.get("surveyId"), + "assessmentDate": obj.get("assessmentDate"), + "shopId": obj.get("shopId"), + "adm0Code": obj.get("adm0Code"), + "adm1Code": obj.get("adm1Code"), + "adm2Code": obj.get("adm2Code"), + "adm0CodeDOTS": obj.get("adm0CodeDOTS"), + "adm1CodeDOTS": obj.get("adm1CodeDOTS"), + "adm2CodeDOTS": obj.get("adm2CodeDOTS"), + "marketId": obj.get("marketId"), + "shLatitude": obj.get("shLatitude"), + "shLongitude": obj.get("shLongitude"), + "nbBeneficiariesInterviewed": obj.get("nbBeneficiariesInterviewed"), + "priceScoreTbu": obj.get("priceScoreTbu"), + "priceScoreTbd": obj.get("priceScoreTbd"), + "beneficiariesScoreTbu": obj.get("beneficiariesScoreTbu"), + "trdName": obj.get("trdName"), + "sevCntrDev": obj.get("sevCntrDev"), + "benSevCntrDev": obj.get("benSevCntrDev"), + "outputValues": [ + RpmeOutputValues.from_dict(_item) for _item in obj["outputValues"] + ] + if obj.get("outputValues") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/rpme_assessment_paged_result.py b/data_bridges_client/models/rpme_assessment_paged_result.py index 5826672..8ab7ac4 100644 --- a/data_bridges_client/models/rpme_assessment_paged_result.py +++ b/data_bridges_client/models/rpme_assessment_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class RpmeAssessmentPagedResult(BaseModel): """ RpmeAssessmentPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[RpmeAssessment]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class RpmeAssessmentPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [RpmeAssessment.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [RpmeAssessment.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/rpme_output_values.py b/data_bridges_client/models/rpme_output_values.py index b25e1ad..dfa0161 100644 --- a/data_bridges_client/models/rpme_output_values.py +++ b/data_bridges_client/models/rpme_output_values.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +22,16 @@ from typing import Optional, Set from typing_extensions import Self + class RpmeOutputValues(BaseModel): """ RpmeOutputValues - """ # noqa: E501 + """ # noqa: E501 + variable_id: Optional[StrictInt] = Field(default=None, alias="variableId") - output_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="outputValue") + output_value: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="outputValue" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["variableId", "outputValue"] @@ -38,7 +41,6 @@ class RpmeOutputValues(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +66,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if output_value (nullable) is None # and model_fields_set contains the field if self.output_value is None and "output_value" in self.model_fields_set: - _dict['outputValue'] = None + _dict["outputValue"] = None return _dict @@ -94,15 +98,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "variableId": obj.get("variableId"), - "outputValue": obj.get("outputValue") - }) + _obj = cls.model_validate( + {"variableId": obj.get("variableId"), "outputValue": obj.get("outputValue")} + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/rpme_variable.py b/data_bridges_client/models/rpme_variable.py index 4803624..23dc08b 100644 --- a/data_bridges_client/models/rpme_variable.py +++ b/data_bridges_client/models/rpme_variable.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,13 +22,17 @@ from typing import Optional, Set from typing_extensions import Self + class RpmeVariable(BaseModel): """ RpmeVariable - """ # noqa: E501 + """ # noqa: E501 + variable_id: Optional[StrictInt] = Field(default=None, alias="variableId") variable_name: Optional[StrictStr] = Field(default=None, alias="variableName") - variable_description: Optional[StrictStr] = Field(default=None, alias="variableDescription") + variable_description: Optional[StrictStr] = Field( + default=None, alias="variableDescription" + ) dimension_id: Optional[StrictInt] = Field(default=None, alias="dimensionId") dimension_name: Optional[StrictStr] = Field(default=None, alias="dimensionName") level_id: Optional[StrictInt] = Field(default=None, alias="levelId") @@ -37,7 +40,17 @@ class RpmeVariable(BaseModel): survey_mode_id: Optional[StrictInt] = Field(default=None, alias="surveyModeId") survey_mode_name: Optional[StrictStr] = Field(default=None, alias="surveyModeName") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["variableId", "variableName", "variableDescription", "dimensionId", "dimensionName", "levelId", "levelName", "surveyModeId", "surveyModeName"] + __properties: ClassVar[List[str]] = [ + "variableId", + "variableName", + "variableDescription", + "dimensionId", + "dimensionName", + "levelId", + "levelName", + "surveyModeId", + "surveyModeName", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +58,6 @@ class RpmeVariable(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,9 +83,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -88,27 +102,33 @@ def to_dict(self) -> Dict[str, Any]: # set to None if variable_name (nullable) is None # and model_fields_set contains the field if self.variable_name is None and "variable_name" in self.model_fields_set: - _dict['variableName'] = None + _dict["variableName"] = None # set to None if variable_description (nullable) is None # and model_fields_set contains the field - if self.variable_description is None and "variable_description" in self.model_fields_set: - _dict['variableDescription'] = None + if ( + self.variable_description is None + and "variable_description" in self.model_fields_set + ): + _dict["variableDescription"] = None # set to None if dimension_name (nullable) is None # and model_fields_set contains the field if self.dimension_name is None and "dimension_name" in self.model_fields_set: - _dict['dimensionName'] = None + _dict["dimensionName"] = None # set to None if level_name (nullable) is None # and model_fields_set contains the field if self.level_name is None and "level_name" in self.model_fields_set: - _dict['levelName'] = None + _dict["levelName"] = None # set to None if survey_mode_name (nullable) is None # and model_fields_set contains the field - if self.survey_mode_name is None and "survey_mode_name" in self.model_fields_set: - _dict['surveyModeName'] = None + if ( + self.survey_mode_name is None + and "survey_mode_name" in self.model_fields_set + ): + _dict["surveyModeName"] = None return _dict @@ -121,22 +141,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "variableId": obj.get("variableId"), - "variableName": obj.get("variableName"), - "variableDescription": obj.get("variableDescription"), - "dimensionId": obj.get("dimensionId"), - "dimensionName": obj.get("dimensionName"), - "levelId": obj.get("levelId"), - "levelName": obj.get("levelName"), - "surveyModeId": obj.get("surveyModeId"), - "surveyModeName": obj.get("surveyModeName") - }) + _obj = cls.model_validate( + { + "variableId": obj.get("variableId"), + "variableName": obj.get("variableName"), + "variableDescription": obj.get("variableDescription"), + "dimensionId": obj.get("dimensionId"), + "dimensionName": obj.get("dimensionName"), + "levelId": obj.get("levelId"), + "levelName": obj.get("levelName"), + "surveyModeId": obj.get("surveyModeId"), + "surveyModeName": obj.get("surveyModeName"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/rpme_variable_paged_result.py b/data_bridges_client/models/rpme_variable_paged_result.py index 8e1b166..faf5707 100644 --- a/data_bridges_client/models/rpme_variable_paged_result.py +++ b/data_bridges_client/models/rpme_variable_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class RpmeVariablePagedResult(BaseModel): """ RpmeVariablePagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[RpmeVariable]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class RpmeVariablePagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [RpmeVariable.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [RpmeVariable.from_dict(_item) for _item in obj["items"]] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/survey_list_dto.py b/data_bridges_client/models/survey_list_dto.py index 8b18855..ee67506 100644 --- a/data_bridges_client/models/survey_list_dto.py +++ b/data_bridges_client/models/survey_list_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -25,27 +24,103 @@ from typing import Optional, Set from typing_extensions import Self + class SurveyListDTO(BaseModel): """ SurveyListDTO - """ # noqa: E501 - survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") - survey_status_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey status", alias="surveyStatusID") - survey_start_date: Optional[datetime] = Field(default=None, description="The date when the survey has started", alias="surveyStartDate") - survey_end_date: Optional[datetime] = Field(default=None, description="The date when the survey has ended", alias="surveyEndDate") - survey_create_date: Optional[datetime] = Field(default=None, description="The date when the survey has been uploaded in the Data Bridges platform", alias="surveyCreateDate") - survey_validation_report: Optional[StrictStr] = Field(default=None, description="The detailed report on the validation performed on the survey schema", alias="surveyValidationReport") - survey_original_filename: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=256)]] = Field(default=None, description="The filename of the survey CSV file", alias="surveyOriginalFilename") - xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the XLSForm used to collect data", alias="xlsFormName") - base_xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the base XLSForm used to build the XLSForm", alias="baseXlsFormName") - country_name: Optional[StrictStr] = Field(default=None, description="The name of the country where the survey has taken place", alias="countryName") - adm0_code: Optional[StrictInt] = Field(default=None, description="The internal code of the country where the survey has taken place", alias="adm0Code") - iso3_alpha3: Optional[StrictStr] = Field(default=None, description="The ISO3 alpha code of the country where the survey has taken place", alias="iso3Alpha3") - user_name: Optional[StrictStr] = Field(default=None, description="The name of the user that has uploaded the survey data", alias="userName") - original_csv_file: Optional[StrictStr] = Field(default=None, description="The link to download the original CSV file", alias="originalCsvFile") - base_data: Optional[StrictStr] = Field(default=None, description="The link to the JSON data reshaped on the base XLSForm", alias="baseData") + """ # noqa: E501 + + survey_id: Optional[StrictInt] = Field( + default=None, description="The Id of the Survey", alias="surveyID" + ) + survey_status_id: Optional[StrictInt] = Field( + default=None, description="The Id of the Survey status", alias="surveyStatusID" + ) + survey_start_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has started", + alias="surveyStartDate", + ) + survey_end_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has ended", + alias="surveyEndDate", + ) + survey_create_date: Optional[datetime] = Field( + default=None, + description="The date when the survey has been uploaded in the Data Bridges platform", + alias="surveyCreateDate", + ) + survey_validation_report: Optional[StrictStr] = Field( + default=None, + description="The detailed report on the validation performed on the survey schema", + alias="surveyValidationReport", + ) + survey_original_filename: Optional[ + Annotated[str, Field(min_length=0, strict=True, max_length=256)] + ] = Field( + default=None, + description="The filename of the survey CSV file", + alias="surveyOriginalFilename", + ) + xls_form_name: Optional[StrictStr] = Field( + default=None, + description="The name of the XLSForm used to collect data", + alias="xlsFormName", + ) + base_xls_form_name: Optional[StrictStr] = Field( + default=None, + description="The name of the base XLSForm used to build the XLSForm", + alias="baseXlsFormName", + ) + country_name: Optional[StrictStr] = Field( + default=None, + description="The name of the country where the survey has taken place", + alias="countryName", + ) + adm0_code: Optional[StrictInt] = Field( + default=None, + description="The internal code of the country where the survey has taken place", + alias="adm0Code", + ) + iso3_alpha3: Optional[StrictStr] = Field( + default=None, + description="The ISO3 alpha code of the country where the survey has taken place", + alias="iso3Alpha3", + ) + user_name: Optional[StrictStr] = Field( + default=None, + description="The name of the user that has uploaded the survey data", + alias="userName", + ) + original_csv_file: Optional[StrictStr] = Field( + default=None, + description="The link to download the original CSV file", + alias="originalCsvFile", + ) + base_data: Optional[StrictStr] = Field( + default=None, + description="The link to the JSON data reshaped on the base XLSForm", + alias="baseData", + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["surveyID", "surveyStatusID", "surveyStartDate", "surveyEndDate", "surveyCreateDate", "surveyValidationReport", "surveyOriginalFilename", "xlsFormName", "baseXlsFormName", "countryName", "adm0Code", "iso3Alpha3", "userName", "originalCsvFile", "baseData"] + __properties: ClassVar[List[str]] = [ + "surveyID", + "surveyStatusID", + "surveyStartDate", + "surveyEndDate", + "surveyCreateDate", + "surveyValidationReport", + "surveyOriginalFilename", + "xlsFormName", + "baseXlsFormName", + "countryName", + "adm0Code", + "iso3Alpha3", + "userName", + "originalCsvFile", + "baseData", + ] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +128,6 @@ class SurveyListDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -79,9 +153,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -95,58 +171,73 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_start_date (nullable) is None # and model_fields_set contains the field - if self.survey_start_date is None and "survey_start_date" in self.model_fields_set: - _dict['surveyStartDate'] = None + if ( + self.survey_start_date is None + and "survey_start_date" in self.model_fields_set + ): + _dict["surveyStartDate"] = None # set to None if survey_end_date (nullable) is None # and model_fields_set contains the field if self.survey_end_date is None and "survey_end_date" in self.model_fields_set: - _dict['surveyEndDate'] = None + _dict["surveyEndDate"] = None # set to None if survey_validation_report (nullable) is None # and model_fields_set contains the field - if self.survey_validation_report is None and "survey_validation_report" in self.model_fields_set: - _dict['surveyValidationReport'] = None + if ( + self.survey_validation_report is None + and "survey_validation_report" in self.model_fields_set + ): + _dict["surveyValidationReport"] = None # set to None if survey_original_filename (nullable) is None # and model_fields_set contains the field - if self.survey_original_filename is None and "survey_original_filename" in self.model_fields_set: - _dict['surveyOriginalFilename'] = None + if ( + self.survey_original_filename is None + and "survey_original_filename" in self.model_fields_set + ): + _dict["surveyOriginalFilename"] = None # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict['xlsFormName'] = None + _dict["xlsFormName"] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: - _dict['baseXlsFormName'] = None + if ( + self.base_xls_form_name is None + and "base_xls_form_name" in self.model_fields_set + ): + _dict["baseXlsFormName"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict['iso3Alpha3'] = None + _dict["iso3Alpha3"] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict['userName'] = None + _dict["userName"] = None # set to None if original_csv_file (nullable) is None # and model_fields_set contains the field - if self.original_csv_file is None and "original_csv_file" in self.model_fields_set: - _dict['originalCsvFile'] = None + if ( + self.original_csv_file is None + and "original_csv_file" in self.model_fields_set + ): + _dict["originalCsvFile"] = None # set to None if base_data (nullable) is None # and model_fields_set contains the field if self.base_data is None and "base_data" in self.model_fields_set: - _dict['baseData'] = None + _dict["baseData"] = None return _dict @@ -159,28 +250,28 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "surveyID": obj.get("surveyID"), - "surveyStatusID": obj.get("surveyStatusID"), - "surveyStartDate": obj.get("surveyStartDate"), - "surveyEndDate": obj.get("surveyEndDate"), - "surveyCreateDate": obj.get("surveyCreateDate"), - "surveyValidationReport": obj.get("surveyValidationReport"), - "surveyOriginalFilename": obj.get("surveyOriginalFilename"), - "xlsFormName": obj.get("xlsFormName"), - "baseXlsFormName": obj.get("baseXlsFormName"), - "countryName": obj.get("countryName"), - "adm0Code": obj.get("adm0Code"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "userName": obj.get("userName"), - "originalCsvFile": obj.get("originalCsvFile"), - "baseData": obj.get("baseData") - }) + _obj = cls.model_validate( + { + "surveyID": obj.get("surveyID"), + "surveyStatusID": obj.get("surveyStatusID"), + "surveyStartDate": obj.get("surveyStartDate"), + "surveyEndDate": obj.get("surveyEndDate"), + "surveyCreateDate": obj.get("surveyCreateDate"), + "surveyValidationReport": obj.get("surveyValidationReport"), + "surveyOriginalFilename": obj.get("surveyOriginalFilename"), + "xlsFormName": obj.get("xlsFormName"), + "baseXlsFormName": obj.get("baseXlsFormName"), + "countryName": obj.get("countryName"), + "adm0Code": obj.get("adm0Code"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "userName": obj.get("userName"), + "originalCsvFile": obj.get("originalCsvFile"), + "baseData": obj.get("baseData"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/usd_indirect_quotation.py b/data_bridges_client/models/usd_indirect_quotation.py index ff2ae41..dce49f0 100644 --- a/data_bridges_client/models/usd_indirect_quotation.py +++ b/data_bridges_client/models/usd_indirect_quotation.py @@ -1,43 +1,70 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ( + BaseModel, + ConfigDict, + Field, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, +) from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self + class UsdIndirectQuotation(BaseModel): """ UsdIndirectQuotation - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictInt] = None - name: Optional[StrictStr] = Field(default=None, description="the ISO3 code for the currency, based on ISO4217") + name: Optional[StrictStr] = Field( + default=None, description="the ISO3 code for the currency, based on ISO4217" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") - is_official: Optional[StrictBool] = Field(default=None, description="The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database", alias="isOfficial") - frequency: Optional[StrictStr] = Field(default=None, description="(it’s from the reporting commodity named Exchange Rate") + is_official: Optional[StrictBool] = Field( + default=None, + description="The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database", + alias="isOfficial", + ) + frequency: Optional[StrictStr] = Field( + default=None, + description="(it’s from the reporting commodity named Exchange Rate", + ) value: Optional[Union[StrictFloat, StrictInt]] = None var_date: Optional[datetime] = Field(default=None, alias="date") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name", "adm0Code", "countryISO3", "isOfficial", "frequency", "value", "date"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "adm0Code", + "countryISO3", + "isOfficial", + "frequency", + "value", + "date", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +72,6 @@ class UsdIndirectQuotation(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,9 +97,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -88,22 +116,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryISO3'] = None + _dict["countryISO3"] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict['frequency'] = None + _dict["frequency"] = None # set to None if value (nullable) is None # and model_fields_set contains the field if self.value is None and "value" in self.model_fields_set: - _dict['value'] = None + _dict["value"] = None return _dict @@ -116,21 +144,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "adm0Code": obj.get("adm0Code"), - "countryISO3": obj.get("countryISO3"), - "isOfficial": obj.get("isOfficial"), - "frequency": obj.get("frequency"), - "value": obj.get("value"), - "date": obj.get("date") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "adm0Code": obj.get("adm0Code"), + "countryISO3": obj.get("countryISO3"), + "isOfficial": obj.get("isOfficial"), + "frequency": obj.get("frequency"), + "value": obj.get("value"), + "date": obj.get("date"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/usd_indirect_quotation_paged_result.py b/data_bridges_client/models/usd_indirect_quotation_paged_result.py index 51d1099..eb80b33 100644 --- a/data_bridges_client/models/usd_indirect_quotation_paged_result.py +++ b/data_bridges_client/models/usd_indirect_quotation_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class UsdIndirectQuotationPagedResult(BaseModel): """ UsdIndirectQuotationPagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[UsdIndirectQuotation]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +41,6 @@ class UsdIndirectQuotationPagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +67,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +107,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [UsdIndirectQuotation.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + UsdIndirectQuotation.from_dict(_item) for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/view_extended_monthly_aggregated_price.py b/data_bridges_client/models/view_extended_monthly_aggregated_price.py index 17c3cf1..a7cf0a8 100644 --- a/data_bridges_client/models/view_extended_monthly_aggregated_price.py +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,34 +23,81 @@ from typing import Optional, Set from typing_extensions import Self + class ViewExtendedMonthlyAggregatedPrice(BaseModel): """ ViewExtendedMonthlyAggregatedPrice - """ # noqa: E501 + """ # noqa: E501 + commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + commodity_unit_id: Optional[StrictInt] = Field( + default=None, alias="commodityUnitId" + ) currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") - commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") - commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") - commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") - commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") + commodity_date_week: Optional[StrictInt] = Field( + default=None, alias="commodityDateWeek" + ) + commodity_date_month: Optional[StrictInt] = Field( + default=None, alias="commodityDateMonth" + ) + commodity_date_year: Optional[StrictInt] = Field( + default=None, alias="commodityDateYear" + ) + commodity_price_date: Optional[datetime] = Field( + default=None, alias="commodityPriceDate" + ) commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") + commodity_unit_name: Optional[StrictStr] = Field( + default=None, alias="commodityUnitName" + ) currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") - original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") - commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") - commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") + commodity_price_source_name: Optional[StrictStr] = Field( + default=None, alias="commodityPriceSourceName" + ) + original_frequency: Optional[StrictStr] = Field( + default=None, alias="originalFrequency" + ) + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="commodityPrice" + ) + commodity_price_observations: Optional[StrictInt] = Field( + default=None, alias="commodityPriceObservations" + ) + commodity_price_flag: Optional[StrictStr] = Field( + default=None, alias="commodityPriceFlag" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] + __properties: ClassVar[List[str]] = [ + "commodityId", + "marketId", + "priceTypeId", + "commodityUnitId", + "currencyId", + "adm0Code", + "commodityDateWeek", + "commodityDateMonth", + "commodityDateYear", + "commodityPriceDate", + "commodityName", + "marketName", + "priceTypeName", + "commodityUnitName", + "currencyName", + "countryIso3", + "countryName", + "commodityPriceSourceName", + "originalFrequency", + "commodityPrice", + "commodityPriceObservations", + "commodityPriceFlag", + ] model_config = ConfigDict( populate_by_name=True, @@ -59,7 +105,6 @@ class ViewExtendedMonthlyAggregatedPrice(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -85,9 +130,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -102,87 +149,114 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None # set to None if commodity_date_week (nullable) is None # and model_fields_set contains the field - if self.commodity_date_week is None and "commodity_date_week" in self.model_fields_set: - _dict['commodityDateWeek'] = None + if ( + self.commodity_date_week is None + and "commodity_date_week" in self.model_fields_set + ): + _dict["commodityDateWeek"] = None # set to None if commodity_date_month (nullable) is None # and model_fields_set contains the field - if self.commodity_date_month is None and "commodity_date_month" in self.model_fields_set: - _dict['commodityDateMonth'] = None + if ( + self.commodity_date_month is None + and "commodity_date_month" in self.model_fields_set + ): + _dict["commodityDateMonth"] = None # set to None if commodity_date_year (nullable) is None # and model_fields_set contains the field - if self.commodity_date_year is None and "commodity_date_year" in self.model_fields_set: - _dict['commodityDateYear'] = None + if ( + self.commodity_date_year is None + and "commodity_date_year" in self.model_fields_set + ): + _dict["commodityDateYear"] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: - _dict['commodityPriceDate'] = None + if ( + self.commodity_price_date is None + and "commodity_price_date" in self.model_fields_set + ): + _dict["commodityPriceDate"] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict['commodityName'] = None + _dict["commodityName"] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict['priceTypeName'] = None + _dict["priceTypeName"] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: - _dict['commodityUnitName'] = None + if ( + self.commodity_unit_name is None + and "commodity_unit_name" in self.model_fields_set + ): + _dict["commodityUnitName"] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict['currencyName'] = None + _dict["currencyName"] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryIso3'] = None + _dict["countryIso3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: - _dict['commodityPriceSourceName'] = None + if ( + self.commodity_price_source_name is None + and "commodity_price_source_name" in self.model_fields_set + ): + _dict["commodityPriceSourceName"] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if self.original_frequency is None and "original_frequency" in self.model_fields_set: - _dict['originalFrequency'] = None + if ( + self.original_frequency is None + and "original_frequency" in self.model_fields_set + ): + _dict["originalFrequency"] = None # set to None if commodity_price (nullable) is None # and model_fields_set contains the field if self.commodity_price is None and "commodity_price" in self.model_fields_set: - _dict['commodityPrice'] = None + _dict["commodityPrice"] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: - _dict['commodityPriceObservations'] = None + if ( + self.commodity_price_observations is None + and "commodity_price_observations" in self.model_fields_set + ): + _dict["commodityPriceObservations"] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: - _dict['commodityPriceFlag'] = None + if ( + self.commodity_price_flag is None + and "commodity_price_flag" in self.model_fields_set + ): + _dict["commodityPriceFlag"] = None return _dict @@ -195,35 +269,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "commodityDateWeek": obj.get("commodityDateWeek"), - "commodityDateMonth": obj.get("commodityDateMonth"), - "commodityDateYear": obj.get("commodityDateYear"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "countryIso3": obj.get("countryIso3"), - "countryName": obj.get("countryName"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "originalFrequency": obj.get("originalFrequency"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceFlag": obj.get("commodityPriceFlag") - }) + _obj = cls.model_validate( + { + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "commodityDateWeek": obj.get("commodityDateWeek"), + "commodityDateMonth": obj.get("commodityDateMonth"), + "commodityDateYear": obj.get("commodityDateYear"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "countryIso3": obj.get("countryIso3"), + "countryName": obj.get("countryName"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "originalFrequency": obj.get("originalFrequency"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceFlag": obj.get("commodityPriceFlag"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py index e74c987..ebb0265 100644 --- a/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -20,14 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price import ( + ViewExtendedMonthlyAggregatedPrice, +) from typing import Optional, Set from typing_extensions import Self + class ViewExtendedMonthlyAggregatedPricePagedResult(BaseModel): """ ViewExtendedMonthlyAggregatedPricePagedResult - """ # noqa: E501 + """ # noqa: E501 + items: Optional[List[ViewExtendedMonthlyAggregatedPrice]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -40,7 +43,6 @@ class ViewExtendedMonthlyAggregatedPricePagedResult(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,10 +69,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "items", - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "items", + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -83,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict['items'] = _items + _dict["items"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,7 +96,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict['items'] = None + _dict["items"] = None return _dict @@ -105,16 +109,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "items": [ViewExtendedMonthlyAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems") - }) + _obj = cls.model_validate( + { + "items": [ + ViewExtendedMonthlyAggregatedPrice.from_dict(_item) + for _item in obj["items"] + ] + if obj.get("items") is not None + else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/weekly_aggregated_price.py b/data_bridges_client/models/weekly_aggregated_price.py index c1e64f6..d533e4f 100644 --- a/data_bridges_client/models/weekly_aggregated_price.py +++ b/data_bridges_client/models/weekly_aggregated_price.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,34 +23,81 @@ from typing import Optional, Set from typing_extensions import Self + class WeeklyAggregatedPrice(BaseModel): """ WeeklyAggregatedPrice - """ # noqa: E501 + """ # noqa: E501 + commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") + commodity_unit_id: Optional[StrictInt] = Field( + default=None, alias="commodityUnitId" + ) currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") - commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") - commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") - commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") - commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") + commodity_date_week: Optional[StrictInt] = Field( + default=None, alias="commodityDateWeek" + ) + commodity_date_month: Optional[StrictInt] = Field( + default=None, alias="commodityDateMonth" + ) + commodity_date_year: Optional[StrictInt] = Field( + default=None, alias="commodityDateYear" + ) + commodity_price_date: Optional[datetime] = Field( + default=None, alias="commodityPriceDate" + ) commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") + commodity_unit_name: Optional[StrictStr] = Field( + default=None, alias="commodityUnitName" + ) currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") - original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") - commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") - commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") + commodity_price_source_name: Optional[StrictStr] = Field( + default=None, alias="commodityPriceSourceName" + ) + original_frequency: Optional[StrictStr] = Field( + default=None, alias="originalFrequency" + ) + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, alias="commodityPrice" + ) + commodity_price_observations: Optional[StrictInt] = Field( + default=None, alias="commodityPriceObservations" + ) + commodity_price_flag: Optional[StrictStr] = Field( + default=None, alias="commodityPriceFlag" + ) additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] + __properties: ClassVar[List[str]] = [ + "commodityId", + "marketId", + "priceTypeId", + "commodityUnitId", + "currencyId", + "adm0Code", + "commodityDateWeek", + "commodityDateMonth", + "commodityDateYear", + "commodityPriceDate", + "commodityName", + "marketName", + "priceTypeName", + "commodityUnitName", + "currencyName", + "countryIso3", + "countryName", + "commodityPriceSourceName", + "originalFrequency", + "commodityPrice", + "commodityPriceObservations", + "commodityPriceFlag", + ] model_config = ConfigDict( populate_by_name=True, @@ -59,7 +105,6 @@ class WeeklyAggregatedPrice(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -85,9 +130,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -101,83 +148,110 @@ def to_dict(self) -> Dict[str, Any]: # set to None if commodity_date_week (nullable) is None # and model_fields_set contains the field - if self.commodity_date_week is None and "commodity_date_week" in self.model_fields_set: - _dict['commodityDateWeek'] = None + if ( + self.commodity_date_week is None + and "commodity_date_week" in self.model_fields_set + ): + _dict["commodityDateWeek"] = None # set to None if commodity_date_month (nullable) is None # and model_fields_set contains the field - if self.commodity_date_month is None and "commodity_date_month" in self.model_fields_set: - _dict['commodityDateMonth'] = None + if ( + self.commodity_date_month is None + and "commodity_date_month" in self.model_fields_set + ): + _dict["commodityDateMonth"] = None # set to None if commodity_date_year (nullable) is None # and model_fields_set contains the field - if self.commodity_date_year is None and "commodity_date_year" in self.model_fields_set: - _dict['commodityDateYear'] = None + if ( + self.commodity_date_year is None + and "commodity_date_year" in self.model_fields_set + ): + _dict["commodityDateYear"] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: - _dict['commodityPriceDate'] = None + if ( + self.commodity_price_date is None + and "commodity_price_date" in self.model_fields_set + ): + _dict["commodityPriceDate"] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict['commodityName'] = None + _dict["commodityName"] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict['marketName'] = None + _dict["marketName"] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict['priceTypeName'] = None + _dict["priceTypeName"] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: - _dict['commodityUnitName'] = None + if ( + self.commodity_unit_name is None + and "commodity_unit_name" in self.model_fields_set + ): + _dict["commodityUnitName"] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict['currencyName'] = None + _dict["currencyName"] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict['countryIso3'] = None + _dict["countryIso3"] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict['countryName'] = None + _dict["countryName"] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: - _dict['commodityPriceSourceName'] = None + if ( + self.commodity_price_source_name is None + and "commodity_price_source_name" in self.model_fields_set + ): + _dict["commodityPriceSourceName"] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if self.original_frequency is None and "original_frequency" in self.model_fields_set: - _dict['originalFrequency'] = None + if ( + self.original_frequency is None + and "original_frequency" in self.model_fields_set + ): + _dict["originalFrequency"] = None # set to None if commodity_price (nullable) is None # and model_fields_set contains the field if self.commodity_price is None and "commodity_price" in self.model_fields_set: - _dict['commodityPrice'] = None + _dict["commodityPrice"] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: - _dict['commodityPriceObservations'] = None + if ( + self.commodity_price_observations is None + and "commodity_price_observations" in self.model_fields_set + ): + _dict["commodityPriceObservations"] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: - _dict['commodityPriceFlag'] = None + if ( + self.commodity_price_flag is None + and "commodity_price_flag" in self.model_fields_set + ): + _dict["commodityPriceFlag"] = None return _dict @@ -190,35 +264,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "commodityDateWeek": obj.get("commodityDateWeek"), - "commodityDateMonth": obj.get("commodityDateMonth"), - "commodityDateYear": obj.get("commodityDateYear"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "countryIso3": obj.get("countryIso3"), - "countryName": obj.get("countryName"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "originalFrequency": obj.get("originalFrequency"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceFlag": obj.get("commodityPriceFlag") - }) + _obj = cls.model_validate( + { + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "commodityDateWeek": obj.get("commodityDateWeek"), + "commodityDateMonth": obj.get("commodityDateMonth"), + "commodityDateYear": obj.get("commodityDateYear"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "countryIso3": obj.get("countryIso3"), + "countryName": obj.get("countryName"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "originalFrequency": obj.get("originalFrequency"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceFlag": obj.get("commodityPriceFlag"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/xls_form_definition_new_schema_dto.py b/data_bridges_client/models/xls_form_definition_new_schema_dto.py index 57a4684..cf82b81 100644 --- a/data_bridges_client/models/xls_form_definition_new_schema_dto.py +++ b/data_bridges_client/models/xls_form_definition_new_schema_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class XlsFormDefinitionNewSchemaDTO(BaseModel): """ XlsFormDefinitionNewSchemaDTO - """ # noqa: E501 + """ # noqa: E501 + form_name: Optional[StrictStr] = Field(default=None, alias="formName") form_description: Optional[StrictStr] = Field(default=None, alias="formDescription") form_type: Optional[StrictStr] = Field(default=None, alias="formType") @@ -37,7 +38,16 @@ class XlsFormDefinitionNewSchemaDTO(BaseModel): type: Optional[StrictStr] = None fields: Optional[List[XlsFormFieldsDTO]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["formName", "formDescription", "formType", "adm0Code", "baseSchemaId", "category", "type", "fields"] + __properties: ClassVar[List[str]] = [ + "formName", + "formDescription", + "formType", + "adm0Code", + "baseSchemaId", + "category", + "type", + "fields", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +55,6 @@ class XlsFormDefinitionNewSchemaDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,9 +80,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -86,7 +97,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_fields in self.fields: if _item_fields: _items.append(_item_fields.to_dict()) - _dict['fields'] = _items + _dict["fields"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -95,42 +106,45 @@ def to_dict(self) -> Dict[str, Any]: # set to None if form_name (nullable) is None # and model_fields_set contains the field if self.form_name is None and "form_name" in self.model_fields_set: - _dict['formName'] = None + _dict["formName"] = None # set to None if form_description (nullable) is None # and model_fields_set contains the field - if self.form_description is None and "form_description" in self.model_fields_set: - _dict['formDescription'] = None + if ( + self.form_description is None + and "form_description" in self.model_fields_set + ): + _dict["formDescription"] = None # set to None if form_type (nullable) is None # and model_fields_set contains the field if self.form_type is None and "form_type" in self.model_fields_set: - _dict['formType'] = None + _dict["formType"] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None # set to None if base_schema_id (nullable) is None # and model_fields_set contains the field if self.base_schema_id is None and "base_schema_id" in self.model_fields_set: - _dict['baseSchemaId'] = None + _dict["baseSchemaId"] = None # set to None if category (nullable) is None # and model_fields_set contains the field if self.category is None and "category" in self.model_fields_set: - _dict['category'] = None + _dict["category"] = None # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None # set to None if fields (nullable) is None # and model_fields_set contains the field if self.fields is None and "fields" in self.model_fields_set: - _dict['fields'] = None + _dict["fields"] = None return _dict @@ -143,21 +157,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "formName": obj.get("formName"), - "formDescription": obj.get("formDescription"), - "formType": obj.get("formType"), - "adm0Code": obj.get("adm0Code"), - "baseSchemaId": obj.get("baseSchemaId"), - "category": obj.get("category"), - "type": obj.get("type"), - "fields": [XlsFormFieldsDTO.from_dict(_item) for _item in obj["fields"]] if obj.get("fields") is not None else None - }) + _obj = cls.model_validate( + { + "formName": obj.get("formName"), + "formDescription": obj.get("formDescription"), + "formType": obj.get("formType"), + "adm0Code": obj.get("adm0Code"), + "baseSchemaId": obj.get("baseSchemaId"), + "category": obj.get("category"), + "type": obj.get("type"), + "fields": [XlsFormFieldsDTO.from_dict(_item) for _item in obj["fields"]] + if obj.get("fields") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/xls_form_dto.py b/data_bridges_client/models/xls_form_dto.py index 61299fe..52ca378 100644 --- a/data_bridges_client/models/xls_form_dto.py +++ b/data_bridges_client/models/xls_form_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,19 +23,35 @@ from typing import Optional, Set from typing_extensions import Self + class XlsFormDTO(BaseModel): """ XlsFormDTO - """ # noqa: E501 + """ # noqa: E501 + xls_form_id: Optional[StrictInt] = Field(default=None, alias="xlsFormID") xls_form_name: Optional[StrictStr] = Field(default=None, alias="xlsFormName") - xls_form_create_date: Optional[datetime] = Field(default=None, alias="xlsFormCreateDate") + xls_form_create_date: Optional[datetime] = Field( + default=None, alias="xlsFormCreateDate" + ) user_name: Optional[StrictStr] = Field(default=None, alias="userName") - xls_form_source_file: Optional[StrictStr] = Field(default=None, alias="xlsFormSourceFile") - xls_form_is_base_schema: Optional[StrictBool] = Field(default=None, alias="xlsFormIsBaseSchema") + xls_form_source_file: Optional[StrictStr] = Field( + default=None, alias="xlsFormSourceFile" + ) + xls_form_is_base_schema: Optional[StrictBool] = Field( + default=None, alias="xlsFormIsBaseSchema" + ) adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["xlsFormID", "xlsFormName", "xlsFormCreateDate", "userName", "xlsFormSourceFile", "xlsFormIsBaseSchema", "adm0Code"] + __properties: ClassVar[List[str]] = [ + "xlsFormID", + "xlsFormName", + "xlsFormCreateDate", + "userName", + "xlsFormSourceFile", + "xlsFormIsBaseSchema", + "adm0Code", + ] model_config = ConfigDict( populate_by_name=True, @@ -44,7 +59,6 @@ class XlsFormDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,9 +84,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -87,22 +103,25 @@ def to_dict(self) -> Dict[str, Any]: # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict['xlsFormName'] = None + _dict["xlsFormName"] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict['userName'] = None + _dict["userName"] = None # set to None if xls_form_source_file (nullable) is None # and model_fields_set contains the field - if self.xls_form_source_file is None and "xls_form_source_file" in self.model_fields_set: - _dict['xlsFormSourceFile'] = None + if ( + self.xls_form_source_file is None + and "xls_form_source_file" in self.model_fields_set + ): + _dict["xlsFormSourceFile"] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict['adm0Code'] = None + _dict["adm0Code"] = None return _dict @@ -115,20 +134,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "xlsFormID": obj.get("xlsFormID"), - "xlsFormName": obj.get("xlsFormName"), - "xlsFormCreateDate": obj.get("xlsFormCreateDate"), - "userName": obj.get("userName"), - "xlsFormSourceFile": obj.get("xlsFormSourceFile"), - "xlsFormIsBaseSchema": obj.get("xlsFormIsBaseSchema"), - "adm0Code": obj.get("adm0Code") - }) + _obj = cls.model_validate( + { + "xlsFormID": obj.get("xlsFormID"), + "xlsFormName": obj.get("xlsFormName"), + "xlsFormCreateDate": obj.get("xlsFormCreateDate"), + "userName": obj.get("userName"), + "xlsFormSourceFile": obj.get("xlsFormSourceFile"), + "xlsFormIsBaseSchema": obj.get("xlsFormIsBaseSchema"), + "adm0Code": obj.get("adm0Code"), + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/xls_form_fields_dto.py b/data_bridges_client/models/xls_form_fields_dto.py index dfb1343..8b15a73 100644 --- a/data_bridges_client/models/xls_form_fields_dto.py +++ b/data_bridges_client/models/xls_form_fields_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,14 +23,18 @@ from typing import Optional, Set from typing_extensions import Self + class XlsFormFieldsDTO(BaseModel): """ XlsFormFieldsDTO - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None label: Optional[StrictStr] = None type: Optional[StrictStr] = None - choice_list: Optional[XlsFormListChoicesDTO] = Field(default=None, alias="choiceList") + choice_list: Optional[XlsFormListChoicesDTO] = Field( + default=None, alias="choiceList" + ) additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name", "label", "type", "choiceList"] @@ -41,7 +44,6 @@ class XlsFormFieldsDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,9 +69,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -78,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of choice_list if self.choice_list: - _dict['choiceList'] = self.choice_list.to_dict() + _dict["choiceList"] = self.choice_list.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -87,17 +91,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict['label'] = None + _dict["label"] = None # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict['type'] = None + _dict["type"] = None return _dict @@ -110,17 +114,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "label": obj.get("label"), - "type": obj.get("type"), - "choiceList": XlsFormListChoicesDTO.from_dict(obj["choiceList"]) if obj.get("choiceList") is not None else None - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "label": obj.get("label"), + "type": obj.get("type"), + "choiceList": XlsFormListChoicesDTO.from_dict(obj["choiceList"]) + if obj.get("choiceList") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/xls_form_list_choice_dto.py b/data_bridges_client/models/xls_form_list_choice_dto.py index 0efe100..47f5d82 100644 --- a/data_bridges_client/models/xls_form_list_choice_dto.py +++ b/data_bridges_client/models/xls_form_list_choice_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -23,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class XlsFormListChoiceDTO(BaseModel): """ XlsFormListChoiceDTO - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None label: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} @@ -38,7 +39,6 @@ class XlsFormListChoiceDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,9 +64,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -81,12 +83,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict['label'] = None + _dict["label"] = None return _dict @@ -99,15 +101,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "label": obj.get("label") - }) + _obj = cls.model_validate({"name": obj.get("name"), "label": obj.get("label")}) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/models/xls_form_list_choices_dto.py b/data_bridges_client/models/xls_form_list_choices_dto.py index 93e9c8c..c7137e2 100644 --- a/data_bridges_client/models/xls_form_list_choices_dto.py +++ b/data_bridges_client/models/xls_form_list_choices_dto.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from __future__ import annotations import pprint import re # noqa: F401 @@ -24,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class XlsFormListChoicesDTO(BaseModel): """ XlsFormListChoicesDTO - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None choices: Optional[List[XlsFormListChoiceDTO]] = None additional_properties: Dict[str, Any] = {} @@ -39,7 +40,6 @@ class XlsFormListChoicesDTO(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,9 +65,11 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set([ - "additional_properties", - ]) + excluded_fields: Set[str] = set( + [ + "additional_properties", + ] + ) _dict = self.model_dump( by_alias=True, @@ -80,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_choices in self.choices: if _item_choices: _items.append(_item_choices.to_dict()) - _dict['choices'] = _items + _dict["choices"] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -89,12 +91,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict['name'] = None + _dict["name"] = None # set to None if choices (nullable) is None # and model_fields_set contains the field if self.choices is None and "choices" in self.model_fields_set: - _dict['choices'] = None + _dict["choices"] = None return _dict @@ -107,15 +109,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "choices": [XlsFormListChoiceDTO.from_dict(_item) for _item in obj["choices"]] if obj.get("choices") is not None else None - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "choices": [ + XlsFormListChoiceDTO.from_dict(_item) for _item in obj["choices"] + ] + if obj.get("choices") is not None + else None, + } + ) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj - - diff --git a/data_bridges_client/rest.py b/data_bridges_client/rest.py index 52e0bd6..6a92062 100644 --- a/data_bridges_client/rest.py +++ b/data_bridges_client/rest.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import io import json import re @@ -37,7 +36,6 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: self.response = resp self.status = resp.status @@ -59,7 +57,6 @@ def getheader(self, name, default=None): class RESTClientObject: - def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -79,22 +76,19 @@ def __init__(self, configuration) -> None: "key_file": configuration.key_file, } if configuration.assert_hostname is not None: - pool_args['assert_hostname'] = ( - configuration.assert_hostname - ) + pool_args["assert_hostname"] = configuration.assert_hostname if configuration.retries is not None: - pool_args['retries'] = configuration.retries + pool_args["retries"] = configuration.retries if configuration.tls_server_name: - pool_args['server_hostname'] = configuration.tls_server_name - + pool_args["server_hostname"] = configuration.tls_server_name if configuration.socket_options is not None: - pool_args['socket_options'] = configuration.socket_options + pool_args["socket_options"] = configuration.socket_options if configuration.connection_pool_maxsize is not None: - pool_args['maxsize'] = configuration.connection_pool_maxsize + pool_args["maxsize"] = configuration.connection_pool_maxsize # https pool manager self.pool_manager: urllib3.PoolManager @@ -102,6 +96,7 @@ def __init__(self, configuration) -> None: if configuration.proxy: if is_socks_proxy_url(configuration.proxy): from urllib3.contrib.socks import SOCKSProxyManager + pool_args["proxy_url"] = configuration.proxy pool_args["headers"] = configuration.proxy_headers self.pool_manager = SOCKSProxyManager(**pool_args) @@ -119,7 +114,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None + _request_timeout=None, ): """Perform requests. @@ -136,15 +131,7 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in [ - 'GET', - 'HEAD', - 'DELETE', - 'POST', - 'PUT', - 'PATCH', - 'OPTIONS' - ] + assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] if post_params and body: raise ApiValueError( @@ -158,25 +145,17 @@ def request( if _request_timeout: if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) - elif ( - isinstance(_request_timeout, tuple) - and len(_request_timeout) == 2 - ): + elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: timeout = urllib3.Timeout( - connect=_request_timeout[0], - read=_request_timeout[1] + connect=_request_timeout[0], read=_request_timeout[1] ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - + if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: # no content type provided or payload is json - content_type = headers.get('Content-Type') - if ( - not content_type - or re.search('json', content_type, re.IGNORECASE) - ): + content_type = headers.get("Content-Type") + if not content_type or re.search("json", content_type, re.IGNORECASE): request_body = None if body is not None: request_body = json.dumps(body) @@ -186,9 +165,9 @@ def request( body=request_body, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif content_type == 'application/x-www-form-urlencoded': + elif content_type == "application/x-www-form-urlencoded": r = self.pool_manager.request( method, url, @@ -196,15 +175,18 @@ def request( encode_multipart=False, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif content_type == 'multipart/form-data': + elif content_type == "multipart/form-data": # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers['Content-Type'] + del headers["Content-Type"] # Ensures that dict objects are serialized - post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + post_params = [ + (a, json.dumps(b)) if isinstance(b, dict) else (a, b) + for a, b in post_params + ] r = self.pool_manager.request( method, url, @@ -212,7 +194,7 @@ def request( encode_multipart=True, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -224,9 +206,9 @@ def request( body=body, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, @@ -234,7 +216,8 @@ def request( body=request_body, preload_content=False, timeout=timeout, - headers=headers) + headers=headers, + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -249,7 +232,7 @@ def request( fields={}, timeout=timeout, headers=headers, - preload_content=False + preload_content=False, ) except urllib3.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/data_bridges_client/token.py b/data_bridges_client/token.py index 41416eb..7152a5c 100644 --- a/data_bridges_client/token.py +++ b/data_bridges_client/token.py @@ -50,7 +50,9 @@ def refresh_urllib3(self, scopes: Optional[str] = None): "POST", f"{self.BASE_URL}/token", body={"grant_type": "client_credentials", "scope": " ".join(scopes)}, - headers=urllib3.make_headers(basic_auth=f"{self.api_key}:{self.api_secret}"), + headers=urllib3.make_headers( + basic_auth=f"{self.api_key}:{self.api_secret}" + ), ) return resp diff --git a/setup.py b/setup.py index cb989d2..f71b79f 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -42,7 +41,7 @@ install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, - long_description_content_type='text/markdown', + long_description_content_type="text/markdown", long_description="""\ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern """, # noqa: E501 diff --git a/test/test_bad_request_dto.py b/test/test_bad_request_dto.py index c48a452..613e4cb 100644 --- a/test/test_bad_request_dto.py +++ b/test/test_bad_request_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.bad_request_dto import BadRequestDTO + class TestBadRequestDTO(unittest.TestCase): """BadRequestDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> BadRequestDTO: """Test BadRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `BadRequestDTO` """ model = BadRequestDTO() @@ -48,5 +48,6 @@ def testBadRequestDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_cari_adm0_values_dto.py b/test/test_cari_adm0_values_dto.py index 9ad7610..8a8fe51 100644 --- a/test/test_cari_adm0_values_dto.py +++ b/test/test_cari_adm0_values_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO + class TestCariAdm0ValuesDTO(unittest.TestCase): """CariAdm0ValuesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm0ValuesDTO: """Test CariAdm0ValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CariAdm0ValuesDTO` """ model = CariAdm0ValuesDTO() @@ -58,5 +58,6 @@ def testCariAdm0ValuesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_cari_adm0_values_dto_paged_result.py b/test/test_cari_adm0_values_dto_paged_result.py index 8c6e32c..3ef92d7 100644 --- a/test/test_cari_adm0_values_dto_paged_result.py +++ b/test/test_cari_adm0_values_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( + CariAdm0ValuesDTOPagedResult, +) + class TestCariAdm0ValuesDTOPagedResult(unittest.TestCase): """CariAdm0ValuesDTOPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm0ValuesDTOPagedResult: """Test CariAdm0ValuesDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CariAdm0ValuesDTOPagedResult` """ model = CariAdm0ValuesDTOPagedResult() @@ -54,5 +56,6 @@ def testCariAdm0ValuesDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_cari_adm1_values_dto.py b/test/test_cari_adm1_values_dto.py index 19f741c..b44b8b5 100644 --- a/test/test_cari_adm1_values_dto.py +++ b/test/test_cari_adm1_values_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO + class TestCariAdm1ValuesDTO(unittest.TestCase): """CariAdm1ValuesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm1ValuesDTO: """Test CariAdm1ValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CariAdm1ValuesDTO` """ model = CariAdm1ValuesDTO() @@ -60,5 +60,6 @@ def testCariAdm1ValuesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_cari_adm1_values_dto_paged_result.py b/test/test_cari_adm1_values_dto_paged_result.py index 379ee72..d979afb 100644 --- a/test/test_cari_adm1_values_dto_paged_result.py +++ b/test/test_cari_adm1_values_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( + CariAdm1ValuesDTOPagedResult, +) + class TestCariAdm1ValuesDTOPagedResult(unittest.TestCase): """CariAdm1ValuesDTOPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm1ValuesDTOPagedResult: """Test CariAdm1ValuesDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CariAdm1ValuesDTOPagedResult` """ model = CariAdm1ValuesDTOPagedResult() @@ -54,5 +56,6 @@ def testCariAdm1ValuesDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_categories_and_indicators_dto.py b/test/test_categories_and_indicators_dto.py index c2d8efa..d51ed52 100644 --- a/test/test_categories_and_indicators_dto.py +++ b/test/test_categories_and_indicators_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.models.categories_and_indicators_dto import ( + CategoriesAndIndicatorsDTO, +) + class TestCategoriesAndIndicatorsDTO(unittest.TestCase): """CategoriesAndIndicatorsDTO unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CategoriesAndIndicatorsDTO: """Test CategoriesAndIndicatorsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CategoriesAndIndicatorsDTO` """ model = CategoriesAndIndicatorsDTO() @@ -57,5 +59,6 @@ def testCategoriesAndIndicatorsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodities_api.py b/test/test_commodities_api.py index 78e8cd3..255ccf8 100644 --- a/test/test_commodities_api.py +++ b/test/test_commodities_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.commodities_api import CommoditiesApi @@ -42,5 +41,5 @@ def test_commodities_list_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodity_dto.py b/test/test_commodity_dto.py index c89a83e..013b514 100644 --- a/test/test_commodity_dto.py +++ b/test/test_commodity_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.commodity_dto import CommodityDTO + class TestCommodityDTO(unittest.TestCase): """CommodityDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityDTO: """Test CommodityDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CommodityDTO` """ model = CommodityDTO() @@ -65,5 +65,6 @@ def testCommodityDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodity_price_dto.py b/test/test_commodity_price_dto.py index c618476..b516412 100644 --- a/test/test_commodity_price_dto.py +++ b/test/test_commodity_price_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO + class TestCommodityPriceDTO(unittest.TestCase): """CommodityPriceDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityPriceDTO: """Test CommodityPriceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CommodityPriceDTO` """ model = CommodityPriceDTO() @@ -73,5 +73,6 @@ def testCommodityPriceDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodity_processing_dto.py b/test/test_commodity_processing_dto.py index 2ec77c0..d12bca5 100644 --- a/test/test_commodity_processing_dto.py +++ b/test/test_commodity_processing_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO + class TestCommodityProcessingDTO(unittest.TestCase): """CommodityProcessingDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityProcessingDTO: """Test CommodityProcessingDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CommodityProcessingDTO` """ model = CommodityProcessingDTO() @@ -49,5 +49,6 @@ def testCommodityProcessingDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodity_quality_dto.py b/test/test_commodity_quality_dto.py index ec8293d..0ea5fca 100644 --- a/test/test_commodity_quality_dto.py +++ b/test/test_commodity_quality_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO + class TestCommodityQualityDTO(unittest.TestCase): """CommodityQualityDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityQualityDTO: """Test CommodityQualityDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CommodityQualityDTO` """ model = CommodityQualityDTO() @@ -49,5 +49,6 @@ def testCommodityQualityDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_commodity_units_api.py b/test/test_commodity_units_api.py index 7d3ac99..af0d3e3 100644 --- a/test/test_commodity_units_api.py +++ b/test/test_commodity_units_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.commodity_units_api import CommodityUnitsApi @@ -42,5 +41,5 @@ def test_commodity_units_list_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_currency_api.py b/test/test_currency_api.py index 4720bfa..2d0caa0 100644 --- a/test/test_currency_api.py +++ b/test/test_currency_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.currency_api import CurrencyApi @@ -42,5 +41,5 @@ def test_currency_usd_indirect_quotation_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_currency_dto.py b/test/test_currency_dto.py index 83b4a87..04bd587 100644 --- a/test/test_currency_dto.py +++ b/test/test_currency_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.currency_dto import CurrencyDTO + class TestCurrencyDTO(unittest.TestCase): """CurrencyDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CurrencyDTO: """Test CurrencyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CurrencyDTO` """ model = CurrencyDTO() @@ -52,5 +52,6 @@ def testCurrencyDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_economic_data_api.py b/test/test_economic_data_api.py index 42e7dbe..e470f27 100644 --- a/test/test_economic_data_api.py +++ b/test/test_economic_data_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.economic_data_api import EconomicDataApi @@ -42,5 +41,5 @@ def test_economic_data_indicator_name_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_economic_data_dto.py b/test/test_economic_data_dto.py index 9623cef..88a6c4a 100644 --- a/test/test_economic_data_dto.py +++ b/test/test_economic_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.economic_data_dto import EconomicDataDTO + class TestEconomicDataDTO(unittest.TestCase): """EconomicDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicDataDTO: """Test EconomicDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `EconomicDataDTO` """ model = EconomicDataDTO() @@ -49,5 +49,6 @@ def testEconomicDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_economic_indicator_property.py b/test/test_economic_indicator_property.py index d54dcea..c1e5fdc 100644 --- a/test/test_economic_indicator_property.py +++ b/test/test_economic_indicator_property.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty +from data_bridges_client.models.economic_indicator_property import ( + EconomicIndicatorProperty, +) + class TestEconomicIndicatorProperty(unittest.TestCase): """EconomicIndicatorProperty unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicIndicatorProperty: """Test EconomicIndicatorProperty - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `EconomicIndicatorProperty` """ model = EconomicIndicatorProperty() @@ -55,5 +57,6 @@ def testEconomicIndicatorProperty(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_economic_indicator_property_paged_result.py b/test/test_economic_indicator_property_paged_result.py index 43281c7..8ebb005 100644 --- a/test/test_economic_indicator_property_paged_result.py +++ b/test/test_economic_indicator_property_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult +from data_bridges_client.models.economic_indicator_property_paged_result import ( + EconomicIndicatorPropertyPagedResult, +) + class TestEconomicIndicatorPropertyPagedResult(unittest.TestCase): """EconomicIndicatorPropertyPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicIndicatorPropertyPagedResult: """Test EconomicIndicatorPropertyPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `EconomicIndicatorPropertyPagedResult` """ model = EconomicIndicatorPropertyPagedResult() @@ -54,5 +56,6 @@ def testEconomicIndicatorPropertyPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_extended_alps_value_dto.py b/test/test_extended_alps_value_dto.py index e5befce..04193a6 100644 --- a/test/test_extended_alps_value_dto.py +++ b/test/test_extended_alps_value_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto + class TestExtendedAlpsValueDto(unittest.TestCase): """ExtendedAlpsValueDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExtendedAlpsValueDto: """Test ExtendedAlpsValueDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExtendedAlpsValueDto` """ model = ExtendedAlpsValueDto() @@ -66,5 +66,6 @@ def testExtendedAlpsValueDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_extended_alps_value_dto_paged_result.py b/test/test_extended_alps_value_dto_paged_result.py index 81edf80..af3e562 100644 --- a/test/test_extended_alps_value_dto_paged_result.py +++ b/test/test_extended_alps_value_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult +from data_bridges_client.models.extended_alps_value_dto_paged_result import ( + ExtendedAlpsValueDtoPagedResult, +) + class TestExtendedAlpsValueDtoPagedResult(unittest.TestCase): """ExtendedAlpsValueDtoPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExtendedAlpsValueDtoPagedResult: """Test ExtendedAlpsValueDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExtendedAlpsValueDtoPagedResult` """ model = ExtendedAlpsValueDtoPagedResult() @@ -54,5 +56,6 @@ def testExtendedAlpsValueDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py index c105fdf..1092d09 100644 --- a/test/test_feature.py +++ b/test/test_feature.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.feature import Feature + class TestFeature(unittest.TestCase): """Feature unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Feature: """Test Feature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Feature` """ model = Feature() @@ -58,5 +58,6 @@ def testFeature(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_geometry.py b/test/test_geometry.py index a8e05f0..59575c8 100644 --- a/test/test_geometry.py +++ b/test/test_geometry.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.geometry import Geometry + class TestGeometry(unittest.TestCase): """Geometry unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Geometry: """Test Geometry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Geometry` """ model = Geometry() @@ -51,5 +51,6 @@ def testGeometry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_global_outlook_api.py b/test/test_global_outlook_api.py index 9384bf5..0c6ba77 100644 --- a/test/test_global_outlook_api.py +++ b/test/test_global_outlook_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.global_outlook_api import GlobalOutlookApi @@ -49,5 +48,5 @@ def test_global_outlook_regional_latest_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_global_outlook_api_dto.py b/test/test_global_outlook_api_dto.py index 99c7e69..2b210d7 100644 --- a/test/test_global_outlook_api_dto.py +++ b/test/test_global_outlook_api_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto + class TestGlobalOutlookApiDto(unittest.TestCase): """GlobalOutlookApiDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookApiDto: """Test GlobalOutlookApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GlobalOutlookApiDto` """ model = GlobalOutlookApiDto() @@ -52,5 +52,6 @@ def testGlobalOutlookApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_global_outlook_country_api_dto.py b/test/test_global_outlook_country_api_dto.py index 389541c..8f2cf48 100644 --- a/test/test_global_outlook_country_api_dto.py +++ b/test/test_global_outlook_country_api_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_country_api_dto import ( + GlobalOutlookCountryApiDto, +) + class TestGlobalOutlookCountryApiDto(unittest.TestCase): """GlobalOutlookCountryApiDto unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookCountryApiDto: """Test GlobalOutlookCountryApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GlobalOutlookCountryApiDto` """ model = GlobalOutlookCountryApiDto() @@ -51,5 +53,6 @@ def testGlobalOutlookCountryApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_global_outlook_regional_api_dto.py b/test/test_global_outlook_regional_api_dto.py index 921b63f..1463859 100644 --- a/test/test_global_outlook_regional_api_dto.py +++ b/test/test_global_outlook_regional_api_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import ( + GlobalOutlookRegionalApiDto, +) + class TestGlobalOutlookRegionalApiDto(unittest.TestCase): """GlobalOutlookRegionalApiDto unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookRegionalApiDto: """Test GlobalOutlookRegionalApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GlobalOutlookRegionalApiDto` """ model = GlobalOutlookRegionalApiDto() @@ -52,5 +54,6 @@ def testGlobalOutlookRegionalApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_household_survey_list_dto.py b/test/test_household_survey_list_dto.py index 6ed206a..c93f447 100644 --- a/test/test_household_survey_list_dto.py +++ b/test/test_household_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO + class TestHouseholdSurveyListDTO(unittest.TestCase): """HouseholdSurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HouseholdSurveyListDTO: """Test HouseholdSurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HouseholdSurveyListDTO` """ model = HouseholdSurveyListDTO() @@ -82,5 +82,6 @@ def testHouseholdSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_household_survey_list_dto_paged_result.py b/test/test_household_survey_list_dto_paged_result.py index c2409e1..5e3744c 100644 --- a/test/test_household_survey_list_dto_paged_result.py +++ b/test/test_household_survey_list_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult +from data_bridges_client.models.household_survey_list_dto_paged_result import ( + HouseholdSurveyListDTOPagedResult, +) + class TestHouseholdSurveyListDTOPagedResult(unittest.TestCase): """HouseholdSurveyListDTOPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HouseholdSurveyListDTOPagedResult: """Test HouseholdSurveyListDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HouseholdSurveyListDTOPagedResult` """ model = HouseholdSurveyListDTOPagedResult() @@ -54,5 +56,6 @@ def testHouseholdSurveyListDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_hunger_hot_spot_data_dto.py b/test/test_hunger_hot_spot_data_dto.py index 2ed48ec..d55c235 100644 --- a/test/test_hunger_hot_spot_data_dto.py +++ b/test/test_hunger_hot_spot_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO + class TestHungerHotSpotDataDTO(unittest.TestCase): """HungerHotSpotDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HungerHotSpotDataDTO: """Test HungerHotSpotDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HungerHotSpotDataDTO` """ model = HungerHotSpotDataDTO() @@ -57,5 +57,6 @@ def testHungerHotSpotDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_hunger_hot_spot_data_dto_paged_result.py b/test/test_hunger_hot_spot_data_dto_paged_result.py index 3ce65c9..03790da 100644 --- a/test/test_hunger_hot_spot_data_dto_paged_result.py +++ b/test/test_hunger_hot_spot_data_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( + HungerHotSpotDataDTOPagedResult, +) + class TestHungerHotSpotDataDTOPagedResult(unittest.TestCase): """HungerHotSpotDataDTOPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HungerHotSpotDataDTOPagedResult: """Test HungerHotSpotDataDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HungerHotSpotDataDTOPagedResult` """ model = HungerHotSpotDataDTOPagedResult() @@ -54,5 +56,6 @@ def testHungerHotSpotDataDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_hunger_hotspot_api.py b/test/test_hunger_hotspot_api.py index 2049c9a..f5226ca 100644 --- a/test/test_hunger_hotspot_api.py +++ b/test/test_hunger_hotspot_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.hunger_hotspot_api import HungerHotspotApi @@ -42,5 +41,5 @@ def test_hunger_hotspot_data_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_incubation_api.py b/test/test_incubation_api.py index e294dc7..69fdcfe 100644 --- a/test/test_incubation_api.py +++ b/test/test_incubation_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.incubation_api import IncubationApi @@ -91,5 +90,5 @@ def test_xls_forms_definition_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipc_historical_datum_dto.py b/test/test_ipc_historical_datum_dto.py index b68a78e..588955f 100644 --- a/test/test_ipc_historical_datum_dto.py +++ b/test/test_ipc_historical_datum_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto + class TestIpcHistoricalDatumDto(unittest.TestCase): """IpcHistoricalDatumDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcHistoricalDatumDto: """Test IpcHistoricalDatumDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcHistoricalDatumDto` """ model = IpcHistoricalDatumDto() @@ -99,5 +99,6 @@ def testIpcHistoricalDatumDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipc_historical_datum_dto_paged_result.py b/test/test_ipc_historical_datum_dto_paged_result.py index c1cb934..331e1f1 100644 --- a/test/test_ipc_historical_datum_dto_paged_result.py +++ b/test/test_ipc_historical_datum_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( + IpcHistoricalDatumDtoPagedResult, +) + class TestIpcHistoricalDatumDtoPagedResult(unittest.TestCase): """IpcHistoricalDatumDtoPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcHistoricalDatumDtoPagedResult: """Test IpcHistoricalDatumDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcHistoricalDatumDtoPagedResult` """ model = IpcHistoricalDatumDtoPagedResult() @@ -54,5 +56,6 @@ def testIpcHistoricalDatumDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto.py b/test/test_ipcch_and_equivalent_peaks_dto.py index cdddbf2..9d7de23 100644 --- a/test/test_ipcch_and_equivalent_peaks_dto.py +++ b/test/test_ipcch_and_equivalent_peaks_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( + IpcchAndEquivalentPeaksDTO, +) + class TestIpcchAndEquivalentPeaksDTO(unittest.TestCase): """IpcchAndEquivalentPeaksDTO unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTO: """Test IpcchAndEquivalentPeaksDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTO` """ model = IpcchAndEquivalentPeaksDTO() @@ -55,5 +57,6 @@ def testIpcchAndEquivalentPeaksDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py index e10e0cf..590eed9 100644 --- a/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py +++ b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( + IpcchAndEquivalentPeaksDTOPagedResult, +) + class TestIpcchAndEquivalentPeaksDTOPagedResult(unittest.TestCase): """IpcchAndEquivalentPeaksDTOPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTOPagedResult: """Test IpcchAndEquivalentPeaksDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTOPagedResult` """ model = IpcchAndEquivalentPeaksDTOPagedResult() @@ -54,5 +56,6 @@ def testIpcchAndEquivalentPeaksDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_api.py b/test/test_ipcch_api.py index e75f289..0f9dd75 100644 --- a/test/test_ipcch_api.py +++ b/test/test_ipcch_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.ipcch_api import IpcchApi @@ -63,5 +62,5 @@ def test_ipcch_ipcch_historical_data_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_base_dto.py b/test/test_ipcch_base_dto.py index 52e2e42..fd3cda6 100644 --- a/test/test_ipcch_base_dto.py +++ b/test/test_ipcch_base_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto + class TestIpcchBaseDto(unittest.TestCase): """IpcchBaseDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchBaseDto: """Test IpcchBaseDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchBaseDto` """ model = IpcchBaseDto() @@ -70,5 +70,6 @@ def testIpcchBaseDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_base_dto_paged_result.py b/test/test_ipcch_base_dto_paged_result.py index b6a34f1..3ab148d 100644 --- a/test/test_ipcch_base_dto_paged_result.py +++ b/test/test_ipcch_base_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import ( + IpcchBaseDtoPagedResult, +) + class TestIpcchBaseDtoPagedResult(unittest.TestCase): """IpcchBaseDtoPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchBaseDtoPagedResult: """Test IpcchBaseDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchBaseDtoPagedResult` """ model = IpcchBaseDtoPagedResult() @@ -54,5 +56,6 @@ def testIpcchBaseDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_peaks_dto.py b/test/test_ipcch_peaks_dto.py index f72f64a..53c88a3 100644 --- a/test/test_ipcch_peaks_dto.py +++ b/test/test_ipcch_peaks_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto + class TestIpcchPeaksDto(unittest.TestCase): """IpcchPeaksDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchPeaksDto: """Test IpcchPeaksDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchPeaksDto` """ model = IpcchPeaksDto() @@ -71,5 +71,6 @@ def testIpcchPeaksDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_ipcch_peaks_dto_paged_result.py b/test/test_ipcch_peaks_dto_paged_result.py index c2529b6..0c7731f 100644 --- a/test/test_ipcch_peaks_dto_paged_result.py +++ b/test/test_ipcch_peaks_dto_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( + IpcchPeaksDtoPagedResult, +) + class TestIpcchPeaksDtoPagedResult(unittest.TestCase): """IpcchPeaksDtoPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchPeaksDtoPagedResult: """Test IpcchPeaksDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `IpcchPeaksDtoPagedResult` """ model = IpcchPeaksDtoPagedResult() @@ -54,5 +56,6 @@ def testIpcchPeaksDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_key_name_dto.py b/test/test_key_name_dto.py index 027ce92..b6564c9 100644 --- a/test/test_key_name_dto.py +++ b/test/test_key_name_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.key_name_dto import KeyNameDto + class TestKeyNameDto(unittest.TestCase): """KeyNameDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KeyNameDto: """Test KeyNameDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KeyNameDto` """ model = KeyNameDto() @@ -49,5 +49,6 @@ def testKeyNameDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_list_item_dto.py b/test/test_list_item_dto.py index 82ca947..b51e740 100644 --- a/test/test_list_item_dto.py +++ b/test/test_list_item_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.list_item_dto import ListItemDto + class TestListItemDto(unittest.TestCase): """ListItemDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListItemDto: """Test ListItemDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListItemDto` """ model = ListItemDto() @@ -52,5 +52,6 @@ def testListItemDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_market_dto.py b/test/test_market_dto.py index 9aea88b..d3b2adb 100644 --- a/test/test_market_dto.py +++ b/test/test_market_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.market_dto import MarketDTO + class TestMarketDTO(unittest.TestCase): """MarketDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MarketDTO: """Test MarketDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `MarketDTO` """ model = MarketDTO() @@ -56,5 +56,6 @@ def testMarketDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_market_geo_json_root.py b/test/test_market_geo_json_root.py index dd2046d..11b4260 100644 --- a/test/test_market_geo_json_root.py +++ b/test/test_market_geo_json_root.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot + class TestMarketGeoJsonRoot(unittest.TestCase): """MarketGeoJsonRoot unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MarketGeoJsonRoot: """Test MarketGeoJsonRoot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `MarketGeoJsonRoot` """ model = MarketGeoJsonRoot() @@ -54,5 +54,6 @@ def testMarketGeoJsonRoot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_market_prices_api.py b/test/test_market_prices_api.py index afa438e..440cf15 100644 --- a/test/test_market_prices_api.py +++ b/test/test_market_prices_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.market_prices_api import MarketPricesApi @@ -63,5 +62,5 @@ def test_market_prices_price_weekly_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_markets_api.py b/test/test_markets_api.py index 0824098..0ed3325 100644 --- a/test/test_markets_api.py +++ b/test/test_markets_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.markets_api import MarketsApi @@ -56,5 +55,5 @@ def test_markets_nearby_markets_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_mfi_processed_data_dto.py b/test/test_mfi_processed_data_dto.py index aad07e6..ffc7aba 100644 --- a/test/test_mfi_processed_data_dto.py +++ b/test/test_mfi_processed_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO + class TestMFIProcessedDataDTO(unittest.TestCase): """MFIProcessedDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MFIProcessedDataDTO: """Test MFIProcessedDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `MFIProcessedDataDTO` """ model = MFIProcessedDataDTO() @@ -73,5 +73,6 @@ def testMFIProcessedDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_nearby_markets_dto.py b/test/test_nearby_markets_dto.py index a8730fb..9789b9f 100644 --- a/test/test_nearby_markets_dto.py +++ b/test/test_nearby_markets_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO + class TestNearbyMarketsDTO(unittest.TestCase): """NearbyMarketsDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NearbyMarketsDTO: """Test NearbyMarketsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NearbyMarketsDTO` """ model = NearbyMarketsDTO() @@ -50,5 +50,6 @@ def testNearbyMarketsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_commodity_list_dto.py b/test/test_paged_commodity_list_dto.py index 2678850..36c23ad 100644 --- a/test/test_paged_commodity_list_dto.py +++ b/test/test_paged_commodity_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO + class TestPagedCommodityListDTO(unittest.TestCase): """PagedCommodityListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCommodityListDTO: """Test PagedCommodityListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedCommodityListDTO` """ model = PagedCommodityListDTO() @@ -54,5 +54,6 @@ def testPagedCommodityListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_commodity_price_list_dto.py b/test/test_paged_commodity_price_list_dto.py index e84c767..791ecfd 100644 --- a/test/test_paged_commodity_price_list_dto.py +++ b/test/test_paged_commodity_price_list_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO +from data_bridges_client.models.paged_commodity_price_list_dto import ( + PagedCommodityPriceListDTO, +) + class TestPagedCommodityPriceListDTO(unittest.TestCase): """PagedCommodityPriceListDTO unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCommodityPriceListDTO: """Test PagedCommodityPriceListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedCommodityPriceListDTO` """ model = PagedCommodityPriceListDTO() @@ -54,5 +56,6 @@ def testPagedCommodityPriceListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py index 178477f..9138fcd 100644 --- a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py +++ b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( + PagedCommodityWeeklyAggregatedPriceListDTO, +) + class TestPagedCommodityWeeklyAggregatedPriceListDTO(unittest.TestCase): """PagedCommodityWeeklyAggregatedPriceListDTO unit test stubs""" @@ -26,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PagedCommodityWeeklyAggregatedPriceListDTO: + def make_instance( + self, include_optional + ) -> PagedCommodityWeeklyAggregatedPriceListDTO: """Test PagedCommodityWeeklyAggregatedPriceListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedCommodityWeeklyAggregatedPriceListDTO` """ model = PagedCommodityWeeklyAggregatedPriceListDTO() @@ -54,5 +58,6 @@ def testPagedCommodityWeeklyAggregatedPriceListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_currency_list_dto.py b/test/test_paged_currency_list_dto.py index 2c223d9..214d81b 100644 --- a/test/test_paged_currency_list_dto.py +++ b/test/test_paged_currency_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO + class TestPagedCurrencyListDTO(unittest.TestCase): """PagedCurrencyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCurrencyListDTO: """Test PagedCurrencyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedCurrencyListDTO` """ model = PagedCurrencyListDTO() @@ -54,5 +54,6 @@ def testPagedCurrencyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_economic_data_dto.py b/test/test_paged_economic_data_dto.py index 4e1ffe5..9f5eef5 100644 --- a/test/test_paged_economic_data_dto.py +++ b/test/test_paged_economic_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO + class TestPagedEconomicDataDTO(unittest.TestCase): """PagedEconomicDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedEconomicDataDTO: """Test PagedEconomicDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedEconomicDataDTO` """ model = PagedEconomicDataDTO() @@ -57,5 +57,6 @@ def testPagedEconomicDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_market_list_dto.py b/test/test_paged_market_list_dto.py index 614e9f5..0e50208 100644 --- a/test/test_paged_market_list_dto.py +++ b/test/test_paged_market_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO + class TestPagedMarketListDTO(unittest.TestCase): """PagedMarketListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedMarketListDTO: """Test PagedMarketListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedMarketListDTO` """ model = PagedMarketListDTO() @@ -54,5 +54,6 @@ def testPagedMarketListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_processed_data_dto.py b/test/test_paged_processed_data_dto.py index defdca5..2aeb671 100644 --- a/test/test_paged_processed_data_dto.py +++ b/test/test_paged_processed_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO + class TestPagedProcessedDataDTO(unittest.TestCase): """PagedProcessedDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedProcessedDataDTO: """Test PagedProcessedDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedProcessedDataDTO` """ model = PagedProcessedDataDTO() @@ -55,5 +55,6 @@ def testPagedProcessedDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_survey_list_dto.py b/test/test_paged_survey_list_dto.py index e58be18..8cc66a5 100644 --- a/test/test_paged_survey_list_dto.py +++ b/test/test_paged_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO + class TestPagedSurveyListDTO(unittest.TestCase): """PagedSurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedSurveyListDTO: """Test PagedSurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedSurveyListDTO` """ model = PagedSurveyListDTO() @@ -54,5 +54,6 @@ def testPagedSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_survey_responses_dto.py b/test/test_paged_survey_responses_dto.py index 6fad96c..1c36a12 100644 --- a/test/test_paged_survey_responses_dto.py +++ b/test/test_paged_survey_responses_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.paged_survey_responses_dto import ( + PagedSurveyResponsesDTO, +) + class TestPagedSurveyResponsesDTO(unittest.TestCase): """PagedSurveyResponsesDTO unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedSurveyResponsesDTO: """Test PagedSurveyResponsesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedSurveyResponsesDTO` """ model = PagedSurveyResponsesDTO() @@ -52,5 +54,6 @@ def testPagedSurveyResponsesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_paged_xls_form_list_dto.py b/test/test_paged_xls_form_list_dto.py index 8776611..511cf68 100644 --- a/test/test_paged_xls_form_list_dto.py +++ b/test/test_paged_xls_form_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO + class TestPagedXlsFormListDTO(unittest.TestCase): """PagedXlsFormListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedXlsFormListDTO: """Test PagedXlsFormListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PagedXlsFormListDTO` """ model = PagedXlsFormListDTO() @@ -54,5 +54,6 @@ def testPagedXlsFormListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_problem_details.py b/test/test_problem_details.py index f99cac6..326d87c 100644 --- a/test/test_problem_details.py +++ b/test/test_problem_details.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.problem_details import ProblemDetails + class TestProblemDetails(unittest.TestCase): """ProblemDetails unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ProblemDetails: """Test ProblemDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ProblemDetails` """ model = ProblemDetails() @@ -52,5 +52,6 @@ def testProblemDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_properties.py b/test/test_properties.py index 924ed94..93e41d8 100644 --- a/test/test_properties.py +++ b/test/test_properties.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.properties import Properties + class TestProperties(unittest.TestCase): """Properties unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Properties: """Test Properties - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Properties` """ model = Properties() @@ -48,5 +48,6 @@ def testProperties(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_api.py b/test/test_rpme_api.py index 316ae48..5004434 100644 --- a/test/test_rpme_api.py +++ b/test/test_rpme_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.rpme_api import RpmeApi @@ -70,5 +69,5 @@ def test_rpme_xls_forms_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_assessment.py b/test/test_rpme_assessment.py index d441ebf..22824b8 100644 --- a/test/test_rpme_assessment.py +++ b/test/test_rpme_assessment.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.rpme_assessment import RpmeAssessment + class TestRpmeAssessment(unittest.TestCase): """RpmeAssessment unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeAssessment: """Test RpmeAssessment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RpmeAssessment` """ model = RpmeAssessment() @@ -71,5 +71,6 @@ def testRpmeAssessment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_assessment_paged_result.py b/test/test_rpme_assessment_paged_result.py index d68b4ec..c0332d4 100644 --- a/test/test_rpme_assessment_paged_result.py +++ b/test/test_rpme_assessment_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult +from data_bridges_client.models.rpme_assessment_paged_result import ( + RpmeAssessmentPagedResult, +) + class TestRpmeAssessmentPagedResult(unittest.TestCase): """RpmeAssessmentPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeAssessmentPagedResult: """Test RpmeAssessmentPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RpmeAssessmentPagedResult` """ model = RpmeAssessmentPagedResult() @@ -54,5 +56,6 @@ def testRpmeAssessmentPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_output_values.py b/test/test_rpme_output_values.py index 3eec31a..2e02b68 100644 --- a/test/test_rpme_output_values.py +++ b/test/test_rpme_output_values.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.rpme_output_values import RpmeOutputValues + class TestRpmeOutputValues(unittest.TestCase): """RpmeOutputValues unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeOutputValues: """Test RpmeOutputValues - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RpmeOutputValues` """ model = RpmeOutputValues() @@ -49,5 +49,6 @@ def testRpmeOutputValues(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_variable.py b/test/test_rpme_variable.py index 2888b1c..be9214e 100644 --- a/test/test_rpme_variable.py +++ b/test/test_rpme_variable.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.rpme_variable import RpmeVariable + class TestRpmeVariable(unittest.TestCase): """RpmeVariable unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeVariable: """Test RpmeVariable - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RpmeVariable` """ model = RpmeVariable() @@ -56,5 +56,6 @@ def testRpmeVariable(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_rpme_variable_paged_result.py b/test/test_rpme_variable_paged_result.py index 8d9cfe2..b224aee 100644 --- a/test/test_rpme_variable_paged_result.py +++ b/test/test_rpme_variable_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult +from data_bridges_client.models.rpme_variable_paged_result import ( + RpmeVariablePagedResult, +) + class TestRpmeVariablePagedResult(unittest.TestCase): """RpmeVariablePagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeVariablePagedResult: """Test RpmeVariablePagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RpmeVariablePagedResult` """ model = RpmeVariablePagedResult() @@ -54,5 +56,6 @@ def testRpmeVariablePagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_survey_list_dto.py b/test/test_survey_list_dto.py index cf44dc3..757694f 100644 --- a/test/test_survey_list_dto.py +++ b/test/test_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.survey_list_dto import SurveyListDTO + class TestSurveyListDTO(unittest.TestCase): """SurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SurveyListDTO: """Test SurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `SurveyListDTO` """ model = SurveyListDTO() @@ -62,5 +62,6 @@ def testSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_surveys_api.py b/test/test_surveys_api.py index 5e06055..6352b46 100644 --- a/test/test_surveys_api.py +++ b/test/test_surveys_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.surveys_api import SurveysApi @@ -56,5 +55,5 @@ def test_m_fi_surveys_processed_data_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/test/test_usd_indirect_quotation.py b/test/test_usd_indirect_quotation.py index ba6728a..7dfbf88 100644 --- a/test/test_usd_indirect_quotation.py +++ b/test/test_usd_indirect_quotation.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation + class TestUsdIndirectQuotation(unittest.TestCase): """UsdIndirectQuotation unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsdIndirectQuotation: """Test UsdIndirectQuotation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UsdIndirectQuotation` """ model = UsdIndirectQuotation() @@ -55,5 +55,6 @@ def testUsdIndirectQuotation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_usd_indirect_quotation_paged_result.py b/test/test_usd_indirect_quotation_paged_result.py index 3ee915d..7a06000 100644 --- a/test/test_usd_indirect_quotation_paged_result.py +++ b/test/test_usd_indirect_quotation_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult +from data_bridges_client.models.usd_indirect_quotation_paged_result import ( + UsdIndirectQuotationPagedResult, +) + class TestUsdIndirectQuotationPagedResult(unittest.TestCase): """UsdIndirectQuotationPagedResult unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsdIndirectQuotationPagedResult: """Test UsdIndirectQuotationPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UsdIndirectQuotationPagedResult` """ model = UsdIndirectQuotationPagedResult() @@ -54,5 +56,6 @@ def testUsdIndirectQuotationPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_view_extended_monthly_aggregated_price.py b/test/test_view_extended_monthly_aggregated_price.py index 4b0626a..176b928 100644 --- a/test/test_view_extended_monthly_aggregated_price.py +++ b/test/test_view_extended_monthly_aggregated_price.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price import ( + ViewExtendedMonthlyAggregatedPrice, +) + class TestViewExtendedMonthlyAggregatedPrice(unittest.TestCase): """ViewExtendedMonthlyAggregatedPrice unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPrice: """Test ViewExtendedMonthlyAggregatedPrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPrice` """ model = ViewExtendedMonthlyAggregatedPrice() @@ -69,5 +71,6 @@ def testViewExtendedMonthlyAggregatedPrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_view_extended_monthly_aggregated_price_paged_result.py b/test/test_view_extended_monthly_aggregated_price_paged_result.py index 9c2023b..cc0bcb5 100644 --- a/test/test_view_extended_monthly_aggregated_price_paged_result.py +++ b/test/test_view_extended_monthly_aggregated_price_paged_result.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( + ViewExtendedMonthlyAggregatedPricePagedResult, +) + class TestViewExtendedMonthlyAggregatedPricePagedResult(unittest.TestCase): """ViewExtendedMonthlyAggregatedPricePagedResult unit test stubs""" @@ -26,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPricePagedResult: + def make_instance( + self, include_optional + ) -> ViewExtendedMonthlyAggregatedPricePagedResult: """Test ViewExtendedMonthlyAggregatedPricePagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPricePagedResult` """ model = ViewExtendedMonthlyAggregatedPricePagedResult() @@ -54,5 +58,6 @@ def testViewExtendedMonthlyAggregatedPricePagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_weekly_aggregated_price.py b/test/test_weekly_aggregated_price.py index 5e69e77..438a741 100644 --- a/test/test_weekly_aggregated_price.py +++ b/test/test_weekly_aggregated_price.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice + class TestWeeklyAggregatedPrice(unittest.TestCase): """WeeklyAggregatedPrice unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> WeeklyAggregatedPrice: """Test WeeklyAggregatedPrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `WeeklyAggregatedPrice` """ model = WeeklyAggregatedPrice() @@ -69,5 +69,6 @@ def testWeeklyAggregatedPrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_form_definition_new_schema_dto.py b/test/test_xls_form_definition_new_schema_dto.py index 05cf842..601aaf6 100644 --- a/test/test_xls_form_definition_new_schema_dto.py +++ b/test/test_xls_form_definition_new_schema_dto.py @@ -1,21 +1,23 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest -from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO +from data_bridges_client.models.xls_form_definition_new_schema_dto import ( + XlsFormDefinitionNewSchemaDTO, +) + class TestXlsFormDefinitionNewSchemaDTO(unittest.TestCase): """XlsFormDefinitionNewSchemaDTO unit test stubs""" @@ -28,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormDefinitionNewSchemaDTO: """Test XlsFormDefinitionNewSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `XlsFormDefinitionNewSchemaDTO` """ model = XlsFormDefinitionNewSchemaDTO() @@ -59,5 +61,6 @@ def testXlsFormDefinitionNewSchemaDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_form_dto.py b/test/test_xls_form_dto.py index d07276e..2c8ad4d 100644 --- a/test/test_xls_form_dto.py +++ b/test/test_xls_form_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.xls_form_dto import XlsFormDTO + class TestXlsFormDTO(unittest.TestCase): """XlsFormDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormDTO: """Test XlsFormDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `XlsFormDTO` """ model = XlsFormDTO() @@ -54,5 +54,6 @@ def testXlsFormDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_form_fields_dto.py b/test/test_xls_form_fields_dto.py index 183d1c3..3f92e11 100644 --- a/test/test_xls_form_fields_dto.py +++ b/test/test_xls_form_fields_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO + class TestXlsFormFieldsDTO(unittest.TestCase): """XlsFormFieldsDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormFieldsDTO: """Test XlsFormFieldsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `XlsFormFieldsDTO` """ model = XlsFormFieldsDTO() @@ -53,5 +53,6 @@ def testXlsFormFieldsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_form_list_choice_dto.py b/test/test_xls_form_list_choice_dto.py index 5941f05..18c64d3 100644 --- a/test/test_xls_form_list_choice_dto.py +++ b/test/test_xls_form_list_choice_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO + class TestXlsFormListChoiceDTO(unittest.TestCase): """XlsFormListChoiceDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormListChoiceDTO: """Test XlsFormListChoiceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `XlsFormListChoiceDTO` """ model = XlsFormListChoiceDTO() @@ -49,5 +49,6 @@ def testXlsFormListChoiceDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_form_list_choices_dto.py b/test/test_xls_form_list_choices_dto.py index 055181f..e438e2c 100644 --- a/test/test_xls_form_list_choices_dto.py +++ b/test/test_xls_form_list_choices_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO + class TestXlsFormListChoicesDTO(unittest.TestCase): """XlsFormListChoicesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormListChoicesDTO: """Test XlsFormListChoicesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `XlsFormListChoicesDTO` """ model = XlsFormListChoicesDTO() @@ -53,5 +53,6 @@ def testXlsFormListChoicesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/test/test_xls_forms_api.py b/test/test_xls_forms_api.py index fbea411..484d53f 100644 --- a/test/test_xls_forms_api.py +++ b/test/test_xls_forms_api.py @@ -1,18 +1,17 @@ # coding: utf-8 """ - VAM-Data-Bridges +VAM-Data-Bridges - API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern +API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - The version of the OpenAPI document: 7.0.0 - Contact: wfp.economicanalysis@wfp.org - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 7.0.0 +Contact: wfp.economicanalysis@wfp.org +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 - import unittest from data_bridges_client.api.xls_forms_api import XlsFormsApi @@ -35,5 +34,5 @@ def test_m_fi_xls_forms_get(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() From 9ce289f2576c91ac87d552df76204ecc22e48c25 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 13:27:00 +0100 Subject: [PATCH 6/9] chore: update supported Python version to >=3.10 --- .github/workflows/python.yml | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e01c473..ae3db0d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index f71b79f..10a87d8 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "data-bridges-client" VERSION = "7.0.0" -PYTHON_REQUIRES = ">=3.9" +PYTHON_REQUIRES = ">=3.10" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", "python-dateutil", From 80197eae37d77e247e296d15c933d1911b581a99 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 14:51:12 +0100 Subject: [PATCH 7/9] chore: regenerated client --- .github/workflows/python.yml | 2 +- README.md | 21 +- data_bridges_client/__init__.py | 109 +- data_bridges_client/api/__init__.py | 1 + data_bridges_client/api/commodities_api.py | 445 +- .../api/commodity_units_api.py | 471 +- data_bridges_client/api/currency_api.py | 420 +- data_bridges_client/api/economic_data_api.py | 458 +- data_bridges_client/api/global_outlook_api.py | 338 +- data_bridges_client/api/hunger_hotspot_api.py | 252 +- data_bridges_client/api/incubation_api.py | 1776 ++-- data_bridges_client/api/ipcch_api.py | 757 +- data_bridges_client/api/market_prices_api.py | 1838 ++--- data_bridges_client/api/markets_api.py | 631 +- data_bridges_client/api/rpme_api.py | 1134 ++- data_bridges_client/api/surveys_api.py | 874 +- data_bridges_client/api/xls_forms_api.py | 217 +- data_bridges_client/api_client.py | 259 +- data_bridges_client/api_response.py | 21 + data_bridges_client/configuration.py | 129 +- data_bridges_client/exceptions.py | 43 +- data_bridges_client/models/__init__.py | 109 +- data_bridges_client/models/bad_request_dto.py | 40 +- .../models/cari_adm0_values_dto.py | 139 +- .../cari_adm0_values_dto_paged_result.py | 48 +- .../models/cari_adm1_values_dto.py | 149 +- .../cari_adm1_values_dto_paged_result.py | 48 +- .../models/categories_and_indicators_dto.py | 54 +- data_bridges_client/models/commodity_dto.py | 112 +- .../models/commodity_price_dto.py | 248 +- .../models/commodity_processing_dto.py | 43 +- .../models/commodity_quality_dto.py | 43 +- data_bridges_client/models/currency_dto.py | 62 +- .../models/economic_data_dto.py | 33 +- .../models/economic_indicator_property.py | 75 +- ...conomic_indicator_property_paged_result.py | 54 +- .../models/extended_alps_value_dto.py | 177 +- .../extended_alps_value_dto_paged_result.py | 50 +- data_bridges_client/models/feature.py | 56 +- data_bridges_client/models/geometry.py | 39 +- .../models/global_outlook_api_dto.py | 73 +- .../models/global_outlook_country_api_dto.py | 68 +- .../models/global_outlook_regional_api_dto.py | 73 +- .../models/household_survey_list_dto.py | 341 +- .../household_survey_list_dto_paged_result.py | 50 +- .../models/hunger_hot_spot_data_dto.py | 67 +- .../hunger_hot_spot_data_dto_paged_result.py | 50 +- .../models/ipc_historical_datum_dto.py | 743 +- .../ipc_historical_datum_dto_paged_result.py | 50 +- .../models/ipcch_and_equivalent_peaks_dto.py | 131 +- ...h_and_equivalent_peaks_dto_paged_result.py | 55 +- data_bridges_client/models/ipcch_base_dto.py | 271 +- .../models/ipcch_base_dto_paged_result.py | 48 +- data_bridges_client/models/ipcch_peaks_dto.py | 274 +- .../models/ipcch_peaks_dto_paged_result.py | 48 +- data_bridges_client/models/key_name_dto.py | 35 +- data_bridges_client/models/list_item_dto.py | 40 +- data_bridges_client/models/market_dto.py | 136 +- .../models/market_geo_json_root.py | 50 +- .../models/mfi_processed_data_dto.py | 203 +- .../models/nearby_markets_dto.py | 55 +- .../models/paged_commodity_list_dto.py | 54 +- .../models/paged_commodity_price_list_dto.py | 54 +- ...modity_weekly_aggregated_price_list_dto.py | 56 +- .../models/paged_currency_list_dto.py | 54 +- .../models/paged_economic_data_dto.py | 75 +- .../models/paged_market_list_dto.py | 54 +- .../models/paged_processed_data_dto.py | 58 +- .../models/paged_survey_list_dto.py | 54 +- .../models/paged_survey_responses_dto.py | 50 +- .../models/paged_xls_form_list_dto.py | 54 +- data_bridges_client/models/problem_details.py | 62 +- data_bridges_client/models/properties.py | 34 +- data_bridges_client/models/rpme_assessment.py | 165 +- .../models/rpme_assessment_paged_result.py | 48 +- .../models/rpme_output_values.py | 41 +- data_bridges_client/models/rpme_variable.py | 88 +- .../models/rpme_variable_paged_result.py | 48 +- data_bridges_client/models/survey_list_dto.py | 217 +- .../models/usd_indirect_quotation.py | 94 +- .../usd_indirect_quotation_paged_result.py | 50 +- .../view_extended_monthly_aggregated_price.py | 226 +- ...d_monthly_aggregated_price_paged_result.py | 55 +- .../models/weekly_aggregated_price.py | 224 +- .../xls_form_definition_new_schema_dto.py | 86 +- data_bridges_client/models/xls_form_dto.py | 83 +- .../models/xls_form_fields_dto.py | 56 +- .../models/xls_form_list_choice_dto.py | 37 +- .../models/xls_form_list_choices_dto.py | 48 +- data_bridges_client/py.typed | 0 data_bridges_client/rest.py | 85 +- docs/BadRequestDTO.md | 30 + docs/CommodityDTO.md | 38 + docs/CommodityPriceDTO.md | 54 + docs/CommodityProcessingDTO.md | 30 + docs/CommodityQualityDTO.md | 30 + docs/CurrencyDTO.md | 33 + docs/EconomicDataDTO.md | 30 + docs/EconomicIndicatorProperty.md | 36 + docs/EconomicIndicatorPropertyPagedResult.md | 31 + docs/Feature.md | 33 + docs/Geometry.md | 30 + docs/HouseholdSurveyListDTO.md | 55 + docs/HouseholdSurveyListDTOPagedResult.md | 31 + docs/KeyNameDto.md | 30 + docs/MFIProcessedDataDTO.md | 54 + docs/MarketDTO.md | 37 + docs/MarketGeoJsonRoot.md | 31 + docs/NearbyMarketsDTO.md | 31 + docs/PagedCommodityListDTO.md | 31 + docs/PagedCommodityPriceListDTO.md | 31 + ...edCommodityWeeklyAggregatedPriceListDTO.md | 31 + docs/PagedCurrencyListDTO.md | 31 + docs/PagedEconomicDataDTO.md | 34 + docs/PagedMarketListDTO.md | 31 + docs/PagedProcessedDataDTO.md | 32 + docs/PagedSurveyListDTO.md | 31 + docs/PagedSurveyResponsesDTO.md | 31 + docs/PagedXlsFormListDTO.md | 31 + docs/ProblemDetails.md | 33 + docs/Properties.md | 29 + docs/RpmeAssessment.md | 48 + docs/RpmeAssessmentPagedResult.md | 31 + docs/RpmeOutputValues.md | 30 + docs/RpmeVariable.md | 37 + docs/RpmeVariablePagedResult.md | 31 + docs/SurveyListDTO.md | 43 + docs/UsdIndirectQuotation.md | 36 + docs/UsdIndirectQuotationPagedResult.md | 31 + docs/XlsFormDTO.md | 35 + docs/XlsFormDefinitionNewSchemaDTO.md | 36 + docs/XlsFormFieldsDTO.md | 32 + docs/XlsFormListChoiceDTO.md | 30 + docs/XlsFormListChoicesDTO.md | 30 + generate/{swagger-7.0.0.json => swagger.json} | 0 generate/swagger_v5.1.0.json | 7229 ----------------- pyproject.toml | 10 +- setup.py | 15 +- test/__init__.py | 0 test/test_bad_request_dto.py | 23 +- test/test_cari_adm0_values_dto.py | 23 +- .../test_cari_adm0_values_dto_paged_result.py | 27 +- test/test_cari_adm1_values_dto.py | 23 +- .../test_cari_adm1_values_dto_paged_result.py | 27 +- test/test_categories_and_indicators_dto.py | 27 +- test/test_commodities_api.py | 15 +- test/test_commodity_dto.py | 23 +- test/test_commodity_price_dto.py | 23 +- test/test_commodity_processing_dto.py | 23 +- test/test_commodity_quality_dto.py | 23 +- test/test_commodity_units_api.py | 15 +- test/test_currency_api.py | 15 +- test/test_currency_dto.py | 23 +- test/test_economic_data_api.py | 15 +- test/test_economic_data_dto.py | 23 +- test/test_economic_indicator_property.py | 27 +- ...conomic_indicator_property_paged_result.py | 27 +- test/test_extended_alps_value_dto.py | 23 +- ...st_extended_alps_value_dto_paged_result.py | 27 +- test/test_feature.py | 23 +- test/test_geometry.py | 23 +- test/test_global_outlook_api.py | 15 +- test/test_global_outlook_api_dto.py | 23 +- test/test_global_outlook_country_api_dto.py | 27 +- test/test_global_outlook_regional_api_dto.py | 27 +- test/test_household_survey_list_dto.py | 23 +- ..._household_survey_list_dto_paged_result.py | 27 +- test/test_hunger_hot_spot_data_dto.py | 23 +- ...t_hunger_hot_spot_data_dto_paged_result.py | 27 +- test/test_hunger_hotspot_api.py | 15 +- test/test_incubation_api.py | 15 +- test/test_ipc_historical_datum_dto.py | 23 +- ...t_ipc_historical_datum_dto_paged_result.py | 27 +- test/test_ipcch_and_equivalent_peaks_dto.py | 27 +- ...h_and_equivalent_peaks_dto_paged_result.py | 27 +- test/test_ipcch_api.py | 15 +- test/test_ipcch_base_dto.py | 23 +- test/test_ipcch_base_dto_paged_result.py | 27 +- test/test_ipcch_peaks_dto.py | 23 +- test/test_ipcch_peaks_dto_paged_result.py | 27 +- test/test_key_name_dto.py | 23 +- test/test_list_item_dto.py | 23 +- test/test_market_dto.py | 23 +- test/test_market_geo_json_root.py | 23 +- test/test_market_prices_api.py | 15 +- test/test_markets_api.py | 15 +- test/test_mfi_processed_data_dto.py | 23 +- test/test_nearby_markets_dto.py | 23 +- test/test_paged_commodity_list_dto.py | 23 +- test/test_paged_commodity_price_list_dto.py | 27 +- ...modity_weekly_aggregated_price_list_dto.py | 31 +- test/test_paged_currency_list_dto.py | 23 +- test/test_paged_economic_data_dto.py | 23 +- test/test_paged_market_list_dto.py | 23 +- test/test_paged_processed_data_dto.py | 23 +- test/test_paged_survey_list_dto.py | 23 +- test/test_paged_survey_responses_dto.py | 27 +- test/test_paged_xls_form_list_dto.py | 23 +- test/test_problem_details.py | 23 +- test/test_properties.py | 23 +- test/test_rpme_api.py | 15 +- test/test_rpme_assessment.py | 23 +- test/test_rpme_assessment_paged_result.py | 27 +- test/test_rpme_output_values.py | 23 +- test/test_rpme_variable.py | 23 +- test/test_rpme_variable_paged_result.py | 27 +- test/test_survey_list_dto.py | 23 +- test/test_surveys_api.py | 15 +- test/test_usd_indirect_quotation.py | 23 +- ...est_usd_indirect_quotation_paged_result.py | 27 +- ..._view_extended_monthly_aggregated_price.py | 27 +- ...d_monthly_aggregated_price_paged_result.py | 31 +- test/test_weekly_aggregated_price.py | 23 +- ...test_xls_form_definition_new_schema_dto.py | 27 +- test/test_xls_form_dto.py | 23 +- test/test_xls_form_fields_dto.py | 23 +- test/test_xls_form_list_choice_dto.py | 23 +- test/test_xls_form_list_choices_dto.py | 23 +- test/test_xls_forms_api.py | 15 +- 219 files changed, 9161 insertions(+), 18349 deletions(-) create mode 100644 data_bridges_client/api_response.py create mode 100644 data_bridges_client/py.typed create mode 100644 docs/BadRequestDTO.md create mode 100644 docs/CommodityDTO.md create mode 100644 docs/CommodityPriceDTO.md create mode 100644 docs/CommodityProcessingDTO.md create mode 100644 docs/CommodityQualityDTO.md create mode 100644 docs/CurrencyDTO.md create mode 100644 docs/EconomicDataDTO.md create mode 100644 docs/EconomicIndicatorProperty.md create mode 100644 docs/EconomicIndicatorPropertyPagedResult.md create mode 100644 docs/Feature.md create mode 100644 docs/Geometry.md create mode 100644 docs/HouseholdSurveyListDTO.md create mode 100644 docs/HouseholdSurveyListDTOPagedResult.md create mode 100644 docs/KeyNameDto.md create mode 100644 docs/MFIProcessedDataDTO.md create mode 100644 docs/MarketDTO.md create mode 100644 docs/MarketGeoJsonRoot.md create mode 100644 docs/NearbyMarketsDTO.md create mode 100644 docs/PagedCommodityListDTO.md create mode 100644 docs/PagedCommodityPriceListDTO.md create mode 100644 docs/PagedCommodityWeeklyAggregatedPriceListDTO.md create mode 100644 docs/PagedCurrencyListDTO.md create mode 100644 docs/PagedEconomicDataDTO.md create mode 100644 docs/PagedMarketListDTO.md create mode 100644 docs/PagedProcessedDataDTO.md create mode 100644 docs/PagedSurveyListDTO.md create mode 100644 docs/PagedSurveyResponsesDTO.md create mode 100644 docs/PagedXlsFormListDTO.md create mode 100644 docs/ProblemDetails.md create mode 100644 docs/Properties.md create mode 100644 docs/RpmeAssessment.md create mode 100644 docs/RpmeAssessmentPagedResult.md create mode 100644 docs/RpmeOutputValues.md create mode 100644 docs/RpmeVariable.md create mode 100644 docs/RpmeVariablePagedResult.md create mode 100644 docs/SurveyListDTO.md create mode 100644 docs/UsdIndirectQuotation.md create mode 100644 docs/UsdIndirectQuotationPagedResult.md create mode 100644 docs/XlsFormDTO.md create mode 100644 docs/XlsFormDefinitionNewSchemaDTO.md create mode 100644 docs/XlsFormFieldsDTO.md create mode 100644 docs/XlsFormListChoiceDTO.md create mode 100644 docs/XlsFormListChoicesDTO.md rename generate/{swagger-7.0.0.json => swagger.json} (100%) delete mode 100644 generate/swagger_v5.1.0.json create mode 100644 test/__init__.py diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index ae3db0d..e01c473 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 50b90d3..59ff7f9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.o This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 7.0.0 -- Package version: 7.0.0 +- Package version: 1.0.0 - Generator version: 7.8.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -50,23 +50,24 @@ Execute `pytest` to run the tests. Please follow the [installation procedure](#installation--usage) and then run the following: ```python + import data_bridges_client from data_bridges_client.rest import ApiException -from data_bridges_client.token import WfpApiToken from pprint import pprint -# Configure OAuth2 access token for authorization: default -KEY = '' -SECRET = '' -SCOPES = ['', ''] -token = WfpApiToken(api_key=KEY, api_secret=SECRET) - -# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/1.4.0 +# Defining the host is optional and defaults to https://api.wfp.org/vam-data-bridges/7.0.0 # See configuration.py for a list of all supported configuration parameters. configuration = data_bridges_client.Configuration( host = "https://api.wfp.org/vam-data-bridges/7.0.0" ) -configuration.access_token = token.refresh(scopes=SCOPES) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +configuration.access_token = os.environ["ACCESS_TOKEN"] + # Enter a context with an instance of the API client with data_bridges_client.ApiClient(configuration) as api_client: diff --git a/data_bridges_client/__init__.py b/data_bridges_client/__init__.py index 4ed0bbd..6a54a59 100644 --- a/data_bridges_client/__init__.py +++ b/data_bridges_client/__init__.py @@ -3,17 +3,18 @@ # flake8: noqa """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + __version__ = "1.0.0" # import apis into sdk package @@ -45,67 +46,37 @@ # import models into sdk package from data_bridges_client.models.bad_request_dto import BadRequestDTO from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO -from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( - CariAdm0ValuesDTOPagedResult, -) +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO -from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( - CariAdm1ValuesDTOPagedResult, -) -from data_bridges_client.models.categories_and_indicators_dto import ( - CategoriesAndIndicatorsDTO, -) +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO from data_bridges_client.models.currency_dto import CurrencyDTO from data_bridges_client.models.economic_data_dto import EconomicDataDTO -from data_bridges_client.models.economic_indicator_property import ( - EconomicIndicatorProperty, -) -from data_bridges_client.models.economic_indicator_property_paged_result import ( - EconomicIndicatorPropertyPagedResult, -) +from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty +from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto -from data_bridges_client.models.extended_alps_value_dto_paged_result import ( - ExtendedAlpsValueDtoPagedResult, -) +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import ( - GlobalOutlookCountryApiDto, -) -from data_bridges_client.models.global_outlook_regional_api_dto import ( - GlobalOutlookRegionalApiDto, -) +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO -from data_bridges_client.models.household_survey_list_dto_paged_result import ( - HouseholdSurveyListDTOPagedResult, -) +from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( - HungerHotSpotDataDTOPagedResult, -) +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( - IpcHistoricalDatumDtoPagedResult, -) -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( - IpcchAndEquivalentPeaksDTO, -) -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( - IpcchAndEquivalentPeaksDTOPagedResult, -) +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto -from data_bridges_client.models.ipcch_base_dto_paged_result import ( - IpcchBaseDtoPagedResult, -) +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto -from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( - IpcchPeaksDtoPagedResult, -) +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult from data_bridges_client.models.key_name_dto import KeyNameDto from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO @@ -113,48 +84,30 @@ from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO -from data_bridges_client.models.paged_commodity_price_list_dto import ( - PagedCommodityPriceListDTO, -) -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( - PagedCommodityWeeklyAggregatedPriceListDTO, -) +from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO from data_bridges_client.models.problem_details import ProblemDetails from data_bridges_client.models.properties import Properties from data_bridges_client.models.rpme_assessment import RpmeAssessment -from data_bridges_client.models.rpme_assessment_paged_result import ( - RpmeAssessmentPagedResult, -) +from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult from data_bridges_client.models.rpme_output_values import RpmeOutputValues from data_bridges_client.models.rpme_variable import RpmeVariable -from data_bridges_client.models.rpme_variable_paged_result import ( - RpmeVariablePagedResult, -) +from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation -from data_bridges_client.models.usd_indirect_quotation_paged_result import ( - UsdIndirectQuotationPagedResult, -) -from data_bridges_client.models.view_extended_monthly_aggregated_price import ( - ViewExtendedMonthlyAggregatedPrice, -) -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( - ViewExtendedMonthlyAggregatedPricePagedResult, -) +from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO -from data_bridges_client.models.xls_form_definition_new_schema_dto import ( - XlsFormDefinitionNewSchemaDTO, -) +from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO diff --git a/data_bridges_client/api/__init__.py b/data_bridges_client/api/__init__.py index a276be2..21e5cdf 100644 --- a/data_bridges_client/api/__init__.py +++ b/data_bridges_client/api/__init__.py @@ -14,3 +14,4 @@ from data_bridges_client.api.rpme_api import RpmeApi from data_bridges_client.api.surveys_api import SurveysApi from data_bridges_client.api.xls_forms_api import XlsFormsApi + diff --git a/data_bridges_client/api/commodities_api.py b/data_bridges_client/api/commodities_api.py index 04b93be..b94eb8a 100644 --- a/data_bridges_client/api/commodities_api.py +++ b/data_bridges_client/api/commodities_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -39,46 +39,23 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def commodities_categories_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - category_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity category." - ), - ] = None, - category_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, + category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -121,7 +98,7 @@ def commodities_categories_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -133,15 +110,16 @@ def commodities_categories_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -149,46 +127,23 @@ def commodities_categories_list_get( response_types_map=_response_types_map, ).data + @validate_call def commodities_categories_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - category_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity category." - ), - ] = None, - category_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, + category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -231,7 +186,7 @@ def commodities_categories_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -243,15 +198,16 @@ def commodities_categories_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -259,46 +215,23 @@ def commodities_categories_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def commodities_categories_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - category_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity category." - ), - ] = None, - category_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + category_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity category.")] = None, + category_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -341,7 +274,7 @@ def commodities_categories_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_categories_list_get_serialize( country_code=country_code, @@ -353,18 +286,20 @@ def commodities_categories_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _commodities_categories_list_get_serialize( self, country_code, @@ -378,9 +313,11 @@ def _commodities_categories_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -392,39 +329,53 @@ def _commodities_categories_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if category_name is not None: - _query_params.append(("categoryName", category_name)) - + + _query_params.append(('categoryName', category_name)) + if category_id is not None: - _query_params.append(("categoryID", category_id)) - + + _query_params.append(('categoryID', category_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Commodities/Categories/List", + method='GET', + resource_path='/Commodities/Categories/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -434,46 +385,28 @@ def _commodities_categories_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def commodities_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -516,7 +449,7 @@ def commodities_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -528,15 +461,16 @@ def commodities_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -544,43 +478,23 @@ def commodities_list_get( response_types_map=_response_types_map, ).data + @validate_call def commodities_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -623,7 +537,7 @@ def commodities_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -635,15 +549,16 @@ def commodities_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -651,43 +566,23 @@ def commodities_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def commodities_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -730,7 +625,7 @@ def commodities_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodities_list_get_serialize( country_code=country_code, @@ -742,18 +637,20 @@ def commodities_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _commodities_list_get_serialize( self, country_code, @@ -767,9 +664,11 @@ def _commodities_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -781,39 +680,53 @@ def _commodities_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if commodity_name is not None: - _query_params.append(("commodityName", commodity_name)) - + + _query_params.append(('commodityName', commodity_name)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Commodities/List", + method='GET', + resource_path='/Commodities/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -823,5 +736,7 @@ def _commodities_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/commodity_units_api.py b/data_bridges_client/api/commodity_units_api.py index 0850a02..664482b 100644 --- a/data_bridges_client/api/commodity_units_api.py +++ b/data_bridges_client/api/commodity_units_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -39,52 +39,24 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def commodity_units_conversion_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - from_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - to_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -129,7 +101,7 @@ def commodity_units_conversion_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -142,15 +114,16 @@ def commodity_units_conversion_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -158,52 +131,24 @@ def commodity_units_conversion_list_get( response_types_map=_response_types_map, ).data + @validate_call def commodity_units_conversion_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - from_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - to_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -248,7 +193,7 @@ def commodity_units_conversion_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -261,15 +206,16 @@ def commodity_units_conversion_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -277,52 +223,24 @@ def commodity_units_conversion_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def commodity_units_conversion_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - from_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - to_unit_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + from_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + to_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -367,7 +285,7 @@ def commodity_units_conversion_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_conversion_list_get_serialize( country_code=country_code, @@ -380,18 +298,20 @@ def commodity_units_conversion_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _commodity_units_conversion_list_get_serialize( self, country_code, @@ -406,9 +326,11 @@ def _commodity_units_conversion_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -420,42 +342,57 @@ def _commodity_units_conversion_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if from_unit_id is not None: - _query_params.append(("fromUnitID", from_unit_id)) - + + _query_params.append(('fromUnitID', from_unit_id)) + if to_unit_id is not None: - _query_params.append(("toUnitID", to_unit_id)) - + + _query_params.append(('toUnitID', to_unit_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/CommodityUnits/Conversion/List", + method='GET', + resource_path='/CommodityUnits/Conversion/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -465,46 +402,28 @@ def _commodity_units_conversion_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def commodity_units_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_unit_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity unit" - ), - ] = None, - commodity_unit_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity unit") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, + commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -547,7 +466,7 @@ def commodity_units_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -559,15 +478,16 @@ def commodity_units_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -575,43 +495,23 @@ def commodity_units_list_get( response_types_map=_response_types_map, ).data + @validate_call def commodity_units_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_unit_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity unit" - ), - ] = None, - commodity_unit_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity unit") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, + commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -654,7 +554,7 @@ def commodity_units_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -666,15 +566,16 @@ def commodity_units_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -682,43 +583,23 @@ def commodity_units_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def commodity_units_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - commodity_unit_name: Annotated[ - Optional[StrictStr], - Field( - description="The name, even partial and case insensitive, of a commodity unit" - ), - ] = None, - commodity_unit_id: Annotated[ - Optional[StrictInt], Field(description="The exact ID of a commodity unit") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + commodity_unit_name: Annotated[Optional[StrictStr], Field(description="The name, even partial and case insensitive, of a commodity unit")] = None, + commodity_unit_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a commodity unit")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -761,7 +642,7 @@ def commodity_units_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._commodity_units_list_get_serialize( country_code=country_code, @@ -773,18 +654,20 @@ def commodity_units_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _commodity_units_list_get_serialize( self, country_code, @@ -798,9 +681,11 @@ def _commodity_units_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -812,39 +697,53 @@ def _commodity_units_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if commodity_unit_name is not None: - _query_params.append(("commodityUnitName", commodity_unit_name)) - + + _query_params.append(('commodityUnitName', commodity_unit_name)) + if commodity_unit_id is not None: - _query_params.append(("commodityUnitID", commodity_unit_id)) - + + _query_params.append(('commodityUnitID', commodity_unit_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/CommodityUnits/List", + method='GET', + resource_path='/CommodityUnits/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -854,5 +753,7 @@ def _commodity_units_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/currency_api.py b/data_bridges_client/api/currency_api.py index f7827e6..82a0875 100644 --- a/data_bridges_client/api/currency_api.py +++ b/data_bridges_client/api/currency_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,9 +21,7 @@ from typing import Optional from typing_extensions import Annotated from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO -from data_bridges_client.models.usd_indirect_quotation_paged_result import ( - UsdIndirectQuotationPagedResult, -) +from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -42,44 +40,23 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def currency_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="Currency 3-letter code, matching with ISO 4217."), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique code to identify the currency in internal VAM currencies." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -122,7 +99,7 @@ def currency_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -134,15 +111,16 @@ def currency_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCurrencyListDTO", - "400": "BadRequestDTO", + '200': "PagedCurrencyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -150,44 +128,23 @@ def currency_list_get( response_types_map=_response_types_map, ).data + @validate_call def currency_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="Currency 3-letter code, matching with ISO 4217."), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique code to identify the currency in internal VAM currencies." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -230,7 +187,7 @@ def currency_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -242,15 +199,16 @@ def currency_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCurrencyListDTO", - "400": "BadRequestDTO", + '200': "PagedCurrencyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -258,44 +216,23 @@ def currency_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def currency_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="Currency 3-letter code, matching with ISO 4217."), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique code to identify the currency in internal VAM currencies." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="Currency 3-letter code, matching with ISO 4217.")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="Unique code to identify the currency in internal VAM currencies.")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -338,7 +275,7 @@ def currency_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_list_get_serialize( country_code=country_code, @@ -350,18 +287,20 @@ def currency_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCurrencyListDTO", - "400": "BadRequestDTO", + '200': "PagedCurrencyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _currency_list_get_serialize( self, country_code, @@ -375,9 +314,11 @@ def _currency_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -389,39 +330,53 @@ def _currency_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if currency_name is not None: - _query_params.append(("currencyName", currency_name)) - + + _query_params.append(('currencyName', currency_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Currency/List", + method='GET', + resource_path='/Currency/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -431,41 +386,27 @@ def _currency_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def currency_usd_indirect_quotation_get( self, - country_iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="the ISO3 code for the currency, based on ISO4217"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -506,7 +447,7 @@ def currency_usd_indirect_quotation_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -517,15 +458,16 @@ def currency_usd_indirect_quotation_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UsdIndirectQuotationPagedResult", - "400": "BadRequestDTO", + '200': "UsdIndirectQuotationPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -533,38 +475,22 @@ def currency_usd_indirect_quotation_get( response_types_map=_response_types_map, ).data + @validate_call def currency_usd_indirect_quotation_get_with_http_info( self, - country_iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="the ISO3 code for the currency, based on ISO4217"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -605,7 +531,7 @@ def currency_usd_indirect_quotation_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -616,15 +542,16 @@ def currency_usd_indirect_quotation_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UsdIndirectQuotationPagedResult", - "400": "BadRequestDTO", + '200': "UsdIndirectQuotationPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -632,38 +559,22 @@ def currency_usd_indirect_quotation_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def currency_usd_indirect_quotation_get_without_preload_content( self, - country_iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - currency_name: Annotated[ - Optional[StrictStr], - Field(description="the ISO3 code for the currency, based on ISO4217"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + currency_name: Annotated[Optional[StrictStr], Field(description="the ISO3 code for the currency, based on ISO4217")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -704,7 +615,7 @@ def currency_usd_indirect_quotation_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._currency_usd_indirect_quotation_get_serialize( country_iso3=country_iso3, @@ -715,18 +626,20 @@ def currency_usd_indirect_quotation_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "UsdIndirectQuotationPagedResult", - "400": "BadRequestDTO", + '200': "UsdIndirectQuotationPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _currency_usd_indirect_quotation_get_serialize( self, country_iso3, @@ -739,9 +652,11 @@ def _currency_usd_indirect_quotation_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -753,36 +668,49 @@ def _currency_usd_indirect_quotation_get_serialize( # process the path parameters # process the query parameters if country_iso3 is not None: - _query_params.append(("countryIso3", country_iso3)) - + + _query_params.append(('countryIso3', country_iso3)) + if currency_name is not None: - _query_params.append(("currencyName", currency_name)) - + + _query_params.append(('currencyName', currency_name)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Currency/UsdIndirectQuotation", + method='GET', + resource_path='/Currency/UsdIndirectQuotation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -792,5 +720,7 @@ def _currency_usd_indirect_quotation_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/economic_data_api.py b/data_bridges_client/api/economic_data_api.py index 119ad22..8e5862f 100644 --- a/data_bridges_client/api/economic_data_api.py +++ b/data_bridges_client/api/economic_data_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,9 +21,7 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.economic_indicator_property_paged_result import ( - EconomicIndicatorPropertyPagedResult, -) +from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.api_client import ApiClient, RequestSerialized @@ -43,37 +41,22 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def economic_data_indicator_list_get( self, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - indicator_name: Annotated[ - Optional[StrictStr], Field(description="Unique indicator name.") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -114,7 +97,7 @@ def economic_data_indicator_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -125,15 +108,16 @@ def economic_data_indicator_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "EconomicIndicatorPropertyPagedResult", - "400": "BadRequestDTO", + '200': "EconomicIndicatorPropertyPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -141,37 +125,22 @@ def economic_data_indicator_list_get( response_types_map=_response_types_map, ).data + @validate_call def economic_data_indicator_list_get_with_http_info( self, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - indicator_name: Annotated[ - Optional[StrictStr], Field(description="Unique indicator name.") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -212,7 +181,7 @@ def economic_data_indicator_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -223,15 +192,16 @@ def economic_data_indicator_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "EconomicIndicatorPropertyPagedResult", - "400": "BadRequestDTO", + '200': "EconomicIndicatorPropertyPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -239,37 +209,22 @@ def economic_data_indicator_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def economic_data_indicator_list_get_without_preload_content( self, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - indicator_name: Annotated[ - Optional[StrictStr], Field(description="Unique indicator name.") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + indicator_name: Annotated[Optional[StrictStr], Field(description="Unique indicator name.")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -310,7 +265,7 @@ def economic_data_indicator_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_list_get_serialize( page=page, @@ -321,18 +276,20 @@ def economic_data_indicator_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "EconomicIndicatorPropertyPagedResult", - "400": "BadRequestDTO", + '200': "EconomicIndicatorPropertyPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _economic_data_indicator_list_get_serialize( self, page, @@ -345,9 +302,11 @@ def _economic_data_indicator_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -359,36 +318,49 @@ def _economic_data_indicator_list_get_serialize( # process the path parameters # process the query parameters if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if indicator_name is not None: - _query_params.append(("indicatorName", indicator_name)) - + + _query_params.append(('indicatorName', indicator_name)) + if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/EconomicData/IndicatorList", + method='GET', + resource_path='/EconomicData/IndicatorList', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -398,55 +370,29 @@ def _economic_data_indicator_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def economic_data_indicator_name_get( self, - indicator_name: Annotated[ - StrictStr, - Field( - description="Name of the indicator as found in /EconomicData/IndicatorList." - ), - ], - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -491,7 +437,7 @@ def economic_data_indicator_name_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -504,16 +450,17 @@ def economic_data_indicator_name_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedEconomicDataDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedEconomicDataDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -521,52 +468,24 @@ def economic_data_indicator_name_get( response_types_map=_response_types_map, ).data + @validate_call def economic_data_indicator_name_get_with_http_info( self, - indicator_name: Annotated[ - StrictStr, - Field( - description="Name of the indicator as found in /EconomicData/IndicatorList." - ), - ], - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -611,7 +530,7 @@ def economic_data_indicator_name_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -624,16 +543,17 @@ def economic_data_indicator_name_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedEconomicDataDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedEconomicDataDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -641,52 +561,24 @@ def economic_data_indicator_name_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def economic_data_indicator_name_get_without_preload_content( self, - indicator_name: Annotated[ - StrictStr, - Field( - description="Name of the indicator as found in /EconomicData/IndicatorList." - ), - ], - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - iso3: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. Must be a ISO-3166 Alpha 3 code." - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + indicator_name: Annotated[StrictStr, Field(description="Name of the indicator as found in /EconomicData/IndicatorList.")], + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + iso3: Annotated[Optional[StrictStr], Field(description="The code to identify the country. Must be a ISO-3166 Alpha 3 code.")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -731,7 +623,7 @@ def economic_data_indicator_name_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._economic_data_indicator_name_get_serialize( indicator_name=indicator_name, @@ -744,19 +636,21 @@ def economic_data_indicator_name_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedEconomicDataDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedEconomicDataDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _economic_data_indicator_name_get_serialize( self, indicator_name, @@ -771,9 +665,11 @@ def _economic_data_indicator_name_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -784,62 +680,74 @@ def _economic_data_indicator_name_get_serialize( # process the path parameters if indicator_name is not None: - _path_params["indicatorName"] = indicator_name + _path_params['indicatorName'] = indicator_name # process the query parameters if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/EconomicData/{indicatorName}", + method='GET', + resource_path='/EconomicData/{indicatorName}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -849,5 +757,7 @@ def _economic_data_indicator_name_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/global_outlook_api.py b/data_bridges_client/api/global_outlook_api.py index 2f4c69c..948f144 100644 --- a/data_bridges_client/api/global_outlook_api.py +++ b/data_bridges_client/api/global_outlook_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,12 +21,8 @@ from typing import List, Optional from typing_extensions import Annotated from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import ( - GlobalOutlookCountryApiDto, -) -from data_bridges_client.models.global_outlook_regional_api_dto import ( - GlobalOutlookRegionalApiDto, -) +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -45,21 +41,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def global_outlook_country_latest_get( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -92,22 +85,23 @@ def global_outlook_country_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookCountryApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookCountryApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -115,21 +109,18 @@ def global_outlook_country_latest_get( response_types_map=_response_types_map, ).data + @validate_call def global_outlook_country_latest_get_with_http_info( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,22 +153,23 @@ def global_outlook_country_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookCountryApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookCountryApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -185,21 +177,18 @@ def global_outlook_country_latest_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def global_outlook_country_latest_get_without_preload_content( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,25 +221,27 @@ def global_outlook_country_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_country_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookCountryApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookCountryApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _global_outlook_country_latest_get_serialize( self, env, @@ -259,9 +250,11 @@ def _global_outlook_country_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -273,24 +266,33 @@ def _global_outlook_country_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/GlobalOutlook/CountryLatest", + method='GET', + resource_path='/GlobalOutlook/CountryLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -300,24 +302,23 @@ def _global_outlook_country_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def global_outlook_global_latest_get( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -350,22 +351,23 @@ def global_outlook_global_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GlobalOutlookApiDto", - "400": "BadRequestDTO", + '200': "GlobalOutlookApiDto", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -373,21 +375,18 @@ def global_outlook_global_latest_get( response_types_map=_response_types_map, ).data + @validate_call def global_outlook_global_latest_get_with_http_info( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -420,22 +419,23 @@ def global_outlook_global_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GlobalOutlookApiDto", - "400": "BadRequestDTO", + '200': "GlobalOutlookApiDto", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -443,21 +443,18 @@ def global_outlook_global_latest_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def global_outlook_global_latest_get_without_preload_content( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -490,25 +487,27 @@ def global_outlook_global_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_global_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "GlobalOutlookApiDto", - "400": "BadRequestDTO", + '200': "GlobalOutlookApiDto", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _global_outlook_global_latest_get_serialize( self, env, @@ -517,9 +516,11 @@ def _global_outlook_global_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -531,24 +532,33 @@ def _global_outlook_global_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/GlobalOutlook/GlobalLatest", + method='GET', + resource_path='/GlobalOutlook/GlobalLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -558,24 +568,23 @@ def _global_outlook_global_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def global_outlook_regional_latest_get( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -608,22 +617,23 @@ def global_outlook_regional_latest_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookRegionalApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookRegionalApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -631,21 +641,18 @@ def global_outlook_regional_latest_get( response_types_map=_response_types_map, ).data + @validate_call def global_outlook_regional_latest_get_with_http_info( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -678,22 +685,23 @@ def global_outlook_regional_latest_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookRegionalApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookRegionalApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -701,21 +709,18 @@ def global_outlook_regional_latest_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def global_outlook_regional_latest_get_without_preload_content( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -748,25 +753,27 @@ def global_outlook_regional_latest_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._global_outlook_regional_latest_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[GlobalOutlookRegionalApiDto]", - "400": "BadRequestDTO", + '200': "List[GlobalOutlookRegionalApiDto]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _global_outlook_regional_latest_get_serialize( self, env, @@ -775,9 +782,11 @@ def _global_outlook_regional_latest_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -789,24 +798,33 @@ def _global_outlook_regional_latest_get_serialize( # process the path parameters # process the query parameters if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/GlobalOutlook/RegionalLatest", + method='GET', + resource_path='/GlobalOutlook/RegionalLatest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -816,5 +834,7 @@ def _global_outlook_regional_latest_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/hunger_hotspot_api.py b/data_bridges_client/api/hunger_hotspot_api.py index 98ef257..246fe7b 100644 --- a/data_bridges_client/api/hunger_hotspot_api.py +++ b/data_bridges_client/api/hunger_hotspot_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,12 +20,8 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.categories_and_indicators_dto import ( - CategoriesAndIndicatorsDTO, -) -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( - HungerHotSpotDataDTOPagedResult, -) +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -44,21 +40,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def hunger_hotspot_categories_and_indicators_get( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -91,22 +84,23 @@ def hunger_hotspot_categories_and_indicators_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CategoriesAndIndicatorsDTO", - "400": "BadRequestDTO", + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -114,21 +108,18 @@ def hunger_hotspot_categories_and_indicators_get( response_types_map=_response_types_map, ).data + @validate_call def hunger_hotspot_categories_and_indicators_get_with_http_info( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -161,22 +152,23 @@ def hunger_hotspot_categories_and_indicators_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CategoriesAndIndicatorsDTO", - "400": "BadRequestDTO", + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -184,21 +176,18 @@ def hunger_hotspot_categories_and_indicators_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def hunger_hotspot_categories_and_indicators_get_without_preload_content( self, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -231,25 +220,27 @@ def hunger_hotspot_categories_and_indicators_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_categories_and_indicators_get_serialize( env=env, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CategoriesAndIndicatorsDTO", - "400": "BadRequestDTO", + '200': "CategoriesAndIndicatorsDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _hunger_hotspot_categories_and_indicators_get_serialize( self, env, @@ -258,9 +249,11 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -272,24 +265,33 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( # process the path parameters # process the query parameters if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/HungerHotspot/CategoriesAndIndicators", + method='GET', + resource_path='/HungerHotspot/CategoriesAndIndicators', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -299,28 +301,24 @@ def _hunger_hotspot_categories_and_indicators_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def hunger_hotspot_data_get( self, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -355,7 +353,7 @@ def hunger_hotspot_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -363,15 +361,16 @@ def hunger_hotspot_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HungerHotSpotDataDTOPagedResult", - "400": "BadRequestDTO", + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -379,25 +378,19 @@ def hunger_hotspot_data_get( response_types_map=_response_types_map, ).data + @validate_call def hunger_hotspot_data_get_with_http_info( self, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -432,7 +425,7 @@ def hunger_hotspot_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -440,15 +433,16 @@ def hunger_hotspot_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HungerHotSpotDataDTOPagedResult", - "400": "BadRequestDTO", + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -456,25 +450,19 @@ def hunger_hotspot_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def hunger_hotspot_data_get_without_preload_content( self, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -509,7 +497,7 @@ def hunger_hotspot_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._hunger_hotspot_data_get_serialize( page=page, @@ -517,18 +505,20 @@ def hunger_hotspot_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HungerHotSpotDataDTOPagedResult", - "400": "BadRequestDTO", + '200': "HungerHotSpotDataDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _hunger_hotspot_data_get_serialize( self, page, @@ -538,9 +528,11 @@ def _hunger_hotspot_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -552,27 +544,37 @@ def _hunger_hotspot_data_get_serialize( # process the path parameters # process the query parameters if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/HungerHotspot/Data", + method='GET', + resource_path='/HungerHotspot/Data', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -582,5 +584,7 @@ def _hunger_hotspot_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/incubation_api.py b/data_bridges_client/api/incubation_api.py index 12a8f7e..5685b37 100644 --- a/data_bridges_client/api/incubation_api.py +++ b/data_bridges_client/api/incubation_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,22 +21,12 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated -from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( - CariAdm0ValuesDTOPagedResult, -) -from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( - CariAdm1ValuesDTOPagedResult, -) -from data_bridges_client.models.household_survey_list_dto_paged_result import ( - HouseholdSurveyListDTOPagedResult, -) +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) -from data_bridges_client.models.xls_form_definition_new_schema_dto import ( - XlsFormDefinitionNewSchemaDTO, -) +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO +from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -55,41 +45,22 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def cari_adm0_values_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -130,7 +101,7 @@ def cari_adm0_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -141,15 +112,16 @@ def cari_adm0_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm0ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -157,41 +129,22 @@ def cari_adm0_values_get( response_types_map=_response_types_map, ).data + @validate_call def cari_adm0_values_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -232,7 +185,7 @@ def cari_adm0_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -243,15 +196,16 @@ def cari_adm0_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm0ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -259,41 +213,22 @@ def cari_adm0_values_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def cari_adm0_values_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -334,7 +269,7 @@ def cari_adm0_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm0_values_get_serialize( adm0_code=adm0_code, @@ -345,18 +280,20 @@ def cari_adm0_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm0ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm0ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _cari_adm0_values_get_serialize( self, adm0_code, @@ -369,9 +306,11 @@ def _cari_adm0_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -383,36 +322,49 @@ def _cari_adm0_values_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if survey_id is not None: - _query_params.append(("surveyId", survey_id)) - + + _query_params.append(('surveyId', survey_id)) + if indicator_id is not None: - _query_params.append(("indicatorId", indicator_id)) - + + _query_params.append(('indicatorId', indicator_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Cari/Adm0Values", + method='GET', + resource_path='/Cari/Adm0Values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -422,44 +374,27 @@ def _cari_adm0_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def cari_adm1_values_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -500,7 +435,7 @@ def cari_adm1_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -511,15 +446,16 @@ def cari_adm1_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm1ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -527,41 +463,22 @@ def cari_adm1_values_get( response_types_map=_response_types_map, ).data + @validate_call def cari_adm1_values_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -602,7 +519,7 @@ def cari_adm1_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -613,15 +530,16 @@ def cari_adm1_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm1ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -629,41 +547,22 @@ def cari_adm1_values_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def cari_adm1_values_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field(description="The administrative level 0 code to filter the results."), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the survey to filter the results." - ), - ] = None, - indicator_id: Annotated[ - Optional[StrictInt], - Field( - description="The unique identifier of the indicator to filter the results." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="The administrative level 0 code to filter the results.")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the survey to filter the results.")] = None, + indicator_id: Annotated[Optional[StrictInt], Field(description="The unique identifier of the indicator to filter the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -704,7 +603,7 @@ def cari_adm1_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cari_adm1_values_get_serialize( adm0_code=adm0_code, @@ -715,18 +614,20 @@ def cari_adm1_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "CariAdm1ValuesDTOPagedResult", - "400": "BadRequestDTO", + '200': "CariAdm1ValuesDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _cari_adm1_values_get_serialize( self, adm0_code, @@ -739,9 +640,11 @@ def _cari_adm1_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -753,36 +656,49 @@ def _cari_adm1_values_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if survey_id is not None: - _query_params.append(("surveyId", survey_id)) - + + _query_params.append(('surveyId', survey_id)) + if indicator_id is not None: - _query_params.append(("indicatorId", indicator_id)) - + + _query_params.append(('indicatorId', indicator_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Cari/Adm1Values", + method='GET', + resource_path='/Cari/Adm1Values', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -792,38 +708,27 @@ def _cari_adm1_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def household_draft_internal_base_data_get( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -864,7 +769,7 @@ def household_draft_internal_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -875,17 +780,18 @@ def household_draft_internal_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -893,35 +799,22 @@ def household_draft_internal_base_data_get( response_types_map=_response_types_map, ).data + @validate_call def household_draft_internal_base_data_get_with_http_info( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -962,7 +855,7 @@ def household_draft_internal_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -973,17 +866,18 @@ def household_draft_internal_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -991,35 +885,22 @@ def household_draft_internal_base_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def household_draft_internal_base_data_get_without_preload_content( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1060,7 +941,7 @@ def household_draft_internal_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_draft_internal_base_data_get_serialize( api_key=api_key, @@ -1071,20 +952,22 @@ def household_draft_internal_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _household_draft_internal_base_data_get_serialize( self, api_key, @@ -1097,9 +980,11 @@ def _household_draft_internal_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1111,36 +996,49 @@ def _household_draft_internal_base_data_get_serialize( # process the path parameters # process the query parameters if api_key is not None: - _query_params.append(("apiKey", api_key)) - + + _query_params.append(('apiKey', api_key)) + if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Household/DraftInternalBaseData", + method='GET', + resource_path='/Household/DraftInternalBaseData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1150,42 +1048,28 @@ def _household_draft_internal_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def household_full_data_get( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1228,7 +1112,7 @@ def household_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1240,17 +1124,18 @@ def household_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1258,39 +1143,23 @@ def household_full_data_get( response_types_map=_response_types_map, ).data + @validate_call def household_full_data_get_with_http_info( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1333,7 +1202,7 @@ def household_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1345,17 +1214,18 @@ def household_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1363,39 +1233,23 @@ def household_full_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def household_full_data_get_without_preload_content( self, api_key: StrictStr, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1438,7 +1292,7 @@ def household_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_full_data_get_serialize( api_key=api_key, @@ -1450,20 +1304,22 @@ def household_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "403": "ProblemDetails", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '403': "ProblemDetails", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _household_full_data_get_serialize( self, api_key, @@ -1477,9 +1333,11 @@ def _household_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1491,39 +1349,53 @@ def _household_full_data_get_serialize( # process the path parameters # process the query parameters if api_key is not None: - _query_params.append(("apiKey", api_key)) - + + _query_params.append(('apiKey', api_key)) + if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Household/FullData", + method='GET', + resource_path='/Household/FullData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1533,37 +1405,26 @@ def _household_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def household_official_use_base_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1602,7 +1463,7 @@ def household_official_use_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1612,16 +1473,17 @@ def household_official_use_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1629,34 +1491,21 @@ def household_official_use_base_data_get( response_types_map=_response_types_map, ).data + @validate_call def household_official_use_base_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1695,7 +1544,7 @@ def household_official_use_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1705,16 +1554,17 @@ def household_official_use_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1722,34 +1572,21 @@ def household_official_use_base_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def household_official_use_base_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1788,7 +1625,7 @@ def household_official_use_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_official_use_base_data_get_serialize( survey_id=survey_id, @@ -1798,19 +1635,21 @@ def household_official_use_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _household_official_use_base_data_get_serialize( self, survey_id, @@ -1822,9 +1661,11 @@ def _household_official_use_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1836,33 +1677,45 @@ def _household_official_use_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Household/OfficialUseBaseData", + method='GET', + resource_path='/Household/OfficialUseBaseData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1872,37 +1725,26 @@ def _household_official_use_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def household_public_base_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1941,7 +1783,7 @@ def household_public_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -1951,16 +1793,17 @@ def household_public_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1968,34 +1811,21 @@ def household_public_base_data_get( response_types_map=_response_types_map, ).data + @validate_call def household_public_base_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2034,7 +1864,7 @@ def household_public_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -2044,16 +1874,17 @@ def household_public_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2061,34 +1892,21 @@ def household_public_base_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def household_public_base_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2127,7 +1945,7 @@ def household_public_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_public_base_data_get_serialize( survey_id=survey_id, @@ -2137,19 +1955,21 @@ def household_public_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _household_public_base_data_get_serialize( self, survey_id, @@ -2161,9 +1981,11 @@ def _household_public_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2175,33 +1997,45 @@ def _household_public_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Household/PublicBaseData", + method='GET', + resource_path='/Household/PublicBaseData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2211,46 +2045,28 @@ def _household_public_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def household_surveys_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2293,7 +2109,7 @@ def household_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2305,15 +2121,16 @@ def household_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HouseholdSurveyListDTOPagedResult", - "400": "BadRequestDTO", + '200': "HouseholdSurveyListDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2321,43 +2138,23 @@ def household_surveys_get( response_types_map=_response_types_map, ).data + @validate_call def household_surveys_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2400,7 +2197,7 @@ def household_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2412,15 +2209,16 @@ def household_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HouseholdSurveyListDTOPagedResult", - "400": "BadRequestDTO", + '200': "HouseholdSurveyListDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2428,43 +2226,23 @@ def household_surveys_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def household_surveys_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, survey_id: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2507,7 +2285,7 @@ def household_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._household_surveys_get_serialize( adm0_code=adm0_code, @@ -2519,18 +2297,20 @@ def household_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "HouseholdSurveyListDTOPagedResult", - "400": "BadRequestDTO", + '200': "HouseholdSurveyListDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _household_surveys_get_serialize( self, adm0_code, @@ -2544,9 +2324,11 @@ def _household_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2558,59 +2340,69 @@ def _household_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if survey_id is not None: - _query_params.append(("surveyId", survey_id)) - + + _query_params.append(('surveyId', survey_id)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Household/Surveys", + method='GET', + resource_path='/Household/Surveys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2620,56 +2412,31 @@ def _household_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - scroll_id: Annotated[ - Optional[StrictInt], - Field(description="The pointer to the next paged results"), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2718,7 +2485,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2733,15 +2500,16 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2749,53 +2517,26 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - scroll_id: Annotated[ - Optional[StrictInt], - Field(description="The pointer to the next paged results"), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2844,7 +2585,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2859,15 +2600,16 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2875,53 +2617,26 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - scroll_id: Annotated[ - Optional[StrictInt], - Field(description="The pointer to the next paged results"), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + scroll_id: Annotated[Optional[StrictInt], Field(description="The pointer to the next paged results")] = None, page_size: Optional[StrictInt] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2970,7 +2685,7 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_conte in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( survey_id=survey_id, @@ -2985,18 +2700,20 @@ def m_fi_surveys_processed_data_with_keyset_pagination_get_without_preload_conte _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( self, survey_id, @@ -3013,9 +2730,11 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3027,68 +2746,83 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if scroll_id is not None: - _query_params.append(("scrollId", scroll_id)) - + + _query_params.append(('scrollId', scroll_id)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if adm0_codes is not None: - _query_params.append(("adm0Codes", adm0_codes)) - + + _query_params.append(('adm0Codes', adm0_codes)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if survey_type is not None: - _query_params.append(("surveyType", survey_type)) - + + _query_params.append(('surveyType', survey_type)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/Surveys/ProcessedDataWithKeysetPagination", + method='GET', + resource_path='/MFI/Surveys/ProcessedDataWithKeysetPagination', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3098,30 +2832,24 @@ def _m_fi_surveys_processed_data_with_keyset_pagination_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def xls_forms_definition_get( self, - xls_form_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the XLS Form, as retrieved from /XLSForms" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3156,7 +2884,7 @@ def xls_forms_definition_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -3164,15 +2892,16 @@ def xls_forms_definition_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[XlsFormDefinitionNewSchemaDTO]", - "400": "BadRequestDTO", + '200': "List[XlsFormDefinitionNewSchemaDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3180,27 +2909,19 @@ def xls_forms_definition_get( response_types_map=_response_types_map, ).data + @validate_call def xls_forms_definition_get_with_http_info( self, - xls_form_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the XLS Form, as retrieved from /XLSForms" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3235,7 +2956,7 @@ def xls_forms_definition_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -3243,15 +2964,16 @@ def xls_forms_definition_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[XlsFormDefinitionNewSchemaDTO]", - "400": "BadRequestDTO", + '200': "List[XlsFormDefinitionNewSchemaDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3259,27 +2981,19 @@ def xls_forms_definition_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def xls_forms_definition_get_without_preload_content( self, - xls_form_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the XLS Form, as retrieved from /XLSForms" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + xls_form_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the XLS Form, as retrieved from /XLSForms")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3314,7 +3028,7 @@ def xls_forms_definition_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._xls_forms_definition_get_serialize( xls_form_id=xls_form_id, @@ -3322,18 +3036,20 @@ def xls_forms_definition_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[XlsFormDefinitionNewSchemaDTO]", - "400": "BadRequestDTO", + '200': "List[XlsFormDefinitionNewSchemaDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _xls_forms_definition_get_serialize( self, xls_form_id, @@ -3343,9 +3059,11 @@ def _xls_forms_definition_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3357,27 +3075,35 @@ def _xls_forms_definition_get_serialize( # process the path parameters # process the query parameters if xls_form_id is not None: - _query_params.append(("xlsFormId", xls_form_id)) - + + _query_params.append(('xlsFormId', xls_form_id)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/XlsForms/definition", + method='GET', + resource_path='/XlsForms/definition', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3387,5 +3113,7 @@ def _xls_forms_definition_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/ipcch_api.py b/data_bridges_client/api/ipcch_api.py index c691789..2341e05 100644 --- a/data_bridges_client/api/ipcch_api.py +++ b/data_bridges_client/api/ipcch_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,18 +21,10 @@ from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( - IpcHistoricalDatumDtoPagedResult, -) -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( - IpcchAndEquivalentPeaksDTOPagedResult, -) -from data_bridges_client.models.ipcch_base_dto_paged_result import ( - IpcchBaseDtoPagedResult, -) -from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( - IpcchPeaksDtoPagedResult, -) +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -51,27 +43,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get( self, - reference_year: Annotated[ - Optional[StrictInt], - Field(description="Year in a 4 digit format, for example: 2025"), - ] = None, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,9 +70,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -110,7 +96,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -120,15 +106,16 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -136,27 +123,21 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get( response_types_map=_response_types_map, ).data + @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( self, - reference_year: Annotated[ - Optional[StrictInt], - Field(description="Year in a 4 digit format, for example: 2025"), - ] = None, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -169,9 +150,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -195,7 +176,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -205,15 +186,16 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -221,27 +203,21 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( self, - reference_year: Annotated[ - Optional[StrictInt], - Field(description="Year in a 4 digit format, for example: 2025"), - ] = None, + reference_year: Annotated[Optional[StrictInt], Field(description="Year in a 4 digit format, for example: 2025")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -254,9 +230,9 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( :param reference_year: Year in a 4 digit format, for example: 2025 :type reference_year: int - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -280,7 +256,7 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( reference_year=reference_year, @@ -290,18 +266,20 @@ def ipcch_ipcch_and_equivalent_historical_peaks_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( self, reference_year, @@ -313,9 +291,11 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -327,33 +307,45 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( # process the path parameters # process the query parameters if reference_year is not None: - _query_params.append(("referenceYear", reference_year)) - + + _query_params.append(('referenceYear', reference_year)) + if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Ipcch/IPCCHAndEquivalent-HistoricalPeaks", + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-HistoricalPeaks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -363,26 +355,25 @@ def _ipcch_ipcch_and_equivalent_historical_peaks_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -393,9 +384,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -419,7 +410,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -428,15 +419,16 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -444,23 +436,20 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get( response_types_map=_response_types_map, ).data + @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -471,9 +460,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -497,7 +486,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -506,15 +495,16 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -522,23 +512,20 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -549,9 +536,9 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-latestpeaks_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -575,7 +562,7 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( iso3=iso3, @@ -584,18 +571,20 @@ def ipcch_ipcch_and_equivalent_latest_peaks_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchPeaksDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchPeaksDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( self, iso3, @@ -606,9 +595,11 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -620,30 +611,41 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Ipcch/IPCCHAndEquivalent-LatestPeaks", + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-LatestPeaks', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -653,26 +655,25 @@ def _ipcch_ipcch_and_equivalent_latest_peaks_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def ipcch_ipcch_and_equivalent_most_recent_get( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -683,9 +684,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -709,7 +710,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -718,15 +719,16 @@ def ipcch_ipcch_and_equivalent_most_recent_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchBaseDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -734,23 +736,20 @@ def ipcch_ipcch_and_equivalent_most_recent_get( response_types_map=_response_types_map, ).data + @validate_call def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -761,9 +760,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -787,7 +786,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -796,15 +795,16 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchBaseDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -812,23 +812,20 @@ def ipcch_ipcch_and_equivalent_most_recent_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( self, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -839,9 +836,9 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalent-mostrecent_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -865,7 +862,7 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_most_recent_get_serialize( iso3=iso3, @@ -874,18 +871,20 @@ def ipcch_ipcch_and_equivalent_most_recent_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchBaseDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcchBaseDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( self, iso3, @@ -896,9 +895,11 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -910,30 +911,41 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Ipcch/IPCCHAndEquivalent-MostRecent", + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalent-MostRecent', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -943,29 +955,25 @@ def _ipcch_ipcch_and_equivalent_most_recent_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( self, iso3: Optional[StrictStr] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -976,7 +984,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1002,7 +1010,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1011,15 +1019,16 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchAndEquivalentPeaksDTOPagedResult", - "400": "BadRequestDTO", + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1027,26 +1036,20 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get( response_types_map=_response_types_map, ).data + @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( self, iso3: Optional[StrictStr] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1057,7 +1060,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1083,7 +1086,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1092,15 +1095,16 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchAndEquivalentPeaksDTOPagedResult", - "400": "BadRequestDTO", + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1108,26 +1112,20 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( self, iso3: Optional[StrictStr] = None, - page: Annotated[ - Optional[StrictInt], - Field(description="The page number for pagination. Defaults to 1."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + page: Annotated[Optional[StrictInt], Field(description="The page number for pagination. Defaults to 1.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1138,7 +1136,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_ipcch-ipcchandequivalentpeakswfpdashboard_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param iso3: + :param iso3: :type iso3: str :param page: The page number for pagination. Defaults to 1. :type page: int @@ -1164,7 +1162,7 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( iso3=iso3, @@ -1173,18 +1171,20 @@ def ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcchAndEquivalentPeaksDTOPagedResult", - "400": "BadRequestDTO", + '200': "IpcchAndEquivalentPeaksDTOPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( self, iso3, @@ -1195,9 +1195,11 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1209,30 +1211,41 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( # process the path parameters # process the query parameters if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard", + method='GET', + resource_path='/Ipcch/IPCCHAndEquivalentPeaks-WFPDashboard', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1242,38 +1255,27 @@ def _ipcch_ipcch_and_equivalent_peaks_wfp_dashboard_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def ipcch_ipcch_historical_data_get( self, - from_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, - to_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1288,9 +1290,9 @@ def ipcch_ipcch_historical_data_get( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1314,7 +1316,7 @@ def ipcch_ipcch_historical_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1325,15 +1327,16 @@ def ipcch_ipcch_historical_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcHistoricalDatumDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1341,35 +1344,22 @@ def ipcch_ipcch_historical_data_get( response_types_map=_response_types_map, ).data + @validate_call def ipcch_ipcch_historical_data_get_with_http_info( self, - from_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, - to_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1384,9 +1374,9 @@ def ipcch_ipcch_historical_data_get_with_http_info( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1410,7 +1400,7 @@ def ipcch_ipcch_historical_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1421,15 +1411,16 @@ def ipcch_ipcch_historical_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcHistoricalDatumDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1437,35 +1428,22 @@ def ipcch_ipcch_historical_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def ipcch_ipcch_historical_data_get_without_preload_content( self, - from_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, - to_date: Annotated[ - Optional[datetime], - Field( - description="Date in the format yyyy-mm-dd, refers to the analysis date" - ), - ] = None, + from_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, + to_date: Annotated[Optional[datetime], Field(description="Date in the format yyyy-mm-dd, refers to the analysis date")] = None, iso3: Optional[StrictStr] = None, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1480,9 +1458,9 @@ def ipcch_ipcch_historical_data_get_without_preload_content( :type from_date: datetime :param to_date: Date in the format yyyy-mm-dd, refers to the analysis date :type to_date: datetime - :param iso3: + :param iso3: :type iso3: str - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1506,7 +1484,7 @@ def ipcch_ipcch_historical_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._ipcch_ipcch_historical_data_get_serialize( from_date=from_date, @@ -1517,18 +1495,20 @@ def ipcch_ipcch_historical_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "IpcHistoricalDatumDtoPagedResult", - "400": "BadRequestDTO", + '200': "IpcHistoricalDatumDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _ipcch_ipcch_historical_data_get_serialize( self, from_date, @@ -1541,9 +1521,11 @@ def _ipcch_ipcch_historical_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1558,51 +1540,64 @@ def _ipcch_ipcch_historical_data_get_serialize( if isinstance(from_date, datetime): _query_params.append( ( - "fromDate", + 'fromDate', from_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("fromDate", from_date)) - + _query_params.append(('fromDate', from_date)) + if to_date is not None: if isinstance(to_date, datetime): _query_params.append( ( - "toDate", - to_date.strftime(self.api_client.configuration.datetime_format), + 'toDate', + to_date.strftime( + self.api_client.configuration.datetime_format + ) ) ) else: - _query_params.append(("toDate", to_date)) - + _query_params.append(('toDate', to_date)) + if iso3 is not None: - _query_params.append(("iso3", iso3)) - + + _query_params.append(('iso3', iso3)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Ipcch/IPCCH-HistoricalData", + method='GET', + resource_path='/Ipcch/IPCCH-HistoricalData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1612,5 +1607,7 @@ def _ipcch_ipcch_historical_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/market_prices_api.py b/data_bridges_client/api/market_prices_api.py index 981d405..7360c91 100644 --- a/data_bridges_client/api/market_prices_api.py +++ b/data_bridges_client/api/market_prices_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -21,18 +21,10 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated -from data_bridges_client.models.extended_alps_value_dto_paged_result import ( - ExtendedAlpsValueDtoPagedResult, -) -from data_bridges_client.models.paged_commodity_price_list_dto import ( - PagedCommodityPriceListDTO, -) -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( - PagedCommodityWeeklyAggregatedPriceListDTO, -) -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( - ViewExtendedMonthlyAggregatedPricePagedResult, -) +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult +from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -51,75 +43,29 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def market_prices_alps_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -174,7 +120,7 @@ def market_prices_alps_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -192,15 +138,16 @@ def market_prices_alps_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ExtendedAlpsValueDtoPagedResult", - "400": "BadRequestDTO", + '200': "ExtendedAlpsValueDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -208,75 +155,29 @@ def market_prices_alps_get( response_types_map=_response_types_map, ).data + @validate_call def market_prices_alps_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -331,7 +232,7 @@ def market_prices_alps_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -349,15 +250,16 @@ def market_prices_alps_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ExtendedAlpsValueDtoPagedResult", - "400": "BadRequestDTO", + '200': "ExtendedAlpsValueDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -365,75 +267,29 @@ def market_prices_alps_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def market_prices_alps_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -488,7 +344,7 @@ def market_prices_alps_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_alps_get_serialize( country_code=country_code, @@ -506,18 +362,20 @@ def market_prices_alps_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ExtendedAlpsValueDtoPagedResult", - "400": "BadRequestDTO", + '200': "ExtendedAlpsValueDtoPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _market_prices_alps_get_serialize( self, country_code, @@ -537,9 +395,11 @@ def _market_prices_alps_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -551,77 +411,95 @@ def _market_prices_alps_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if price_type_name is not None: - _query_params.append(("priceTypeName", price_type_name)) - + + _query_params.append(('priceTypeName', price_type_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if price_flag is not None: - _query_params.append(("priceFlag", price_flag)) - + + _query_params.append(('priceFlag', price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if latest_value_only is not None: - _query_params.append(("latestValueOnly", latest_value_only)) - + + _query_params.append(('latestValueOnly', latest_value_only)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MarketPrices/Alps", + method='GET', + resource_path='/MarketPrices/Alps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -631,78 +509,34 @@ def _market_prices_alps_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def market_prices_price_daily_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -757,7 +591,7 @@ def market_prices_price_daily_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -775,15 +609,16 @@ def market_prices_price_daily_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -791,75 +626,29 @@ def market_prices_price_daily_get( response_types_map=_response_types_map, ).data + @validate_call def market_prices_price_daily_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -914,7 +703,7 @@ def market_prices_price_daily_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -932,15 +721,16 @@ def market_prices_price_daily_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -948,75 +738,29 @@ def market_prices_price_daily_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def market_prices_price_daily_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1071,7 +815,7 @@ def market_prices_price_daily_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_daily_get_serialize( country_code=country_code, @@ -1089,18 +833,20 @@ def market_prices_price_daily_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _market_prices_price_daily_get_serialize( self, country_code, @@ -1120,9 +866,11 @@ def _market_prices_price_daily_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1134,77 +882,95 @@ def _market_prices_price_daily_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if price_type_name is not None: - _query_params.append(("priceTypeName", price_type_name)) - + + _query_params.append(('priceTypeName', price_type_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if price_flag is not None: - _query_params.append(("priceFlag", price_flag)) - + + _query_params.append(('priceFlag', price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if latest_value_only is not None: - _query_params.append(("latestValueOnly", latest_value_only)) - + + _query_params.append(('latestValueOnly', latest_value_only)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MarketPrices/PriceDaily", + method='GET', + resource_path='/MarketPrices/PriceDaily', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1214,78 +980,34 @@ def _market_prices_price_daily_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def market_prices_price_monthly_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1340,7 +1062,7 @@ def market_prices_price_monthly_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1358,15 +1080,16 @@ def market_prices_price_monthly_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1374,75 +1097,29 @@ def market_prices_price_monthly_get( response_types_map=_response_types_map, ).data + @validate_call def market_prices_price_monthly_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1497,7 +1174,7 @@ def market_prices_price_monthly_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1515,15 +1192,16 @@ def market_prices_price_monthly_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1531,75 +1209,29 @@ def market_prices_price_monthly_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def market_prices_price_monthly_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1654,7 +1286,7 @@ def market_prices_price_monthly_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_monthly_get_serialize( country_code=country_code, @@ -1672,18 +1304,20 @@ def market_prices_price_monthly_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "ViewExtendedMonthlyAggregatedPricePagedResult", - "400": "BadRequestDTO", + '200': "ViewExtendedMonthlyAggregatedPricePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _market_prices_price_monthly_get_serialize( self, country_code, @@ -1703,9 +1337,11 @@ def _market_prices_price_monthly_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1717,77 +1353,95 @@ def _market_prices_price_monthly_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if price_type_name is not None: - _query_params.append(("priceTypeName", price_type_name)) - + + _query_params.append(('priceTypeName', price_type_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if price_flag is not None: - _query_params.append(("priceFlag", price_flag)) - + + _query_params.append(('priceFlag', price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if latest_value_only is not None: - _query_params.append(("latestValueOnly", latest_value_only)) - + + _query_params.append(('latestValueOnly', latest_value_only)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MarketPrices/PriceMonthly", + method='GET', + resource_path='/MarketPrices/PriceMonthly', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1797,78 +1451,34 @@ def _market_prices_price_monthly_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def market_prices_price_raw_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1923,7 +1533,7 @@ def market_prices_price_raw_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -1941,15 +1551,16 @@ def market_prices_price_raw_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1957,75 +1568,29 @@ def market_prices_price_raw_get( response_types_map=_response_types_map, ).data + @validate_call def market_prices_price_raw_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2080,7 +1645,7 @@ def market_prices_price_raw_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -2098,15 +1663,16 @@ def market_prices_price_raw_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2114,75 +1680,29 @@ def market_prices_price_raw_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def market_prices_price_raw_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2237,7 +1757,7 @@ def market_prices_price_raw_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_raw_get_serialize( country_code=country_code, @@ -2255,18 +1775,20 @@ def market_prices_price_raw_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _market_prices_price_raw_get_serialize( self, country_code, @@ -2286,9 +1808,11 @@ def _market_prices_price_raw_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2300,77 +1824,95 @@ def _market_prices_price_raw_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if price_type_name is not None: - _query_params.append(("priceTypeName", price_type_name)) - + + _query_params.append(('priceTypeName', price_type_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if price_flag is not None: - _query_params.append(("priceFlag", price_flag)) - + + _query_params.append(('priceFlag', price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if latest_value_only is not None: - _query_params.append(("latestValueOnly", latest_value_only)) - + + _query_params.append(('latestValueOnly', latest_value_only)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MarketPrices/PriceRaw", + method='GET', + resource_path='/MarketPrices/PriceRaw', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2380,78 +1922,34 @@ def _market_prices_price_raw_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def market_prices_price_weekly_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2506,7 +2004,7 @@ def market_prices_price_weekly_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2524,15 +2022,16 @@ def market_prices_price_weekly_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityWeeklyAggregatedPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityWeeklyAggregatedPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2540,75 +2039,29 @@ def market_prices_price_weekly_get( response_types_map=_response_types_map, ).data + @validate_call def market_prices_price_weekly_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2663,7 +2116,7 @@ def market_prices_price_weekly_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2681,15 +2134,16 @@ def market_prices_price_weekly_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityWeeklyAggregatedPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityWeeklyAggregatedPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2697,75 +2151,29 @@ def market_prices_price_weekly_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def market_prices_price_weekly_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code." - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], - Field( - description="Unique ID of a Market, as found in /Markets/GeoJSONList" - ), - ] = None, - commodity_id: Annotated[ - Optional[StrictInt], - Field( - description="The exact ID of a Commodity, as found in /Commodities/List" - ), - ] = None, - price_type_name: Annotated[ - Optional[StrictStr], - Field(description="Price type: [retail|wholesale|farmgate]"), - ] = None, - currency_id: Annotated[ - Optional[StrictInt], - Field(description="The exact ID of a currency, as found in /Currency/List"), - ] = None, - price_flag: Annotated[ - Optional[StrictStr], - Field( - description="Type of price data: [actual|aggregate|estimated|forecasted]" - ), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\"-\\" month \\"-\\" day (e.g. 2020/06/24)' - ), - ] = None, - latest_value_only: Annotated[ - Optional[StrictBool], Field(description="[TRUE|FALSE]") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="Page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="Unique ID of a Market, as found in /Markets/GeoJSONList")] = None, + commodity_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a Commodity, as found in /Commodities/List")] = None, + price_type_name: Annotated[Optional[StrictStr], Field(description="Price type: [retail|wholesale|farmgate]")] = None, + currency_id: Annotated[Optional[StrictInt], Field(description="The exact ID of a currency, as found in /Currency/List")] = None, + price_flag: Annotated[Optional[StrictStr], Field(description="Type of price data: [actual|aggregate|estimated|forecasted]")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)")] = None, + latest_value_only: Annotated[Optional[StrictBool], Field(description="[TRUE|FALSE]")] = None, + page: Annotated[Optional[StrictInt], Field(description="Page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2820,7 +2228,7 @@ def market_prices_price_weekly_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._market_prices_price_weekly_get_serialize( country_code=country_code, @@ -2838,18 +2246,20 @@ def market_prices_price_weekly_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedCommodityWeeklyAggregatedPriceListDTO", - "400": "BadRequestDTO", + '200': "PagedCommodityWeeklyAggregatedPriceListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _market_prices_price_weekly_get_serialize( self, country_code, @@ -2869,9 +2279,11 @@ def _market_prices_price_weekly_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2883,77 +2295,95 @@ def _market_prices_price_weekly_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if commodity_id is not None: - _query_params.append(("commodityID", commodity_id)) - + + _query_params.append(('commodityID', commodity_id)) + if price_type_name is not None: - _query_params.append(("priceTypeName", price_type_name)) - + + _query_params.append(('priceTypeName', price_type_name)) + if currency_id is not None: - _query_params.append(("currencyID", currency_id)) - + + _query_params.append(('currencyID', currency_id)) + if price_flag is not None: - _query_params.append(("priceFlag", price_flag)) - + + _query_params.append(('priceFlag', price_flag)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if latest_value_only is not None: - _query_params.append(("latestValueOnly", latest_value_only)) - + + _query_params.append(('latestValueOnly', latest_value_only)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MarketPrices/PriceWeekly", + method='GET', + resource_path='/MarketPrices/PriceWeekly', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2963,5 +2393,7 @@ def _market_prices_price_weekly_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/markets_api.py b/data_bridges_client/api/markets_api.py index ecaaff4..6708e74 100644 --- a/data_bridges_client/api/markets_api.py +++ b/data_bridges_client/api/markets_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,15 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import ( - Field, - StrictBool, - StrictBytes, - StrictFloat, - StrictInt, - StrictStr, - field_validator, -) +from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Union from typing_extensions import Annotated from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot @@ -49,24 +41,19 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def markets_geo_json_list_get( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -101,7 +88,7 @@ def markets_geo_json_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -109,15 +96,16 @@ def markets_geo_json_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "MarketGeoJsonRoot", - "400": "BadRequestDTO", + '200': "MarketGeoJsonRoot", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -125,24 +113,19 @@ def markets_geo_json_list_get( response_types_map=_response_types_map, ).data + @validate_call def markets_geo_json_list_get_with_http_info( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -177,7 +160,7 @@ def markets_geo_json_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -185,15 +168,16 @@ def markets_geo_json_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "MarketGeoJsonRoot", - "400": "BadRequestDTO", + '200': "MarketGeoJsonRoot", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -201,24 +185,19 @@ def markets_geo_json_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def markets_geo_json_list_get_without_preload_content( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -253,7 +232,7 @@ def markets_geo_json_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_geo_json_list_get_serialize( adm0code=adm0code, @@ -261,18 +240,20 @@ def markets_geo_json_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "MarketGeoJsonRoot", - "400": "BadRequestDTO", + '200': "MarketGeoJsonRoot", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _markets_geo_json_list_get_serialize( self, adm0code, @@ -282,9 +263,11 @@ def _markets_geo_json_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -296,27 +279,35 @@ def _markets_geo_json_list_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - _query_params.append(("adm0code", adm0code)) - + + _query_params.append(('adm0code', adm0code)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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/geo+json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/geo+json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Markets/GeoJSONList", + method='GET', + resource_path='/Markets/GeoJSONList', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -326,37 +317,26 @@ def _markets_geo_json_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def markets_list_get( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -395,7 +375,7 @@ def markets_list_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -405,14 +385,15 @@ def markets_list_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedMarketListDTO", + '200': "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -420,34 +401,21 @@ def markets_list_get( response_types_map=_response_types_map, ).data + @validate_call def markets_list_get_with_http_info( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -486,7 +454,7 @@ def markets_list_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -496,14 +464,15 @@ def markets_list_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedMarketListDTO", + '200': "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -511,34 +480,21 @@ def markets_list_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def markets_list_get_without_preload_content( self, - country_code: Annotated[ - Optional[StrictStr], - Field( - description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + country_code: Annotated[Optional[StrictStr], Field(description="The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -577,7 +533,7 @@ def markets_list_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_list_get_serialize( country_code=country_code, @@ -587,17 +543,19 @@ def markets_list_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedMarketListDTO", + '200': "PagedMarketListDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _markets_list_get_serialize( self, country_code, @@ -609,9 +567,11 @@ def _markets_list_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -623,33 +583,45 @@ def _markets_list_get_serialize( # process the path parameters # process the query parameters if country_code is not None: - _query_params.append(("countryCode", country_code)) - + + _query_params.append(('countryCode', country_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Markets/List", + method='GET', + resource_path='/Markets/List', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -659,33 +631,25 @@ def _markets_list_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def markets_markets_as_csv_get( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - local_names: Annotated[ - Optional[StrictBool], - Field( - description="If true the name of markets and regions will be localized if available" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -722,7 +686,7 @@ def markets_markets_as_csv_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -731,14 +695,15 @@ def markets_markets_as_csv_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "bytearray", + '200': "bytearray", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -746,30 +711,20 @@ def markets_markets_as_csv_get( response_types_map=_response_types_map, ).data + @validate_call def markets_markets_as_csv_get_with_http_info( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - local_names: Annotated[ - Optional[StrictBool], - Field( - description="If true the name of markets and regions will be localized if available" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -806,7 +761,7 @@ def markets_markets_as_csv_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -815,14 +770,15 @@ def markets_markets_as_csv_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "bytearray", + '200': "bytearray", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -830,30 +786,20 @@ def markets_markets_as_csv_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def markets_markets_as_csv_get_without_preload_content( self, - adm0code: Annotated[ - Optional[StrictInt], Field(description="The admin code of the country") - ] = None, - local_names: Annotated[ - Optional[StrictBool], - Field( - description="If true the name of markets and regions will be localized if available" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="The admin code of the country")] = None, + local_names: Annotated[Optional[StrictBool], Field(description="If true the name of markets and regions will be localized if available")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -890,7 +836,7 @@ def markets_markets_as_csv_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_markets_as_csv_get_serialize( adm0code=adm0code, @@ -899,17 +845,19 @@ def markets_markets_as_csv_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "bytearray", + '200': "bytearray", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _markets_markets_as_csv_get_serialize( self, adm0code, @@ -920,9 +868,11 @@ def _markets_markets_as_csv_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -934,30 +884,41 @@ def _markets_markets_as_csv_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - _query_params.append(("adm0code", adm0code)) - + + _query_params.append(('adm0code', adm0code)) + if local_names is not None: - _query_params.append(("localNames", local_names)) - + + _query_params.append(('localNames', local_names)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Markets/MarketsAsCSV", + method='GET', + resource_path='/Markets/MarketsAsCSV', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -967,42 +928,26 @@ def _markets_markets_as_csv_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def markets_nearby_markets_get( self, - adm0code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - lat: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - lng: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1041,7 +986,7 @@ def markets_nearby_markets_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -1051,15 +996,16 @@ def markets_nearby_markets_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[NearbyMarketsDTO]", - "400": "BadRequestDTO", + '200': "List[NearbyMarketsDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1067,39 +1013,21 @@ def markets_nearby_markets_get( response_types_map=_response_types_map, ).data + @validate_call def markets_nearby_markets_get_with_http_info( self, - adm0code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - lat: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - lng: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1138,7 +1066,7 @@ def markets_nearby_markets_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -1148,15 +1076,16 @@ def markets_nearby_markets_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[NearbyMarketsDTO]", - "400": "BadRequestDTO", + '200': "List[NearbyMarketsDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1164,39 +1093,21 @@ def markets_nearby_markets_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def markets_nearby_markets_get_without_preload_content( self, - adm0code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - lat: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - lng: Annotated[ - Optional[Union[StrictFloat, StrictInt]], - Field( - description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal" - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + lat: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + lng: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1235,7 +1146,7 @@ def markets_nearby_markets_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._markets_nearby_markets_get_serialize( adm0code=adm0code, @@ -1245,18 +1156,20 @@ def markets_nearby_markets_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "List[NearbyMarketsDTO]", - "400": "BadRequestDTO", + '200': "List[NearbyMarketsDTO]", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _markets_nearby_markets_get_serialize( self, adm0code, @@ -1268,9 +1181,11 @@ def _markets_nearby_markets_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1282,33 +1197,43 @@ def _markets_nearby_markets_get_serialize( # process the path parameters # process the query parameters if adm0code is not None: - _query_params.append(("adm0code", adm0code)) - + + _query_params.append(('adm0code', adm0code)) + if lat is not None: - _query_params.append(("lat", lat)) - + + _query_params.append(('lat', lat)) + if lng is not None: - _query_params.append(("lng", lng)) - + + _query_params.append(('lng', lng)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Markets/NearbyMarkets", + method='GET', + resource_path='/Markets/NearbyMarkets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1318,5 +1243,7 @@ def _markets_nearby_markets_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/rpme_api.py b/data_bridges_client/api/rpme_api.py index 806b73c..6834b5e 100644 --- a/data_bridges_client/api/rpme_api.py +++ b/data_bridges_client/api/rpme_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -22,16 +22,10 @@ from typing import Optional from typing_extensions import Annotated from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO -from data_bridges_client.models.rpme_assessment_paged_result import ( - RpmeAssessmentPagedResult, -) -from data_bridges_client.models.rpme_variable_paged_result import ( - RpmeVariablePagedResult, -) +from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult +from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -50,34 +44,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def rpme_base_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -116,7 +97,7 @@ def rpme_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -126,16 +107,17 @@ def rpme_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -143,34 +125,21 @@ def rpme_base_data_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_base_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -209,7 +178,7 @@ def rpme_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -219,16 +188,17 @@ def rpme_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -236,34 +206,21 @@ def rpme_base_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_base_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -302,7 +259,7 @@ def rpme_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_base_data_get_serialize( survey_id=survey_id, @@ -312,19 +269,21 @@ def rpme_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_base_data_get_serialize( self, survey_id, @@ -336,9 +295,11 @@ def _rpme_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -350,33 +311,45 @@ def _rpme_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/BaseData", + method='GET', + resource_path='/Rpme/BaseData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -386,41 +359,27 @@ def _rpme_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def rpme_full_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -461,7 +420,7 @@ def rpme_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -472,16 +431,17 @@ def rpme_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -489,38 +449,22 @@ def rpme_full_data_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_full_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -561,7 +505,7 @@ def rpme_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -572,16 +516,17 @@ def rpme_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -589,38 +534,22 @@ def rpme_full_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_full_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -661,7 +590,7 @@ def rpme_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_full_data_get_serialize( survey_id=survey_id, @@ -672,19 +601,21 @@ def rpme_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_full_data_get_serialize( self, survey_id, @@ -697,9 +628,11 @@ def _rpme_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -711,36 +644,49 @@ def _rpme_full_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/FullData", + method='GET', + resource_path='/Rpme/FullData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -750,43 +696,29 @@ def _rpme_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def rpme_output_values_get( self, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - shop_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the shop") - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -807,7 +739,7 @@ def rpme_output_values_get( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -831,7 +763,7 @@ def rpme_output_values_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -844,15 +776,16 @@ def rpme_output_values_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeAssessmentPagedResult", - "400": "BadRequestDTO", + '200': "RpmeAssessmentPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -860,40 +793,24 @@ def rpme_output_values_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_output_values_get_with_http_info( self, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - shop_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the shop") - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -914,7 +831,7 @@ def rpme_output_values_get_with_http_info( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -938,7 +855,7 @@ def rpme_output_values_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -951,15 +868,16 @@ def rpme_output_values_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeAssessmentPagedResult", - "400": "BadRequestDTO", + '200': "RpmeAssessmentPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -967,40 +885,24 @@ def rpme_output_values_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_output_values_get_without_preload_content( self, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - shop_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the shop") - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + shop_id: Annotated[Optional[StrictInt], Field(description="The ID of the shop")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, adm0_code_dots: Optional[StrictStr] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1021,7 +923,7 @@ def rpme_output_values_get_without_preload_content( :type shop_id: int :param market_id: The ID of the market :type market_id: int - :param adm0_code_dots: + :param adm0_code_dots: :type adm0_code_dots: str :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1045,7 +947,7 @@ def rpme_output_values_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_output_values_get_serialize( page=page, @@ -1058,18 +960,20 @@ def rpme_output_values_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeAssessmentPagedResult", - "400": "BadRequestDTO", + '200': "RpmeAssessmentPagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_output_values_get_serialize( self, page, @@ -1084,9 +988,11 @@ def _rpme_output_values_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1098,42 +1004,57 @@ def _rpme_output_values_get_serialize( # process the path parameters # process the query parameters if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if survey_id is not None: - _query_params.append(("surveyId", survey_id)) - + + _query_params.append(('surveyId', survey_id)) + if shop_id is not None: - _query_params.append(("shopId", shop_id)) - + + _query_params.append(('shopId', shop_id)) + if market_id is not None: - _query_params.append(("marketId", market_id)) - + + _query_params.append(('marketId', market_id)) + if adm0_code_dots is not None: - _query_params.append(("adm0CodeDots", adm0_code_dots)) - + + _query_params.append(('adm0CodeDots', adm0_code_dots)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/OutputValues", + method='GET', + resource_path='/Rpme/OutputValues', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1143,45 +1064,27 @@ def _rpme_output_values_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def rpme_surveys_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1222,7 +1125,7 @@ def rpme_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1233,15 +1136,16 @@ def rpme_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1249,42 +1153,22 @@ def rpme_surveys_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_surveys_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1325,7 +1209,7 @@ def rpme_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1336,15 +1220,16 @@ def rpme_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1352,42 +1237,22 @@ def rpme_surveys_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_surveys_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1428,7 +1293,7 @@ def rpme_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_surveys_get_serialize( adm0_code=adm0_code, @@ -1439,18 +1304,20 @@ def rpme_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_surveys_get_serialize( self, adm0_code, @@ -1463,9 +1330,11 @@ def _rpme_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1477,56 +1346,67 @@ def _rpme_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/Surveys", + method='GET', + resource_path='/Rpme/Surveys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1536,25 +1416,24 @@ def _rpme_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def rpme_variables_get( self, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1565,7 +1444,7 @@ def rpme_variables_get( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1589,7 +1468,7 @@ def rpme_variables_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1597,15 +1476,16 @@ def rpme_variables_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeVariablePagedResult", - "400": "BadRequestDTO", + '200': "RpmeVariablePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1613,22 +1493,19 @@ def rpme_variables_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_variables_get_with_http_info( self, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1639,7 +1516,7 @@ def rpme_variables_get_with_http_info( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1663,7 +1540,7 @@ def rpme_variables_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1671,15 +1548,16 @@ def rpme_variables_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeVariablePagedResult", - "400": "BadRequestDTO", + '200': "RpmeVariablePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1687,22 +1565,19 @@ def rpme_variables_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_variables_get_without_preload_content( self, page: Optional[StrictInt] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1713,7 +1588,7 @@ def rpme_variables_get_without_preload_content( [![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]() [![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]() [![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]() ### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\" **Data Controller** - Wael ATTIA **API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern - :param page: + :param page: :type page: int :param env: Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org :type env: str @@ -1737,7 +1612,7 @@ def rpme_variables_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_variables_get_serialize( page=page, @@ -1745,18 +1620,20 @@ def rpme_variables_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "RpmeVariablePagedResult", - "400": "BadRequestDTO", + '200': "RpmeVariablePagedResult", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_variables_get_serialize( self, page, @@ -1766,9 +1643,11 @@ def _rpme_variables_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1780,27 +1659,37 @@ def _rpme_variables_get_serialize( # process the path parameters # process the query parameters if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/Variables", + method='GET', + resource_path='/Rpme/Variables', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1810,45 +1699,27 @@ def _rpme_variables_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def rpme_xls_forms_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1889,7 +1760,7 @@ def rpme_xls_forms_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -1900,15 +1771,16 @@ def rpme_xls_forms_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1916,42 +1788,22 @@ def rpme_xls_forms_get( response_types_map=_response_types_map, ).data + @validate_call def rpme_xls_forms_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1992,7 +1844,7 @@ def rpme_xls_forms_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -2003,15 +1855,16 @@ def rpme_xls_forms_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2019,42 +1872,22 @@ def rpme_xls_forms_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def rpme_xls_forms_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2095,7 +1928,7 @@ def rpme_xls_forms_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._rpme_xls_forms_get_serialize( adm0_code=adm0_code, @@ -2106,18 +1939,20 @@ def rpme_xls_forms_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _rpme_xls_forms_get_serialize( self, adm0_code, @@ -2130,9 +1965,11 @@ def _rpme_xls_forms_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2144,56 +1981,65 @@ def _rpme_xls_forms_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/Rpme/XLSForms", + method='GET', + resource_path='/Rpme/XLSForms', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2203,5 +2049,7 @@ def _rpme_xls_forms_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/surveys_api.py b/data_bridges_client/api/surveys_api.py index 39f34fa..4f3e20d 100644 --- a/data_bridges_client/api/surveys_api.py +++ b/data_bridges_client/api/surveys_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -23,9 +23,7 @@ from typing_extensions import Annotated from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO from data_bridges_client.api_client import ApiClient, RequestSerialized from data_bridges_client.api_response import ApiResponse @@ -44,34 +42,21 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def m_fi_surveys_base_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -110,7 +95,7 @@ def m_fi_surveys_base_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -120,16 +105,17 @@ def m_fi_surveys_base_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -137,34 +123,21 @@ def m_fi_surveys_base_data_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_surveys_base_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -203,7 +176,7 @@ def m_fi_surveys_base_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -213,16 +186,17 @@ def m_fi_surveys_base_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -230,34 +204,21 @@ def m_fi_surveys_base_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_surveys_base_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -296,7 +257,7 @@ def m_fi_surveys_base_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_base_data_get_serialize( survey_id=survey_id, @@ -306,19 +267,21 @@ def m_fi_surveys_base_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_surveys_base_data_get_serialize( self, survey_id, @@ -330,9 +293,11 @@ def _m_fi_surveys_base_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -344,33 +309,45 @@ def _m_fi_surveys_base_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/Surveys/BaseData", + method='GET', + resource_path='/MFI/Surveys/BaseData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -380,41 +357,27 @@ def _m_fi_surveys_base_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def m_fi_surveys_full_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -455,7 +418,7 @@ def m_fi_surveys_full_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -466,16 +429,17 @@ def m_fi_surveys_full_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -483,38 +447,22 @@ def m_fi_surveys_full_data_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_surveys_full_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -555,7 +503,7 @@ def m_fi_surveys_full_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -566,16 +514,17 @@ def m_fi_surveys_full_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -583,38 +532,22 @@ def m_fi_surveys_full_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_surveys_full_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], - Field( - description="unique identifier for the collected data, as retrieved from /Surveys API." - ), - ] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - page_size: Annotated[ - Optional[StrictInt], - Field(description="page size for paged results, default value is 20."), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="unique identifier for the collected data, as retrieved from /Surveys API.")] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size for paged results, default value is 20.")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -655,7 +588,7 @@ def m_fi_surveys_full_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_full_data_get_serialize( survey_id=survey_id, @@ -666,19 +599,21 @@ def m_fi_surveys_full_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyResponsesDTO", - "400": "BadRequestDTO", - "404": "ProblemDetails", + '200': "PagedSurveyResponsesDTO", + '400': "BadRequestDTO", + '404': "ProblemDetails", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_surveys_full_data_get_serialize( self, survey_id, @@ -691,9 +626,11 @@ def _m_fi_surveys_full_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -705,36 +642,49 @@ def _m_fi_surveys_full_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/Surveys/FullData", + method='GET', + resource_path='/MFI/Surveys/FullData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -744,45 +694,27 @@ def _m_fi_surveys_full_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def m_fi_surveys_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -823,7 +755,7 @@ def m_fi_surveys_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -834,15 +766,16 @@ def m_fi_surveys_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -850,42 +783,22 @@ def m_fi_surveys_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_surveys_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -926,7 +839,7 @@ def m_fi_surveys_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -937,15 +850,16 @@ def m_fi_surveys_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -953,42 +867,22 @@ def m_fi_surveys_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_surveys_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1029,7 +923,7 @@ def m_fi_surveys_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_get_serialize( adm0_code=adm0_code, @@ -1040,18 +934,20 @@ def m_fi_surveys_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedSurveyListDTO", - "400": "BadRequestDTO", + '200': "PagedSurveyListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_surveys_get_serialize( self, adm0_code, @@ -1064,9 +960,11 @@ def _m_fi_surveys_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1078,56 +976,65 @@ def _m_fi_surveys_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/Surveys", + method='GET', + resource_path='/MFI/Surveys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1137,59 +1044,32 @@ def _m_fi_surveys_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + + @validate_call def m_fi_surveys_processed_data_get( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, page_size: Optional[StrictInt] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1240,7 +1120,7 @@ def m_fi_surveys_processed_data_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1256,15 +1136,16 @@ def m_fi_surveys_processed_data_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1272,56 +1153,27 @@ def m_fi_surveys_processed_data_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_surveys_processed_data_get_with_http_info( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, page_size: Optional[StrictInt] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1372,7 +1224,7 @@ def m_fi_surveys_processed_data_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1388,15 +1240,16 @@ def m_fi_surveys_processed_data_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1404,56 +1257,27 @@ def m_fi_surveys_processed_data_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_surveys_processed_data_get_without_preload_content( self, - survey_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the survey") - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, + survey_id: Annotated[Optional[StrictInt], Field(description="The ID of the survey")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, page_size: Optional[StrictInt] = None, - format: Annotated[ - Optional[StrictStr], - Field(description="Output format: [JSON|CSV] Json is the default value"), - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - adm0_codes: Annotated[ - Optional[StrictStr], - Field( - description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - market_id: Annotated[ - Optional[StrictInt], Field(description="The ID of the market") - ] = None, - survey_type: Annotated[ - Optional[StrictStr], Field(description="The survey type") - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + format: Annotated[Optional[StrictStr], Field(description="Output format: [JSON|CSV] Json is the default value")] = None, + start_date: Annotated[Optional[datetime], Field(description="Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + adm0_codes: Annotated[Optional[StrictStr], Field(description="Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + market_id: Annotated[Optional[StrictInt], Field(description="The ID of the market")] = None, + survey_type: Annotated[Optional[StrictStr], Field(description="The survey type")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1504,7 +1328,7 @@ def m_fi_surveys_processed_data_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_surveys_processed_data_get_serialize( survey_id=survey_id, @@ -1520,18 +1344,20 @@ def m_fi_surveys_processed_data_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedProcessedDataDTO", - "400": "BadRequestDTO", + '200': "PagedProcessedDataDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_surveys_processed_data_get_serialize( self, survey_id, @@ -1549,9 +1375,11 @@ def _m_fi_surveys_processed_data_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1563,71 +1391,87 @@ def _m_fi_surveys_processed_data_get_serialize( # process the path parameters # process the query parameters if survey_id is not None: - _query_params.append(("surveyID", survey_id)) - + + _query_params.append(('surveyID', survey_id)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if page_size is not None: - _query_params.append(("pageSize", page_size)) - + + _query_params.append(('pageSize', page_size)) + if format is not None: - _query_params.append(("format", format)) - + + _query_params.append(('format', format)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if adm0_codes is not None: - _query_params.append(("adm0Codes", adm0_codes)) - + + _query_params.append(('adm0Codes', adm0_codes)) + if market_id is not None: - _query_params.append(("marketID", market_id)) - + + _query_params.append(('marketID', market_id)) + if survey_type is not None: - _query_params.append(("surveyType", survey_type)) - + + _query_params.append(('surveyType', survey_type)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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( - ["text/plain", "application/json", "text/json"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'text/plain', + 'application/json', + 'text/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/Surveys/ProcessedData", + method='GET', + resource_path='/MFI/Surveys/ProcessedData', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1637,5 +1481,7 @@ def _m_fi_surveys_processed_data_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api/xls_forms_api.py b/data_bridges_client/api/xls_forms_api.py index df2228a..72dfdb9 100644 --- a/data_bridges_client/api/xls_forms_api.py +++ b/data_bridges_client/api/xls_forms_api.py @@ -1,15 +1,15 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 import warnings @@ -40,42 +40,22 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client + @validate_call def m_fi_xls_forms_get( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -116,7 +96,7 @@ def m_fi_xls_forms_get( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -127,15 +107,16 @@ def m_fi_xls_forms_get( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -143,42 +124,22 @@ def m_fi_xls_forms_get( response_types_map=_response_types_map, ).data + @validate_call def m_fi_xls_forms_get_with_http_info( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -219,7 +180,7 @@ def m_fi_xls_forms_get_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -230,15 +191,16 @@ def m_fi_xls_forms_get_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -246,42 +208,22 @@ def m_fi_xls_forms_get_with_http_info( response_types_map=_response_types_map, ) + @validate_call def m_fi_xls_forms_get_without_preload_content( self, - adm0_code: Annotated[ - Optional[StrictInt], - Field( - description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion" - ), - ] = None, - page: Annotated[ - Optional[StrictInt], Field(description="page number for paged results") - ] = None, - start_date: Annotated[ - Optional[datetime], - Field( - description='starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - end_date: Annotated[ - Optional[datetime], - Field( - description='ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year "-" month "-" day (e.g. 2020/06/24)' - ), - ] = None, - env: Annotated[ - Optional[StrictStr], - Field( - description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org" - ), - ] = None, + adm0_code: Annotated[Optional[StrictInt], Field(description="code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion")] = None, + page: Annotated[Optional[StrictInt], Field(description="page number for paged results")] = None, + start_date: Annotated[Optional[datetime], Field(description="starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + end_date: Annotated[Optional[datetime], Field(description="ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)")] = None, + env: Annotated[Optional[StrictStr], Field(description="Environment. * `prod` - api.vam.wfp.org * `dev` - dev.api.vam.wfp.org")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] - ], + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -322,7 +264,7 @@ def m_fi_xls_forms_get_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._m_fi_xls_forms_get_serialize( adm0_code=adm0_code, @@ -333,18 +275,20 @@ def m_fi_xls_forms_get_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index, + _host_index=_host_index ) _response_types_map: Dict[str, Optional[str]] = { - "200": "PagedXlsFormListDTO", - "400": "BadRequestDTO", + '200': "PagedXlsFormListDTO", + '400': "BadRequestDTO", } response_data = self.api_client.call_api( - *_param, _request_timeout=_request_timeout + *_param, + _request_timeout=_request_timeout ) return response_data.response + def _m_fi_xls_forms_get_serialize( self, adm0_code, @@ -357,9 +301,11 @@ def _m_fi_xls_forms_get_serialize( _headers, _host_index, ) -> RequestSerialized: + _host = None - _collection_formats: Dict[str, str] = {} + _collection_formats: Dict[str, str] = { + } _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -371,56 +317,65 @@ def _m_fi_xls_forms_get_serialize( # process the path parameters # process the query parameters if adm0_code is not None: - _query_params.append(("adm0Code", adm0_code)) - + + _query_params.append(('adm0Code', adm0_code)) + if page is not None: - _query_params.append(("page", page)) - + + _query_params.append(('page', page)) + if start_date is not None: if isinstance(start_date, datetime): _query_params.append( ( - "startDate", + 'startDate', start_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("startDate", start_date)) - + _query_params.append(('startDate', start_date)) + if end_date is not None: if isinstance(end_date, datetime): _query_params.append( ( - "endDate", + 'endDate', end_date.strftime( self.api_client.configuration.datetime_format - ), + ) ) ) else: - _query_params.append(("endDate", end_date)) - + _query_params.append(('endDate', end_date)) + if env is not None: - _query_params.append(("env", env)) - + + _query_params.append(('env', env)) + # process the header parameters # 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"] + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) + # authentication setting - _auth_settings: List[str] = ["default"] + _auth_settings: List[str] = [ + 'default' + ] return self.api_client.param_serialize( - method="GET", - resource_path="/MFI/XlsForms", + method='GET', + resource_path='/MFI/XlsForms', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -430,5 +385,7 @@ def _m_fi_xls_forms_get_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth, + _request_auth=_request_auth ) + + diff --git a/data_bridges_client/api_client.py b/data_bridges_client/api_client.py index aa5447f..b89137d 100644 --- a/data_bridges_client/api_client.py +++ b/data_bridges_client/api_client.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import datetime from dateutil.parser import parse from enum import Enum @@ -37,12 +38,11 @@ UnauthorizedException, ForbiddenException, NotFoundException, - ServiceException, + ServiceException ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] - class ApiClient: """Generic API client for OpenAPI client library builds. @@ -61,20 +61,24 @@ class ApiClient: PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { - "int": int, - "long": int, # TODO remove as only py3 is supported? - "float": float, - "str": str, - "bool": bool, - "date": datetime.date, - "datetime": datetime.datetime, - "decimal": decimal.Decimal, - "object": object, + 'int': int, + 'long': int, # TODO remove as only py3 is supported? + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'decimal': decimal.Decimal, + 'object': object, } _pool = None def __init__( - self, configuration=None, header_name=None, header_value=None, cookie=None + self, + configuration=None, + header_name=None, + header_value=None, + cookie=None ) -> None: # use default configuration if none is provided if configuration is None: @@ -87,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.0/python" + self.user_agent = 'OpenAPI-Generator/1.0.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -99,15 +103,16 @@ def __exit__(self, exc_type, exc_value, traceback): @property def user_agent(self): """User agent for this API client""" - return self.default_headers["User-Agent"] + return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - self.default_headers["User-Agent"] = value + self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value + _default = None @classmethod @@ -143,12 +148,12 @@ def param_serialize( header_params=None, body=None, post_params=None, - files=None, - auth_settings=None, + files=None, auth_settings=None, collection_formats=None, _host=None, - _request_auth=None, + _request_auth=None ) -> RequestSerialized: + """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -177,28 +182,35 @@ def param_serialize( header_params = header_params or {} header_params.update(self.default_headers) if self.cookie: - header_params["Cookie"] = self.cookie + header_params['Cookie'] = self.cookie if header_params: header_params = self.sanitize_for_serialization(header_params) header_params = dict( - self.parameters_to_tuples(header_params, collection_formats) + self.parameters_to_tuples(header_params,collection_formats) ) # path parameters if path_params: path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, collection_formats) + path_params = self.parameters_to_tuples( + path_params, + collection_formats + ) for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - "{%s}" % k, quote(str(v), safe=config.safe_chars_for_path_param) + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) ) # post parameters if post_params or files: post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params = self.parameters_to_tuples( + post_params, + collection_formats + ) if files: post_params.extend(self.files_parameters(files)) @@ -210,7 +222,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth, + request_auth=_request_auth ) # body @@ -227,11 +239,15 @@ def param_serialize( # query parameters if query_params: query_params = self.sanitize_for_serialization(query_params) - url_query = self.parameters_to_url_query(query_params, collection_formats) + url_query = self.parameters_to_url_query( + query_params, + collection_formats + ) url += "?" + url_query return method, url, header_params, body, post_params + def call_api( self, method, @@ -239,7 +255,7 @@ def call_api( header_params=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ) -> rest.RESTResponse: """Makes the HTTP request (synchronous) :param method: Method to call. @@ -256,12 +272,10 @@ def call_api( try: # perform request and return response response_data = self.rest_client.request( - method, - url, + method, url, headers=header_params, - body=body, - post_params=post_params, - _request_timeout=_request_timeout, + body=body, post_params=post_params, + _request_timeout=_request_timeout ) except ApiException as e: @@ -272,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]] = None, + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -284,15 +298,9 @@ def response_deserialize( assert response_data.data is not None, msg response_type = response_types_map.get(str(response_data.status), None) - if ( - not response_type - and isinstance(response_data.status, int) - and 100 <= response_data.status <= 599 - ): + if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: # if not found, look for '1XX', '2XX', etc. - response_type = response_types_map.get( - str(response_data.status)[0] + "XX", None - ) + response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) # deserialize response data response_text = None @@ -304,14 +312,12 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader("content-type") + content_type = response_data.getheader('content-type') if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" response_text = response_data.data.decode(encoding) - return_data = self.deserialize( - response_text, response_type, content_type - ) + return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: raise ApiException.from_response( @@ -321,10 +327,10 @@ def response_deserialize( ) return ApiResponse( - status_code=response_data.status, - data=return_data, - headers=response_data.getheaders(), - raw_data=response_data.data, + status_code = response_data.status, + data = return_data, + headers = response_data.getheaders(), + raw_data = response_data.data ) def sanitize_for_serialization(self, obj): @@ -352,9 +358,13 @@ def sanitize_for_serialization(self, obj): elif isinstance(obj, self.PRIMITIVE_TYPES): return obj elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] + return [ + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ] elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) + return tuple( + self.sanitize_for_serialization(sub_obj) for sub_obj in obj + ) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() elif isinstance(obj, decimal.Decimal): @@ -368,18 +378,17 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): obj_dict = obj.to_dict() else: obj_dict = obj.__dict__ return { - key: self.sanitize_for_serialization(val) for key, val in obj_dict.items() + key: self.sanitize_for_serialization(val) + for key, val in obj_dict.items() } - def deserialize( - self, response_text: str, response_type: str, content_type: Optional[str] - ): + def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. :param response: RESTResponse object to be deserialized. @@ -405,7 +414,8 @@ def deserialize( data = response_text else: raise ApiException( - status=0, reason="Unsupported content type: {0}".format(content_type) + status=0, + reason="Unsupported content type: {0}".format(content_type) ) return self.__deserialize(data, response_type) @@ -422,17 +432,19 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith("List["): - m = re.match(r"List\[(.*)]", klass) + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) assert m is not None, "Malformed List type definition" sub_kls = m.group(1) - return [self.__deserialize(sub_data, sub_kls) for sub_data in data] + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] - if klass.startswith("Dict["): - m = re.match(r"Dict\[([^,]*), (.*)]", klass) + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) - return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} + return {k: self.__deserialize(v, sub_kls) + for k, v in data.items()} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: @@ -468,18 +480,19 @@ def parameters_to_tuples(self, params, collection_formats): for k, v in params.items() if isinstance(params, dict) else params: if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, value) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," - new_params.append((k, delimiter.join(str(value) for value in v))) + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) else: new_params.append((k, v)) return new_params @@ -504,17 +517,17 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] - if collection_format == "multi": + if collection_format == 'multi': new_params.extend((k, str(value)) for value in v) else: - if collection_format == "ssv": - delimiter = " " - elif collection_format == "tsv": - delimiter = "\t" - elif collection_format == "pipes": - delimiter = "|" + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' else: # csv is the default - delimiter = "," + delimiter = ',' new_params.append( (k, delimiter.join(quote(str(value)) for value in v)) ) @@ -532,7 +545,7 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): params = [] for k, v in files.items(): if isinstance(v, str): - with open(v, "rb") as f: + with open(v, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() elif isinstance(v, bytes): @@ -540,8 +553,13 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): filedata = v else: raise ValueError("Unsupported file value") - mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" - params.append(tuple([k, tuple([filename, filedata, mimetype])])) + mimetype = ( + mimetypes.guess_type(filename)[0] + or 'application/octet-stream' + ) + params.append( + tuple([k, tuple([filename, filedata, mimetype])]) + ) return params def select_header_accept(self, accepts: List[str]) -> Optional[str]: @@ -554,7 +572,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: return None for accept in accepts: - if re.search("json", accept, re.IGNORECASE): + if re.search('json', accept, re.IGNORECASE): return accept return accepts[0] @@ -569,7 +587,7 @@ def select_header_content_type(self, content_types): return None for content_type in content_types: - if re.search("json", content_type, re.IGNORECASE): + if re.search('json', content_type, re.IGNORECASE): return content_type return content_types[0] @@ -582,7 +600,7 @@ def update_params_for_auth( resource_path, method, body, - request_auth=None, + request_auth=None ) -> None: """Updates header and query params based on authentication setting. @@ -601,18 +619,34 @@ def update_params_for_auth( if request_auth: self._apply_auth_params( - headers, queries, resource_path, method, body, request_auth + headers, + queries, + resource_path, + method, + body, + request_auth ) else: for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: self._apply_auth_params( - headers, queries, resource_path, method, body, auth_setting + headers, + queries, + resource_path, + method, + body, + auth_setting ) def _apply_auth_params( - self, headers, queries, resource_path, method, body, auth_setting + self, + headers, + queries, + resource_path, + method, + body, + auth_setting ) -> None: """Updates the request parameters based on a single auth_setting @@ -624,15 +658,17 @@ def _apply_auth_params( The object type is the return value of sanitize_for_serialization(). :param auth_setting: auth settings for the endpoint """ - if auth_setting["in"] == "cookie": - headers["Cookie"] = auth_setting["value"] - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers[auth_setting["key"]] = auth_setting["value"] - elif auth_setting["in"] == "query": - queries.append((auth_setting["key"], auth_setting["value"])) + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + if auth_setting['type'] != 'http-signature': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + queries.append((auth_setting['key'], auth_setting['value'])) else: - raise ApiValueError("Authentication token must be in `query` or `header`") + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) def __deserialize_file(self, response): """Deserializes body to file @@ -652,7 +688,10 @@ def __deserialize_file(self, response): content_disposition = response.getheader("Content-Disposition") if content_disposition: - m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) + m = re.search( + r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition + ) assert m is not None, "Unexpected 'content-disposition' header value" filename = m.group(1) path = os.path.join(os.path.dirname(path), filename) @@ -696,7 +735,8 @@ def __deserialize_date(self, string): return string except ValueError: raise rest.ApiException( - status=0, reason="Failed to parse `{0}` as date object".format(string) + status=0, + reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datetime(self, string): @@ -714,7 +754,10 @@ def __deserialize_datetime(self, string): except ValueError: raise rest.ApiException( status=0, - reason=("Failed to parse `{0}` as datetime object".format(string)), + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) ) def __deserialize_enum(self, data, klass): @@ -728,7 +771,11 @@ def __deserialize_enum(self, data, klass): return klass(data) except ValueError: raise rest.ApiException( - status=0, reason=("Failed to parse `{0}` as `{1}`".format(data, klass)) + status=0, + reason=( + "Failed to parse `{0}` as `{1}`" + .format(data, klass) + ) ) def __deserialize_model(self, data, klass): diff --git a/data_bridges_client/api_response.py b/data_bridges_client/api_response.py new file mode 100644 index 0000000..9bc7c11 --- /dev/null +++ b/data_bridges_client/api_response.py @@ -0,0 +1,21 @@ +"""API response object.""" + +from __future__ import annotations +from typing import Optional, Generic, Mapping, TypeVar +from pydantic import Field, StrictInt, StrictBytes, BaseModel + +T = TypeVar("T") + +class ApiResponse(BaseModel, Generic[T]): + """ + API response object + """ + + status_code: StrictInt = Field(description="HTTP status code") + headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers") + data: T = Field(description="Deserialized data given the data type") + raw_data: StrictBytes = Field(description="Raw data (HTTP response body)") + + model_config = { + "arbitrary_types_allowed": True + } diff --git a/data_bridges_client/configuration.py b/data_bridges_client/configuration.py index f389f1d..3d043ab 100644 --- a/data_bridges_client/configuration.py +++ b/data_bridges_client/configuration.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import copy import logging from logging import FileHandler @@ -23,19 +24,11 @@ import http.client as httplib JSON_SCHEMA_VALIDATION_KEYWORDS = { - "multipleOf", - "maximum", - "exclusiveMaximum", - "minimum", - "exclusiveMinimum", - "maxLength", - "minLength", - "pattern", - "maxItems", - "minItems", + 'multipleOf', 'maximum', 'exclusiveMaximum', + 'minimum', 'exclusiveMinimum', 'maxLength', + 'minLength', 'pattern', 'maxItems', 'minItems' } - class Configuration: """This class contains various settings of the API client. @@ -72,28 +65,21 @@ class Configuration: _default = None - def __init__( - self, - host=None, - api_key=None, - api_key_prefix=None, - username=None, - password=None, - access_token=None, - server_index=None, - server_variables=None, - server_operation_index=None, - server_operation_variables=None, - ignore_operation_servers=False, - ssl_ca_cert=None, - retries=None, - *, - debug: Optional[bool] = None, - ) -> None: - """Constructor""" - self._base_path = ( - "https://api.wfp.org/vam-data-bridges/7.0.0" if host is None else host - ) + def __init__(self, host=None, + api_key=None, api_key_prefix=None, + username=None, password=None, + access_token=None, + server_index=None, server_variables=None, + server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, + ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None + ) -> None: + """Constructor + """ + self._base_path = "https://api.wfp.org/vam-data-bridges/7.0.0" if host is None else host """Default Base url """ self.server_index = 0 if server_index is None and host is None else server_index @@ -138,7 +124,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("data_bridges_client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = "%(asctime)s %(levelname)s %(message)s" + self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format """ self.logger_stream_handler = None @@ -193,7 +179,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = "" + self.safe_chars_for_path_param = '' """Safe chars for path_param """ self.retries = retries @@ -219,7 +205,7 @@ def __deepcopy__(self, memo): result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ("logger", "logger_file_handler"): + if k not in ('logger', 'logger_file_handler'): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -360,9 +346,7 @@ def get_api_key_with_prefix(self, identifier, alias=None): """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get( - identifier, self.api_key.get(alias) if alias is not None else None - ) + key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -381,9 +365,9 @@ def get_basic_auth_token(self): password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers(basic_auth=username + ":" + password).get( - "authorization" - ) + return urllib3.util.make_headers( + basic_auth=username + ':' + password + ).get('authorization') def auth_settings(self): """Gets Auth Settings dict for api client. @@ -392,11 +376,11 @@ def auth_settings(self): """ auth = {} if self.access_token is not None: - auth["default"] = { - "type": "oauth2", - "in": "header", - "key": "Authorization", - "value": "Bearer " + self.access_token, + auth['default'] = { + 'type': 'oauth2', + 'in': 'header', + 'key': 'Authorization', + 'value': 'Bearer ' + self.access_token } return auth @@ -405,13 +389,12 @@ def to_debug_report(self): :return: The report for debugging. """ - return ( - "Python SDK Debug Report:\n" - "OS: {env}\n" - "Python Version: {pyversion}\n" - "Version of the API: 7.0.0\n" - "SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version) - ) + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 7.0.0\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): """Gets an array of host settings @@ -420,8 +403,8 @@ def get_host_settings(self): """ return [ { - "url": "https://api.wfp.org/vam-data-bridges/7.0.0", - "description": "No description provided", + 'url': "https://api.wfp.org/vam-data-bridges/7.0.0", + 'description': "No description provided", } ] @@ -443,22 +426,22 @@ def get_host_from_settings(self, index, variables=None, servers=None): except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers)) - ) + "Must be less than {1}".format(index, len(servers))) - url = server["url"] + url = server['url'] # go through variables and replace placeholders - for variable_name, variable in server.get("variables", {}).items(): - used_value = variables.get(variable_name, variable["default_value"]) + for variable_name, variable in server.get('variables', {}).items(): + used_value = variables.get( + variable_name, variable['default_value']) - if "enum_values" in variable and used_value not in variable["enum_values"]: + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], variable["enum_values"] - ) - ) + variable_name, variables[variable_name], + variable['enum_values'])) url = url.replace("{" + variable_name + "}", used_value) @@ -467,9 +450,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): @property def host(self): """Return generated host.""" - return self.get_host_from_settings( - self.server_index, variables=self.server_variables - ) + return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter def host(self, value): diff --git a/data_bridges_client/exceptions.py b/data_bridges_client/exceptions.py index ef2e5d0..1dd68e6 100644 --- a/data_bridges_client/exceptions.py +++ b/data_bridges_client/exceptions.py @@ -1,30 +1,28 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 from typing import Any, Optional from typing_extensions import Self - class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): - def __init__( - self, msg, path_to_item=None, valid_classes=None, key_type=None - ) -> None: - """Raises an exception for TypeErrors + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None) -> None: + """ Raises an exception for TypeErrors Args: msg (str): the exception message @@ -105,10 +103,11 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): + def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -127,17 +126,17 @@ def __init__( self.reason = http_resp.reason if self.body is None: try: - self.body = http_resp.data.decode("utf-8") + self.body = http_resp.data.decode('utf-8') except Exception: pass self.headers = http_resp.getheaders() @classmethod def from_response( - cls, - *, - http_resp, - body: Optional[str], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: @@ -158,9 +157,11 @@ def from_response( def __str__(self): """Custom error messages for exception""" - error_message = "({0})\nReason: {1}\n".format(self.status, self.reason) + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.data or self.body: error_message += "HTTP response body: {0}\n".format(self.data or self.body) diff --git a/data_bridges_client/models/__init__.py b/data_bridges_client/models/__init__.py index a700102..6815f5a 100644 --- a/data_bridges_client/models/__init__.py +++ b/data_bridges_client/models/__init__.py @@ -2,81 +2,52 @@ # flake8: noqa """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + # import models into model package from data_bridges_client.models.bad_request_dto import BadRequestDTO from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO -from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( - CariAdm0ValuesDTOPagedResult, -) +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO -from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( - CariAdm1ValuesDTOPagedResult, -) -from data_bridges_client.models.categories_and_indicators_dto import ( - CategoriesAndIndicatorsDTO, -) +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO from data_bridges_client.models.commodity_dto import CommodityDTO from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO from data_bridges_client.models.currency_dto import CurrencyDTO from data_bridges_client.models.economic_data_dto import EconomicDataDTO -from data_bridges_client.models.economic_indicator_property import ( - EconomicIndicatorProperty, -) -from data_bridges_client.models.economic_indicator_property_paged_result import ( - EconomicIndicatorPropertyPagedResult, -) +from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty +from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto -from data_bridges_client.models.extended_alps_value_dto_paged_result import ( - ExtendedAlpsValueDtoPagedResult, -) +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult from data_bridges_client.models.feature import Feature from data_bridges_client.models.geometry import Geometry from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto -from data_bridges_client.models.global_outlook_country_api_dto import ( - GlobalOutlookCountryApiDto, -) -from data_bridges_client.models.global_outlook_regional_api_dto import ( - GlobalOutlookRegionalApiDto, -) +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO -from data_bridges_client.models.household_survey_list_dto_paged_result import ( - HouseholdSurveyListDTOPagedResult, -) +from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( - HungerHotSpotDataDTOPagedResult, -) +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( - IpcHistoricalDatumDtoPagedResult, -) -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( - IpcchAndEquivalentPeaksDTO, -) -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( - IpcchAndEquivalentPeaksDTOPagedResult, -) +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto -from data_bridges_client.models.ipcch_base_dto_paged_result import ( - IpcchBaseDtoPagedResult, -) +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto -from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( - IpcchPeaksDtoPagedResult, -) +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult from data_bridges_client.models.key_name_dto import KeyNameDto from data_bridges_client.models.list_item_dto import ListItemDto from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO @@ -84,48 +55,30 @@ from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO -from data_bridges_client.models.paged_commodity_price_list_dto import ( - PagedCommodityPriceListDTO, -) -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( - PagedCommodityWeeklyAggregatedPriceListDTO, -) +from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO from data_bridges_client.models.problem_details import ProblemDetails from data_bridges_client.models.properties import Properties from data_bridges_client.models.rpme_assessment import RpmeAssessment -from data_bridges_client.models.rpme_assessment_paged_result import ( - RpmeAssessmentPagedResult, -) +from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult from data_bridges_client.models.rpme_output_values import RpmeOutputValues from data_bridges_client.models.rpme_variable import RpmeVariable -from data_bridges_client.models.rpme_variable_paged_result import ( - RpmeVariablePagedResult, -) +from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult from data_bridges_client.models.survey_list_dto import SurveyListDTO from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation -from data_bridges_client.models.usd_indirect_quotation_paged_result import ( - UsdIndirectQuotationPagedResult, -) -from data_bridges_client.models.view_extended_monthly_aggregated_price import ( - ViewExtendedMonthlyAggregatedPrice, -) -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( - ViewExtendedMonthlyAggregatedPricePagedResult, -) +from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice from data_bridges_client.models.xls_form_dto import XlsFormDTO -from data_bridges_client.models.xls_form_definition_new_schema_dto import ( - XlsFormDefinitionNewSchemaDTO, -) +from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO diff --git a/data_bridges_client/models/bad_request_dto.py b/data_bridges_client/models/bad_request_dto.py index bbee275..edde947 100644 --- a/data_bridges_client/models/bad_request_dto.py +++ b/data_bridges_client/models/bad_request_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,13 +23,11 @@ from typing import Optional, Set from typing_extensions import Self - class BadRequestDTO(BaseModel): - """ """ # noqa: E501 - - error: Optional[StrictStr] = Field( - default=None, description="The error message returned by the application" - ) + """ + + """ # noqa: E501 + error: Optional[StrictStr] = Field(default=None, description="The error message returned by the application") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["error"] @@ -38,6 +37,7 @@ class BadRequestDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,11 +63,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if error (nullable) is None # and model_fields_set contains the field if self.error is None and "error" in self.model_fields_set: - _dict["error"] = None + _dict['error'] = None return _dict @@ -95,10 +93,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"error": obj.get("error")}) + _obj = cls.model_validate({ + "error": obj.get("error") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/cari_adm0_values_dto.py b/data_bridges_client/models/cari_adm0_values_dto.py index a4bae02..cd9cff0 100644 --- a/data_bridges_client/models/cari_adm0_values_dto.py +++ b/data_bridges_client/models/cari_adm0_values_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,51 +23,23 @@ from typing import Optional, Set from typing_extensions import Self - class CariAdm0ValuesDTO(BaseModel): """ CariAdm0ValuesDTO - """ # noqa: E501 - + """ # noqa: E501 survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") - cari_methodology_name: Optional[StrictStr] = Field( - default=None, alias="cariMethodologyName" - ) - fcs_methodology_name: Optional[StrictStr] = Field( - default=None, alias="fcsMethodologyName" - ) - additional_survey_metadata: Optional[StrictStr] = Field( - default=None, alias="additionalSurveyMetadata" - ) + cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") + fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") + additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") - cari_indicator_id: Optional[StrictInt] = Field( - default=None, alias="cariIndicatorID" - ) - cari_indicator_name: Optional[StrictStr] = Field( - default=None, alias="cariIndicatorName" - ) - cari_indicator_category_id: Optional[StrictInt] = Field( - default=None, alias="cariIndicatorCategoryID" - ) - indicator_category_label: Optional[StrictStr] = Field( - default=None, alias="indicatorCategoryLabel" - ) + cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") + cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") + cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") + indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyID", - "surveyName", - "cariMethodologyName", - "fcsMethodologyName", - "additionalSurveyMetadata", - "adm0Code", - "adm0Name", - "cariIndicatorID", - "cariIndicatorName", - "cariIndicatorCategoryID", - "indicatorCategoryLabel", - ] + __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +47,7 @@ class CariAdm0ValuesDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -99,11 +73,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -118,57 +90,42 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict["surveyName"] = None + _dict['surveyName'] = None # set to None if cari_methodology_name (nullable) is None # and model_fields_set contains the field - if ( - self.cari_methodology_name is None - and "cari_methodology_name" in self.model_fields_set - ): - _dict["cariMethodologyName"] = None + if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: + _dict['cariMethodologyName'] = None # set to None if fcs_methodology_name (nullable) is None # and model_fields_set contains the field - if ( - self.fcs_methodology_name is None - and "fcs_methodology_name" in self.model_fields_set - ): - _dict["fcsMethodologyName"] = None + if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: + _dict['fcsMethodologyName'] = None # set to None if additional_survey_metadata (nullable) is None # and model_fields_set contains the field - if ( - self.additional_survey_metadata is None - and "additional_survey_metadata" in self.model_fields_set - ): - _dict["additionalSurveyMetadata"] = None + if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: + _dict['additionalSurveyMetadata'] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict["adm0Name"] = None + _dict['adm0Name'] = None # set to None if cari_indicator_name (nullable) is None # and model_fields_set contains the field - if ( - self.cari_indicator_name is None - and "cari_indicator_name" in self.model_fields_set - ): - _dict["cariIndicatorName"] = None + if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: + _dict['cariIndicatorName'] = None # set to None if indicator_category_label (nullable) is None # and model_fields_set contains the field - if ( - self.indicator_category_label is None - and "indicator_category_label" in self.model_fields_set - ): - _dict["indicatorCategoryLabel"] = None + if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: + _dict['indicatorCategoryLabel'] = None return _dict @@ -181,24 +138,24 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyID": obj.get("surveyID"), - "surveyName": obj.get("surveyName"), - "cariMethodologyName": obj.get("cariMethodologyName"), - "fcsMethodologyName": obj.get("fcsMethodologyName"), - "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "cariIndicatorID": obj.get("cariIndicatorID"), - "cariIndicatorName": obj.get("cariIndicatorName"), - "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), - "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), - } - ) + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/cari_adm0_values_dto_paged_result.py b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py index e82bd65..2311a3f 100644 --- a/data_bridges_client/models/cari_adm0_values_dto_paged_result.py +++ b/data_bridges_client/models/cari_adm0_values_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CariAdm0ValuesDTOPagedResult(BaseModel): """ CariAdm0ValuesDTOPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[CariAdm0ValuesDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class CariAdm0ValuesDTOPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [CariAdm0ValuesDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [CariAdm0ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/cari_adm1_values_dto.py b/data_bridges_client/models/cari_adm1_values_dto.py index 4c42fc4..9dd9e65 100644 --- a/data_bridges_client/models/cari_adm1_values_dto.py +++ b/data_bridges_client/models/cari_adm1_values_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,55 +23,25 @@ from typing import Optional, Set from typing_extensions import Self - class CariAdm1ValuesDTO(BaseModel): """ CariAdm1ValuesDTO - """ # noqa: E501 - + """ # noqa: E501 survey_id: Optional[StrictInt] = Field(default=None, alias="surveyID") survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") - cari_methodology_name: Optional[StrictStr] = Field( - default=None, alias="cariMethodologyName" - ) - fcs_methodology_name: Optional[StrictStr] = Field( - default=None, alias="fcsMethodologyName" - ) - additional_survey_metadata: Optional[StrictStr] = Field( - default=None, alias="additionalSurveyMetadata" - ) + cari_methodology_name: Optional[StrictStr] = Field(default=None, alias="cariMethodologyName") + fcs_methodology_name: Optional[StrictStr] = Field(default=None, alias="fcsMethodologyName") + additional_survey_metadata: Optional[StrictStr] = Field(default=None, alias="additionalSurveyMetadata") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") - cari_indicator_id: Optional[StrictInt] = Field( - default=None, alias="cariIndicatorID" - ) - cari_indicator_name: Optional[StrictStr] = Field( - default=None, alias="cariIndicatorName" - ) - cari_indicator_category_id: Optional[StrictInt] = Field( - default=None, alias="cariIndicatorCategoryID" - ) - indicator_category_label: Optional[StrictStr] = Field( - default=None, alias="indicatorCategoryLabel" - ) + cari_indicator_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorID") + cari_indicator_name: Optional[StrictStr] = Field(default=None, alias="cariIndicatorName") + cari_indicator_category_id: Optional[StrictInt] = Field(default=None, alias="cariIndicatorCategoryID") + indicator_category_label: Optional[StrictStr] = Field(default=None, alias="indicatorCategoryLabel") adm1_code: Optional[StrictInt] = Field(default=None, alias="adm1Code") adm1_name: Optional[StrictStr] = Field(default=None, alias="adm1Name") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyID", - "surveyName", - "cariMethodologyName", - "fcsMethodologyName", - "additionalSurveyMetadata", - "adm0Code", - "adm0Name", - "cariIndicatorID", - "cariIndicatorName", - "cariIndicatorCategoryID", - "indicatorCategoryLabel", - "adm1Code", - "adm1Name", - ] + __properties: ClassVar[List[str]] = ["surveyID", "surveyName", "cariMethodologyName", "fcsMethodologyName", "additionalSurveyMetadata", "adm0Code", "adm0Name", "cariIndicatorID", "cariIndicatorName", "cariIndicatorCategoryID", "indicatorCategoryLabel", "adm1Code", "adm1Name"] model_config = ConfigDict( populate_by_name=True, @@ -78,6 +49,7 @@ class CariAdm1ValuesDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -103,11 +75,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -122,67 +92,52 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict["surveyName"] = None + _dict['surveyName'] = None # set to None if cari_methodology_name (nullable) is None # and model_fields_set contains the field - if ( - self.cari_methodology_name is None - and "cari_methodology_name" in self.model_fields_set - ): - _dict["cariMethodologyName"] = None + if self.cari_methodology_name is None and "cari_methodology_name" in self.model_fields_set: + _dict['cariMethodologyName'] = None # set to None if fcs_methodology_name (nullable) is None # and model_fields_set contains the field - if ( - self.fcs_methodology_name is None - and "fcs_methodology_name" in self.model_fields_set - ): - _dict["fcsMethodologyName"] = None + if self.fcs_methodology_name is None and "fcs_methodology_name" in self.model_fields_set: + _dict['fcsMethodologyName'] = None # set to None if additional_survey_metadata (nullable) is None # and model_fields_set contains the field - if ( - self.additional_survey_metadata is None - and "additional_survey_metadata" in self.model_fields_set - ): - _dict["additionalSurveyMetadata"] = None + if self.additional_survey_metadata is None and "additional_survey_metadata" in self.model_fields_set: + _dict['additionalSurveyMetadata'] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict["adm0Name"] = None + _dict['adm0Name'] = None # set to None if cari_indicator_name (nullable) is None # and model_fields_set contains the field - if ( - self.cari_indicator_name is None - and "cari_indicator_name" in self.model_fields_set - ): - _dict["cariIndicatorName"] = None + if self.cari_indicator_name is None and "cari_indicator_name" in self.model_fields_set: + _dict['cariIndicatorName'] = None # set to None if indicator_category_label (nullable) is None # and model_fields_set contains the field - if ( - self.indicator_category_label is None - and "indicator_category_label" in self.model_fields_set - ): - _dict["indicatorCategoryLabel"] = None + if self.indicator_category_label is None and "indicator_category_label" in self.model_fields_set: + _dict['indicatorCategoryLabel'] = None # set to None if adm1_code (nullable) is None # and model_fields_set contains the field if self.adm1_code is None and "adm1_code" in self.model_fields_set: - _dict["adm1Code"] = None + _dict['adm1Code'] = None # set to None if adm1_name (nullable) is None # and model_fields_set contains the field if self.adm1_name is None and "adm1_name" in self.model_fields_set: - _dict["adm1Name"] = None + _dict['adm1Name'] = None return _dict @@ -195,26 +150,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyID": obj.get("surveyID"), - "surveyName": obj.get("surveyName"), - "cariMethodologyName": obj.get("cariMethodologyName"), - "fcsMethodologyName": obj.get("fcsMethodologyName"), - "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "cariIndicatorID": obj.get("cariIndicatorID"), - "cariIndicatorName": obj.get("cariIndicatorName"), - "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), - "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), - "adm1Code": obj.get("adm1Code"), - "adm1Name": obj.get("adm1Name"), - } - ) + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyName": obj.get("surveyName"), + "cariMethodologyName": obj.get("cariMethodologyName"), + "fcsMethodologyName": obj.get("fcsMethodologyName"), + "additionalSurveyMetadata": obj.get("additionalSurveyMetadata"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "cariIndicatorID": obj.get("cariIndicatorID"), + "cariIndicatorName": obj.get("cariIndicatorName"), + "cariIndicatorCategoryID": obj.get("cariIndicatorCategoryID"), + "indicatorCategoryLabel": obj.get("indicatorCategoryLabel"), + "adm1Code": obj.get("adm1Code"), + "adm1Name": obj.get("adm1Name") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/cari_adm1_values_dto_paged_result.py b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py index 688a618..965d07e 100644 --- a/data_bridges_client/models/cari_adm1_values_dto_paged_result.py +++ b/data_bridges_client/models/cari_adm1_values_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CariAdm1ValuesDTOPagedResult(BaseModel): """ CariAdm1ValuesDTOPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[CariAdm1ValuesDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class CariAdm1ValuesDTOPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [CariAdm1ValuesDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [CariAdm1ValuesDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/categories_and_indicators_dto.py b/data_bridges_client/models/categories_and_indicators_dto.py index 1f5a271..7e53417 100644 --- a/data_bridges_client/models/categories_and_indicators_dto.py +++ b/data_bridges_client/models/categories_and_indicators_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class CategoriesAndIndicatorsDTO(BaseModel): """ CategoriesAndIndicatorsDTO - """ # noqa: E501 - + """ # noqa: E501 categories: Optional[List[ListItemDto]] = None indicators: Optional[List[ListItemDto]] = None additional_properties: Dict[str, Any] = {} @@ -40,6 +39,7 @@ class CategoriesAndIndicatorsDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,14 +80,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_categories in self.categories: if _item_categories: _items.append(_item_categories.to_dict()) - _dict["categories"] = _items + _dict['categories'] = _items # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) _items = [] if self.indicators: for _item_indicators in self.indicators: if _item_indicators: _items.append(_item_indicators.to_dict()) - _dict["indicators"] = _items + _dict['indicators'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -98,12 +96,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if categories (nullable) is None # and model_fields_set contains the field if self.categories is None and "categories" in self.model_fields_set: - _dict["categories"] = None + _dict['categories'] = None # set to None if indicators (nullable) is None # and model_fields_set contains the field if self.indicators is None and "indicators" in self.model_fields_set: - _dict["indicators"] = None + _dict['indicators'] = None return _dict @@ -116,23 +114,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "categories": [ - ListItemDto.from_dict(_item) for _item in obj["categories"] - ] - if obj.get("categories") is not None - else None, - "indicators": [ - ListItemDto.from_dict(_item) for _item in obj["indicators"] - ] - if obj.get("indicators") is not None - else None, - } - ) + _obj = cls.model_validate({ + "categories": [ListItemDto.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None, + "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/commodity_dto.py b/data_bridges_client/models/commodity_dto.py index f9c7ce8..90e0985 100644 --- a/data_bridges_client/models/commodity_dto.py +++ b/data_bridges_client/models/commodity_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -25,26 +26,14 @@ from typing import Optional, Set from typing_extensions import Self - class CommodityDTO(BaseModel): """ CommodityDTO - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the commodity" - ) - parent_id: Optional[StrictInt] = Field( - default=None, - description="The internal parent ID of the commodity", - alias="parentId", - ) - name: Optional[StrictStr] = Field( - default=None, description="The name of the commodity" - ) - coicop2018: Optional[StrictStr] = Field( - default=None, description="The COICOP 2018 definition" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") + parent_id: Optional[StrictInt] = Field(default=None, description="The internal parent ID of the commodity", alias="parentId") + name: Optional[StrictStr] = Field(default=None, description="The name of the commodity") + coicop2018: Optional[StrictStr] = Field(default=None, description="The COICOP 2018 definition") supply: Optional[StrictInt] = None category_id: Optional[StrictInt] = Field(default=None, alias="categoryId") create_date: Optional[datetime] = Field(default=None, alias="createDate") @@ -52,18 +41,7 @@ class CommodityDTO(BaseModel): qualities: Optional[List[CommodityQualityDTO]] = None processing: Optional[List[CommodityProcessingDTO]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "id", - "parentId", - "name", - "coicop2018", - "supply", - "categoryId", - "createDate", - "updateDate", - "qualities", - "processing", - ] + __properties: ClassVar[List[str]] = ["id", "parentId", "name", "coicop2018", "supply", "categoryId", "createDate", "updateDate", "qualities", "processing"] model_config = ConfigDict( populate_by_name=True, @@ -71,6 +49,7 @@ class CommodityDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -96,11 +75,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -113,14 +90,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_qualities in self.qualities: if _item_qualities: _items.append(_item_qualities.to_dict()) - _dict["qualities"] = _items + _dict['qualities'] = _items # override the default output from pydantic by calling `to_dict()` of each item in processing (list) _items = [] if self.processing: for _item_processing in self.processing: if _item_processing: _items.append(_item_processing.to_dict()) - _dict["processing"] = _items + _dict['processing'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -129,37 +106,37 @@ def to_dict(self) -> Dict[str, Any]: # set to None if parent_id (nullable) is None # and model_fields_set contains the field if self.parent_id is None and "parent_id" in self.model_fields_set: - _dict["parentId"] = None + _dict['parentId'] = None # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if coicop2018 (nullable) is None # and model_fields_set contains the field if self.coicop2018 is None and "coicop2018" in self.model_fields_set: - _dict["coicop2018"] = None + _dict['coicop2018'] = None # set to None if supply (nullable) is None # and model_fields_set contains the field if self.supply is None and "supply" in self.model_fields_set: - _dict["supply"] = None + _dict['supply'] = None # set to None if update_date (nullable) is None # and model_fields_set contains the field if self.update_date is None and "update_date" in self.model_fields_set: - _dict["updateDate"] = None + _dict['updateDate'] = None # set to None if qualities (nullable) is None # and model_fields_set contains the field if self.qualities is None and "qualities" in self.model_fields_set: - _dict["qualities"] = None + _dict['qualities'] = None # set to None if processing (nullable) is None # and model_fields_set contains the field if self.processing is None and "processing" in self.model_fields_set: - _dict["processing"] = None + _dict['processing'] = None return _dict @@ -172,32 +149,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "parentId": obj.get("parentId"), - "name": obj.get("name"), - "coicop2018": obj.get("coicop2018"), - "supply": obj.get("supply"), - "categoryId": obj.get("categoryId"), - "createDate": obj.get("createDate"), - "updateDate": obj.get("updateDate"), - "qualities": [ - CommodityQualityDTO.from_dict(_item) for _item in obj["qualities"] - ] - if obj.get("qualities") is not None - else None, - "processing": [ - CommodityProcessingDTO.from_dict(_item) - for _item in obj["processing"] - ] - if obj.get("processing") is not None - else None, - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "parentId": obj.get("parentId"), + "name": obj.get("name"), + "coicop2018": obj.get("coicop2018"), + "supply": obj.get("supply"), + "categoryId": obj.get("categoryId"), + "createDate": obj.get("createDate"), + "updateDate": obj.get("updateDate"), + "qualities": [CommodityQualityDTO.from_dict(_item) for _item in obj["qualities"]] if obj.get("qualities") is not None else None, + "processing": [CommodityProcessingDTO.from_dict(_item) for _item in obj["processing"]] if obj.get("processing") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/commodity_price_dto.py b/data_bridges_client/models/commodity_price_dto.py index ee953db..903c72f 100644 --- a/data_bridges_client/models/commodity_price_dto.py +++ b/data_bridges_client/models/commodity_price_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,95 +24,38 @@ from typing import Optional, Set from typing_extensions import Self - class CommodityPriceDTO(BaseModel): """ CommodityPriceDTO - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the commodity" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field( - default=None, alias="commodityUnitId" - ) + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") unit_name: Optional[StrictStr] = Field(default=None, alias="unitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - original_frequency: Optional[StrictStr] = Field( - default=None, alias="originalFrequency" - ) + original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="commodityPrice" - ) - commodity_price_source_name: Optional[StrictStr] = Field( - default=None, alias="commodityPriceSourceName" - ) - commodity_price_metadata: Optional[Any] = Field( - default=None, alias="commodityPriceMetadata" - ) - commodity_price_date: Optional[datetime] = Field( - default=None, alias="commodityPriceDate" - ) - commodity_price_observations: Optional[StrictInt] = Field( - default=None, alias="commodityPriceObservations" - ) - commodity_price_date_day: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateDay" - ) - commodity_price_date_week: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateWeek" - ) - commodity_price_date_month: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateMonth" - ) - commodity_price_date_year: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateYear" - ) - commodity_price_insert_date: Optional[datetime] = Field( - default=None, alias="commodityPriceInsertDate" - ) - commodity_price_flag: Optional[StrictStr] = Field( - default=None, alias="commodityPriceFlag" - ) + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") + commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") + commodity_price_metadata: Optional[Any] = Field(default=None, alias="commodityPriceMetadata") + commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") + commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") + commodity_price_date_day: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateDay") + commodity_price_date_week: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateWeek") + commodity_price_date_month: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateMonth") + commodity_price_date_year: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateYear") + commodity_price_insert_date: Optional[datetime] = Field(default=None, alias="commodityPriceInsertDate") + commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "id", - "commodityId", - "marketId", - "priceTypeId", - "commodityUnitId", - "currencyId", - "commodityName", - "marketName", - "priceTypeName", - "unitName", - "currencyName", - "originalFrequency", - "adm0Code", - "countryISO3", - "countryName", - "commodityPrice", - "commodityPriceSourceName", - "commodityPriceMetadata", - "commodityPriceDate", - "commodityPriceObservations", - "commodityPriceDateDay", - "commodityPriceDateWeek", - "commodityPriceDateMonth", - "commodityPriceDateYear", - "commodityPriceInsertDate", - "commodityPriceFlag", - ] + __properties: ClassVar[List[str]] = ["id", "commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "commodityName", "marketName", "priceTypeName", "unitName", "currencyName", "originalFrequency", "adm0Code", "countryISO3", "countryName", "commodityPrice", "commodityPriceSourceName", "commodityPriceMetadata", "commodityPriceDate", "commodityPriceObservations", "commodityPriceDateDay", "commodityPriceDateWeek", "commodityPriceDateMonth", "commodityPriceDateYear", "commodityPriceInsertDate", "commodityPriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -119,6 +63,7 @@ class CommodityPriceDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -144,11 +89,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -163,109 +106,82 @@ def to_dict(self) -> Dict[str, Any]: # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict["commodityName"] = None + _dict['commodityName'] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict["priceTypeName"] = None + _dict['priceTypeName'] = None # set to None if unit_name (nullable) is None # and model_fields_set contains the field if self.unit_name is None and "unit_name" in self.model_fields_set: - _dict["unitName"] = None + _dict['unitName'] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict["currencyName"] = None + _dict['currencyName'] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if ( - self.original_frequency is None - and "original_frequency" in self.model_fields_set - ): - _dict["originalFrequency"] = None + if self.original_frequency is None and "original_frequency" in self.model_fields_set: + _dict['originalFrequency'] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict["countryISO3"] = None + _dict['countryISO3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_source_name is None - and "commodity_price_source_name" in self.model_fields_set - ): - _dict["commodityPriceSourceName"] = None + if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: + _dict['commodityPriceSourceName'] = None # set to None if commodity_price_metadata (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_metadata is None - and "commodity_price_metadata" in self.model_fields_set - ): - _dict["commodityPriceMetadata"] = None + if self.commodity_price_metadata is None and "commodity_price_metadata" in self.model_fields_set: + _dict['commodityPriceMetadata'] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_observations is None - and "commodity_price_observations" in self.model_fields_set - ): - _dict["commodityPriceObservations"] = None + if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: + _dict['commodityPriceObservations'] = None # set to None if commodity_price_date_day (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date_day is None - and "commodity_price_date_day" in self.model_fields_set - ): - _dict["commodityPriceDateDay"] = None + if self.commodity_price_date_day is None and "commodity_price_date_day" in self.model_fields_set: + _dict['commodityPriceDateDay'] = None # set to None if commodity_price_date_week (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date_week is None - and "commodity_price_date_week" in self.model_fields_set - ): - _dict["commodityPriceDateWeek"] = None + if self.commodity_price_date_week is None and "commodity_price_date_week" in self.model_fields_set: + _dict['commodityPriceDateWeek'] = None # set to None if commodity_price_date_month (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date_month is None - and "commodity_price_date_month" in self.model_fields_set - ): - _dict["commodityPriceDateMonth"] = None + if self.commodity_price_date_month is None and "commodity_price_date_month" in self.model_fields_set: + _dict['commodityPriceDateMonth'] = None # set to None if commodity_price_insert_date (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_insert_date is None - and "commodity_price_insert_date" in self.model_fields_set - ): - _dict["commodityPriceInsertDate"] = None + if self.commodity_price_insert_date is None and "commodity_price_insert_date" in self.model_fields_set: + _dict['commodityPriceInsertDate'] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_flag is None - and "commodity_price_flag" in self.model_fields_set - ): - _dict["commodityPriceFlag"] = None + if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: + _dict['commodityPriceFlag'] = None return _dict @@ -278,39 +194,39 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "unitName": obj.get("unitName"), - "currencyName": obj.get("currencyName"), - "originalFrequency": obj.get("originalFrequency"), - "adm0Code": obj.get("adm0Code"), - "countryISO3": obj.get("countryISO3"), - "countryName": obj.get("countryName"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "commodityPriceMetadata": obj.get("commodityPriceMetadata"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceDateDay": obj.get("commodityPriceDateDay"), - "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), - "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), - "commodityPriceDateYear": obj.get("commodityPriceDateYear"), - "commodityPriceInsertDate": obj.get("commodityPriceInsertDate"), - "commodityPriceFlag": obj.get("commodityPriceFlag"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "unitName": obj.get("unitName"), + "currencyName": obj.get("currencyName"), + "originalFrequency": obj.get("originalFrequency"), + "adm0Code": obj.get("adm0Code"), + "countryISO3": obj.get("countryISO3"), + "countryName": obj.get("countryName"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "commodityPriceMetadata": obj.get("commodityPriceMetadata"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceDateDay": obj.get("commodityPriceDateDay"), + "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), + "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), + "commodityPriceDateYear": obj.get("commodityPriceDateYear"), + "commodityPriceInsertDate": obj.get("commodityPriceInsertDate"), + "commodityPriceFlag": obj.get("commodityPriceFlag") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/commodity_processing_dto.py b/data_bridges_client/models/commodity_processing_dto.py index fb3440a..ce8d7b0 100644 --- a/data_bridges_client/models/commodity_processing_dto.py +++ b/data_bridges_client/models/commodity_processing_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,18 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class CommodityProcessingDTO(BaseModel): """ CommodityProcessingDTO - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the commodity" - ) - name: Optional[StrictStr] = Field( - default=None, description="The name of the process" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") + name: Optional[StrictStr] = Field(default=None, description="The name of the process") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name"] @@ -43,6 +38,7 @@ class CommodityProcessingDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None return _dict @@ -100,10 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/commodity_quality_dto.py b/data_bridges_client/models/commodity_quality_dto.py index 3c7f8d6..c62848b 100644 --- a/data_bridges_client/models/commodity_quality_dto.py +++ b/data_bridges_client/models/commodity_quality_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,18 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class CommodityQualityDTO(BaseModel): """ CommodityQualityDTO - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the commodity" - ) - name: Optional[StrictStr] = Field( - default=None, description="The name of the commodity" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="The internal ID of the commodity") + name: Optional[StrictStr] = Field(default=None, description="The name of the commodity") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["id", "name"] @@ -43,6 +38,7 @@ class CommodityQualityDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None return _dict @@ -100,10 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/currency_dto.py b/data_bridges_client/models/currency_dto.py index 8c14705..06f8c06 100644 --- a/data_bridges_client/models/currency_dto.py +++ b/data_bridges_client/models/currency_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,27 +24,17 @@ from typing import Optional, Set from typing_extensions import Self - class CurrencyDTO(BaseModel): """ CurrencyDTO - """ # noqa: E501 - - id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the unit" - ) + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="The internal ID of the unit") name: Optional[StrictStr] = Field(default=None, description="The name of the unit") extended_name: Optional[StrictStr] = Field(default=None, alias="extendedName") create_date: Optional[datetime] = Field(default=None, alias="createDate") update_date: Optional[datetime] = Field(default=None, alias="updateDate") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "id", - "name", - "extendedName", - "createDate", - "updateDate", - ] + __properties: ClassVar[List[str]] = ["id", "name", "extendedName", "createDate", "updateDate"] model_config = ConfigDict( populate_by_name=True, @@ -51,6 +42,7 @@ class CurrencyDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,11 +68,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -95,17 +85,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if extended_name (nullable) is None # and model_fields_set contains the field if self.extended_name is None and "extended_name" in self.model_fields_set: - _dict["extendedName"] = None + _dict['extendedName'] = None # set to None if update_date (nullable) is None # and model_fields_set contains the field if self.update_date is None and "update_date" in self.model_fields_set: - _dict["updateDate"] = None + _dict['updateDate'] = None return _dict @@ -118,18 +108,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "extendedName": obj.get("extendedName"), - "createDate": obj.get("createDate"), - "updateDate": obj.get("updateDate"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "extendedName": obj.get("extendedName"), + "createDate": obj.get("createDate"), + "updateDate": obj.get("updateDate") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/economic_data_dto.py b/data_bridges_client/models/economic_data_dto.py index 7f382b3..7ec1abf 100644 --- a/data_bridges_client/models/economic_data_dto.py +++ b/data_bridges_client/models/economic_data_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class EconomicDataDTO(BaseModel): """ EconomicDataDTO - """ # noqa: E501 - + """ # noqa: E501 var_date: Optional[datetime] = Field(default=None, alias="date") value: Optional[Union[StrictFloat, StrictInt]] = None additional_properties: Dict[str, Any] = {} @@ -40,6 +39,7 @@ class EconomicDataDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -92,10 +90,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"date": obj.get("date"), "value": obj.get("value")}) + _obj = cls.model_validate({ + "date": obj.get("date"), + "value": obj.get("value") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/economic_indicator_property.py b/data_bridges_client/models/economic_indicator_property.py index 2dfb175..f8ae0ec 100644 --- a/data_bridges_client/models/economic_indicator_property.py +++ b/data_bridges_client/models/economic_indicator_property.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,33 +24,20 @@ from typing import Optional, Set from typing_extensions import Self - class EconomicIndicatorProperty(BaseModel): """ EconomicIndicatorProperty - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None frequency: Optional[StrictStr] = None unit: Optional[StrictStr] = None data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") - latest_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="latestValue" - ) + latest_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="latestValue") latest_value_date: Optional[datetime] = Field(default=None, alias="latestValueDate") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "id", - "name", - "frequency", - "unit", - "dataSource", - "countryIso3", - "latestValue", - "latestValueDate", - ] + __properties: ClassVar[List[str]] = ["id", "name", "frequency", "unit", "dataSource", "countryIso3", "latestValue", "latestValueDate"] model_config = ConfigDict( populate_by_name=True, @@ -57,6 +45,7 @@ class EconomicIndicatorProperty(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -101,27 +88,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict["frequency"] = None + _dict['frequency'] = None # set to None if unit (nullable) is None # and model_fields_set contains the field if self.unit is None and "unit" in self.model_fields_set: - _dict["unit"] = None + _dict['unit'] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict["dataSource"] = None + _dict['dataSource'] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict["countryIso3"] = None + _dict['countryIso3'] = None return _dict @@ -134,21 +121,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "frequency": obj.get("frequency"), - "unit": obj.get("unit"), - "dataSource": obj.get("dataSource"), - "countryIso3": obj.get("countryIso3"), - "latestValue": obj.get("latestValue"), - "latestValueDate": obj.get("latestValueDate"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "frequency": obj.get("frequency"), + "unit": obj.get("unit"), + "dataSource": obj.get("dataSource"), + "countryIso3": obj.get("countryIso3"), + "latestValue": obj.get("latestValue"), + "latestValueDate": obj.get("latestValueDate") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/economic_indicator_property_paged_result.py b/data_bridges_client/models/economic_indicator_property_paged_result.py index 3f20317..6890f9f 100644 --- a/data_bridges_client/models/economic_indicator_property_paged_result.py +++ b/data_bridges_client/models/economic_indicator_property_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -19,18 +20,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.economic_indicator_property import ( - EconomicIndicatorProperty, -) +from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty from typing import Optional, Set from typing_extensions import Self - class EconomicIndicatorPropertyPagedResult(BaseModel): """ EconomicIndicatorPropertyPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[EconomicIndicatorProperty]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -43,6 +40,7 @@ class EconomicIndicatorPropertyPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - EconomicIndicatorProperty.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [EconomicIndicatorProperty.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/extended_alps_value_dto.py b/data_bridges_client/models/extended_alps_value_dto.py index 06913a1..e53e911 100644 --- a/data_bridges_client/models/extended_alps_value_dto.py +++ b/data_bridges_client/models/extended_alps_value_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,71 +24,31 @@ from typing import Optional, Set from typing_extensions import Self - class ExtendedAlpsValueDto(BaseModel): """ ExtendedAlpsValueDto - """ # noqa: E501 - + """ # noqa: E501 commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field( - default=None, alias="commodityUnitId" - ) + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_date_year: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateYear" - ) - commodity_price_date_month: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateMonth" - ) - commodity_price_date_week: Optional[StrictInt] = Field( - default=None, alias="commodityPriceDateWeek" - ) - commodity_price_date: Optional[datetime] = Field( - default=None, alias="commodityPriceDate" - ) + commodity_price_date_year: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateYear") + commodity_price_date_month: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateMonth") + commodity_price_date_week: Optional[StrictInt] = Field(default=None, alias="commodityPriceDateWeek") + commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field( - default=None, alias="commodityUnitName" - ) + commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") - analysis_value_estimated_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="analysisValueEstimatedPrice" - ) - analysis_value_pewi_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="analysisValuePewiValue" - ) - analysis_value_price_flag: Optional[StrictStr] = Field( - default=None, alias="analysisValuePriceFlag" - ) + analysis_value_estimated_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="analysisValueEstimatedPrice") + analysis_value_pewi_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="analysisValuePewiValue") + analysis_value_price_flag: Optional[StrictStr] = Field(default=None, alias="analysisValuePriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "commodityId", - "marketId", - "priceTypeId", - "commodityUnitId", - "currencyId", - "adm0Code", - "countryName", - "commodityPriceDateYear", - "commodityPriceDateMonth", - "commodityPriceDateWeek", - "commodityPriceDate", - "commodityName", - "marketName", - "priceTypeName", - "commodityUnitName", - "currencyName", - "analysisValueEstimatedPrice", - "analysisValuePewiValue", - "analysisValuePriceFlag", - ] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "countryName", "commodityPriceDateYear", "commodityPriceDateMonth", "commodityPriceDateWeek", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "analysisValueEstimatedPrice", "analysisValuePewiValue", "analysisValuePriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -95,6 +56,7 @@ class ExtendedAlpsValueDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -120,11 +82,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -139,72 +99,57 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if commodity_price_date_month (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date_month is None - and "commodity_price_date_month" in self.model_fields_set - ): - _dict["commodityPriceDateMonth"] = None + if self.commodity_price_date_month is None and "commodity_price_date_month" in self.model_fields_set: + _dict['commodityPriceDateMonth'] = None # set to None if commodity_price_date_week (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date_week is None - and "commodity_price_date_week" in self.model_fields_set - ): - _dict["commodityPriceDateWeek"] = None + if self.commodity_price_date_week is None and "commodity_price_date_week" in self.model_fields_set: + _dict['commodityPriceDateWeek'] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date is None - and "commodity_price_date" in self.model_fields_set - ): - _dict["commodityPriceDate"] = None + if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: + _dict['commodityPriceDate'] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict["commodityName"] = None + _dict['commodityName'] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict["priceTypeName"] = None + _dict['priceTypeName'] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_unit_name is None - and "commodity_unit_name" in self.model_fields_set - ): - _dict["commodityUnitName"] = None + if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: + _dict['commodityUnitName'] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict["currencyName"] = None + _dict['currencyName'] = None # set to None if analysis_value_price_flag (nullable) is None # and model_fields_set contains the field - if ( - self.analysis_value_price_flag is None - and "analysis_value_price_flag" in self.model_fields_set - ): - _dict["analysisValuePriceFlag"] = None + if self.analysis_value_price_flag is None and "analysis_value_price_flag" in self.model_fields_set: + _dict['analysisValuePriceFlag'] = None return _dict @@ -217,32 +162,32 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "countryName": obj.get("countryName"), - "commodityPriceDateYear": obj.get("commodityPriceDateYear"), - "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), - "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "analysisValueEstimatedPrice": obj.get("analysisValueEstimatedPrice"), - "analysisValuePewiValue": obj.get("analysisValuePewiValue"), - "analysisValuePriceFlag": obj.get("analysisValuePriceFlag"), - } - ) + _obj = cls.model_validate({ + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "countryName": obj.get("countryName"), + "commodityPriceDateYear": obj.get("commodityPriceDateYear"), + "commodityPriceDateMonth": obj.get("commodityPriceDateMonth"), + "commodityPriceDateWeek": obj.get("commodityPriceDateWeek"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "analysisValueEstimatedPrice": obj.get("analysisValueEstimatedPrice"), + "analysisValuePewiValue": obj.get("analysisValuePewiValue"), + "analysisValuePriceFlag": obj.get("analysisValuePriceFlag") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/extended_alps_value_dto_paged_result.py b/data_bridges_client/models/extended_alps_value_dto_paged_result.py index 618d1e7..48f83bd 100644 --- a/data_bridges_client/models/extended_alps_value_dto_paged_result.py +++ b/data_bridges_client/models/extended_alps_value_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class ExtendedAlpsValueDtoPagedResult(BaseModel): """ ExtendedAlpsValueDtoPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[ExtendedAlpsValueDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class ExtendedAlpsValueDtoPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - ExtendedAlpsValueDto.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [ExtendedAlpsValueDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/feature.py b/data_bridges_client/models/feature.py index f35ce30..c4da390 100644 --- a/data_bridges_client/models/feature.py +++ b/data_bridges_client/models/feature.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -24,12 +25,10 @@ from typing import Optional, Set from typing_extensions import Self - class Feature(BaseModel): """ Feature - """ # noqa: E501 - + """ # noqa: E501 type: Optional[StrictStr] = None id: Optional[StrictInt] = None bbox: Optional[List[Union[StrictFloat, StrictInt]]] = None @@ -44,6 +43,7 @@ class Feature(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,11 +69,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,10 +80,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of geometry if self.geometry: - _dict["geometry"] = self.geometry.to_dict() + _dict['geometry'] = self.geometry.to_dict() # override the default output from pydantic by calling `to_dict()` of properties if self.properties: - _dict["properties"] = self.properties.to_dict() + _dict['properties'] = self.properties.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,12 +92,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None # set to None if bbox (nullable) is None # and model_fields_set contains the field if self.bbox is None and "bbox" in self.model_fields_set: - _dict["bbox"] = None + _dict['bbox'] = None return _dict @@ -112,22 +110,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": obj.get("type"), - "id": obj.get("id"), - "bbox": obj.get("bbox"), - "geometry": Geometry.from_dict(obj["geometry"]) - if obj.get("geometry") is not None - else None, - "properties": Properties.from_dict(obj["properties"]) - if obj.get("properties") is not None - else None, - } - ) + _obj = cls.model_validate({ + "type": obj.get("type"), + "id": obj.get("id"), + "bbox": obj.get("bbox"), + "geometry": Geometry.from_dict(obj["geometry"]) if obj.get("geometry") is not None else None, + "properties": Properties.from_dict(obj["properties"]) if obj.get("properties") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/geometry.py b/data_bridges_client/models/geometry.py index 9501024..a99946c 100644 --- a/data_bridges_client/models/geometry.py +++ b/data_bridges_client/models/geometry.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class Geometry(BaseModel): """ Geometry - """ # noqa: E501 - + """ # noqa: E501 type: Optional[StrictStr] = None coordinates: Optional[List[Union[StrictFloat, StrictInt]]] = None additional_properties: Dict[str, Any] = {} @@ -39,6 +38,7 @@ class Geometry(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -83,12 +81,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None # set to None if coordinates (nullable) is None # and model_fields_set contains the field if self.coordinates is None and "coordinates" in self.model_fields_set: - _dict["coordinates"] = None + _dict['coordinates'] = None return _dict @@ -101,12 +99,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"type": obj.get("type"), "coordinates": obj.get("coordinates")} - ) + _obj = cls.model_validate({ + "type": obj.get("type"), + "coordinates": obj.get("coordinates") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/global_outlook_api_dto.py b/data_bridges_client/models/global_outlook_api_dto.py index 292350b..da0ec87 100644 --- a/data_bridges_client/models/global_outlook_api_dto.py +++ b/data_bridges_client/models/global_outlook_api_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,29 +23,17 @@ from typing import Optional, Set from typing_extensions import Self - class GlobalOutlookApiDto(BaseModel): """ GlobalOutlookApiDto - """ # noqa: E501 - + """ # noqa: E501 var_date: Optional[StrictStr] = Field(default=None, alias="date") region_name: Optional[StrictStr] = Field(default=None, alias="regionName") - total_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="totalValue" - ) - number_of_countries: Optional[StrictInt] = Field( - default=None, alias="numberOfCountries" - ) + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") + number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "date", - "regionName", - "totalValue", - "numberOfCountries", - "comment", - ] + __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +41,7 @@ class GlobalOutlookApiDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -96,25 +84,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict["date"] = None + _dict['date'] = None # set to None if region_name (nullable) is None # and model_fields_set contains the field if self.region_name is None and "region_name" in self.model_fields_set: - _dict["regionName"] = None + _dict['regionName'] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field - if ( - self.number_of_countries is None - and "number_of_countries" in self.model_fields_set - ): - _dict["numberOfCountries"] = None + if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: + _dict['numberOfCountries'] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict["comment"] = None + _dict['comment'] = None return _dict @@ -127,18 +112,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "date": obj.get("date"), - "regionName": obj.get("regionName"), - "totalValue": obj.get("totalValue"), - "numberOfCountries": obj.get("numberOfCountries"), - "comment": obj.get("comment"), - } - ) + _obj = cls.model_validate({ + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), + "numberOfCountries": obj.get("numberOfCountries"), + "comment": obj.get("comment") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/global_outlook_country_api_dto.py b/data_bridges_client/models/global_outlook_country_api_dto.py index 0ee7cd9..43944df 100644 --- a/data_bridges_client/models/global_outlook_country_api_dto.py +++ b/data_bridges_client/models/global_outlook_country_api_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,27 +23,16 @@ from typing import Optional, Set from typing_extensions import Self - class GlobalOutlookCountryApiDto(BaseModel): """ GlobalOutlookCountryApiDto - """ # noqa: E501 - + """ # noqa: E501 var_date: Optional[StrictStr] = Field(default=None, alias="date") - country_office_iso3: Optional[StrictStr] = Field( - default=None, alias="countryOfficeIso3" - ) - total_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="totalValue" - ) + country_office_iso3: Optional[StrictStr] = Field(default=None, alias="countryOfficeIso3") + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "date", - "countryOfficeIso3", - "totalValue", - "comment", - ] + __properties: ClassVar[List[str]] = ["date", "countryOfficeIso3", "totalValue", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -50,6 +40,7 @@ class GlobalOutlookCountryApiDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -94,20 +83,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict["date"] = None + _dict['date'] = None # set to None if country_office_iso3 (nullable) is None # and model_fields_set contains the field - if ( - self.country_office_iso3 is None - and "country_office_iso3" in self.model_fields_set - ): - _dict["countryOfficeIso3"] = None + if self.country_office_iso3 is None and "country_office_iso3" in self.model_fields_set: + _dict['countryOfficeIso3'] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict["comment"] = None + _dict['comment'] = None return _dict @@ -120,17 +106,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "date": obj.get("date"), - "countryOfficeIso3": obj.get("countryOfficeIso3"), - "totalValue": obj.get("totalValue"), - "comment": obj.get("comment"), - } - ) + _obj = cls.model_validate({ + "date": obj.get("date"), + "countryOfficeIso3": obj.get("countryOfficeIso3"), + "totalValue": obj.get("totalValue"), + "comment": obj.get("comment") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/global_outlook_regional_api_dto.py b/data_bridges_client/models/global_outlook_regional_api_dto.py index 5a021f9..60b0ee5 100644 --- a/data_bridges_client/models/global_outlook_regional_api_dto.py +++ b/data_bridges_client/models/global_outlook_regional_api_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,29 +23,17 @@ from typing import Optional, Set from typing_extensions import Self - class GlobalOutlookRegionalApiDto(BaseModel): """ GlobalOutlookRegionalApiDto - """ # noqa: E501 - + """ # noqa: E501 var_date: Optional[StrictStr] = Field(default=None, alias="date") region_name: Optional[StrictStr] = Field(default=None, alias="regionName") - total_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="totalValue" - ) - number_of_countries: Optional[StrictInt] = Field( - default=None, alias="numberOfCountries" - ) + total_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totalValue") + number_of_countries: Optional[StrictInt] = Field(default=None, alias="numberOfCountries") comment: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "date", - "regionName", - "totalValue", - "numberOfCountries", - "comment", - ] + __properties: ClassVar[List[str]] = ["date", "regionName", "totalValue", "numberOfCountries", "comment"] model_config = ConfigDict( populate_by_name=True, @@ -52,6 +41,7 @@ class GlobalOutlookRegionalApiDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -96,25 +84,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if var_date (nullable) is None # and model_fields_set contains the field if self.var_date is None and "var_date" in self.model_fields_set: - _dict["date"] = None + _dict['date'] = None # set to None if region_name (nullable) is None # and model_fields_set contains the field if self.region_name is None and "region_name" in self.model_fields_set: - _dict["regionName"] = None + _dict['regionName'] = None # set to None if number_of_countries (nullable) is None # and model_fields_set contains the field - if ( - self.number_of_countries is None - and "number_of_countries" in self.model_fields_set - ): - _dict["numberOfCountries"] = None + if self.number_of_countries is None and "number_of_countries" in self.model_fields_set: + _dict['numberOfCountries'] = None # set to None if comment (nullable) is None # and model_fields_set contains the field if self.comment is None and "comment" in self.model_fields_set: - _dict["comment"] = None + _dict['comment'] = None return _dict @@ -127,18 +112,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "date": obj.get("date"), - "regionName": obj.get("regionName"), - "totalValue": obj.get("totalValue"), - "numberOfCountries": obj.get("numberOfCountries"), - "comment": obj.get("comment"), - } - ) + _obj = cls.model_validate({ + "date": obj.get("date"), + "regionName": obj.get("regionName"), + "totalValue": obj.get("totalValue"), + "numberOfCountries": obj.get("numberOfCountries"), + "comment": obj.get("comment") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/household_survey_list_dto.py b/data_bridges_client/models/household_survey_list_dto.py index 2407250..139efe7 100644 --- a/data_bridges_client/models/household_survey_list_dto.py +++ b/data_bridges_client/models/household_survey_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -25,141 +26,39 @@ from typing import Optional, Set from typing_extensions import Self - class HouseholdSurveyListDTO(BaseModel): """ HouseholdSurveyListDTO - """ # noqa: E501 - - survey_id: Optional[StrictInt] = Field( - default=None, description="The Id of the Survey", alias="surveyID" - ) - survey_status_id: Optional[StrictInt] = Field( - default=None, description="The Id of the Survey status", alias="surveyStatusID" - ) - survey_start_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has started", - alias="surveyStartDate", - ) - survey_end_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has ended", - alias="surveyEndDate", - ) - survey_create_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has been uploaded in the Data Bridges platform", - alias="surveyCreateDate", - ) - survey_validation_report: Optional[StrictStr] = Field( - default=None, - description="The detailed report on the validation performed on the survey schema", - alias="surveyValidationReport", - ) - survey_original_filename: Optional[ - Annotated[str, Field(min_length=0, strict=True, max_length=256)] - ] = Field( - default=None, - description="The filename of the survey CSV file", - alias="surveyOriginalFilename", - ) - xls_form_name: Optional[StrictStr] = Field( - default=None, - description="The name of the XLSForm used to collect data", - alias="xlsFormName", - ) - base_xls_form_name: Optional[StrictStr] = Field( - default=None, - description="The name of the base XLSForm used to build the XLSForm", - alias="baseXlsFormName", - ) - country_name: Optional[StrictStr] = Field( - default=None, - description="The name of the country where the survey has taken place", - alias="countryName", - ) - adm0_code: Optional[StrictInt] = Field( - default=None, - description="The internal code of the country where the survey has taken place", - alias="adm0Code", - ) - iso3_alpha3: Optional[StrictStr] = Field( - default=None, - description="The ISO3 alpha code of the country where the survey has taken place", - alias="iso3Alpha3", - ) - user_name: Optional[StrictStr] = Field( - default=None, - description="The name of the user that has uploaded the survey data", - alias="userName", - ) + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") + survey_status_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey status", alias="surveyStatusID") + survey_start_date: Optional[datetime] = Field(default=None, description="The date when the survey has started", alias="surveyStartDate") + survey_end_date: Optional[datetime] = Field(default=None, description="The date when the survey has ended", alias="surveyEndDate") + survey_create_date: Optional[datetime] = Field(default=None, description="The date when the survey has been uploaded in the Data Bridges platform", alias="surveyCreateDate") + survey_validation_report: Optional[StrictStr] = Field(default=None, description="The detailed report on the validation performed on the survey schema", alias="surveyValidationReport") + survey_original_filename: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=256)]] = Field(default=None, description="The filename of the survey CSV file", alias="surveyOriginalFilename") + xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the XLSForm used to collect data", alias="xlsFormName") + base_xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the base XLSForm used to build the XLSForm", alias="baseXlsFormName") + country_name: Optional[StrictStr] = Field(default=None, description="The name of the country where the survey has taken place", alias="countryName") + adm0_code: Optional[StrictInt] = Field(default=None, description="The internal code of the country where the survey has taken place", alias="adm0Code") + iso3_alpha3: Optional[StrictStr] = Field(default=None, description="The ISO3 alpha code of the country where the survey has taken place", alias="iso3Alpha3") + user_name: Optional[StrictStr] = Field(default=None, description="The name of the user that has uploaded the survey data", alias="userName") approved_by: Optional[StrictStr] = Field(default=None, alias="approvedBy") - original_csv_file: Optional[StrictStr] = Field( - default=None, - description="The link to download the original CSV file", - alias="originalCsvFile", - ) - base_data: Optional[StrictStr] = Field( - default=None, - description="The link to the JSON data reshaped on the base XLSForm", - alias="baseData", - ) - survey_attributes: Optional[List[KeyNameDto]] = Field( - default=None, alias="surveyAttributes" - ) + original_csv_file: Optional[StrictStr] = Field(default=None, description="The link to download the original CSV file", alias="originalCsvFile") + base_data: Optional[StrictStr] = Field(default=None, description="The link to the JSON data reshaped on the base XLSForm", alias="baseData") + survey_attributes: Optional[List[KeyNameDto]] = Field(default=None, alias="surveyAttributes") organizations: Optional[List[KeyNameDto]] = None - survey_modality_name: Optional[StrictStr] = Field( - default=None, alias="surveyModalityName" - ) - survey_category_name: Optional[StrictStr] = Field( - default=None, alias="surveyCategoryName" - ) - survey_sub_category_name: Optional[StrictStr] = Field( - default=None, alias="surveySubCategoryName" - ) - survey_phase_name: Optional[StrictStr] = Field( - default=None, alias="surveyPhaseName" - ) - survey_visibility: Optional[StrictStr] = Field( - default=None, alias="surveyVisibility" - ) - is_continuous_monitoring: Optional[StrictBool] = Field( - default=None, alias="isContinuousMonitoring" - ) + survey_modality_name: Optional[StrictStr] = Field(default=None, alias="surveyModalityName") + survey_category_name: Optional[StrictStr] = Field(default=None, alias="surveyCategoryName") + survey_sub_category_name: Optional[StrictStr] = Field(default=None, alias="surveySubCategoryName") + survey_phase_name: Optional[StrictStr] = Field(default=None, alias="surveyPhaseName") + survey_visibility: Optional[StrictStr] = Field(default=None, alias="surveyVisibility") + is_continuous_monitoring: Optional[StrictBool] = Field(default=None, alias="isContinuousMonitoring") survey_name: Optional[StrictStr] = Field(default=None, alias="surveyName") xls_form_id: Optional[StrictInt] = Field(default=None, alias="xlsFormId") base_xls_form_id: Optional[StrictInt] = Field(default=None, alias="baseXlsFormId") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyID", - "surveyStatusID", - "surveyStartDate", - "surveyEndDate", - "surveyCreateDate", - "surveyValidationReport", - "surveyOriginalFilename", - "xlsFormName", - "baseXlsFormName", - "countryName", - "adm0Code", - "iso3Alpha3", - "userName", - "approvedBy", - "originalCsvFile", - "baseData", - "surveyAttributes", - "organizations", - "surveyModalityName", - "surveyCategoryName", - "surveySubCategoryName", - "surveyPhaseName", - "surveyVisibility", - "isContinuousMonitoring", - "surveyName", - "xlsFormId", - "baseXlsFormId", - ] + __properties: ClassVar[List[str]] = ["surveyID", "surveyStatusID", "surveyStartDate", "surveyEndDate", "surveyCreateDate", "surveyValidationReport", "surveyOriginalFilename", "xlsFormName", "baseXlsFormName", "countryName", "adm0Code", "iso3Alpha3", "userName", "approvedBy", "originalCsvFile", "baseData", "surveyAttributes", "organizations", "surveyModalityName", "surveyCategoryName", "surveySubCategoryName", "surveyPhaseName", "surveyVisibility", "isContinuousMonitoring", "surveyName", "xlsFormId", "baseXlsFormId"] model_config = ConfigDict( populate_by_name=True, @@ -167,6 +66,7 @@ class HouseholdSurveyListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -192,11 +92,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -209,14 +107,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_survey_attributes in self.survey_attributes: if _item_survey_attributes: _items.append(_item_survey_attributes.to_dict()) - _dict["surveyAttributes"] = _items + _dict['surveyAttributes'] = _items # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) _items = [] if self.organizations: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict["organizations"] = _items + _dict['organizations'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -224,136 +122,103 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_start_date (nullable) is None # and model_fields_set contains the field - if ( - self.survey_start_date is None - and "survey_start_date" in self.model_fields_set - ): - _dict["surveyStartDate"] = None + if self.survey_start_date is None and "survey_start_date" in self.model_fields_set: + _dict['surveyStartDate'] = None # set to None if survey_end_date (nullable) is None # and model_fields_set contains the field if self.survey_end_date is None and "survey_end_date" in self.model_fields_set: - _dict["surveyEndDate"] = None + _dict['surveyEndDate'] = None # set to None if survey_validation_report (nullable) is None # and model_fields_set contains the field - if ( - self.survey_validation_report is None - and "survey_validation_report" in self.model_fields_set - ): - _dict["surveyValidationReport"] = None + if self.survey_validation_report is None and "survey_validation_report" in self.model_fields_set: + _dict['surveyValidationReport'] = None # set to None if survey_original_filename (nullable) is None # and model_fields_set contains the field - if ( - self.survey_original_filename is None - and "survey_original_filename" in self.model_fields_set - ): - _dict["surveyOriginalFilename"] = None + if self.survey_original_filename is None and "survey_original_filename" in self.model_fields_set: + _dict['surveyOriginalFilename'] = None # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict["xlsFormName"] = None + _dict['xlsFormName'] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if ( - self.base_xls_form_name is None - and "base_xls_form_name" in self.model_fields_set - ): - _dict["baseXlsFormName"] = None + if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: + _dict['baseXlsFormName'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict["userName"] = None + _dict['userName'] = None # set to None if approved_by (nullable) is None # and model_fields_set contains the field if self.approved_by is None and "approved_by" in self.model_fields_set: - _dict["approvedBy"] = None + _dict['approvedBy'] = None # set to None if original_csv_file (nullable) is None # and model_fields_set contains the field - if ( - self.original_csv_file is None - and "original_csv_file" in self.model_fields_set - ): - _dict["originalCsvFile"] = None + if self.original_csv_file is None and "original_csv_file" in self.model_fields_set: + _dict['originalCsvFile'] = None # set to None if base_data (nullable) is None # and model_fields_set contains the field if self.base_data is None and "base_data" in self.model_fields_set: - _dict["baseData"] = None + _dict['baseData'] = None # set to None if survey_attributes (nullable) is None # and model_fields_set contains the field - if ( - self.survey_attributes is None - and "survey_attributes" in self.model_fields_set - ): - _dict["surveyAttributes"] = None + if self.survey_attributes is None and "survey_attributes" in self.model_fields_set: + _dict['surveyAttributes'] = None # set to None if organizations (nullable) is None # and model_fields_set contains the field if self.organizations is None and "organizations" in self.model_fields_set: - _dict["organizations"] = None + _dict['organizations'] = None # set to None if survey_modality_name (nullable) is None # and model_fields_set contains the field - if ( - self.survey_modality_name is None - and "survey_modality_name" in self.model_fields_set - ): - _dict["surveyModalityName"] = None + if self.survey_modality_name is None and "survey_modality_name" in self.model_fields_set: + _dict['surveyModalityName'] = None # set to None if survey_category_name (nullable) is None # and model_fields_set contains the field - if ( - self.survey_category_name is None - and "survey_category_name" in self.model_fields_set - ): - _dict["surveyCategoryName"] = None + if self.survey_category_name is None and "survey_category_name" in self.model_fields_set: + _dict['surveyCategoryName'] = None # set to None if survey_sub_category_name (nullable) is None # and model_fields_set contains the field - if ( - self.survey_sub_category_name is None - and "survey_sub_category_name" in self.model_fields_set - ): - _dict["surveySubCategoryName"] = None + if self.survey_sub_category_name is None and "survey_sub_category_name" in self.model_fields_set: + _dict['surveySubCategoryName'] = None # set to None if survey_phase_name (nullable) is None # and model_fields_set contains the field - if ( - self.survey_phase_name is None - and "survey_phase_name" in self.model_fields_set - ): - _dict["surveyPhaseName"] = None + if self.survey_phase_name is None and "survey_phase_name" in self.model_fields_set: + _dict['surveyPhaseName'] = None # set to None if survey_visibility (nullable) is None # and model_fields_set contains the field - if ( - self.survey_visibility is None - and "survey_visibility" in self.model_fields_set - ): - _dict["surveyVisibility"] = None + if self.survey_visibility is None and "survey_visibility" in self.model_fields_set: + _dict['surveyVisibility'] = None # set to None if survey_name (nullable) is None # and model_fields_set contains the field if self.survey_name is None and "survey_name" in self.model_fields_set: - _dict["surveyName"] = None + _dict['surveyName'] = None return _dict @@ -366,48 +231,40 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyID": obj.get("surveyID"), - "surveyStatusID": obj.get("surveyStatusID"), - "surveyStartDate": obj.get("surveyStartDate"), - "surveyEndDate": obj.get("surveyEndDate"), - "surveyCreateDate": obj.get("surveyCreateDate"), - "surveyValidationReport": obj.get("surveyValidationReport"), - "surveyOriginalFilename": obj.get("surveyOriginalFilename"), - "xlsFormName": obj.get("xlsFormName"), - "baseXlsFormName": obj.get("baseXlsFormName"), - "countryName": obj.get("countryName"), - "adm0Code": obj.get("adm0Code"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "userName": obj.get("userName"), - "approvedBy": obj.get("approvedBy"), - "originalCsvFile": obj.get("originalCsvFile"), - "baseData": obj.get("baseData"), - "surveyAttributes": [ - KeyNameDto.from_dict(_item) for _item in obj["surveyAttributes"] - ] - if obj.get("surveyAttributes") is not None - else None, - "organizations": [ - KeyNameDto.from_dict(_item) for _item in obj["organizations"] - ] - if obj.get("organizations") is not None - else None, - "surveyModalityName": obj.get("surveyModalityName"), - "surveyCategoryName": obj.get("surveyCategoryName"), - "surveySubCategoryName": obj.get("surveySubCategoryName"), - "surveyPhaseName": obj.get("surveyPhaseName"), - "surveyVisibility": obj.get("surveyVisibility"), - "isContinuousMonitoring": obj.get("isContinuousMonitoring"), - "surveyName": obj.get("surveyName"), - "xlsFormId": obj.get("xlsFormId"), - "baseXlsFormId": obj.get("baseXlsFormId"), - } - ) + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyStatusID": obj.get("surveyStatusID"), + "surveyStartDate": obj.get("surveyStartDate"), + "surveyEndDate": obj.get("surveyEndDate"), + "surveyCreateDate": obj.get("surveyCreateDate"), + "surveyValidationReport": obj.get("surveyValidationReport"), + "surveyOriginalFilename": obj.get("surveyOriginalFilename"), + "xlsFormName": obj.get("xlsFormName"), + "baseXlsFormName": obj.get("baseXlsFormName"), + "countryName": obj.get("countryName"), + "adm0Code": obj.get("adm0Code"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "userName": obj.get("userName"), + "approvedBy": obj.get("approvedBy"), + "originalCsvFile": obj.get("originalCsvFile"), + "baseData": obj.get("baseData"), + "surveyAttributes": [KeyNameDto.from_dict(_item) for _item in obj["surveyAttributes"]] if obj.get("surveyAttributes") is not None else None, + "organizations": [KeyNameDto.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, + "surveyModalityName": obj.get("surveyModalityName"), + "surveyCategoryName": obj.get("surveyCategoryName"), + "surveySubCategoryName": obj.get("surveySubCategoryName"), + "surveyPhaseName": obj.get("surveyPhaseName"), + "surveyVisibility": obj.get("surveyVisibility"), + "isContinuousMonitoring": obj.get("isContinuousMonitoring"), + "surveyName": obj.get("surveyName"), + "xlsFormId": obj.get("xlsFormId"), + "baseXlsFormId": obj.get("baseXlsFormId") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/household_survey_list_dto_paged_result.py b/data_bridges_client/models/household_survey_list_dto_paged_result.py index 8b7e3f7..06d0cf4 100644 --- a/data_bridges_client/models/household_survey_list_dto_paged_result.py +++ b/data_bridges_client/models/household_survey_list_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class HouseholdSurveyListDTOPagedResult(BaseModel): """ HouseholdSurveyListDTOPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[HouseholdSurveyListDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class HouseholdSurveyListDTOPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - HouseholdSurveyListDTO.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [HouseholdSurveyListDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto.py b/data_bridges_client/models/hunger_hot_spot_data_dto.py index fcf9c97..023469f 100644 --- a/data_bridges_client/models/hunger_hot_spot_data_dto.py +++ b/data_bridges_client/models/hunger_hot_spot_data_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -24,25 +25,16 @@ from typing import Optional, Set from typing_extensions import Self - class HungerHotSpotDataDTO(BaseModel): """ HungerHotSpotDataDTO - """ # noqa: E501 - + """ # noqa: E501 iso3_code: Optional[StrictStr] = Field(default=None, alias="iso3Code") - hunger_hotspots_date: Optional[datetime] = Field( - default=None, alias="hungerHotspotsDate" - ) + hunger_hotspots_date: Optional[datetime] = Field(default=None, alias="hungerHotspotsDate") category: Optional[ListItemDto] = None indicators: Optional[List[ListItemDto]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "iso3Code", - "hungerHotspotsDate", - "category", - "indicators", - ] + __properties: ClassVar[List[str]] = ["iso3Code", "hungerHotspotsDate", "category", "indicators"] model_config = ConfigDict( populate_by_name=True, @@ -50,6 +42,7 @@ class HungerHotSpotDataDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,11 +68,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -88,14 +79,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of category if self.category: - _dict["category"] = self.category.to_dict() + _dict['category'] = self.category.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in indicators (list) _items = [] if self.indicators: for _item_indicators in self.indicators: if _item_indicators: _items.append(_item_indicators.to_dict()) - _dict["indicators"] = _items + _dict['indicators'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -104,12 +95,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_code (nullable) is None # and model_fields_set contains the field if self.iso3_code is None and "iso3_code" in self.model_fields_set: - _dict["iso3Code"] = None + _dict['iso3Code'] = None # set to None if indicators (nullable) is None # and model_fields_set contains the field if self.indicators is None and "indicators" in self.model_fields_set: - _dict["indicators"] = None + _dict['indicators'] = None return _dict @@ -122,23 +113,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "iso3Code": obj.get("iso3Code"), - "hungerHotspotsDate": obj.get("hungerHotspotsDate"), - "category": ListItemDto.from_dict(obj["category"]) - if obj.get("category") is not None - else None, - "indicators": [ - ListItemDto.from_dict(_item) for _item in obj["indicators"] - ] - if obj.get("indicators") is not None - else None, - } - ) + _obj = cls.model_validate({ + "iso3Code": obj.get("iso3Code"), + "hungerHotspotsDate": obj.get("hungerHotspotsDate"), + "category": ListItemDto.from_dict(obj["category"]) if obj.get("category") is not None else None, + "indicators": [ListItemDto.from_dict(_item) for _item in obj["indicators"]] if obj.get("indicators") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py index c5352ea..d709f7b 100644 --- a/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py +++ b/data_bridges_client/models/hunger_hot_spot_data_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class HungerHotSpotDataDTOPagedResult(BaseModel): """ HungerHotSpotDataDTOPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[HungerHotSpotDataDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class HungerHotSpotDataDTOPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - HungerHotSpotDataDTO.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [HungerHotSpotDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipc_historical_datum_dto.py b/data_bridges_client/models/ipc_historical_datum_dto.py index ac3be67..582e157 100644 --- a/data_bridges_client/models/ipc_historical_datum_dto.py +++ b/data_bridges_client/models/ipc_historical_datum_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,211 +24,64 @@ from typing import Optional, Set from typing_extensions import Self - class IpcHistoricalDatumDto(BaseModel): """ IpcHistoricalDatumDto - """ # noqa: E501 - + """ # noqa: E501 analysis_id: Optional[StrictInt] = Field(default=None, alias="analysisId") analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") - start_date_current_period: Optional[datetime] = Field( - default=None, alias="StartDate_CurrentPeriod" - ) - end_date_current_period: Optional[datetime] = Field( - default=None, alias="EndDate_CurrentPeriod" - ) - start_date_projected_period: Optional[datetime] = Field( - default=None, alias="StartDate_ProjectedPeriod" - ) - end_date_projected_period: Optional[datetime] = Field( - default=None, alias="EndDate_ProjectedPeriod" - ) - start_date_second_projected_period: Optional[datetime] = Field( - default=None, alias="StartDate_SecondProjectedPeriod" - ) - end_date_second_projected_period: Optional[datetime] = Field( - default=None, alias="EndDate_SecondProjectedPeriod" - ) + start_date_current_period: Optional[datetime] = Field(default=None, alias="StartDate_CurrentPeriod") + end_date_current_period: Optional[datetime] = Field(default=None, alias="EndDate_CurrentPeriod") + start_date_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_ProjectedPeriod") + end_date_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_ProjectedPeriod") + start_date_second_projected_period: Optional[datetime] = Field(default=None, alias="StartDate_SecondProjectedPeriod") + end_date_second_projected_period: Optional[datetime] = Field(default=None, alias="EndDate_SecondProjectedPeriod") population: Optional[Union[StrictFloat, StrictInt]] = None - population_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="populationPercentage" - ) - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPopulation" - ) - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPercentage" - ) - estimated_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="estimatedPopulation" - ) - phase1_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1Population" - ) - phase1_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1Percentage" - ) - phase2_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2Population" - ) - phase2_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2Percentage" - ) - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Population" - ) - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Percentage" - ) - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Population" - ) - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Percentage" - ) - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Population" - ) - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Percentage" - ) - phase3_plus_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPopulationProjected" - ) - phase3_plus_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPercentageProjected" - ) - estimated_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="estimatedPopulationProjected" - ) - phase1_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1PopulationProjected" - ) - phase1_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1PercentageProjected" - ) - phase2_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2PopulationProjected" - ) - phase2_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2PercentageProjected" - ) - phase3_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PopulationProjected" - ) - phase3_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PercentageProjected" - ) - phase4_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PopulationProjected" - ) - phase4_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PercentageProjected" - ) - phase5_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5PopulationProjected" - ) - phase5_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5PercentageProjected" - ) - phase3_plus_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( - Field(default=None, alias="phase3PlusPopulationSecondProjected") - ) - phase3_plus_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( - Field(default=None, alias="phase3PlusPercentageSecondProjected") - ) - estimated_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = ( - Field(default=None, alias="estimatedPopulationSecondProjected") - ) - phase1_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1PopulationSecondProjected" - ) - phase1_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase1PercentageSecondProjected" - ) - phase2_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2PopulationSecondProjected" - ) - phase2_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase2PercentageSecondProjected" - ) - phase3_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PopulationSecondProjected" - ) - phase3_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PercentageSecondProjected" - ) - phase4_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PopulationSecondProjected" - ) - phase4_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PercentageSecondProjected" - ) - phase5_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5PopulationSecondProjected" - ) - phase5_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5PercentageSecondProjected" - ) + population_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationPercentage") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + estimated_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulation") + phase1_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Population") + phase1_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1Percentage") + phase2_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Population") + phase2_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2Percentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationProjected") + phase3_plus_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageProjected") + estimated_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationProjected") + phase1_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationProjected") + phase1_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageProjected") + phase2_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationProjected") + phase2_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageProjected") + phase3_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationProjected") + phase3_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageProjected") + phase4_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationProjected") + phase4_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageProjected") + phase5_population_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationProjected") + phase5_percentage_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageProjected") + phase3_plus_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulationSecondProjected") + phase3_plus_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentageSecondProjected") + estimated_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="estimatedPopulationSecondProjected") + phase1_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PopulationSecondProjected") + phase1_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase1PercentageSecondProjected") + phase2_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PopulationSecondProjected") + phase2_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase2PercentageSecondProjected") + phase3_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PopulationSecondProjected") + phase3_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PercentageSecondProjected") + phase4_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PopulationSecondProjected") + phase4_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PercentageSecondProjected") + phase5_population_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PopulationSecondProjected") + phase5_percentage_second_projected: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5PercentageSecondProjected") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "analysisId", - "analysisTitle", - "iso3Alpha3", - "countryName", - "analysisDate", - "StartDate_CurrentPeriod", - "EndDate_CurrentPeriod", - "StartDate_ProjectedPeriod", - "EndDate_ProjectedPeriod", - "StartDate_SecondProjectedPeriod", - "EndDate_SecondProjectedPeriod", - "population", - "populationPercentage", - "phase3PlusPopulation", - "phase3PlusPercentage", - "estimatedPopulation", - "phase1Population", - "phase1Percentage", - "phase2Population", - "phase2Percentage", - "phase3Population", - "phase3Percentage", - "phase4Population", - "phase4Percentage", - "phase5Population", - "phase5Percentage", - "phase3PlusPopulationProjected", - "phase3PlusPercentageProjected", - "estimatedPopulationProjected", - "phase1PopulationProjected", - "phase1PercentageProjected", - "phase2PopulationProjected", - "phase2PercentageProjected", - "phase3PopulationProjected", - "phase3PercentageProjected", - "phase4PopulationProjected", - "phase4PercentageProjected", - "phase5PopulationProjected", - "phase5PercentageProjected", - "phase3PlusPopulationSecondProjected", - "phase3PlusPercentageSecondProjected", - "estimatedPopulationSecondProjected", - "phase1PopulationSecondProjected", - "phase1PercentageSecondProjected", - "phase2PopulationSecondProjected", - "phase2PercentageSecondProjected", - "phase3PopulationSecondProjected", - "phase3PercentageSecondProjected", - "phase4PopulationSecondProjected", - "phase4PercentageSecondProjected", - "phase5PopulationSecondProjected", - "phase5PercentageSecondProjected", - ] + __properties: ClassVar[List[str]] = ["analysisId", "analysisTitle", "iso3Alpha3", "countryName", "analysisDate", "StartDate_CurrentPeriod", "EndDate_CurrentPeriod", "StartDate_ProjectedPeriod", "EndDate_ProjectedPeriod", "StartDate_SecondProjectedPeriod", "EndDate_SecondProjectedPeriod", "population", "populationPercentage", "phase3PlusPopulation", "phase3PlusPercentage", "estimatedPopulation", "phase1Population", "phase1Percentage", "phase2Population", "phase2Percentage", "phase3Population", "phase3Percentage", "phase4Population", "phase4Percentage", "phase5Population", "phase5Percentage", "phase3PlusPopulationProjected", "phase3PlusPercentageProjected", "estimatedPopulationProjected", "phase1PopulationProjected", "phase1PercentageProjected", "phase2PopulationProjected", "phase2PercentageProjected", "phase3PopulationProjected", "phase3PercentageProjected", "phase4PopulationProjected", "phase4PercentageProjected", "phase5PopulationProjected", "phase5PercentageProjected", "phase3PlusPopulationSecondProjected", "phase3PlusPercentageSecondProjected", "estimatedPopulationSecondProjected", "phase1PopulationSecondProjected", "phase1PercentageSecondProjected", "phase2PopulationSecondProjected", "phase2PercentageSecondProjected", "phase3PopulationSecondProjected", "phase3PercentageSecondProjected", "phase4PopulationSecondProjected", "phase4PercentageSecondProjected", "phase5PopulationSecondProjected", "phase5PercentageSecondProjected"] model_config = ConfigDict( populate_by_name=True, @@ -235,6 +89,7 @@ class IpcHistoricalDatumDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -260,11 +115,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -279,395 +132,257 @@ def to_dict(self) -> Dict[str, Any]: # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict["analysisTitle"] = None + _dict['analysisTitle'] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict["analysisDate"] = None + _dict['analysisDate'] = None # set to None if start_date_current_period (nullable) is None # and model_fields_set contains the field - if ( - self.start_date_current_period is None - and "start_date_current_period" in self.model_fields_set - ): - _dict["StartDate_CurrentPeriod"] = None + if self.start_date_current_period is None and "start_date_current_period" in self.model_fields_set: + _dict['StartDate_CurrentPeriod'] = None # set to None if end_date_current_period (nullable) is None # and model_fields_set contains the field - if ( - self.end_date_current_period is None - and "end_date_current_period" in self.model_fields_set - ): - _dict["EndDate_CurrentPeriod"] = None + if self.end_date_current_period is None and "end_date_current_period" in self.model_fields_set: + _dict['EndDate_CurrentPeriod'] = None # set to None if start_date_projected_period (nullable) is None # and model_fields_set contains the field - if ( - self.start_date_projected_period is None - and "start_date_projected_period" in self.model_fields_set - ): - _dict["StartDate_ProjectedPeriod"] = None + if self.start_date_projected_period is None and "start_date_projected_period" in self.model_fields_set: + _dict['StartDate_ProjectedPeriod'] = None # set to None if end_date_projected_period (nullable) is None # and model_fields_set contains the field - if ( - self.end_date_projected_period is None - and "end_date_projected_period" in self.model_fields_set - ): - _dict["EndDate_ProjectedPeriod"] = None + if self.end_date_projected_period is None and "end_date_projected_period" in self.model_fields_set: + _dict['EndDate_ProjectedPeriod'] = None # set to None if start_date_second_projected_period (nullable) is None # and model_fields_set contains the field - if ( - self.start_date_second_projected_period is None - and "start_date_second_projected_period" in self.model_fields_set - ): - _dict["StartDate_SecondProjectedPeriod"] = None + if self.start_date_second_projected_period is None and "start_date_second_projected_period" in self.model_fields_set: + _dict['StartDate_SecondProjectedPeriod'] = None # set to None if end_date_second_projected_period (nullable) is None # and model_fields_set contains the field - if ( - self.end_date_second_projected_period is None - and "end_date_second_projected_period" in self.model_fields_set - ): - _dict["EndDate_SecondProjectedPeriod"] = None + if self.end_date_second_projected_period is None and "end_date_second_projected_period" in self.model_fields_set: + _dict['EndDate_SecondProjectedPeriod'] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict["population"] = None + _dict['population'] = None # set to None if population_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.population_percentage is None - and "population_percentage" in self.model_fields_set - ): - _dict["populationPercentage"] = None + if self.population_percentage is None and "population_percentage" in self.model_fields_set: + _dict['populationPercentage'] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population is None - and "phase3_plus_population" in self.model_fields_set - ): - _dict["phase3PlusPopulation"] = None + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_percentage is None - and "phase3_plus_percentage" in self.model_fields_set - ): - _dict["phase3PlusPercentage"] = None + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None # set to None if estimated_population (nullable) is None # and model_fields_set contains the field - if ( - self.estimated_population is None - and "estimated_population" in self.model_fields_set - ): - _dict["estimatedPopulation"] = None + if self.estimated_population is None and "estimated_population" in self.model_fields_set: + _dict['estimatedPopulation'] = None # set to None if phase1_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_population is None - and "phase1_population" in self.model_fields_set - ): - _dict["phase1Population"] = None + if self.phase1_population is None and "phase1_population" in self.model_fields_set: + _dict['phase1Population'] = None # set to None if phase1_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_percentage is None - and "phase1_percentage" in self.model_fields_set - ): - _dict["phase1Percentage"] = None + if self.phase1_percentage is None and "phase1_percentage" in self.model_fields_set: + _dict['phase1Percentage'] = None # set to None if phase2_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_population is None - and "phase2_population" in self.model_fields_set - ): - _dict["phase2Population"] = None + if self.phase2_population is None and "phase2_population" in self.model_fields_set: + _dict['phase2Population'] = None # set to None if phase2_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_percentage is None - and "phase2_percentage" in self.model_fields_set - ): - _dict["phase2Percentage"] = None + if self.phase2_percentage is None and "phase2_percentage" in self.model_fields_set: + _dict['phase2Percentage'] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population is None - and "phase3_population" in self.model_fields_set - ): - _dict["phase3Population"] = None + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_percentage is None - and "phase3_percentage" in self.model_fields_set - ): - _dict["phase3Percentage"] = None + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population is None - and "phase4_population" in self.model_fields_set - ): - _dict["phase4Population"] = None + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_percentage is None - and "phase4_percentage" in self.model_fields_set - ): - _dict["phase4Percentage"] = None + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population is None - and "phase5_population" in self.model_fields_set - ): - _dict["phase5Population"] = None + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_percentage is None - and "phase5_percentage" in self.model_fields_set - ): - _dict["phase5Percentage"] = None + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None # set to None if phase3_plus_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population_projected is None - and "phase3_plus_population_projected" in self.model_fields_set - ): - _dict["phase3PlusPopulationProjected"] = None + if self.phase3_plus_population_projected is None and "phase3_plus_population_projected" in self.model_fields_set: + _dict['phase3PlusPopulationProjected'] = None # set to None if phase3_plus_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_percentage_projected is None - and "phase3_plus_percentage_projected" in self.model_fields_set - ): - _dict["phase3PlusPercentageProjected"] = None + if self.phase3_plus_percentage_projected is None and "phase3_plus_percentage_projected" in self.model_fields_set: + _dict['phase3PlusPercentageProjected'] = None # set to None if estimated_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.estimated_population_projected is None - and "estimated_population_projected" in self.model_fields_set - ): - _dict["estimatedPopulationProjected"] = None + if self.estimated_population_projected is None and "estimated_population_projected" in self.model_fields_set: + _dict['estimatedPopulationProjected'] = None # set to None if phase1_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_population_projected is None - and "phase1_population_projected" in self.model_fields_set - ): - _dict["phase1PopulationProjected"] = None + if self.phase1_population_projected is None and "phase1_population_projected" in self.model_fields_set: + _dict['phase1PopulationProjected'] = None # set to None if phase1_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_percentage_projected is None - and "phase1_percentage_projected" in self.model_fields_set - ): - _dict["phase1PercentageProjected"] = None + if self.phase1_percentage_projected is None and "phase1_percentage_projected" in self.model_fields_set: + _dict['phase1PercentageProjected'] = None # set to None if phase2_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_population_projected is None - and "phase2_population_projected" in self.model_fields_set - ): - _dict["phase2PopulationProjected"] = None + if self.phase2_population_projected is None and "phase2_population_projected" in self.model_fields_set: + _dict['phase2PopulationProjected'] = None # set to None if phase2_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_percentage_projected is None - and "phase2_percentage_projected" in self.model_fields_set - ): - _dict["phase2PercentageProjected"] = None + if self.phase2_percentage_projected is None and "phase2_percentage_projected" in self.model_fields_set: + _dict['phase2PercentageProjected'] = None # set to None if phase3_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population_projected is None - and "phase3_population_projected" in self.model_fields_set - ): - _dict["phase3PopulationProjected"] = None + if self.phase3_population_projected is None and "phase3_population_projected" in self.model_fields_set: + _dict['phase3PopulationProjected'] = None # set to None if phase3_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_percentage_projected is None - and "phase3_percentage_projected" in self.model_fields_set - ): - _dict["phase3PercentageProjected"] = None + if self.phase3_percentage_projected is None and "phase3_percentage_projected" in self.model_fields_set: + _dict['phase3PercentageProjected'] = None # set to None if phase4_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population_projected is None - and "phase4_population_projected" in self.model_fields_set - ): - _dict["phase4PopulationProjected"] = None + if self.phase4_population_projected is None and "phase4_population_projected" in self.model_fields_set: + _dict['phase4PopulationProjected'] = None # set to None if phase4_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_percentage_projected is None - and "phase4_percentage_projected" in self.model_fields_set - ): - _dict["phase4PercentageProjected"] = None + if self.phase4_percentage_projected is None and "phase4_percentage_projected" in self.model_fields_set: + _dict['phase4PercentageProjected'] = None # set to None if phase5_population_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population_projected is None - and "phase5_population_projected" in self.model_fields_set - ): - _dict["phase5PopulationProjected"] = None + if self.phase5_population_projected is None and "phase5_population_projected" in self.model_fields_set: + _dict['phase5PopulationProjected'] = None # set to None if phase5_percentage_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_percentage_projected is None - and "phase5_percentage_projected" in self.model_fields_set - ): - _dict["phase5PercentageProjected"] = None + if self.phase5_percentage_projected is None and "phase5_percentage_projected" in self.model_fields_set: + _dict['phase5PercentageProjected'] = None # set to None if phase3_plus_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population_second_projected is None - and "phase3_plus_population_second_projected" in self.model_fields_set - ): - _dict["phase3PlusPopulationSecondProjected"] = None + if self.phase3_plus_population_second_projected is None and "phase3_plus_population_second_projected" in self.model_fields_set: + _dict['phase3PlusPopulationSecondProjected'] = None # set to None if phase3_plus_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_percentage_second_projected is None - and "phase3_plus_percentage_second_projected" in self.model_fields_set - ): - _dict["phase3PlusPercentageSecondProjected"] = None + if self.phase3_plus_percentage_second_projected is None and "phase3_plus_percentage_second_projected" in self.model_fields_set: + _dict['phase3PlusPercentageSecondProjected'] = None # set to None if estimated_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.estimated_population_second_projected is None - and "estimated_population_second_projected" in self.model_fields_set - ): - _dict["estimatedPopulationSecondProjected"] = None + if self.estimated_population_second_projected is None and "estimated_population_second_projected" in self.model_fields_set: + _dict['estimatedPopulationSecondProjected'] = None # set to None if phase1_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_population_second_projected is None - and "phase1_population_second_projected" in self.model_fields_set - ): - _dict["phase1PopulationSecondProjected"] = None + if self.phase1_population_second_projected is None and "phase1_population_second_projected" in self.model_fields_set: + _dict['phase1PopulationSecondProjected'] = None # set to None if phase1_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase1_percentage_second_projected is None - and "phase1_percentage_second_projected" in self.model_fields_set - ): - _dict["phase1PercentageSecondProjected"] = None + if self.phase1_percentage_second_projected is None and "phase1_percentage_second_projected" in self.model_fields_set: + _dict['phase1PercentageSecondProjected'] = None # set to None if phase2_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_population_second_projected is None - and "phase2_population_second_projected" in self.model_fields_set - ): - _dict["phase2PopulationSecondProjected"] = None + if self.phase2_population_second_projected is None and "phase2_population_second_projected" in self.model_fields_set: + _dict['phase2PopulationSecondProjected'] = None # set to None if phase2_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase2_percentage_second_projected is None - and "phase2_percentage_second_projected" in self.model_fields_set - ): - _dict["phase2PercentageSecondProjected"] = None + if self.phase2_percentage_second_projected is None and "phase2_percentage_second_projected" in self.model_fields_set: + _dict['phase2PercentageSecondProjected'] = None # set to None if phase3_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population_second_projected is None - and "phase3_population_second_projected" in self.model_fields_set - ): - _dict["phase3PopulationSecondProjected"] = None + if self.phase3_population_second_projected is None and "phase3_population_second_projected" in self.model_fields_set: + _dict['phase3PopulationSecondProjected'] = None # set to None if phase3_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_percentage_second_projected is None - and "phase3_percentage_second_projected" in self.model_fields_set - ): - _dict["phase3PercentageSecondProjected"] = None + if self.phase3_percentage_second_projected is None and "phase3_percentage_second_projected" in self.model_fields_set: + _dict['phase3PercentageSecondProjected'] = None # set to None if phase4_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population_second_projected is None - and "phase4_population_second_projected" in self.model_fields_set - ): - _dict["phase4PopulationSecondProjected"] = None + if self.phase4_population_second_projected is None and "phase4_population_second_projected" in self.model_fields_set: + _dict['phase4PopulationSecondProjected'] = None # set to None if phase4_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_percentage_second_projected is None - and "phase4_percentage_second_projected" in self.model_fields_set - ): - _dict["phase4PercentageSecondProjected"] = None + if self.phase4_percentage_second_projected is None and "phase4_percentage_second_projected" in self.model_fields_set: + _dict['phase4PercentageSecondProjected'] = None # set to None if phase5_population_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population_second_projected is None - and "phase5_population_second_projected" in self.model_fields_set - ): - _dict["phase5PopulationSecondProjected"] = None + if self.phase5_population_second_projected is None and "phase5_population_second_projected" in self.model_fields_set: + _dict['phase5PopulationSecondProjected'] = None # set to None if phase5_percentage_second_projected (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_percentage_second_projected is None - and "phase5_percentage_second_projected" in self.model_fields_set - ): - _dict["phase5PercentageSecondProjected"] = None + if self.phase5_percentage_second_projected is None and "phase5_percentage_second_projected" in self.model_fields_set: + _dict['phase5PercentageSecondProjected'] = None return _dict @@ -680,99 +395,65 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "analysisId": obj.get("analysisId"), - "analysisTitle": obj.get("analysisTitle"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "analysisDate": obj.get("analysisDate"), - "StartDate_CurrentPeriod": obj.get("StartDate_CurrentPeriod"), - "EndDate_CurrentPeriod": obj.get("EndDate_CurrentPeriod"), - "StartDate_ProjectedPeriod": obj.get("StartDate_ProjectedPeriod"), - "EndDate_ProjectedPeriod": obj.get("EndDate_ProjectedPeriod"), - "StartDate_SecondProjectedPeriod": obj.get( - "StartDate_SecondProjectedPeriod" - ), - "EndDate_SecondProjectedPeriod": obj.get( - "EndDate_SecondProjectedPeriod" - ), - "population": obj.get("population"), - "populationPercentage": obj.get("populationPercentage"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "estimatedPopulation": obj.get("estimatedPopulation"), - "phase1Population": obj.get("phase1Population"), - "phase1Percentage": obj.get("phase1Percentage"), - "phase2Population": obj.get("phase2Population"), - "phase2Percentage": obj.get("phase2Percentage"), - "phase3Population": obj.get("phase3Population"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Population": obj.get("phase4Population"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Population": obj.get("phase5Population"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPopulationProjected": obj.get( - "phase3PlusPopulationProjected" - ), - "phase3PlusPercentageProjected": obj.get( - "phase3PlusPercentageProjected" - ), - "estimatedPopulationProjected": obj.get("estimatedPopulationProjected"), - "phase1PopulationProjected": obj.get("phase1PopulationProjected"), - "phase1PercentageProjected": obj.get("phase1PercentageProjected"), - "phase2PopulationProjected": obj.get("phase2PopulationProjected"), - "phase2PercentageProjected": obj.get("phase2PercentageProjected"), - "phase3PopulationProjected": obj.get("phase3PopulationProjected"), - "phase3PercentageProjected": obj.get("phase3PercentageProjected"), - "phase4PopulationProjected": obj.get("phase4PopulationProjected"), - "phase4PercentageProjected": obj.get("phase4PercentageProjected"), - "phase5PopulationProjected": obj.get("phase5PopulationProjected"), - "phase5PercentageProjected": obj.get("phase5PercentageProjected"), - "phase3PlusPopulationSecondProjected": obj.get( - "phase3PlusPopulationSecondProjected" - ), - "phase3PlusPercentageSecondProjected": obj.get( - "phase3PlusPercentageSecondProjected" - ), - "estimatedPopulationSecondProjected": obj.get( - "estimatedPopulationSecondProjected" - ), - "phase1PopulationSecondProjected": obj.get( - "phase1PopulationSecondProjected" - ), - "phase1PercentageSecondProjected": obj.get( - "phase1PercentageSecondProjected" - ), - "phase2PopulationSecondProjected": obj.get( - "phase2PopulationSecondProjected" - ), - "phase2PercentageSecondProjected": obj.get( - "phase2PercentageSecondProjected" - ), - "phase3PopulationSecondProjected": obj.get( - "phase3PopulationSecondProjected" - ), - "phase3PercentageSecondProjected": obj.get( - "phase3PercentageSecondProjected" - ), - "phase4PopulationSecondProjected": obj.get( - "phase4PopulationSecondProjected" - ), - "phase4PercentageSecondProjected": obj.get( - "phase4PercentageSecondProjected" - ), - "phase5PopulationSecondProjected": obj.get( - "phase5PopulationSecondProjected" - ), - "phase5PercentageSecondProjected": obj.get( - "phase5PercentageSecondProjected" - ), - } - ) + _obj = cls.model_validate({ + "analysisId": obj.get("analysisId"), + "analysisTitle": obj.get("analysisTitle"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "analysisDate": obj.get("analysisDate"), + "StartDate_CurrentPeriod": obj.get("StartDate_CurrentPeriod"), + "EndDate_CurrentPeriod": obj.get("EndDate_CurrentPeriod"), + "StartDate_ProjectedPeriod": obj.get("StartDate_ProjectedPeriod"), + "EndDate_ProjectedPeriod": obj.get("EndDate_ProjectedPeriod"), + "StartDate_SecondProjectedPeriod": obj.get("StartDate_SecondProjectedPeriod"), + "EndDate_SecondProjectedPeriod": obj.get("EndDate_SecondProjectedPeriod"), + "population": obj.get("population"), + "populationPercentage": obj.get("populationPercentage"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "estimatedPopulation": obj.get("estimatedPopulation"), + "phase1Population": obj.get("phase1Population"), + "phase1Percentage": obj.get("phase1Percentage"), + "phase2Population": obj.get("phase2Population"), + "phase2Percentage": obj.get("phase2Percentage"), + "phase3Population": obj.get("phase3Population"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Population": obj.get("phase4Population"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Population": obj.get("phase5Population"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPopulationProjected": obj.get("phase3PlusPopulationProjected"), + "phase3PlusPercentageProjected": obj.get("phase3PlusPercentageProjected"), + "estimatedPopulationProjected": obj.get("estimatedPopulationProjected"), + "phase1PopulationProjected": obj.get("phase1PopulationProjected"), + "phase1PercentageProjected": obj.get("phase1PercentageProjected"), + "phase2PopulationProjected": obj.get("phase2PopulationProjected"), + "phase2PercentageProjected": obj.get("phase2PercentageProjected"), + "phase3PopulationProjected": obj.get("phase3PopulationProjected"), + "phase3PercentageProjected": obj.get("phase3PercentageProjected"), + "phase4PopulationProjected": obj.get("phase4PopulationProjected"), + "phase4PercentageProjected": obj.get("phase4PercentageProjected"), + "phase5PopulationProjected": obj.get("phase5PopulationProjected"), + "phase5PercentageProjected": obj.get("phase5PercentageProjected"), + "phase3PlusPopulationSecondProjected": obj.get("phase3PlusPopulationSecondProjected"), + "phase3PlusPercentageSecondProjected": obj.get("phase3PlusPercentageSecondProjected"), + "estimatedPopulationSecondProjected": obj.get("estimatedPopulationSecondProjected"), + "phase1PopulationSecondProjected": obj.get("phase1PopulationSecondProjected"), + "phase1PercentageSecondProjected": obj.get("phase1PercentageSecondProjected"), + "phase2PopulationSecondProjected": obj.get("phase2PopulationSecondProjected"), + "phase2PercentageSecondProjected": obj.get("phase2PercentageSecondProjected"), + "phase3PopulationSecondProjected": obj.get("phase3PopulationSecondProjected"), + "phase3PercentageSecondProjected": obj.get("phase3PercentageSecondProjected"), + "phase4PopulationSecondProjected": obj.get("phase4PopulationSecondProjected"), + "phase4PercentageSecondProjected": obj.get("phase4PercentageSecondProjected"), + "phase5PopulationSecondProjected": obj.get("phase5PopulationSecondProjected"), + "phase5PercentageSecondProjected": obj.get("phase5PercentageSecondProjected") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py index 4fceb9d..2e952f6 100644 --- a/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py +++ b/data_bridges_client/models/ipc_historical_datum_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class IpcHistoricalDatumDtoPagedResult(BaseModel): """ IpcHistoricalDatumDtoPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[IpcHistoricalDatumDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class IpcHistoricalDatumDtoPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - IpcHistoricalDatumDto.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [IpcHistoricalDatumDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py index 260dec4..a27e563 100644 --- a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,43 +23,20 @@ from typing import Optional, Set from typing_extensions import Self - class IpcchAndEquivalentPeaksDTO(BaseModel): """ IpcchAndEquivalentPeaksDTO - """ # noqa: E501 - - regional_bureau_id: Optional[StrictInt] = Field( - default=None, alias="regionalBureauID" - ) - regional_bureau_name: Optional[StrictStr] = Field( - default=None, alias="regionalBureauName" - ) + """ # noqa: E501 + regional_bureau_id: Optional[StrictInt] = Field(default=None, alias="regionalBureauID") + regional_bureau_name: Optional[StrictStr] = Field(default=None, alias="regionalBureauName") iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - phase3_population: Optional[StrictInt] = Field( - default=None, alias="phase3Population" - ) - phase4_population: Optional[StrictInt] = Field( - default=None, alias="phase4Population" - ) - phase5_population: Optional[StrictInt] = Field( - default=None, alias="phase5Population" - ) - phase3_plus_population: Optional[StrictInt] = Field( - default=None, alias="phase3PlusPopulation" - ) + phase3_population: Optional[StrictInt] = Field(default=None, alias="phase3Population") + phase4_population: Optional[StrictInt] = Field(default=None, alias="phase4Population") + phase5_population: Optional[StrictInt] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[StrictInt] = Field(default=None, alias="phase3PlusPopulation") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "regionalBureauID", - "regionalBureauName", - "iso3Alpha3", - "countryName", - "phase3Population", - "phase4Population", - "phase5Population", - "phase3PlusPopulation", - ] + __properties: ClassVar[List[str]] = ["regionalBureauID", "regionalBureauName", "iso3Alpha3", "countryName", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation"] model_config = ConfigDict( populate_by_name=True, @@ -66,6 +44,7 @@ class IpcchAndEquivalentPeaksDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -91,11 +70,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -109,61 +86,43 @@ def to_dict(self) -> Dict[str, Any]: # set to None if regional_bureau_id (nullable) is None # and model_fields_set contains the field - if ( - self.regional_bureau_id is None - and "regional_bureau_id" in self.model_fields_set - ): - _dict["regionalBureauID"] = None + if self.regional_bureau_id is None and "regional_bureau_id" in self.model_fields_set: + _dict['regionalBureauID'] = None # set to None if regional_bureau_name (nullable) is None # and model_fields_set contains the field - if ( - self.regional_bureau_name is None - and "regional_bureau_name" in self.model_fields_set - ): - _dict["regionalBureauName"] = None + if self.regional_bureau_name is None and "regional_bureau_name" in self.model_fields_set: + _dict['regionalBureauName'] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population is None - and "phase3_population" in self.model_fields_set - ): - _dict["phase3Population"] = None + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population is None - and "phase4_population" in self.model_fields_set - ): - _dict["phase4Population"] = None + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population is None - and "phase5_population" in self.model_fields_set - ): - _dict["phase5Population"] = None + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population is None - and "phase3_plus_population" in self.model_fields_set - ): - _dict["phase3PlusPopulation"] = None + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None return _dict @@ -176,21 +135,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "regionalBureauID": obj.get("regionalBureauID"), - "regionalBureauName": obj.get("regionalBureauName"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - } - ) + _obj = cls.model_validate({ + "regionalBureauID": obj.get("regionalBureauID"), + "regionalBureauName": obj.get("regionalBureauName"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py index 81cbee1..362cad9 100644 --- a/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_and_equivalent_peaks_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -19,18 +20,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( - IpcchAndEquivalentPeaksDTO, -) +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO from typing import Optional, Set from typing_extensions import Self - class IpcchAndEquivalentPeaksDTOPagedResult(BaseModel): """ IpcchAndEquivalentPeaksDTOPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[IpcchAndEquivalentPeaksDTO]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -43,6 +40,7 @@ class IpcchAndEquivalentPeaksDTOPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,21 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - IpcchAndEquivalentPeaksDTO.from_dict(_item) - for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [IpcchAndEquivalentPeaksDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_base_dto.py b/data_bridges_client/models/ipcch_base_dto.py index 0a5e3a3..134699d 100644 --- a/data_bridges_client/models/ipcch_base_dto.py +++ b/data_bridges_client/models/ipcch_base_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,89 +24,35 @@ from typing import Optional, Set from typing_extensions import Self - class IpcchBaseDto(BaseModel): """ IpcchBaseDto - """ # noqa: E501 - + """ # noqa: E501 iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - population_group_id: Optional[StrictInt] = Field( - default=None, alias="populationGroupId" - ) - population_group_name: Optional[StrictStr] = Field( - default=None, alias="populationGroupName" - ) + population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") + population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") period_start: Optional[datetime] = Field(default=None, alias="periodStart") period_end: Optional[datetime] = Field(default=None, alias="periodEnd") period_type: Optional[StrictStr] = Field(default=None, alias="periodType") population: Optional[Union[StrictFloat, StrictInt]] = None - population_analysed: Optional[StrictInt] = Field( - default=None, alias="populationAnalysed" - ) - population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="populationAnalysedPercentage" - ) - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Population" - ) - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Population" - ) - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Population" - ) - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPopulation" - ) - phase4_plus_population: Optional[StrictInt] = Field( - default=None, alias="phase4PlusPopulation" - ) - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Percentage" - ) - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Percentage" - ) - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Percentage" - ) - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPercentage" - ) - phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PlusPercentage" - ) + population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "iso3Alpha3", - "countryName", - "populationGroupId", - "populationGroupName", - "analysisTitle", - "analysisDate", - "periodStart", - "periodEnd", - "periodType", - "population", - "populationAnalysed", - "populationAnalysedPercentage", - "phase3Population", - "phase4Population", - "phase5Population", - "phase3PlusPopulation", - "phase4PlusPopulation", - "phase3Percentage", - "phase4Percentage", - "phase5Percentage", - "phase3PlusPercentage", - "phase4PlusPercentage", - "dataSource", - ] + __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource"] model_config = ConfigDict( populate_by_name=True, @@ -113,6 +60,7 @@ class IpcchBaseDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -138,11 +86,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -157,151 +103,112 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if population_group_name (nullable) is None # and model_fields_set contains the field - if ( - self.population_group_name is None - and "population_group_name" in self.model_fields_set - ): - _dict["populationGroupName"] = None + if self.population_group_name is None and "population_group_name" in self.model_fields_set: + _dict['populationGroupName'] = None # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict["analysisTitle"] = None + _dict['analysisTitle'] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict["analysisDate"] = None + _dict['analysisDate'] = None # set to None if period_start (nullable) is None # and model_fields_set contains the field if self.period_start is None and "period_start" in self.model_fields_set: - _dict["periodStart"] = None + _dict['periodStart'] = None # set to None if period_end (nullable) is None # and model_fields_set contains the field if self.period_end is None and "period_end" in self.model_fields_set: - _dict["periodEnd"] = None + _dict['periodEnd'] = None # set to None if period_type (nullable) is None # and model_fields_set contains the field if self.period_type is None and "period_type" in self.model_fields_set: - _dict["periodType"] = None + _dict['periodType'] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict["population"] = None + _dict['population'] = None # set to None if population_analysed (nullable) is None # and model_fields_set contains the field - if ( - self.population_analysed is None - and "population_analysed" in self.model_fields_set - ): - _dict["populationAnalysed"] = None + if self.population_analysed is None and "population_analysed" in self.model_fields_set: + _dict['populationAnalysed'] = None # set to None if population_analysed_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.population_analysed_percentage is None - and "population_analysed_percentage" in self.model_fields_set - ): - _dict["populationAnalysedPercentage"] = None + if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: + _dict['populationAnalysedPercentage'] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population is None - and "phase3_population" in self.model_fields_set - ): - _dict["phase3Population"] = None + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population is None - and "phase4_population" in self.model_fields_set - ): - _dict["phase4Population"] = None + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population is None - and "phase5_population" in self.model_fields_set - ): - _dict["phase5Population"] = None + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population is None - and "phase3_plus_population" in self.model_fields_set - ): - _dict["phase3PlusPopulation"] = None + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None # set to None if phase4_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_plus_population is None - and "phase4_plus_population" in self.model_fields_set - ): - _dict["phase4PlusPopulation"] = None + if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: + _dict['phase4PlusPopulation'] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_percentage is None - and "phase3_percentage" in self.model_fields_set - ): - _dict["phase3Percentage"] = None + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_percentage is None - and "phase4_percentage" in self.model_fields_set - ): - _dict["phase4Percentage"] = None + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_percentage is None - and "phase5_percentage" in self.model_fields_set - ): - _dict["phase5Percentage"] = None + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_percentage is None - and "phase3_plus_percentage" in self.model_fields_set - ): - _dict["phase3PlusPercentage"] = None + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None # set to None if phase4_plus_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_plus_percentage is None - and "phase4_plus_percentage" in self.model_fields_set - ): - _dict["phase4PlusPercentage"] = None + if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: + _dict['phase4PlusPercentage'] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict["dataSource"] = None + _dict['dataSource'] = None return _dict @@ -314,36 +221,36 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "populationGroupId": obj.get("populationGroupId"), - "populationGroupName": obj.get("populationGroupName"), - "analysisTitle": obj.get("analysisTitle"), - "analysisDate": obj.get("analysisDate"), - "periodStart": obj.get("periodStart"), - "periodEnd": obj.get("periodEnd"), - "periodType": obj.get("periodType"), - "population": obj.get("population"), - "populationAnalysed": obj.get("populationAnalysed"), - "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase4PlusPopulation": obj.get("phase4PlusPopulation"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "phase4PlusPercentage": obj.get("phase4PlusPercentage"), - "dataSource": obj.get("dataSource"), - } - ) + _obj = cls.model_validate({ + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_base_dto_paged_result.py b/data_bridges_client/models/ipcch_base_dto_paged_result.py index 7653d1e..cc2ca2b 100644 --- a/data_bridges_client/models/ipcch_base_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_base_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class IpcchBaseDtoPagedResult(BaseModel): """ IpcchBaseDtoPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[IpcchBaseDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class IpcchBaseDtoPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [IpcchBaseDto.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [IpcchBaseDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_peaks_dto.py b/data_bridges_client/models/ipcch_peaks_dto.py index c705625..abdcf69 100644 --- a/data_bridges_client/models/ipcch_peaks_dto.py +++ b/data_bridges_client/models/ipcch_peaks_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,91 +24,36 @@ from typing import Optional, Set from typing_extensions import Self - class IpcchPeaksDto(BaseModel): """ IpcchPeaksDto - """ # noqa: E501 - + """ # noqa: E501 iso3_alpha3: Optional[StrictStr] = Field(default=None, alias="iso3Alpha3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - population_group_id: Optional[StrictInt] = Field( - default=None, alias="populationGroupId" - ) - population_group_name: Optional[StrictStr] = Field( - default=None, alias="populationGroupName" - ) + population_group_id: Optional[StrictInt] = Field(default=None, alias="populationGroupId") + population_group_name: Optional[StrictStr] = Field(default=None, alias="populationGroupName") analysis_title: Optional[StrictStr] = Field(default=None, alias="analysisTitle") analysis_date: Optional[datetime] = Field(default=None, alias="analysisDate") period_start: Optional[datetime] = Field(default=None, alias="periodStart") period_end: Optional[datetime] = Field(default=None, alias="periodEnd") period_type: Optional[StrictStr] = Field(default=None, alias="periodType") population: Optional[Union[StrictFloat, StrictInt]] = None - population_analysed: Optional[StrictInt] = Field( - default=None, alias="populationAnalysed" - ) - population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="populationAnalysedPercentage" - ) - phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Population" - ) - phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Population" - ) - phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Population" - ) - phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPopulation" - ) - phase4_plus_population: Optional[StrictInt] = Field( - default=None, alias="phase4PlusPopulation" - ) - phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3Percentage" - ) - phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4Percentage" - ) - phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase5Percentage" - ) - phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase3PlusPercentage" - ) - phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="phase4PlusPercentage" - ) + population_analysed: Optional[StrictInt] = Field(default=None, alias="populationAnalysed") + population_analysed_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="populationAnalysedPercentage") + phase3_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Population") + phase4_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Population") + phase5_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Population") + phase3_plus_population: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPopulation") + phase4_plus_population: Optional[StrictInt] = Field(default=None, alias="phase4PlusPopulation") + phase3_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3Percentage") + phase4_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4Percentage") + phase5_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase5Percentage") + phase3_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase3PlusPercentage") + phase4_plus_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="phase4PlusPercentage") data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") reference_year: Optional[StrictInt] = Field(default=None, alias="referenceYear") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "iso3Alpha3", - "countryName", - "populationGroupId", - "populationGroupName", - "analysisTitle", - "analysisDate", - "periodStart", - "periodEnd", - "periodType", - "population", - "populationAnalysed", - "populationAnalysedPercentage", - "phase3Population", - "phase4Population", - "phase5Population", - "phase3PlusPopulation", - "phase4PlusPopulation", - "phase3Percentage", - "phase4Percentage", - "phase5Percentage", - "phase3PlusPercentage", - "phase4PlusPercentage", - "dataSource", - "referenceYear", - ] + __properties: ClassVar[List[str]] = ["iso3Alpha3", "countryName", "populationGroupId", "populationGroupName", "analysisTitle", "analysisDate", "periodStart", "periodEnd", "periodType", "population", "populationAnalysed", "populationAnalysedPercentage", "phase3Population", "phase4Population", "phase5Population", "phase3PlusPopulation", "phase4PlusPopulation", "phase3Percentage", "phase4Percentage", "phase5Percentage", "phase3PlusPercentage", "phase4PlusPercentage", "dataSource", "referenceYear"] model_config = ConfigDict( populate_by_name=True, @@ -115,6 +61,7 @@ class IpcchPeaksDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -140,11 +87,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -159,151 +104,112 @@ def to_dict(self) -> Dict[str, Any]: # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if population_group_name (nullable) is None # and model_fields_set contains the field - if ( - self.population_group_name is None - and "population_group_name" in self.model_fields_set - ): - _dict["populationGroupName"] = None + if self.population_group_name is None and "population_group_name" in self.model_fields_set: + _dict['populationGroupName'] = None # set to None if analysis_title (nullable) is None # and model_fields_set contains the field if self.analysis_title is None and "analysis_title" in self.model_fields_set: - _dict["analysisTitle"] = None + _dict['analysisTitle'] = None # set to None if analysis_date (nullable) is None # and model_fields_set contains the field if self.analysis_date is None and "analysis_date" in self.model_fields_set: - _dict["analysisDate"] = None + _dict['analysisDate'] = None # set to None if period_start (nullable) is None # and model_fields_set contains the field if self.period_start is None and "period_start" in self.model_fields_set: - _dict["periodStart"] = None + _dict['periodStart'] = None # set to None if period_end (nullable) is None # and model_fields_set contains the field if self.period_end is None and "period_end" in self.model_fields_set: - _dict["periodEnd"] = None + _dict['periodEnd'] = None # set to None if period_type (nullable) is None # and model_fields_set contains the field if self.period_type is None and "period_type" in self.model_fields_set: - _dict["periodType"] = None + _dict['periodType'] = None # set to None if population (nullable) is None # and model_fields_set contains the field if self.population is None and "population" in self.model_fields_set: - _dict["population"] = None + _dict['population'] = None # set to None if population_analysed (nullable) is None # and model_fields_set contains the field - if ( - self.population_analysed is None - and "population_analysed" in self.model_fields_set - ): - _dict["populationAnalysed"] = None + if self.population_analysed is None and "population_analysed" in self.model_fields_set: + _dict['populationAnalysed'] = None # set to None if population_analysed_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.population_analysed_percentage is None - and "population_analysed_percentage" in self.model_fields_set - ): - _dict["populationAnalysedPercentage"] = None + if self.population_analysed_percentage is None and "population_analysed_percentage" in self.model_fields_set: + _dict['populationAnalysedPercentage'] = None # set to None if phase3_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_population is None - and "phase3_population" in self.model_fields_set - ): - _dict["phase3Population"] = None + if self.phase3_population is None and "phase3_population" in self.model_fields_set: + _dict['phase3Population'] = None # set to None if phase4_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_population is None - and "phase4_population" in self.model_fields_set - ): - _dict["phase4Population"] = None + if self.phase4_population is None and "phase4_population" in self.model_fields_set: + _dict['phase4Population'] = None # set to None if phase5_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_population is None - and "phase5_population" in self.model_fields_set - ): - _dict["phase5Population"] = None + if self.phase5_population is None and "phase5_population" in self.model_fields_set: + _dict['phase5Population'] = None # set to None if phase3_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_population is None - and "phase3_plus_population" in self.model_fields_set - ): - _dict["phase3PlusPopulation"] = None + if self.phase3_plus_population is None and "phase3_plus_population" in self.model_fields_set: + _dict['phase3PlusPopulation'] = None # set to None if phase4_plus_population (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_plus_population is None - and "phase4_plus_population" in self.model_fields_set - ): - _dict["phase4PlusPopulation"] = None + if self.phase4_plus_population is None and "phase4_plus_population" in self.model_fields_set: + _dict['phase4PlusPopulation'] = None # set to None if phase3_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_percentage is None - and "phase3_percentage" in self.model_fields_set - ): - _dict["phase3Percentage"] = None + if self.phase3_percentage is None and "phase3_percentage" in self.model_fields_set: + _dict['phase3Percentage'] = None # set to None if phase4_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_percentage is None - and "phase4_percentage" in self.model_fields_set - ): - _dict["phase4Percentage"] = None + if self.phase4_percentage is None and "phase4_percentage" in self.model_fields_set: + _dict['phase4Percentage'] = None # set to None if phase5_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase5_percentage is None - and "phase5_percentage" in self.model_fields_set - ): - _dict["phase5Percentage"] = None + if self.phase5_percentage is None and "phase5_percentage" in self.model_fields_set: + _dict['phase5Percentage'] = None # set to None if phase3_plus_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase3_plus_percentage is None - and "phase3_plus_percentage" in self.model_fields_set - ): - _dict["phase3PlusPercentage"] = None + if self.phase3_plus_percentage is None and "phase3_plus_percentage" in self.model_fields_set: + _dict['phase3PlusPercentage'] = None # set to None if phase4_plus_percentage (nullable) is None # and model_fields_set contains the field - if ( - self.phase4_plus_percentage is None - and "phase4_plus_percentage" in self.model_fields_set - ): - _dict["phase4PlusPercentage"] = None + if self.phase4_plus_percentage is None and "phase4_plus_percentage" in self.model_fields_set: + _dict['phase4PlusPercentage'] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict["dataSource"] = None + _dict['dataSource'] = None return _dict @@ -316,37 +222,37 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "iso3Alpha3": obj.get("iso3Alpha3"), - "countryName": obj.get("countryName"), - "populationGroupId": obj.get("populationGroupId"), - "populationGroupName": obj.get("populationGroupName"), - "analysisTitle": obj.get("analysisTitle"), - "analysisDate": obj.get("analysisDate"), - "periodStart": obj.get("periodStart"), - "periodEnd": obj.get("periodEnd"), - "periodType": obj.get("periodType"), - "population": obj.get("population"), - "populationAnalysed": obj.get("populationAnalysed"), - "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), - "phase3Population": obj.get("phase3Population"), - "phase4Population": obj.get("phase4Population"), - "phase5Population": obj.get("phase5Population"), - "phase3PlusPopulation": obj.get("phase3PlusPopulation"), - "phase4PlusPopulation": obj.get("phase4PlusPopulation"), - "phase3Percentage": obj.get("phase3Percentage"), - "phase4Percentage": obj.get("phase4Percentage"), - "phase5Percentage": obj.get("phase5Percentage"), - "phase3PlusPercentage": obj.get("phase3PlusPercentage"), - "phase4PlusPercentage": obj.get("phase4PlusPercentage"), - "dataSource": obj.get("dataSource"), - "referenceYear": obj.get("referenceYear"), - } - ) + _obj = cls.model_validate({ + "iso3Alpha3": obj.get("iso3Alpha3"), + "countryName": obj.get("countryName"), + "populationGroupId": obj.get("populationGroupId"), + "populationGroupName": obj.get("populationGroupName"), + "analysisTitle": obj.get("analysisTitle"), + "analysisDate": obj.get("analysisDate"), + "periodStart": obj.get("periodStart"), + "periodEnd": obj.get("periodEnd"), + "periodType": obj.get("periodType"), + "population": obj.get("population"), + "populationAnalysed": obj.get("populationAnalysed"), + "populationAnalysedPercentage": obj.get("populationAnalysedPercentage"), + "phase3Population": obj.get("phase3Population"), + "phase4Population": obj.get("phase4Population"), + "phase5Population": obj.get("phase5Population"), + "phase3PlusPopulation": obj.get("phase3PlusPopulation"), + "phase4PlusPopulation": obj.get("phase4PlusPopulation"), + "phase3Percentage": obj.get("phase3Percentage"), + "phase4Percentage": obj.get("phase4Percentage"), + "phase5Percentage": obj.get("phase5Percentage"), + "phase3PlusPercentage": obj.get("phase3PlusPercentage"), + "phase4PlusPercentage": obj.get("phase4PlusPercentage"), + "dataSource": obj.get("dataSource"), + "referenceYear": obj.get("referenceYear") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/ipcch_peaks_dto_paged_result.py b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py index 74ca6b1..2328d38 100644 --- a/data_bridges_client/models/ipcch_peaks_dto_paged_result.py +++ b/data_bridges_client/models/ipcch_peaks_dto_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class IpcchPeaksDtoPagedResult(BaseModel): """ IpcchPeaksDtoPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[IpcchPeaksDto]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class IpcchPeaksDtoPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [IpcchPeaksDto.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [IpcchPeaksDto.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/key_name_dto.py b/data_bridges_client/models/key_name_dto.py index bbb6326..5faf2ca 100644 --- a/data_bridges_client/models/key_name_dto.py +++ b/data_bridges_client/models/key_name_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class KeyNameDto(BaseModel): """ KeyNameDto - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} @@ -39,6 +38,7 @@ class KeyNameDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -83,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None return _dict @@ -96,10 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"id": obj.get("id"), "name": obj.get("name")}) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/list_item_dto.py b/data_bridges_client/models/list_item_dto.py index fe4c833..9a49452 100644 --- a/data_bridges_client/models/list_item_dto.py +++ b/data_bridges_client/models/list_item_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class ListItemDto(BaseModel): """ ListItemDto - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] label: Optional[StrictStr] @@ -40,6 +39,7 @@ class ListItemDto(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -84,12 +82,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict["label"] = None + _dict['label'] = None return _dict @@ -102,12 +100,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"id": obj.get("id"), "name": obj.get("name"), "label": obj.get("label")} - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "label": obj.get("label") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/market_dto.py b/data_bridges_client/models/market_dto.py index 2b6dede..15ba568 100644 --- a/data_bridges_client/models/market_dto.py +++ b/data_bridges_client/models/market_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,61 +23,21 @@ from typing import Optional, Set from typing_extensions import Self - class MarketDTO(BaseModel): """ MarketDTO - """ # noqa: E501 - - market_id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the market", alias="marketId" - ) - market_name: Optional[StrictStr] = Field( - default=None, description="The name of the market", alias="marketName" - ) - market_local_name: Optional[StrictStr] = Field( - default=None, - description="The local name of the market", - alias="marketLocalName", - ) - market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The decimal latitude", alias="marketLatitude" - ) - market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, description="The decimal longitude", alias="marketLongitude" - ) - admin1_name: Optional[StrictStr] = Field( - default=None, - description="The name of the first level administrative division where the market is placed", - alias="admin1Name", - ) - admin1_code: Optional[StrictInt] = Field( - default=None, - description="The code of the first level administrative division where the market is placed", - alias="admin1Code", - ) - admin2_name: Optional[StrictStr] = Field( - default=None, - description="The name of the second level administrative division where the market is placed", - alias="admin2Name", - ) - admin2_code: Optional[StrictInt] = Field( - default=None, - description="The code of the second level administrative division where the market is placed", - alias="admin2Code", - ) + """ # noqa: E501 + market_id: Optional[StrictInt] = Field(default=None, description="The internal ID of the market", alias="marketId") + market_name: Optional[StrictStr] = Field(default=None, description="The name of the market", alias="marketName") + market_local_name: Optional[StrictStr] = Field(default=None, description="The local name of the market", alias="marketLocalName") + market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The decimal latitude", alias="marketLatitude") + market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The decimal longitude", alias="marketLongitude") + admin1_name: Optional[StrictStr] = Field(default=None, description="The name of the first level administrative division where the market is placed", alias="admin1Name") + admin1_code: Optional[StrictInt] = Field(default=None, description="The code of the first level administrative division where the market is placed", alias="admin1Code") + admin2_name: Optional[StrictStr] = Field(default=None, description="The name of the second level administrative division where the market is placed", alias="admin2Name") + admin2_code: Optional[StrictInt] = Field(default=None, description="The code of the second level administrative division where the market is placed", alias="admin2Code") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "marketId", - "marketName", - "marketLocalName", - "marketLatitude", - "marketLongitude", - "admin1Name", - "admin1Code", - "admin2Name", - "admin2Code", - ] + __properties: ClassVar[List[str]] = ["marketId", "marketName", "marketLocalName", "marketLatitude", "marketLongitude", "admin1Name", "admin1Code", "admin2Name", "admin2Code"] model_config = ConfigDict( populate_by_name=True, @@ -84,6 +45,7 @@ class MarketDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -109,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -128,48 +88,42 @@ def to_dict(self) -> Dict[str, Any]: # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if market_local_name (nullable) is None # and model_fields_set contains the field - if ( - self.market_local_name is None - and "market_local_name" in self.model_fields_set - ): - _dict["marketLocalName"] = None + if self.market_local_name is None and "market_local_name" in self.model_fields_set: + _dict['marketLocalName'] = None # set to None if market_latitude (nullable) is None # and model_fields_set contains the field if self.market_latitude is None and "market_latitude" in self.model_fields_set: - _dict["marketLatitude"] = None + _dict['marketLatitude'] = None # set to None if market_longitude (nullable) is None # and model_fields_set contains the field - if ( - self.market_longitude is None - and "market_longitude" in self.model_fields_set - ): - _dict["marketLongitude"] = None + if self.market_longitude is None and "market_longitude" in self.model_fields_set: + _dict['marketLongitude'] = None # set to None if admin1_name (nullable) is None # and model_fields_set contains the field if self.admin1_name is None and "admin1_name" in self.model_fields_set: - _dict["admin1Name"] = None + _dict['admin1Name'] = None # set to None if admin1_code (nullable) is None # and model_fields_set contains the field if self.admin1_code is None and "admin1_code" in self.model_fields_set: - _dict["admin1Code"] = None + _dict['admin1Code'] = None # set to None if admin2_name (nullable) is None # and model_fields_set contains the field if self.admin2_name is None and "admin2_name" in self.model_fields_set: - _dict["admin2Name"] = None + _dict['admin2Name'] = None # set to None if admin2_code (nullable) is None # and model_fields_set contains the field if self.admin2_code is None and "admin2_code" in self.model_fields_set: - _dict["admin2Code"] = None + _dict['admin2Code'] = None return _dict @@ -182,22 +136,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "marketId": obj.get("marketId"), - "marketName": obj.get("marketName"), - "marketLocalName": obj.get("marketLocalName"), - "marketLatitude": obj.get("marketLatitude"), - "marketLongitude": obj.get("marketLongitude"), - "admin1Name": obj.get("admin1Name"), - "admin1Code": obj.get("admin1Code"), - "admin2Name": obj.get("admin2Name"), - "admin2Code": obj.get("admin2Code"), - } - ) + _obj = cls.model_validate({ + "marketId": obj.get("marketId"), + "marketName": obj.get("marketName"), + "marketLocalName": obj.get("marketLocalName"), + "marketLatitude": obj.get("marketLatitude"), + "marketLongitude": obj.get("marketLongitude"), + "admin1Name": obj.get("admin1Name"), + "admin1Code": obj.get("admin1Code"), + "admin2Name": obj.get("admin2Name"), + "admin2Code": obj.get("admin2Code") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/market_geo_json_root.py b/data_bridges_client/models/market_geo_json_root.py index 4d1f72f..455eeaa 100644 --- a/data_bridges_client/models/market_geo_json_root.py +++ b/data_bridges_client/models/market_geo_json_root.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class MarketGeoJsonRoot(BaseModel): """ MarketGeoJsonRoot - """ # noqa: E501 - + """ # noqa: E501 type: Optional[StrictStr] = None features: Optional[List[Feature]] = None bbox: Optional[Any] = None @@ -41,6 +40,7 @@ class MarketGeoJsonRoot(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -83,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_features in self.features: if _item_features: _items.append(_item_features.to_dict()) - _dict["features"] = _items + _dict['features'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -92,17 +90,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None # set to None if features (nullable) is None # and model_fields_set contains the field if self.features is None and "features" in self.model_fields_set: - _dict["features"] = None + _dict['features'] = None # set to None if bbox (nullable) is None # and model_fields_set contains the field if self.bbox is None and "bbox" in self.model_fields_set: - _dict["bbox"] = None + _dict['bbox'] = None return _dict @@ -115,18 +113,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": obj.get("type"), - "features": [Feature.from_dict(_item) for _item in obj["features"]] - if obj.get("features") is not None - else None, - "bbox": obj.get("bbox"), - } - ) + _obj = cls.model_validate({ + "type": obj.get("type"), + "features": [Feature.from_dict(_item) for _item in obj["features"]] if obj.get("features") is not None else None, + "bbox": obj.get("bbox") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/mfi_processed_data_dto.py b/data_bridges_client/models/mfi_processed_data_dto.py index f6a4980..8b707e2 100644 --- a/data_bridges_client/models/mfi_processed_data_dto.py +++ b/data_bridges_client/models/mfi_processed_data_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,33 +24,19 @@ from typing import Optional, Set from typing_extensions import Self - class MFIProcessedDataDTO(BaseModel): """ MFIProcessedDataDTO - """ # noqa: E501 - - survey_id: Optional[StrictInt] = Field( - default=None, description="The Id of the Survey", alias="surveyID" - ) - start_date: Optional[datetime] = Field( - default=None, description="The Id of the Survey status", alias="startDate" - ) + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") + start_date: Optional[datetime] = Field(default=None, description="The Id of the Survey status", alias="startDate") end_date: Optional[datetime] = Field(default=None, alias="endDate") market_id: Optional[StrictInt] = Field(default=None, alias="marketID") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") - market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="marketLatitude" - ) - market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="marketLongitude" - ) - regional_bureau_id: Optional[StrictInt] = Field( - default=None, alias="regionalBureauID" - ) - regional_bureau_name: Optional[StrictStr] = Field( - default=None, alias="regionalBureauName" - ) + market_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="marketLatitude") + market_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="marketLongitude") + regional_bureau_id: Optional[StrictInt] = Field(default=None, alias="regionalBureauID") + regional_bureau_name: Optional[StrictStr] = Field(default=None, alias="regionalBureauName") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") adm0_name: Optional[StrictStr] = Field(default=None, alias="adm0Name") adm1_code: Optional[StrictInt] = Field(default=None, alias="adm1Code") @@ -63,45 +50,12 @@ class MFIProcessedDataDTO(BaseModel): variable_id: Optional[StrictInt] = Field(default=None, alias="variableID") variable_name: Optional[StrictStr] = Field(default=None, alias="variableName") variable_label: Optional[StrictStr] = Field(default=None, alias="variableLabel") - output_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="outputValue" - ) - traders_sample_size: Optional[StrictInt] = Field( - default=None, alias="tradersSampleSize" - ) + output_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="outputValue") + traders_sample_size: Optional[StrictInt] = Field(default=None, alias="tradersSampleSize") base_xls_form_id: Optional[StrictInt] = Field(default=None, alias="baseXlsFormID") - base_xls_form_name: Optional[StrictStr] = Field( - default=None, alias="baseXlsFormName" - ) + base_xls_form_name: Optional[StrictStr] = Field(default=None, alias="baseXlsFormName") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyID", - "startDate", - "endDate", - "marketID", - "marketName", - "marketLatitude", - "marketLongitude", - "regionalBureauID", - "regionalBureauName", - "adm0Code", - "adm0Name", - "adm1Code", - "adm1Name", - "adm2Code", - "adm2Name", - "levelID", - "levelName", - "dimensionID", - "dimensionName", - "variableID", - "variableName", - "variableLabel", - "outputValue", - "tradersSampleSize", - "baseXlsFormID", - "baseXlsFormName", - ] + __properties: ClassVar[List[str]] = ["surveyID", "startDate", "endDate", "marketID", "marketName", "marketLatitude", "marketLongitude", "regionalBureauID", "regionalBureauName", "adm0Code", "adm0Name", "adm1Code", "adm1Name", "adm2Code", "adm2Name", "levelID", "levelName", "dimensionID", "dimensionName", "variableID", "variableName", "variableLabel", "outputValue", "tradersSampleSize", "baseXlsFormID", "baseXlsFormName"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +63,7 @@ class MFIProcessedDataDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -134,11 +89,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -153,94 +106,82 @@ def to_dict(self) -> Dict[str, Any]: # set to None if start_date (nullable) is None # and model_fields_set contains the field if self.start_date is None and "start_date" in self.model_fields_set: - _dict["startDate"] = None + _dict['startDate'] = None # set to None if end_date (nullable) is None # and model_fields_set contains the field if self.end_date is None and "end_date" in self.model_fields_set: - _dict["endDate"] = None + _dict['endDate'] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if market_latitude (nullable) is None # and model_fields_set contains the field if self.market_latitude is None and "market_latitude" in self.model_fields_set: - _dict["marketLatitude"] = None + _dict['marketLatitude'] = None # set to None if market_longitude (nullable) is None # and model_fields_set contains the field - if ( - self.market_longitude is None - and "market_longitude" in self.model_fields_set - ): - _dict["marketLongitude"] = None + if self.market_longitude is None and "market_longitude" in self.model_fields_set: + _dict['marketLongitude'] = None # set to None if regional_bureau_name (nullable) is None # and model_fields_set contains the field - if ( - self.regional_bureau_name is None - and "regional_bureau_name" in self.model_fields_set - ): - _dict["regionalBureauName"] = None + if self.regional_bureau_name is None and "regional_bureau_name" in self.model_fields_set: + _dict['regionalBureauName'] = None # set to None if adm0_name (nullable) is None # and model_fields_set contains the field if self.adm0_name is None and "adm0_name" in self.model_fields_set: - _dict["adm0Name"] = None + _dict['adm0Name'] = None # set to None if adm1_name (nullable) is None # and model_fields_set contains the field if self.adm1_name is None and "adm1_name" in self.model_fields_set: - _dict["adm1Name"] = None + _dict['adm1Name'] = None # set to None if adm2_name (nullable) is None # and model_fields_set contains the field if self.adm2_name is None and "adm2_name" in self.model_fields_set: - _dict["adm2Name"] = None + _dict['adm2Name'] = None # set to None if level_name (nullable) is None # and model_fields_set contains the field if self.level_name is None and "level_name" in self.model_fields_set: - _dict["levelName"] = None + _dict['levelName'] = None # set to None if dimension_name (nullable) is None # and model_fields_set contains the field if self.dimension_name is None and "dimension_name" in self.model_fields_set: - _dict["dimensionName"] = None + _dict['dimensionName'] = None # set to None if variable_name (nullable) is None # and model_fields_set contains the field if self.variable_name is None and "variable_name" in self.model_fields_set: - _dict["variableName"] = None + _dict['variableName'] = None # set to None if variable_label (nullable) is None # and model_fields_set contains the field if self.variable_label is None and "variable_label" in self.model_fields_set: - _dict["variableLabel"] = None + _dict['variableLabel'] = None # set to None if output_value (nullable) is None # and model_fields_set contains the field if self.output_value is None and "output_value" in self.model_fields_set: - _dict["outputValue"] = None + _dict['outputValue'] = None # set to None if traders_sample_size (nullable) is None # and model_fields_set contains the field - if ( - self.traders_sample_size is None - and "traders_sample_size" in self.model_fields_set - ): - _dict["tradersSampleSize"] = None + if self.traders_sample_size is None and "traders_sample_size" in self.model_fields_set: + _dict['tradersSampleSize'] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if ( - self.base_xls_form_name is None - and "base_xls_form_name" in self.model_fields_set - ): - _dict["baseXlsFormName"] = None + if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: + _dict['baseXlsFormName'] = None return _dict @@ -253,39 +194,39 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyID": obj.get("surveyID"), - "startDate": obj.get("startDate"), - "endDate": obj.get("endDate"), - "marketID": obj.get("marketID"), - "marketName": obj.get("marketName"), - "marketLatitude": obj.get("marketLatitude"), - "marketLongitude": obj.get("marketLongitude"), - "regionalBureauID": obj.get("regionalBureauID"), - "regionalBureauName": obj.get("regionalBureauName"), - "adm0Code": obj.get("adm0Code"), - "adm0Name": obj.get("adm0Name"), - "adm1Code": obj.get("adm1Code"), - "adm1Name": obj.get("adm1Name"), - "adm2Code": obj.get("adm2Code"), - "adm2Name": obj.get("adm2Name"), - "levelID": obj.get("levelID"), - "levelName": obj.get("levelName"), - "dimensionID": obj.get("dimensionID"), - "dimensionName": obj.get("dimensionName"), - "variableID": obj.get("variableID"), - "variableName": obj.get("variableName"), - "variableLabel": obj.get("variableLabel"), - "outputValue": obj.get("outputValue"), - "tradersSampleSize": obj.get("tradersSampleSize"), - "baseXlsFormID": obj.get("baseXlsFormID"), - "baseXlsFormName": obj.get("baseXlsFormName"), - } - ) + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "startDate": obj.get("startDate"), + "endDate": obj.get("endDate"), + "marketID": obj.get("marketID"), + "marketName": obj.get("marketName"), + "marketLatitude": obj.get("marketLatitude"), + "marketLongitude": obj.get("marketLongitude"), + "regionalBureauID": obj.get("regionalBureauID"), + "regionalBureauName": obj.get("regionalBureauName"), + "adm0Code": obj.get("adm0Code"), + "adm0Name": obj.get("adm0Name"), + "adm1Code": obj.get("adm1Code"), + "adm1Name": obj.get("adm1Name"), + "adm2Code": obj.get("adm2Code"), + "adm2Name": obj.get("adm2Name"), + "levelID": obj.get("levelID"), + "levelName": obj.get("levelName"), + "dimensionID": obj.get("dimensionID"), + "dimensionName": obj.get("dimensionName"), + "variableID": obj.get("variableID"), + "variableName": obj.get("variableName"), + "variableLabel": obj.get("variableLabel"), + "outputValue": obj.get("outputValue"), + "tradersSampleSize": obj.get("tradersSampleSize"), + "baseXlsFormID": obj.get("baseXlsFormID"), + "baseXlsFormName": obj.get("baseXlsFormName") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/nearby_markets_dto.py b/data_bridges_client/models/nearby_markets_dto.py index 090aee7..816d070 100644 --- a/data_bridges_client/models/nearby_markets_dto.py +++ b/data_bridges_client/models/nearby_markets_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,22 +23,13 @@ from typing import Optional, Set from typing_extensions import Self - class NearbyMarketsDTO(BaseModel): """ NearbyMarketsDTO - """ # noqa: E501 - - market_id: Optional[StrictInt] = Field( - default=None, description="The internal ID of the market", alias="marketId" - ) - market_name: Optional[StrictStr] = Field( - default=None, description="The name of the market", alias="marketName" - ) - distance: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, - description="The distance in meters of the market from the provided point", - ) + """ # noqa: E501 + market_id: Optional[StrictInt] = Field(default=None, description="The internal ID of the market", alias="marketId") + market_name: Optional[StrictStr] = Field(default=None, description="The name of the market", alias="marketName") + distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The distance in meters of the market from the provided point") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["marketId", "marketName", "distance"] @@ -47,6 +39,7 @@ class NearbyMarketsDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -91,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None return _dict @@ -104,16 +95,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "marketId": obj.get("marketId"), - "marketName": obj.get("marketName"), - "distance": obj.get("distance"), - } - ) + _obj = cls.model_validate({ + "marketId": obj.get("marketId"), + "marketName": obj.get("marketName"), + "distance": obj.get("distance") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_commodity_list_dto.py b/data_bridges_client/models/paged_commodity_list_dto.py index 0b6cf9c..9d5f5b1 100644 --- a/data_bridges_client/models/paged_commodity_list_dto.py +++ b/data_bridges_client/models/paged_commodity_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedCommodityListDTO(BaseModel): """ PagedCommodityListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CommodityDTO]] = Field( - default=None, description="The list of paged items" - ) + items: Optional[List[CommodityDTO]] = Field(default=None, description="The list of paged items") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedCommodityListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CommodityDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CommodityDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_commodity_price_list_dto.py b/data_bridges_client/models/paged_commodity_price_list_dto.py index 5cfb61a..9a52216 100644 --- a/data_bridges_client/models/paged_commodity_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_price_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedCommodityPriceListDTO(BaseModel): """ PagedCommodityPriceListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CommodityPriceDTO]] = Field( - default=None, description="The list of paged items" - ) + items: Optional[List[CommodityPriceDTO]] = Field(default=None, description="The list of paged items") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedCommodityPriceListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CommodityPriceDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CommodityPriceDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py index f694be9..6e9ae72 100644 --- a/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py +++ b/data_bridges_client/models/paged_commodity_weekly_aggregated_price_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedCommodityWeeklyAggregatedPriceListDTO(BaseModel): """ PagedCommodityWeeklyAggregatedPriceListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[WeeklyAggregatedPrice]] = Field( - default=None, description="The list of paged items" - ) + items: Optional[List[WeeklyAggregatedPrice]] = Field(default=None, description="The list of paged items") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedCommodityWeeklyAggregatedPriceListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,20 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [ - WeeklyAggregatedPrice.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [WeeklyAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_currency_list_dto.py b/data_bridges_client/models/paged_currency_list_dto.py index 758da77..70dbe8f 100644 --- a/data_bridges_client/models/paged_currency_list_dto.py +++ b/data_bridges_client/models/paged_currency_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedCurrencyListDTO(BaseModel): """ PagedCurrencyListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[CurrencyDTO]] = Field( - default=None, description="The list of paged items" - ) + items: Optional[List[CurrencyDTO]] = Field(default=None, description="The list of paged items") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedCurrencyListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [CurrencyDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [CurrencyDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_economic_data_dto.py b/data_bridges_client/models/paged_economic_data_dto.py index 9644ccd..ae50d86 100644 --- a/data_bridges_client/models/paged_economic_data_dto.py +++ b/data_bridges_client/models/paged_economic_data_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,31 +24,18 @@ from typing import Optional, Set from typing_extensions import Self - class PagedEconomicDataDTO(BaseModel): """ PagedEconomicDataDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") unit: Optional[StrictStr] = None frequency: Optional[StrictStr] = None data_source: Optional[StrictStr] = Field(default=None, alias="dataSource") - items: Optional[List[EconomicDataDTO]] = Field( - default=None, description="The list of paged items" - ) + items: Optional[List[EconomicDataDTO]] = Field(default=None, description="The list of paged items") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "totalItems", - "page", - "unit", - "frequency", - "dataSource", - "items", - ] + __properties: ClassVar[List[str]] = ["totalItems", "page", "unit", "frequency", "dataSource", "items"] model_config = ConfigDict( populate_by_name=True, @@ -55,6 +43,7 @@ class PagedEconomicDataDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,11 +69,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -97,7 +84,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,22 +93,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if unit (nullable) is None # and model_fields_set contains the field if self.unit is None and "unit" in self.model_fields_set: - _dict["unit"] = None + _dict['unit'] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict["frequency"] = None + _dict['frequency'] = None # set to None if data_source (nullable) is None # and model_fields_set contains the field if self.data_source is None and "data_source" in self.model_fields_set: - _dict["dataSource"] = None + _dict['dataSource'] = None # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -134,21 +121,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "unit": obj.get("unit"), - "frequency": obj.get("frequency"), - "dataSource": obj.get("dataSource"), - "items": [EconomicDataDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "unit": obj.get("unit"), + "frequency": obj.get("frequency"), + "dataSource": obj.get("dataSource"), + "items": [EconomicDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_market_list_dto.py b/data_bridges_client/models/paged_market_list_dto.py index f12f133..4cea267 100644 --- a/data_bridges_client/models/paged_market_list_dto.py +++ b/data_bridges_client/models/paged_market_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedMarketListDTO(BaseModel): """ PagedMarketListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[MarketDTO]] = Field( - default=None, description="The list of markets" - ) + items: Optional[List[MarketDTO]] = Field(default=None, description="The list of markets") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedMarketListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [MarketDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [MarketDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_processed_data_dto.py b/data_bridges_client/models/paged_processed_data_dto.py index 00743f4..da9e1aa 100644 --- a/data_bridges_client/models/paged_processed_data_dto.py +++ b/data_bridges_client/models/paged_processed_data_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,20 +24,14 @@ from typing import Optional, Set from typing_extensions import Self - class PagedProcessedDataDTO(BaseModel): """ PagedProcessedDataDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") scroll_id: Optional[StrictInt] = Field(default=None, alias="scrollId") - items: Optional[List[MFIProcessedDataDTO]] = Field( - default=None, description="The list of processed data" - ) + items: Optional[List[MFIProcessedDataDTO]] = Field(default=None, description="The list of processed data") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "scrollId", "items"] @@ -46,6 +41,7 @@ class PagedProcessedDataDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -88,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -97,7 +91,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -110,21 +104,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "scrollId": obj.get("scrollId"), - "items": [ - MFIProcessedDataDTO.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "scrollId": obj.get("scrollId"), + "items": [MFIProcessedDataDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_survey_list_dto.py b/data_bridges_client/models/paged_survey_list_dto.py index fb4dc30..587fb36 100644 --- a/data_bridges_client/models/paged_survey_list_dto.py +++ b/data_bridges_client/models/paged_survey_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedSurveyListDTO(BaseModel): """ PagedSurveyListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[SurveyListDTO]] = Field( - default=None, description="The list of surveys" - ) + items: Optional[List[SurveyListDTO]] = Field(default=None, description="The list of surveys") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedSurveyListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [SurveyListDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [SurveyListDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_survey_responses_dto.py b/data_bridges_client/models/paged_survey_responses_dto.py index 772456d..29d73bd 100644 --- a/data_bridges_client/models/paged_survey_responses_dto.py +++ b/data_bridges_client/models/paged_survey_responses_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,19 +23,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedSurveyResponsesDTO(BaseModel): """ PagedSurveyResponsesDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of responses", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of responses", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[Any]] = Field( - default=None, description="The list of survey responses" - ) + items: Optional[List[Any]] = Field(default=None, description="The list of survey responses") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -44,6 +39,7 @@ class PagedSurveyResponsesDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -88,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -101,16 +95,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": obj.get("items"), - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": obj.get("items") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/paged_xls_form_list_dto.py b/data_bridges_client/models/paged_xls_form_list_dto.py index bb17e9e..0dec87a 100644 --- a/data_bridges_client/models/paged_xls_form_list_dto.py +++ b/data_bridges_client/models/paged_xls_form_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,19 +24,13 @@ from typing import Optional, Set from typing_extensions import Self - class PagedXlsFormListDTO(BaseModel): """ PagedXlsFormListDTO - """ # noqa: E501 - - total_items: Optional[StrictInt] = Field( - default=None, description="The total number of items", alias="totalItems" - ) + """ # noqa: E501 + total_items: Optional[StrictInt] = Field(default=None, description="The total number of items", alias="totalItems") page: Optional[StrictInt] = Field(default=None, description="The current page") - items: Optional[List[XlsFormDTO]] = Field( - default=None, description="The list of XlsForms" - ) + items: Optional[List[XlsFormDTO]] = Field(default=None, description="The list of XlsForms") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["totalItems", "page", "items"] @@ -45,6 +40,7 @@ class PagedXlsFormListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,11 +66,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,18 +103,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "totalItems": obj.get("totalItems"), - "page": obj.get("page"), - "items": [XlsFormDTO.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - } - ) + _obj = cls.model_validate({ + "totalItems": obj.get("totalItems"), + "page": obj.get("page"), + "items": [XlsFormDTO.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/problem_details.py b/data_bridges_client/models/problem_details.py index 8b6ef16..225c7ba 100644 --- a/data_bridges_client/models/problem_details.py +++ b/data_bridges_client/models/problem_details.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,25 +23,17 @@ from typing import Optional, Set from typing_extensions import Self - class ProblemDetails(BaseModel): """ ProblemDetails - """ # noqa: E501 - + """ # noqa: E501 type: Optional[StrictStr] = None title: Optional[StrictStr] = None status: Optional[StrictInt] = None detail: Optional[StrictStr] = None instance: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "type", - "title", - "status", - "detail", - "instance", - ] + __properties: ClassVar[List[str]] = ["type", "title", "status", "detail", "instance"] model_config = ConfigDict( populate_by_name=True, @@ -48,6 +41,7 @@ class ProblemDetails(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -92,27 +84,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None # set to None if title (nullable) is None # and model_fields_set contains the field if self.title is None and "title" in self.model_fields_set: - _dict["title"] = None + _dict['title'] = None # set to None if status (nullable) is None # and model_fields_set contains the field if self.status is None and "status" in self.model_fields_set: - _dict["status"] = None + _dict['status'] = None # set to None if detail (nullable) is None # and model_fields_set contains the field if self.detail is None and "detail" in self.model_fields_set: - _dict["detail"] = None + _dict['detail'] = None # set to None if instance (nullable) is None # and model_fields_set contains the field if self.instance is None and "instance" in self.model_fields_set: - _dict["instance"] = None + _dict['instance'] = None return _dict @@ -125,18 +117,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "type": obj.get("type"), - "title": obj.get("title"), - "status": obj.get("status"), - "detail": obj.get("detail"), - "instance": obj.get("instance"), - } - ) + _obj = cls.model_validate({ + "type": obj.get("type"), + "title": obj.get("title"), + "status": obj.get("status"), + "detail": obj.get("detail"), + "instance": obj.get("instance") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/properties.py b/data_bridges_client/models/properties.py index 8d4e984..297eccf 100644 --- a/data_bridges_client/models/properties.py +++ b/data_bridges_client/models/properties.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class Properties(BaseModel): """ Properties - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name"] @@ -38,6 +37,7 @@ class Properties(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,11 +63,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None return _dict @@ -95,10 +93,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name")}) + _obj = cls.model_validate({ + "name": obj.get("name") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/rpme_assessment.py b/data_bridges_client/models/rpme_assessment.py index d2c9460..7c5ce11 100644 --- a/data_bridges_client/models/rpme_assessment.py +++ b/data_bridges_client/models/rpme_assessment.py @@ -1,43 +1,34 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 import json from datetime import datetime -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from data_bridges_client.models.rpme_output_values import RpmeOutputValues from typing import Optional, Set from typing_extensions import Self - class RpmeAssessment(BaseModel): """ RpmeAssessment - """ # noqa: E501 - + """ # noqa: E501 survey_id: Optional[StrictInt] = Field(default=None, alias="surveyId") assessment_date: Optional[datetime] = Field(default=None, alias="assessmentDate") shop_id: Optional[StrictInt] = Field(default=None, alias="shopId") @@ -48,49 +39,18 @@ class RpmeAssessment(BaseModel): adm1_code_dots: Optional[StrictStr] = Field(default=None, alias="adm1CodeDOTS") adm2_code_dots: Optional[StrictStr] = Field(default=None, alias="adm2CodeDOTS") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") - sh_latitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="shLatitude" - ) - sh_longitude: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="shLongitude" - ) - nb_beneficiaries_interviewed: Optional[StrictInt] = Field( - default=None, alias="nbBeneficiariesInterviewed" - ) + sh_latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="shLatitude") + sh_longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="shLongitude") + nb_beneficiaries_interviewed: Optional[StrictInt] = Field(default=None, alias="nbBeneficiariesInterviewed") price_score_tbu: Optional[StrictBool] = Field(default=None, alias="priceScoreTbu") price_score_tbd: Optional[StrictBool] = Field(default=None, alias="priceScoreTbd") - beneficiaries_score_tbu: Optional[StrictBool] = Field( - default=None, alias="beneficiariesScoreTbu" - ) + beneficiaries_score_tbu: Optional[StrictBool] = Field(default=None, alias="beneficiariesScoreTbu") trd_name: Optional[StrictStr] = Field(default=None, alias="trdName") sev_cntr_dev: Optional[StrictStr] = Field(default=None, alias="sevCntrDev") ben_sev_cntr_dev: Optional[StrictStr] = Field(default=None, alias="benSevCntrDev") - output_values: Optional[List[RpmeOutputValues]] = Field( - default=None, alias="outputValues" - ) + output_values: Optional[List[RpmeOutputValues]] = Field(default=None, alias="outputValues") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyId", - "assessmentDate", - "shopId", - "adm0Code", - "adm1Code", - "adm2Code", - "adm0CodeDOTS", - "adm1CodeDOTS", - "adm2CodeDOTS", - "marketId", - "shLatitude", - "shLongitude", - "nbBeneficiariesInterviewed", - "priceScoreTbu", - "priceScoreTbd", - "beneficiariesScoreTbu", - "trdName", - "sevCntrDev", - "benSevCntrDev", - "outputValues", - ] + __properties: ClassVar[List[str]] = ["surveyId", "assessmentDate", "shopId", "adm0Code", "adm1Code", "adm2Code", "adm0CodeDOTS", "adm1CodeDOTS", "adm2CodeDOTS", "marketId", "shLatitude", "shLongitude", "nbBeneficiariesInterviewed", "priceScoreTbu", "priceScoreTbd", "beneficiariesScoreTbu", "trdName", "sevCntrDev", "benSevCntrDev", "outputValues"] model_config = ConfigDict( populate_by_name=True, @@ -98,6 +58,7 @@ class RpmeAssessment(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -123,11 +84,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -140,7 +99,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_output_values in self.output_values: if _item_output_values: _items.append(_item_output_values.to_dict()) - _dict["outputValues"] = _items + _dict['outputValues'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -149,63 +108,57 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code_dots (nullable) is None # and model_fields_set contains the field if self.adm0_code_dots is None and "adm0_code_dots" in self.model_fields_set: - _dict["adm0CodeDOTS"] = None + _dict['adm0CodeDOTS'] = None # set to None if adm1_code_dots (nullable) is None # and model_fields_set contains the field if self.adm1_code_dots is None and "adm1_code_dots" in self.model_fields_set: - _dict["adm1CodeDOTS"] = None + _dict['adm1CodeDOTS'] = None # set to None if adm2_code_dots (nullable) is None # and model_fields_set contains the field if self.adm2_code_dots is None and "adm2_code_dots" in self.model_fields_set: - _dict["adm2CodeDOTS"] = None + _dict['adm2CodeDOTS'] = None # set to None if market_id (nullable) is None # and model_fields_set contains the field if self.market_id is None and "market_id" in self.model_fields_set: - _dict["marketId"] = None + _dict['marketId'] = None # set to None if sh_latitude (nullable) is None # and model_fields_set contains the field if self.sh_latitude is None and "sh_latitude" in self.model_fields_set: - _dict["shLatitude"] = None + _dict['shLatitude'] = None # set to None if sh_longitude (nullable) is None # and model_fields_set contains the field if self.sh_longitude is None and "sh_longitude" in self.model_fields_set: - _dict["shLongitude"] = None + _dict['shLongitude'] = None # set to None if nb_beneficiaries_interviewed (nullable) is None # and model_fields_set contains the field - if ( - self.nb_beneficiaries_interviewed is None - and "nb_beneficiaries_interviewed" in self.model_fields_set - ): - _dict["nbBeneficiariesInterviewed"] = None + if self.nb_beneficiaries_interviewed is None and "nb_beneficiaries_interviewed" in self.model_fields_set: + _dict['nbBeneficiariesInterviewed'] = None # set to None if trd_name (nullable) is None # and model_fields_set contains the field if self.trd_name is None and "trd_name" in self.model_fields_set: - _dict["trdName"] = None + _dict['trdName'] = None # set to None if sev_cntr_dev (nullable) is None # and model_fields_set contains the field if self.sev_cntr_dev is None and "sev_cntr_dev" in self.model_fields_set: - _dict["sevCntrDev"] = None + _dict['sevCntrDev'] = None # set to None if ben_sev_cntr_dev (nullable) is None # and model_fields_set contains the field - if ( - self.ben_sev_cntr_dev is None - and "ben_sev_cntr_dev" in self.model_fields_set - ): - _dict["benSevCntrDev"] = None + if self.ben_sev_cntr_dev is None and "ben_sev_cntr_dev" in self.model_fields_set: + _dict['benSevCntrDev'] = None # set to None if output_values (nullable) is None # and model_fields_set contains the field if self.output_values is None and "output_values" in self.model_fields_set: - _dict["outputValues"] = None + _dict['outputValues'] = None return _dict @@ -218,37 +171,33 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyId": obj.get("surveyId"), - "assessmentDate": obj.get("assessmentDate"), - "shopId": obj.get("shopId"), - "adm0Code": obj.get("adm0Code"), - "adm1Code": obj.get("adm1Code"), - "adm2Code": obj.get("adm2Code"), - "adm0CodeDOTS": obj.get("adm0CodeDOTS"), - "adm1CodeDOTS": obj.get("adm1CodeDOTS"), - "adm2CodeDOTS": obj.get("adm2CodeDOTS"), - "marketId": obj.get("marketId"), - "shLatitude": obj.get("shLatitude"), - "shLongitude": obj.get("shLongitude"), - "nbBeneficiariesInterviewed": obj.get("nbBeneficiariesInterviewed"), - "priceScoreTbu": obj.get("priceScoreTbu"), - "priceScoreTbd": obj.get("priceScoreTbd"), - "beneficiariesScoreTbu": obj.get("beneficiariesScoreTbu"), - "trdName": obj.get("trdName"), - "sevCntrDev": obj.get("sevCntrDev"), - "benSevCntrDev": obj.get("benSevCntrDev"), - "outputValues": [ - RpmeOutputValues.from_dict(_item) for _item in obj["outputValues"] - ] - if obj.get("outputValues") is not None - else None, - } - ) + _obj = cls.model_validate({ + "surveyId": obj.get("surveyId"), + "assessmentDate": obj.get("assessmentDate"), + "shopId": obj.get("shopId"), + "adm0Code": obj.get("adm0Code"), + "adm1Code": obj.get("adm1Code"), + "adm2Code": obj.get("adm2Code"), + "adm0CodeDOTS": obj.get("adm0CodeDOTS"), + "adm1CodeDOTS": obj.get("adm1CodeDOTS"), + "adm2CodeDOTS": obj.get("adm2CodeDOTS"), + "marketId": obj.get("marketId"), + "shLatitude": obj.get("shLatitude"), + "shLongitude": obj.get("shLongitude"), + "nbBeneficiariesInterviewed": obj.get("nbBeneficiariesInterviewed"), + "priceScoreTbu": obj.get("priceScoreTbu"), + "priceScoreTbd": obj.get("priceScoreTbd"), + "beneficiariesScoreTbu": obj.get("beneficiariesScoreTbu"), + "trdName": obj.get("trdName"), + "sevCntrDev": obj.get("sevCntrDev"), + "benSevCntrDev": obj.get("benSevCntrDev"), + "outputValues": [RpmeOutputValues.from_dict(_item) for _item in obj["outputValues"]] if obj.get("outputValues") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/rpme_assessment_paged_result.py b/data_bridges_client/models/rpme_assessment_paged_result.py index 8ab7ac4..5826672 100644 --- a/data_bridges_client/models/rpme_assessment_paged_result.py +++ b/data_bridges_client/models/rpme_assessment_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class RpmeAssessmentPagedResult(BaseModel): """ RpmeAssessmentPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[RpmeAssessment]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class RpmeAssessmentPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [RpmeAssessment.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [RpmeAssessment.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/rpme_output_values.py b/data_bridges_client/models/rpme_output_values.py index dfa0161..b25e1ad 100644 --- a/data_bridges_client/models/rpme_output_values.py +++ b/data_bridges_client/models/rpme_output_values.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,16 +23,12 @@ from typing import Optional, Set from typing_extensions import Self - class RpmeOutputValues(BaseModel): """ RpmeOutputValues - """ # noqa: E501 - + """ # noqa: E501 variable_id: Optional[StrictInt] = Field(default=None, alias="variableId") - output_value: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="outputValue" - ) + output_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="outputValue") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["variableId", "outputValue"] @@ -41,6 +38,7 @@ class RpmeOutputValues(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if output_value (nullable) is None # and model_fields_set contains the field if self.output_value is None and "output_value" in self.model_fields_set: - _dict["outputValue"] = None + _dict['outputValue'] = None return _dict @@ -98,12 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - {"variableId": obj.get("variableId"), "outputValue": obj.get("outputValue")} - ) + _obj = cls.model_validate({ + "variableId": obj.get("variableId"), + "outputValue": obj.get("outputValue") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/rpme_variable.py b/data_bridges_client/models/rpme_variable.py index 23dc08b..4803624 100644 --- a/data_bridges_client/models/rpme_variable.py +++ b/data_bridges_client/models/rpme_variable.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,17 +23,13 @@ from typing import Optional, Set from typing_extensions import Self - class RpmeVariable(BaseModel): """ RpmeVariable - """ # noqa: E501 - + """ # noqa: E501 variable_id: Optional[StrictInt] = Field(default=None, alias="variableId") variable_name: Optional[StrictStr] = Field(default=None, alias="variableName") - variable_description: Optional[StrictStr] = Field( - default=None, alias="variableDescription" - ) + variable_description: Optional[StrictStr] = Field(default=None, alias="variableDescription") dimension_id: Optional[StrictInt] = Field(default=None, alias="dimensionId") dimension_name: Optional[StrictStr] = Field(default=None, alias="dimensionName") level_id: Optional[StrictInt] = Field(default=None, alias="levelId") @@ -40,17 +37,7 @@ class RpmeVariable(BaseModel): survey_mode_id: Optional[StrictInt] = Field(default=None, alias="surveyModeId") survey_mode_name: Optional[StrictStr] = Field(default=None, alias="surveyModeName") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "variableId", - "variableName", - "variableDescription", - "dimensionId", - "dimensionName", - "levelId", - "levelName", - "surveyModeId", - "surveyModeName", - ] + __properties: ClassVar[List[str]] = ["variableId", "variableName", "variableDescription", "dimensionId", "dimensionName", "levelId", "levelName", "surveyModeId", "surveyModeName"] model_config = ConfigDict( populate_by_name=True, @@ -58,6 +45,7 @@ class RpmeVariable(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -83,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -102,33 +88,27 @@ def to_dict(self) -> Dict[str, Any]: # set to None if variable_name (nullable) is None # and model_fields_set contains the field if self.variable_name is None and "variable_name" in self.model_fields_set: - _dict["variableName"] = None + _dict['variableName'] = None # set to None if variable_description (nullable) is None # and model_fields_set contains the field - if ( - self.variable_description is None - and "variable_description" in self.model_fields_set - ): - _dict["variableDescription"] = None + if self.variable_description is None and "variable_description" in self.model_fields_set: + _dict['variableDescription'] = None # set to None if dimension_name (nullable) is None # and model_fields_set contains the field if self.dimension_name is None and "dimension_name" in self.model_fields_set: - _dict["dimensionName"] = None + _dict['dimensionName'] = None # set to None if level_name (nullable) is None # and model_fields_set contains the field if self.level_name is None and "level_name" in self.model_fields_set: - _dict["levelName"] = None + _dict['levelName'] = None # set to None if survey_mode_name (nullable) is None # and model_fields_set contains the field - if ( - self.survey_mode_name is None - and "survey_mode_name" in self.model_fields_set - ): - _dict["surveyModeName"] = None + if self.survey_mode_name is None and "survey_mode_name" in self.model_fields_set: + _dict['surveyModeName'] = None return _dict @@ -141,22 +121,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "variableId": obj.get("variableId"), - "variableName": obj.get("variableName"), - "variableDescription": obj.get("variableDescription"), - "dimensionId": obj.get("dimensionId"), - "dimensionName": obj.get("dimensionName"), - "levelId": obj.get("levelId"), - "levelName": obj.get("levelName"), - "surveyModeId": obj.get("surveyModeId"), - "surveyModeName": obj.get("surveyModeName"), - } - ) + _obj = cls.model_validate({ + "variableId": obj.get("variableId"), + "variableName": obj.get("variableName"), + "variableDescription": obj.get("variableDescription"), + "dimensionId": obj.get("dimensionId"), + "dimensionName": obj.get("dimensionName"), + "levelId": obj.get("levelId"), + "levelName": obj.get("levelName"), + "surveyModeId": obj.get("surveyModeId"), + "surveyModeName": obj.get("surveyModeName") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/rpme_variable_paged_result.py b/data_bridges_client/models/rpme_variable_paged_result.py index faf5707..8e1b166 100644 --- a/data_bridges_client/models/rpme_variable_paged_result.py +++ b/data_bridges_client/models/rpme_variable_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class RpmeVariablePagedResult(BaseModel): """ RpmeVariablePagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[RpmeVariable]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class RpmeVariablePagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,18 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [RpmeVariable.from_dict(_item) for _item in obj["items"]] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [RpmeVariable.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/survey_list_dto.py b/data_bridges_client/models/survey_list_dto.py index ee67506..8b18855 100644 --- a/data_bridges_client/models/survey_list_dto.py +++ b/data_bridges_client/models/survey_list_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -24,103 +25,27 @@ from typing import Optional, Set from typing_extensions import Self - class SurveyListDTO(BaseModel): """ SurveyListDTO - """ # noqa: E501 - - survey_id: Optional[StrictInt] = Field( - default=None, description="The Id of the Survey", alias="surveyID" - ) - survey_status_id: Optional[StrictInt] = Field( - default=None, description="The Id of the Survey status", alias="surveyStatusID" - ) - survey_start_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has started", - alias="surveyStartDate", - ) - survey_end_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has ended", - alias="surveyEndDate", - ) - survey_create_date: Optional[datetime] = Field( - default=None, - description="The date when the survey has been uploaded in the Data Bridges platform", - alias="surveyCreateDate", - ) - survey_validation_report: Optional[StrictStr] = Field( - default=None, - description="The detailed report on the validation performed on the survey schema", - alias="surveyValidationReport", - ) - survey_original_filename: Optional[ - Annotated[str, Field(min_length=0, strict=True, max_length=256)] - ] = Field( - default=None, - description="The filename of the survey CSV file", - alias="surveyOriginalFilename", - ) - xls_form_name: Optional[StrictStr] = Field( - default=None, - description="The name of the XLSForm used to collect data", - alias="xlsFormName", - ) - base_xls_form_name: Optional[StrictStr] = Field( - default=None, - description="The name of the base XLSForm used to build the XLSForm", - alias="baseXlsFormName", - ) - country_name: Optional[StrictStr] = Field( - default=None, - description="The name of the country where the survey has taken place", - alias="countryName", - ) - adm0_code: Optional[StrictInt] = Field( - default=None, - description="The internal code of the country where the survey has taken place", - alias="adm0Code", - ) - iso3_alpha3: Optional[StrictStr] = Field( - default=None, - description="The ISO3 alpha code of the country where the survey has taken place", - alias="iso3Alpha3", - ) - user_name: Optional[StrictStr] = Field( - default=None, - description="The name of the user that has uploaded the survey data", - alias="userName", - ) - original_csv_file: Optional[StrictStr] = Field( - default=None, - description="The link to download the original CSV file", - alias="originalCsvFile", - ) - base_data: Optional[StrictStr] = Field( - default=None, - description="The link to the JSON data reshaped on the base XLSForm", - alias="baseData", - ) + """ # noqa: E501 + survey_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey", alias="surveyID") + survey_status_id: Optional[StrictInt] = Field(default=None, description="The Id of the Survey status", alias="surveyStatusID") + survey_start_date: Optional[datetime] = Field(default=None, description="The date when the survey has started", alias="surveyStartDate") + survey_end_date: Optional[datetime] = Field(default=None, description="The date when the survey has ended", alias="surveyEndDate") + survey_create_date: Optional[datetime] = Field(default=None, description="The date when the survey has been uploaded in the Data Bridges platform", alias="surveyCreateDate") + survey_validation_report: Optional[StrictStr] = Field(default=None, description="The detailed report on the validation performed on the survey schema", alias="surveyValidationReport") + survey_original_filename: Optional[Annotated[str, Field(min_length=0, strict=True, max_length=256)]] = Field(default=None, description="The filename of the survey CSV file", alias="surveyOriginalFilename") + xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the XLSForm used to collect data", alias="xlsFormName") + base_xls_form_name: Optional[StrictStr] = Field(default=None, description="The name of the base XLSForm used to build the XLSForm", alias="baseXlsFormName") + country_name: Optional[StrictStr] = Field(default=None, description="The name of the country where the survey has taken place", alias="countryName") + adm0_code: Optional[StrictInt] = Field(default=None, description="The internal code of the country where the survey has taken place", alias="adm0Code") + iso3_alpha3: Optional[StrictStr] = Field(default=None, description="The ISO3 alpha code of the country where the survey has taken place", alias="iso3Alpha3") + user_name: Optional[StrictStr] = Field(default=None, description="The name of the user that has uploaded the survey data", alias="userName") + original_csv_file: Optional[StrictStr] = Field(default=None, description="The link to download the original CSV file", alias="originalCsvFile") + base_data: Optional[StrictStr] = Field(default=None, description="The link to the JSON data reshaped on the base XLSForm", alias="baseData") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "surveyID", - "surveyStatusID", - "surveyStartDate", - "surveyEndDate", - "surveyCreateDate", - "surveyValidationReport", - "surveyOriginalFilename", - "xlsFormName", - "baseXlsFormName", - "countryName", - "adm0Code", - "iso3Alpha3", - "userName", - "originalCsvFile", - "baseData", - ] + __properties: ClassVar[List[str]] = ["surveyID", "surveyStatusID", "surveyStartDate", "surveyEndDate", "surveyCreateDate", "surveyValidationReport", "surveyOriginalFilename", "xlsFormName", "baseXlsFormName", "countryName", "adm0Code", "iso3Alpha3", "userName", "originalCsvFile", "baseData"] model_config = ConfigDict( populate_by_name=True, @@ -128,6 +53,7 @@ class SurveyListDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -153,11 +79,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -171,73 +95,58 @@ def to_dict(self) -> Dict[str, Any]: # set to None if survey_start_date (nullable) is None # and model_fields_set contains the field - if ( - self.survey_start_date is None - and "survey_start_date" in self.model_fields_set - ): - _dict["surveyStartDate"] = None + if self.survey_start_date is None and "survey_start_date" in self.model_fields_set: + _dict['surveyStartDate'] = None # set to None if survey_end_date (nullable) is None # and model_fields_set contains the field if self.survey_end_date is None and "survey_end_date" in self.model_fields_set: - _dict["surveyEndDate"] = None + _dict['surveyEndDate'] = None # set to None if survey_validation_report (nullable) is None # and model_fields_set contains the field - if ( - self.survey_validation_report is None - and "survey_validation_report" in self.model_fields_set - ): - _dict["surveyValidationReport"] = None + if self.survey_validation_report is None and "survey_validation_report" in self.model_fields_set: + _dict['surveyValidationReport'] = None # set to None if survey_original_filename (nullable) is None # and model_fields_set contains the field - if ( - self.survey_original_filename is None - and "survey_original_filename" in self.model_fields_set - ): - _dict["surveyOriginalFilename"] = None + if self.survey_original_filename is None and "survey_original_filename" in self.model_fields_set: + _dict['surveyOriginalFilename'] = None # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict["xlsFormName"] = None + _dict['xlsFormName'] = None # set to None if base_xls_form_name (nullable) is None # and model_fields_set contains the field - if ( - self.base_xls_form_name is None - and "base_xls_form_name" in self.model_fields_set - ): - _dict["baseXlsFormName"] = None + if self.base_xls_form_name is None and "base_xls_form_name" in self.model_fields_set: + _dict['baseXlsFormName'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if iso3_alpha3 (nullable) is None # and model_fields_set contains the field if self.iso3_alpha3 is None and "iso3_alpha3" in self.model_fields_set: - _dict["iso3Alpha3"] = None + _dict['iso3Alpha3'] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict["userName"] = None + _dict['userName'] = None # set to None if original_csv_file (nullable) is None # and model_fields_set contains the field - if ( - self.original_csv_file is None - and "original_csv_file" in self.model_fields_set - ): - _dict["originalCsvFile"] = None + if self.original_csv_file is None and "original_csv_file" in self.model_fields_set: + _dict['originalCsvFile'] = None # set to None if base_data (nullable) is None # and model_fields_set contains the field if self.base_data is None and "base_data" in self.model_fields_set: - _dict["baseData"] = None + _dict['baseData'] = None return _dict @@ -250,28 +159,28 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "surveyID": obj.get("surveyID"), - "surveyStatusID": obj.get("surveyStatusID"), - "surveyStartDate": obj.get("surveyStartDate"), - "surveyEndDate": obj.get("surveyEndDate"), - "surveyCreateDate": obj.get("surveyCreateDate"), - "surveyValidationReport": obj.get("surveyValidationReport"), - "surveyOriginalFilename": obj.get("surveyOriginalFilename"), - "xlsFormName": obj.get("xlsFormName"), - "baseXlsFormName": obj.get("baseXlsFormName"), - "countryName": obj.get("countryName"), - "adm0Code": obj.get("adm0Code"), - "iso3Alpha3": obj.get("iso3Alpha3"), - "userName": obj.get("userName"), - "originalCsvFile": obj.get("originalCsvFile"), - "baseData": obj.get("baseData"), - } - ) + _obj = cls.model_validate({ + "surveyID": obj.get("surveyID"), + "surveyStatusID": obj.get("surveyStatusID"), + "surveyStartDate": obj.get("surveyStartDate"), + "surveyEndDate": obj.get("surveyEndDate"), + "surveyCreateDate": obj.get("surveyCreateDate"), + "surveyValidationReport": obj.get("surveyValidationReport"), + "surveyOriginalFilename": obj.get("surveyOriginalFilename"), + "xlsFormName": obj.get("xlsFormName"), + "baseXlsFormName": obj.get("baseXlsFormName"), + "countryName": obj.get("countryName"), + "adm0Code": obj.get("adm0Code"), + "iso3Alpha3": obj.get("iso3Alpha3"), + "userName": obj.get("userName"), + "originalCsvFile": obj.get("originalCsvFile"), + "baseData": obj.get("baseData") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/usd_indirect_quotation.py b/data_bridges_client/models/usd_indirect_quotation.py index dce49f0..ff2ae41 100644 --- a/data_bridges_client/models/usd_indirect_quotation.py +++ b/data_bridges_client/models/usd_indirect_quotation.py @@ -1,70 +1,43 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 import json from datetime import datetime -from pydantic import ( - BaseModel, - ConfigDict, - Field, - StrictBool, - StrictFloat, - StrictInt, - StrictStr, -) +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from typing import Optional, Set from typing_extensions import Self - class UsdIndirectQuotation(BaseModel): """ UsdIndirectQuotation - """ # noqa: E501 - + """ # noqa: E501 id: Optional[StrictInt] = None - name: Optional[StrictStr] = Field( - default=None, description="the ISO3 code for the currency, based on ISO4217" - ) + name: Optional[StrictStr] = Field(default=None, description="the ISO3 code for the currency, based on ISO4217") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryISO3") - is_official: Optional[StrictBool] = Field( - default=None, - description="The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database", - alias="isOfficial", - ) - frequency: Optional[StrictStr] = Field( - default=None, - description="(it’s from the reporting commodity named Exchange Rate", - ) + is_official: Optional[StrictBool] = Field(default=None, description="The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database", alias="isOfficial") + frequency: Optional[StrictStr] = Field(default=None, description="(it’s from the reporting commodity named Exchange Rate") value: Optional[Union[StrictFloat, StrictInt]] = None var_date: Optional[datetime] = Field(default=None, alias="date") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "id", - "name", - "adm0Code", - "countryISO3", - "isOfficial", - "frequency", - "value", - "date", - ] + __properties: ClassVar[List[str]] = ["id", "name", "adm0Code", "countryISO3", "isOfficial", "frequency", "value", "date"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +45,7 @@ class UsdIndirectQuotation(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -97,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -116,22 +88,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict["countryISO3"] = None + _dict['countryISO3'] = None # set to None if frequency (nullable) is None # and model_fields_set contains the field if self.frequency is None and "frequency" in self.model_fields_set: - _dict["frequency"] = None + _dict['frequency'] = None # set to None if value (nullable) is None # and model_fields_set contains the field if self.value is None and "value" in self.model_fields_set: - _dict["value"] = None + _dict['value'] = None return _dict @@ -144,21 +116,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "id": obj.get("id"), - "name": obj.get("name"), - "adm0Code": obj.get("adm0Code"), - "countryISO3": obj.get("countryISO3"), - "isOfficial": obj.get("isOfficial"), - "frequency": obj.get("frequency"), - "value": obj.get("value"), - "date": obj.get("date"), - } - ) + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "adm0Code": obj.get("adm0Code"), + "countryISO3": obj.get("countryISO3"), + "isOfficial": obj.get("isOfficial"), + "frequency": obj.get("frequency"), + "value": obj.get("value"), + "date": obj.get("date") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/usd_indirect_quotation_paged_result.py b/data_bridges_client/models/usd_indirect_quotation_paged_result.py index eb80b33..51d1099 100644 --- a/data_bridges_client/models/usd_indirect_quotation_paged_result.py +++ b/data_bridges_client/models/usd_indirect_quotation_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class UsdIndirectQuotationPagedResult(BaseModel): """ UsdIndirectQuotationPagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[UsdIndirectQuotation]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -41,6 +40,7 @@ class UsdIndirectQuotationPagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -85,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -94,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -107,20 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - UsdIndirectQuotation.from_dict(_item) for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [UsdIndirectQuotation.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/view_extended_monthly_aggregated_price.py b/data_bridges_client/models/view_extended_monthly_aggregated_price.py index a7cf0a8..17c3cf1 100644 --- a/data_bridges_client/models/view_extended_monthly_aggregated_price.py +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,81 +24,34 @@ from typing import Optional, Set from typing_extensions import Self - class ViewExtendedMonthlyAggregatedPrice(BaseModel): """ ViewExtendedMonthlyAggregatedPrice - """ # noqa: E501 - + """ # noqa: E501 commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field( - default=None, alias="commodityUnitId" - ) + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") - commodity_date_week: Optional[StrictInt] = Field( - default=None, alias="commodityDateWeek" - ) - commodity_date_month: Optional[StrictInt] = Field( - default=None, alias="commodityDateMonth" - ) - commodity_date_year: Optional[StrictInt] = Field( - default=None, alias="commodityDateYear" - ) - commodity_price_date: Optional[datetime] = Field( - default=None, alias="commodityPriceDate" - ) + commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") + commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") + commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") + commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field( - default=None, alias="commodityUnitName" - ) + commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_source_name: Optional[StrictStr] = Field( - default=None, alias="commodityPriceSourceName" - ) - original_frequency: Optional[StrictStr] = Field( - default=None, alias="originalFrequency" - ) - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="commodityPrice" - ) - commodity_price_observations: Optional[StrictInt] = Field( - default=None, alias="commodityPriceObservations" - ) - commodity_price_flag: Optional[StrictStr] = Field( - default=None, alias="commodityPriceFlag" - ) + commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") + original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") + commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") + commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "commodityId", - "marketId", - "priceTypeId", - "commodityUnitId", - "currencyId", - "adm0Code", - "commodityDateWeek", - "commodityDateMonth", - "commodityDateYear", - "commodityPriceDate", - "commodityName", - "marketName", - "priceTypeName", - "commodityUnitName", - "currencyName", - "countryIso3", - "countryName", - "commodityPriceSourceName", - "originalFrequency", - "commodityPrice", - "commodityPriceObservations", - "commodityPriceFlag", - ] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -105,6 +59,7 @@ class ViewExtendedMonthlyAggregatedPrice(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -130,11 +85,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -149,114 +102,87 @@ def to_dict(self) -> Dict[str, Any]: # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None # set to None if commodity_date_week (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_week is None - and "commodity_date_week" in self.model_fields_set - ): - _dict["commodityDateWeek"] = None + if self.commodity_date_week is None and "commodity_date_week" in self.model_fields_set: + _dict['commodityDateWeek'] = None # set to None if commodity_date_month (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_month is None - and "commodity_date_month" in self.model_fields_set - ): - _dict["commodityDateMonth"] = None + if self.commodity_date_month is None and "commodity_date_month" in self.model_fields_set: + _dict['commodityDateMonth'] = None # set to None if commodity_date_year (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_year is None - and "commodity_date_year" in self.model_fields_set - ): - _dict["commodityDateYear"] = None + if self.commodity_date_year is None and "commodity_date_year" in self.model_fields_set: + _dict['commodityDateYear'] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date is None - and "commodity_price_date" in self.model_fields_set - ): - _dict["commodityPriceDate"] = None + if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: + _dict['commodityPriceDate'] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict["commodityName"] = None + _dict['commodityName'] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict["priceTypeName"] = None + _dict['priceTypeName'] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_unit_name is None - and "commodity_unit_name" in self.model_fields_set - ): - _dict["commodityUnitName"] = None + if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: + _dict['commodityUnitName'] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict["currencyName"] = None + _dict['currencyName'] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict["countryIso3"] = None + _dict['countryIso3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_source_name is None - and "commodity_price_source_name" in self.model_fields_set - ): - _dict["commodityPriceSourceName"] = None + if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: + _dict['commodityPriceSourceName'] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if ( - self.original_frequency is None - and "original_frequency" in self.model_fields_set - ): - _dict["originalFrequency"] = None + if self.original_frequency is None and "original_frequency" in self.model_fields_set: + _dict['originalFrequency'] = None # set to None if commodity_price (nullable) is None # and model_fields_set contains the field if self.commodity_price is None and "commodity_price" in self.model_fields_set: - _dict["commodityPrice"] = None + _dict['commodityPrice'] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_observations is None - and "commodity_price_observations" in self.model_fields_set - ): - _dict["commodityPriceObservations"] = None + if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: + _dict['commodityPriceObservations'] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_flag is None - and "commodity_price_flag" in self.model_fields_set - ): - _dict["commodityPriceFlag"] = None + if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: + _dict['commodityPriceFlag'] = None return _dict @@ -269,35 +195,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "commodityDateWeek": obj.get("commodityDateWeek"), - "commodityDateMonth": obj.get("commodityDateMonth"), - "commodityDateYear": obj.get("commodityDateYear"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "countryIso3": obj.get("countryIso3"), - "countryName": obj.get("countryName"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "originalFrequency": obj.get("originalFrequency"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceFlag": obj.get("commodityPriceFlag"), - } - ) + _obj = cls.model_validate({ + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "commodityDateWeek": obj.get("commodityDateWeek"), + "commodityDateMonth": obj.get("commodityDateMonth"), + "commodityDateYear": obj.get("commodityDateYear"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "countryIso3": obj.get("countryIso3"), + "countryName": obj.get("countryName"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "originalFrequency": obj.get("originalFrequency"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceFlag": obj.get("commodityPriceFlag") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py index ebb0265..e74c987 100644 --- a/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py +++ b/data_bridges_client/models/view_extended_monthly_aggregated_price_paged_result.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -19,18 +20,14 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from data_bridges_client.models.view_extended_monthly_aggregated_price import ( - ViewExtendedMonthlyAggregatedPrice, -) +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice from typing import Optional, Set from typing_extensions import Self - class ViewExtendedMonthlyAggregatedPricePagedResult(BaseModel): """ ViewExtendedMonthlyAggregatedPricePagedResult - """ # noqa: E501 - + """ # noqa: E501 items: Optional[List[ViewExtendedMonthlyAggregatedPrice]] = None page: Optional[StrictInt] = None total_items: Optional[StrictInt] = Field(default=None, alias="totalItems") @@ -43,6 +40,7 @@ class ViewExtendedMonthlyAggregatedPricePagedResult(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "items", - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "items", + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -87,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_items in self.items: if _item_items: _items.append(_item_items.to_dict()) - _dict["items"] = _items + _dict['items'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -96,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: # set to None if items (nullable) is None # and model_fields_set contains the field if self.items is None and "items" in self.model_fields_set: - _dict["items"] = None + _dict['items'] = None return _dict @@ -109,21 +105,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "items": [ - ViewExtendedMonthlyAggregatedPrice.from_dict(_item) - for _item in obj["items"] - ] - if obj.get("items") is not None - else None, - "page": obj.get("page"), - "totalItems": obj.get("totalItems"), - } - ) + _obj = cls.model_validate({ + "items": [ViewExtendedMonthlyAggregatedPrice.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None, + "page": obj.get("page"), + "totalItems": obj.get("totalItems") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/weekly_aggregated_price.py b/data_bridges_client/models/weekly_aggregated_price.py index d533e4f..c1e64f6 100644 --- a/data_bridges_client/models/weekly_aggregated_price.py +++ b/data_bridges_client/models/weekly_aggregated_price.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,81 +24,34 @@ from typing import Optional, Set from typing_extensions import Self - class WeeklyAggregatedPrice(BaseModel): """ WeeklyAggregatedPrice - """ # noqa: E501 - + """ # noqa: E501 commodity_id: Optional[StrictInt] = Field(default=None, alias="commodityId") market_id: Optional[StrictInt] = Field(default=None, alias="marketId") price_type_id: Optional[StrictInt] = Field(default=None, alias="priceTypeId") - commodity_unit_id: Optional[StrictInt] = Field( - default=None, alias="commodityUnitId" - ) + commodity_unit_id: Optional[StrictInt] = Field(default=None, alias="commodityUnitId") currency_id: Optional[StrictInt] = Field(default=None, alias="currencyId") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") - commodity_date_week: Optional[StrictInt] = Field( - default=None, alias="commodityDateWeek" - ) - commodity_date_month: Optional[StrictInt] = Field( - default=None, alias="commodityDateMonth" - ) - commodity_date_year: Optional[StrictInt] = Field( - default=None, alias="commodityDateYear" - ) - commodity_price_date: Optional[datetime] = Field( - default=None, alias="commodityPriceDate" - ) + commodity_date_week: Optional[StrictInt] = Field(default=None, alias="commodityDateWeek") + commodity_date_month: Optional[StrictInt] = Field(default=None, alias="commodityDateMonth") + commodity_date_year: Optional[StrictInt] = Field(default=None, alias="commodityDateYear") + commodity_price_date: Optional[datetime] = Field(default=None, alias="commodityPriceDate") commodity_name: Optional[StrictStr] = Field(default=None, alias="commodityName") market_name: Optional[StrictStr] = Field(default=None, alias="marketName") price_type_name: Optional[StrictStr] = Field(default=None, alias="priceTypeName") - commodity_unit_name: Optional[StrictStr] = Field( - default=None, alias="commodityUnitName" - ) + commodity_unit_name: Optional[StrictStr] = Field(default=None, alias="commodityUnitName") currency_name: Optional[StrictStr] = Field(default=None, alias="currencyName") country_iso3: Optional[StrictStr] = Field(default=None, alias="countryIso3") country_name: Optional[StrictStr] = Field(default=None, alias="countryName") - commodity_price_source_name: Optional[StrictStr] = Field( - default=None, alias="commodityPriceSourceName" - ) - original_frequency: Optional[StrictStr] = Field( - default=None, alias="originalFrequency" - ) - commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field( - default=None, alias="commodityPrice" - ) - commodity_price_observations: Optional[StrictInt] = Field( - default=None, alias="commodityPriceObservations" - ) - commodity_price_flag: Optional[StrictStr] = Field( - default=None, alias="commodityPriceFlag" - ) + commodity_price_source_name: Optional[StrictStr] = Field(default=None, alias="commodityPriceSourceName") + original_frequency: Optional[StrictStr] = Field(default=None, alias="originalFrequency") + commodity_price: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="commodityPrice") + commodity_price_observations: Optional[StrictInt] = Field(default=None, alias="commodityPriceObservations") + commodity_price_flag: Optional[StrictStr] = Field(default=None, alias="commodityPriceFlag") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "commodityId", - "marketId", - "priceTypeId", - "commodityUnitId", - "currencyId", - "adm0Code", - "commodityDateWeek", - "commodityDateMonth", - "commodityDateYear", - "commodityPriceDate", - "commodityName", - "marketName", - "priceTypeName", - "commodityUnitName", - "currencyName", - "countryIso3", - "countryName", - "commodityPriceSourceName", - "originalFrequency", - "commodityPrice", - "commodityPriceObservations", - "commodityPriceFlag", - ] + __properties: ClassVar[List[str]] = ["commodityId", "marketId", "priceTypeId", "commodityUnitId", "currencyId", "adm0Code", "commodityDateWeek", "commodityDateMonth", "commodityDateYear", "commodityPriceDate", "commodityName", "marketName", "priceTypeName", "commodityUnitName", "currencyName", "countryIso3", "countryName", "commodityPriceSourceName", "originalFrequency", "commodityPrice", "commodityPriceObservations", "commodityPriceFlag"] model_config = ConfigDict( populate_by_name=True, @@ -105,6 +59,7 @@ class WeeklyAggregatedPrice(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -130,11 +85,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -148,110 +101,83 @@ def to_dict(self) -> Dict[str, Any]: # set to None if commodity_date_week (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_week is None - and "commodity_date_week" in self.model_fields_set - ): - _dict["commodityDateWeek"] = None + if self.commodity_date_week is None and "commodity_date_week" in self.model_fields_set: + _dict['commodityDateWeek'] = None # set to None if commodity_date_month (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_month is None - and "commodity_date_month" in self.model_fields_set - ): - _dict["commodityDateMonth"] = None + if self.commodity_date_month is None and "commodity_date_month" in self.model_fields_set: + _dict['commodityDateMonth'] = None # set to None if commodity_date_year (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_date_year is None - and "commodity_date_year" in self.model_fields_set - ): - _dict["commodityDateYear"] = None + if self.commodity_date_year is None and "commodity_date_year" in self.model_fields_set: + _dict['commodityDateYear'] = None # set to None if commodity_price_date (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_date is None - and "commodity_price_date" in self.model_fields_set - ): - _dict["commodityPriceDate"] = None + if self.commodity_price_date is None and "commodity_price_date" in self.model_fields_set: + _dict['commodityPriceDate'] = None # set to None if commodity_name (nullable) is None # and model_fields_set contains the field if self.commodity_name is None and "commodity_name" in self.model_fields_set: - _dict["commodityName"] = None + _dict['commodityName'] = None # set to None if market_name (nullable) is None # and model_fields_set contains the field if self.market_name is None and "market_name" in self.model_fields_set: - _dict["marketName"] = None + _dict['marketName'] = None # set to None if price_type_name (nullable) is None # and model_fields_set contains the field if self.price_type_name is None and "price_type_name" in self.model_fields_set: - _dict["priceTypeName"] = None + _dict['priceTypeName'] = None # set to None if commodity_unit_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_unit_name is None - and "commodity_unit_name" in self.model_fields_set - ): - _dict["commodityUnitName"] = None + if self.commodity_unit_name is None and "commodity_unit_name" in self.model_fields_set: + _dict['commodityUnitName'] = None # set to None if currency_name (nullable) is None # and model_fields_set contains the field if self.currency_name is None and "currency_name" in self.model_fields_set: - _dict["currencyName"] = None + _dict['currencyName'] = None # set to None if country_iso3 (nullable) is None # and model_fields_set contains the field if self.country_iso3 is None and "country_iso3" in self.model_fields_set: - _dict["countryIso3"] = None + _dict['countryIso3'] = None # set to None if country_name (nullable) is None # and model_fields_set contains the field if self.country_name is None and "country_name" in self.model_fields_set: - _dict["countryName"] = None + _dict['countryName'] = None # set to None if commodity_price_source_name (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_source_name is None - and "commodity_price_source_name" in self.model_fields_set - ): - _dict["commodityPriceSourceName"] = None + if self.commodity_price_source_name is None and "commodity_price_source_name" in self.model_fields_set: + _dict['commodityPriceSourceName'] = None # set to None if original_frequency (nullable) is None # and model_fields_set contains the field - if ( - self.original_frequency is None - and "original_frequency" in self.model_fields_set - ): - _dict["originalFrequency"] = None + if self.original_frequency is None and "original_frequency" in self.model_fields_set: + _dict['originalFrequency'] = None # set to None if commodity_price (nullable) is None # and model_fields_set contains the field if self.commodity_price is None and "commodity_price" in self.model_fields_set: - _dict["commodityPrice"] = None + _dict['commodityPrice'] = None # set to None if commodity_price_observations (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_observations is None - and "commodity_price_observations" in self.model_fields_set - ): - _dict["commodityPriceObservations"] = None + if self.commodity_price_observations is None and "commodity_price_observations" in self.model_fields_set: + _dict['commodityPriceObservations'] = None # set to None if commodity_price_flag (nullable) is None # and model_fields_set contains the field - if ( - self.commodity_price_flag is None - and "commodity_price_flag" in self.model_fields_set - ): - _dict["commodityPriceFlag"] = None + if self.commodity_price_flag is None and "commodity_price_flag" in self.model_fields_set: + _dict['commodityPriceFlag'] = None return _dict @@ -264,35 +190,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "commodityId": obj.get("commodityId"), - "marketId": obj.get("marketId"), - "priceTypeId": obj.get("priceTypeId"), - "commodityUnitId": obj.get("commodityUnitId"), - "currencyId": obj.get("currencyId"), - "adm0Code": obj.get("adm0Code"), - "commodityDateWeek": obj.get("commodityDateWeek"), - "commodityDateMonth": obj.get("commodityDateMonth"), - "commodityDateYear": obj.get("commodityDateYear"), - "commodityPriceDate": obj.get("commodityPriceDate"), - "commodityName": obj.get("commodityName"), - "marketName": obj.get("marketName"), - "priceTypeName": obj.get("priceTypeName"), - "commodityUnitName": obj.get("commodityUnitName"), - "currencyName": obj.get("currencyName"), - "countryIso3": obj.get("countryIso3"), - "countryName": obj.get("countryName"), - "commodityPriceSourceName": obj.get("commodityPriceSourceName"), - "originalFrequency": obj.get("originalFrequency"), - "commodityPrice": obj.get("commodityPrice"), - "commodityPriceObservations": obj.get("commodityPriceObservations"), - "commodityPriceFlag": obj.get("commodityPriceFlag"), - } - ) + _obj = cls.model_validate({ + "commodityId": obj.get("commodityId"), + "marketId": obj.get("marketId"), + "priceTypeId": obj.get("priceTypeId"), + "commodityUnitId": obj.get("commodityUnitId"), + "currencyId": obj.get("currencyId"), + "adm0Code": obj.get("adm0Code"), + "commodityDateWeek": obj.get("commodityDateWeek"), + "commodityDateMonth": obj.get("commodityDateMonth"), + "commodityDateYear": obj.get("commodityDateYear"), + "commodityPriceDate": obj.get("commodityPriceDate"), + "commodityName": obj.get("commodityName"), + "marketName": obj.get("marketName"), + "priceTypeName": obj.get("priceTypeName"), + "commodityUnitName": obj.get("commodityUnitName"), + "currencyName": obj.get("currencyName"), + "countryIso3": obj.get("countryIso3"), + "countryName": obj.get("countryName"), + "commodityPriceSourceName": obj.get("commodityPriceSourceName"), + "originalFrequency": obj.get("originalFrequency"), + "commodityPrice": obj.get("commodityPrice"), + "commodityPriceObservations": obj.get("commodityPriceObservations"), + "commodityPriceFlag": obj.get("commodityPriceFlag") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/xls_form_definition_new_schema_dto.py b/data_bridges_client/models/xls_form_definition_new_schema_dto.py index cf82b81..57a4684 100644 --- a/data_bridges_client/models/xls_form_definition_new_schema_dto.py +++ b/data_bridges_client/models/xls_form_definition_new_schema_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class XlsFormDefinitionNewSchemaDTO(BaseModel): """ XlsFormDefinitionNewSchemaDTO - """ # noqa: E501 - + """ # noqa: E501 form_name: Optional[StrictStr] = Field(default=None, alias="formName") form_description: Optional[StrictStr] = Field(default=None, alias="formDescription") form_type: Optional[StrictStr] = Field(default=None, alias="formType") @@ -38,16 +37,7 @@ class XlsFormDefinitionNewSchemaDTO(BaseModel): type: Optional[StrictStr] = None fields: Optional[List[XlsFormFieldsDTO]] = None additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "formName", - "formDescription", - "formType", - "adm0Code", - "baseSchemaId", - "category", - "type", - "fields", - ] + __properties: ClassVar[List[str]] = ["formName", "formDescription", "formType", "adm0Code", "baseSchemaId", "category", "type", "fields"] model_config = ConfigDict( populate_by_name=True, @@ -55,6 +45,7 @@ class XlsFormDefinitionNewSchemaDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,11 +71,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -97,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_fields in self.fields: if _item_fields: _items.append(_item_fields.to_dict()) - _dict["fields"] = _items + _dict['fields'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,45 +95,42 @@ def to_dict(self) -> Dict[str, Any]: # set to None if form_name (nullable) is None # and model_fields_set contains the field if self.form_name is None and "form_name" in self.model_fields_set: - _dict["formName"] = None + _dict['formName'] = None # set to None if form_description (nullable) is None # and model_fields_set contains the field - if ( - self.form_description is None - and "form_description" in self.model_fields_set - ): - _dict["formDescription"] = None + if self.form_description is None and "form_description" in self.model_fields_set: + _dict['formDescription'] = None # set to None if form_type (nullable) is None # and model_fields_set contains the field if self.form_type is None and "form_type" in self.model_fields_set: - _dict["formType"] = None + _dict['formType'] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None # set to None if base_schema_id (nullable) is None # and model_fields_set contains the field if self.base_schema_id is None and "base_schema_id" in self.model_fields_set: - _dict["baseSchemaId"] = None + _dict['baseSchemaId'] = None # set to None if category (nullable) is None # and model_fields_set contains the field if self.category is None and "category" in self.model_fields_set: - _dict["category"] = None + _dict['category'] = None # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None # set to None if fields (nullable) is None # and model_fields_set contains the field if self.fields is None and "fields" in self.model_fields_set: - _dict["fields"] = None + _dict['fields'] = None return _dict @@ -157,23 +143,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "formName": obj.get("formName"), - "formDescription": obj.get("formDescription"), - "formType": obj.get("formType"), - "adm0Code": obj.get("adm0Code"), - "baseSchemaId": obj.get("baseSchemaId"), - "category": obj.get("category"), - "type": obj.get("type"), - "fields": [XlsFormFieldsDTO.from_dict(_item) for _item in obj["fields"]] - if obj.get("fields") is not None - else None, - } - ) + _obj = cls.model_validate({ + "formName": obj.get("formName"), + "formDescription": obj.get("formDescription"), + "formType": obj.get("formType"), + "adm0Code": obj.get("adm0Code"), + "baseSchemaId": obj.get("baseSchemaId"), + "category": obj.get("category"), + "type": obj.get("type"), + "fields": [XlsFormFieldsDTO.from_dict(_item) for _item in obj["fields"]] if obj.get("fields") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/xls_form_dto.py b/data_bridges_client/models/xls_form_dto.py index 52ca378..61299fe 100644 --- a/data_bridges_client/models/xls_form_dto.py +++ b/data_bridges_client/models/xls_form_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,35 +24,19 @@ from typing import Optional, Set from typing_extensions import Self - class XlsFormDTO(BaseModel): """ XlsFormDTO - """ # noqa: E501 - + """ # noqa: E501 xls_form_id: Optional[StrictInt] = Field(default=None, alias="xlsFormID") xls_form_name: Optional[StrictStr] = Field(default=None, alias="xlsFormName") - xls_form_create_date: Optional[datetime] = Field( - default=None, alias="xlsFormCreateDate" - ) + xls_form_create_date: Optional[datetime] = Field(default=None, alias="xlsFormCreateDate") user_name: Optional[StrictStr] = Field(default=None, alias="userName") - xls_form_source_file: Optional[StrictStr] = Field( - default=None, alias="xlsFormSourceFile" - ) - xls_form_is_base_schema: Optional[StrictBool] = Field( - default=None, alias="xlsFormIsBaseSchema" - ) + xls_form_source_file: Optional[StrictStr] = Field(default=None, alias="xlsFormSourceFile") + xls_form_is_base_schema: Optional[StrictBool] = Field(default=None, alias="xlsFormIsBaseSchema") adm0_code: Optional[StrictInt] = Field(default=None, alias="adm0Code") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = [ - "xlsFormID", - "xlsFormName", - "xlsFormCreateDate", - "userName", - "xlsFormSourceFile", - "xlsFormIsBaseSchema", - "adm0Code", - ] + __properties: ClassVar[List[str]] = ["xlsFormID", "xlsFormName", "xlsFormCreateDate", "userName", "xlsFormSourceFile", "xlsFormIsBaseSchema", "adm0Code"] model_config = ConfigDict( populate_by_name=True, @@ -59,6 +44,7 @@ class XlsFormDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -84,11 +70,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -103,25 +87,22 @@ def to_dict(self) -> Dict[str, Any]: # set to None if xls_form_name (nullable) is None # and model_fields_set contains the field if self.xls_form_name is None and "xls_form_name" in self.model_fields_set: - _dict["xlsFormName"] = None + _dict['xlsFormName'] = None # set to None if user_name (nullable) is None # and model_fields_set contains the field if self.user_name is None and "user_name" in self.model_fields_set: - _dict["userName"] = None + _dict['userName'] = None # set to None if xls_form_source_file (nullable) is None # and model_fields_set contains the field - if ( - self.xls_form_source_file is None - and "xls_form_source_file" in self.model_fields_set - ): - _dict["xlsFormSourceFile"] = None + if self.xls_form_source_file is None and "xls_form_source_file" in self.model_fields_set: + _dict['xlsFormSourceFile'] = None # set to None if adm0_code (nullable) is None # and model_fields_set contains the field if self.adm0_code is None and "adm0_code" in self.model_fields_set: - _dict["adm0Code"] = None + _dict['adm0Code'] = None return _dict @@ -134,20 +115,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "xlsFormID": obj.get("xlsFormID"), - "xlsFormName": obj.get("xlsFormName"), - "xlsFormCreateDate": obj.get("xlsFormCreateDate"), - "userName": obj.get("userName"), - "xlsFormSourceFile": obj.get("xlsFormSourceFile"), - "xlsFormIsBaseSchema": obj.get("xlsFormIsBaseSchema"), - "adm0Code": obj.get("adm0Code"), - } - ) + _obj = cls.model_validate({ + "xlsFormID": obj.get("xlsFormID"), + "xlsFormName": obj.get("xlsFormName"), + "xlsFormCreateDate": obj.get("xlsFormCreateDate"), + "userName": obj.get("userName"), + "xlsFormSourceFile": obj.get("xlsFormSourceFile"), + "xlsFormIsBaseSchema": obj.get("xlsFormIsBaseSchema"), + "adm0Code": obj.get("adm0Code") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/xls_form_fields_dto.py b/data_bridges_client/models/xls_form_fields_dto.py index 8b15a73..dfb1343 100644 --- a/data_bridges_client/models/xls_form_fields_dto.py +++ b/data_bridges_client/models/xls_form_fields_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,18 +24,14 @@ from typing import Optional, Set from typing_extensions import Self - class XlsFormFieldsDTO(BaseModel): """ XlsFormFieldsDTO - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None label: Optional[StrictStr] = None type: Optional[StrictStr] = None - choice_list: Optional[XlsFormListChoicesDTO] = Field( - default=None, alias="choiceList" - ) + choice_list: Optional[XlsFormListChoicesDTO] = Field(default=None, alias="choiceList") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["name", "label", "type", "choiceList"] @@ -44,6 +41,7 @@ class XlsFormFieldsDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,11 +67,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of choice_list if self.choice_list: - _dict["choiceList"] = self.choice_list.to_dict() + _dict['choiceList'] = self.choice_list.to_dict() # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -91,17 +87,17 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict["label"] = None + _dict['label'] = None # set to None if type (nullable) is None # and model_fields_set contains the field if self.type is None and "type" in self.model_fields_set: - _dict["type"] = None + _dict['type'] = None return _dict @@ -114,19 +110,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "label": obj.get("label"), - "type": obj.get("type"), - "choiceList": XlsFormListChoicesDTO.from_dict(obj["choiceList"]) - if obj.get("choiceList") is not None - else None, - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "label": obj.get("label"), + "type": obj.get("type"), + "choiceList": XlsFormListChoicesDTO.from_dict(obj["choiceList"]) if obj.get("choiceList") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/xls_form_list_choice_dto.py b/data_bridges_client/models/xls_form_list_choice_dto.py index 47f5d82..0efe100 100644 --- a/data_bridges_client/models/xls_form_list_choice_dto.py +++ b/data_bridges_client/models/xls_form_list_choice_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -22,12 +23,10 @@ from typing import Optional, Set from typing_extensions import Self - class XlsFormListChoiceDTO(BaseModel): """ XlsFormListChoiceDTO - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None label: Optional[StrictStr] = None additional_properties: Dict[str, Any] = {} @@ -39,6 +38,7 @@ class XlsFormListChoiceDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,11 +64,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -83,12 +81,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if label (nullable) is None # and model_fields_set contains the field if self.label is None and "label" in self.model_fields_set: - _dict["label"] = None + _dict['label'] = None return _dict @@ -101,10 +99,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"name": obj.get("name"), "label": obj.get("label")}) + _obj = cls.model_validate({ + "name": obj.get("name"), + "label": obj.get("label") + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/models/xls_form_list_choices_dto.py b/data_bridges_client/models/xls_form_list_choices_dto.py index c7137e2..93e9c8c 100644 --- a/data_bridges_client/models/xls_form_list_choices_dto.py +++ b/data_bridges_client/models/xls_form_list_choices_dto.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from __future__ import annotations import pprint import re # noqa: F401 @@ -23,12 +24,10 @@ from typing import Optional, Set from typing_extensions import Self - class XlsFormListChoicesDTO(BaseModel): """ XlsFormListChoicesDTO - """ # noqa: E501 - + """ # noqa: E501 name: Optional[StrictStr] = None choices: Optional[List[XlsFormListChoiceDTO]] = None additional_properties: Dict[str, Any] = {} @@ -40,6 +39,7 @@ class XlsFormListChoicesDTO(BaseModel): protected_namespaces=(), ) + def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,11 +65,9 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * Fields in `self.additional_properties` are added to the output dict. """ - excluded_fields: Set[str] = set( - [ - "additional_properties", - ] - ) + excluded_fields: Set[str] = set([ + "additional_properties", + ]) _dict = self.model_dump( by_alias=True, @@ -82,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_choices in self.choices: if _item_choices: _items.append(_item_choices.to_dict()) - _dict["choices"] = _items + _dict['choices'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -91,12 +89,12 @@ def to_dict(self) -> Dict[str, Any]: # set to None if name (nullable) is None # and model_fields_set contains the field if self.name is None and "name" in self.model_fields_set: - _dict["name"] = None + _dict['name'] = None # set to None if choices (nullable) is None # and model_fields_set contains the field if self.choices is None and "choices" in self.model_fields_set: - _dict["choices"] = None + _dict['choices'] = None return _dict @@ -109,19 +107,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate( - { - "name": obj.get("name"), - "choices": [ - XlsFormListChoiceDTO.from_dict(_item) for _item in obj["choices"] - ] - if obj.get("choices") is not None - else None, - } - ) + _obj = cls.model_validate({ + "name": obj.get("name"), + "choices": [XlsFormListChoiceDTO.from_dict(_item) for _item in obj["choices"]] if obj.get("choices") is not None else None + }) # store additional fields in additional_properties for _key in obj.keys(): if _key not in cls.__properties: _obj.additional_properties[_key] = obj.get(_key) return _obj + + diff --git a/data_bridges_client/py.typed b/data_bridges_client/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/data_bridges_client/rest.py b/data_bridges_client/rest.py index 6a92062..52e0bd6 100644 --- a/data_bridges_client/rest.py +++ b/data_bridges_client/rest.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import io import json import re @@ -36,6 +37,7 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): + def __init__(self, resp) -> None: self.response = resp self.status = resp.status @@ -57,6 +59,7 @@ def getheader(self, name, default=None): class RESTClientObject: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 @@ -76,19 +79,22 @@ def __init__(self, configuration) -> None: "key_file": configuration.key_file, } if configuration.assert_hostname is not None: - pool_args["assert_hostname"] = configuration.assert_hostname + pool_args['assert_hostname'] = ( + configuration.assert_hostname + ) if configuration.retries is not None: - pool_args["retries"] = configuration.retries + pool_args['retries'] = configuration.retries if configuration.tls_server_name: - pool_args["server_hostname"] = configuration.tls_server_name + pool_args['server_hostname'] = configuration.tls_server_name + if configuration.socket_options is not None: - pool_args["socket_options"] = configuration.socket_options + pool_args['socket_options'] = configuration.socket_options if configuration.connection_pool_maxsize is not None: - pool_args["maxsize"] = configuration.connection_pool_maxsize + pool_args['maxsize'] = configuration.connection_pool_maxsize # https pool manager self.pool_manager: urllib3.PoolManager @@ -96,7 +102,6 @@ def __init__(self, configuration) -> None: if configuration.proxy: if is_socks_proxy_url(configuration.proxy): from urllib3.contrib.socks import SOCKSProxyManager - pool_args["proxy_url"] = configuration.proxy pool_args["headers"] = configuration.proxy_headers self.pool_manager = SOCKSProxyManager(**pool_args) @@ -114,7 +119,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None, + _request_timeout=None ): """Perform requests. @@ -131,7 +136,15 @@ def request( (connection, read) timeouts. """ method = method.upper() - assert method in ["GET", "HEAD", "DELETE", "POST", "PUT", "PATCH", "OPTIONS"] + assert method in [ + 'GET', + 'HEAD', + 'DELETE', + 'POST', + 'PUT', + 'PATCH', + 'OPTIONS' + ] if post_params and body: raise ApiValueError( @@ -145,17 +158,25 @@ def request( if _request_timeout: if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) - elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: + elif ( + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1] + connect=_request_timeout[0], + read=_request_timeout[1] ) try: # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ["POST", "PUT", "PATCH", "OPTIONS", "DELETE"]: + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + # no content type provided or payload is json - content_type = headers.get("Content-Type") - if not content_type or re.search("json", content_type, re.IGNORECASE): + content_type = headers.get('Content-Type') + if ( + not content_type + or re.search('json', content_type, re.IGNORECASE) + ): request_body = None if body is not None: request_body = json.dumps(body) @@ -165,9 +186,9 @@ def request( body=request_body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "application/x-www-form-urlencoded": + elif content_type == 'application/x-www-form-urlencoded': r = self.pool_manager.request( method, url, @@ -175,18 +196,15 @@ def request( encode_multipart=False, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif content_type == "multipart/form-data": + elif content_type == 'multipart/form-data': # must del headers['Content-Type'], or the correct # Content-Type which generated by urllib3 will be # overwritten. - del headers["Content-Type"] + del headers['Content-Type'] # Ensures that dict objects are serialized - post_params = [ - (a, json.dumps(b)) if isinstance(b, dict) else (a, b) - for a, b in post_params - ] + post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] r = self.pool_manager.request( method, url, @@ -194,7 +212,7 @@ def request( encode_multipart=True, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -206,9 +224,9 @@ def request( body=body, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) - elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, @@ -216,8 +234,7 @@ def request( body=request_body, preload_content=False, timeout=timeout, - headers=headers, - ) + headers=headers) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -232,7 +249,7 @@ def request( fields={}, timeout=timeout, headers=headers, - preload_content=False, + preload_content=False ) except urllib3.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/docs/BadRequestDTO.md b/docs/BadRequestDTO.md new file mode 100644 index 0000000..a61ef1d --- /dev/null +++ b/docs/BadRequestDTO.md @@ -0,0 +1,30 @@ +# BadRequestDTO + + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **str** | The error message returned by the application | [optional] + +## Example + +```python +from data_bridges_client.models.bad_request_dto import BadRequestDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of BadRequestDTO from a JSON string +bad_request_dto_instance = BadRequestDTO.from_json(json) +# print the JSON string representation of the object +print(BadRequestDTO.to_json()) + +# convert the object into a dict +bad_request_dto_dict = bad_request_dto_instance.to_dict() +# create an instance of BadRequestDTO from a dict +bad_request_dto_from_dict = BadRequestDTO.from_dict(bad_request_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommodityDTO.md b/docs/CommodityDTO.md new file mode 100644 index 0000000..fe49bae --- /dev/null +++ b/docs/CommodityDTO.md @@ -0,0 +1,38 @@ +# CommodityDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The internal ID of the commodity | [optional] +**parent_id** | **int** | The internal parent ID of the commodity | [optional] +**name** | **str** | The name of the commodity | [optional] +**coicop2018** | **str** | The COICOP 2018 definition | [optional] +**supply** | **int** | | [optional] +**category_id** | **int** | | [optional] +**create_date** | **datetime** | | [optional] +**update_date** | **datetime** | | [optional] +**qualities** | [**List[CommodityQualityDTO]**](CommodityQualityDTO.md) | | [optional] +**processing** | [**List[CommodityProcessingDTO]**](CommodityProcessingDTO.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.commodity_dto import CommodityDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CommodityDTO from a JSON string +commodity_dto_instance = CommodityDTO.from_json(json) +# print the JSON string representation of the object +print(CommodityDTO.to_json()) + +# convert the object into a dict +commodity_dto_dict = commodity_dto_instance.to_dict() +# create an instance of CommodityDTO from a dict +commodity_dto_from_dict = CommodityDTO.from_dict(commodity_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommodityPriceDTO.md b/docs/CommodityPriceDTO.md new file mode 100644 index 0000000..995c793 --- /dev/null +++ b/docs/CommodityPriceDTO.md @@ -0,0 +1,54 @@ +# CommodityPriceDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The internal ID of the commodity | [optional] +**commodity_id** | **int** | | [optional] +**market_id** | **int** | | [optional] +**price_type_id** | **int** | | [optional] +**commodity_unit_id** | **int** | | [optional] +**currency_id** | **int** | | [optional] +**commodity_name** | **str** | | [optional] +**market_name** | **str** | | [optional] +**price_type_name** | **str** | | [optional] +**unit_name** | **str** | | [optional] +**currency_name** | **str** | | [optional] +**original_frequency** | **str** | | [optional] +**adm0_code** | **int** | | [optional] +**country_iso3** | **str** | | [optional] +**country_name** | **str** | | [optional] +**commodity_price** | **float** | | [optional] +**commodity_price_source_name** | **str** | | [optional] +**commodity_price_metadata** | **object** | | [optional] +**commodity_price_date** | **datetime** | | [optional] +**commodity_price_observations** | **int** | | [optional] +**commodity_price_date_day** | **int** | | [optional] +**commodity_price_date_week** | **int** | | [optional] +**commodity_price_date_month** | **int** | | [optional] +**commodity_price_date_year** | **int** | | [optional] +**commodity_price_insert_date** | **datetime** | | [optional] +**commodity_price_flag** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CommodityPriceDTO from a JSON string +commodity_price_dto_instance = CommodityPriceDTO.from_json(json) +# print the JSON string representation of the object +print(CommodityPriceDTO.to_json()) + +# convert the object into a dict +commodity_price_dto_dict = commodity_price_dto_instance.to_dict() +# create an instance of CommodityPriceDTO from a dict +commodity_price_dto_from_dict = CommodityPriceDTO.from_dict(commodity_price_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommodityProcessingDTO.md b/docs/CommodityProcessingDTO.md new file mode 100644 index 0000000..91ea47b --- /dev/null +++ b/docs/CommodityProcessingDTO.md @@ -0,0 +1,30 @@ +# CommodityProcessingDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The internal ID of the commodity | [optional] +**name** | **str** | The name of the process | [optional] + +## Example + +```python +from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CommodityProcessingDTO from a JSON string +commodity_processing_dto_instance = CommodityProcessingDTO.from_json(json) +# print the JSON string representation of the object +print(CommodityProcessingDTO.to_json()) + +# convert the object into a dict +commodity_processing_dto_dict = commodity_processing_dto_instance.to_dict() +# create an instance of CommodityProcessingDTO from a dict +commodity_processing_dto_from_dict = CommodityProcessingDTO.from_dict(commodity_processing_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CommodityQualityDTO.md b/docs/CommodityQualityDTO.md new file mode 100644 index 0000000..8039b63 --- /dev/null +++ b/docs/CommodityQualityDTO.md @@ -0,0 +1,30 @@ +# CommodityQualityDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The internal ID of the commodity | [optional] +**name** | **str** | The name of the commodity | [optional] + +## Example + +```python +from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CommodityQualityDTO from a JSON string +commodity_quality_dto_instance = CommodityQualityDTO.from_json(json) +# print the JSON string representation of the object +print(CommodityQualityDTO.to_json()) + +# convert the object into a dict +commodity_quality_dto_dict = commodity_quality_dto_instance.to_dict() +# create an instance of CommodityQualityDTO from a dict +commodity_quality_dto_from_dict = CommodityQualityDTO.from_dict(commodity_quality_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CurrencyDTO.md b/docs/CurrencyDTO.md new file mode 100644 index 0000000..d2fb06f --- /dev/null +++ b/docs/CurrencyDTO.md @@ -0,0 +1,33 @@ +# CurrencyDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The internal ID of the unit | [optional] +**name** | **str** | The name of the unit | [optional] +**extended_name** | **str** | | [optional] +**create_date** | **datetime** | | [optional] +**update_date** | **datetime** | | [optional] + +## Example + +```python +from data_bridges_client.models.currency_dto import CurrencyDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of CurrencyDTO from a JSON string +currency_dto_instance = CurrencyDTO.from_json(json) +# print the JSON string representation of the object +print(CurrencyDTO.to_json()) + +# convert the object into a dict +currency_dto_dict = currency_dto_instance.to_dict() +# create an instance of CurrencyDTO from a dict +currency_dto_from_dict = CurrencyDTO.from_dict(currency_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EconomicDataDTO.md b/docs/EconomicDataDTO.md new file mode 100644 index 0000000..46dca1e --- /dev/null +++ b/docs/EconomicDataDTO.md @@ -0,0 +1,30 @@ +# EconomicDataDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **datetime** | | [optional] +**value** | **float** | | [optional] + +## Example + +```python +from data_bridges_client.models.economic_data_dto import EconomicDataDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of EconomicDataDTO from a JSON string +economic_data_dto_instance = EconomicDataDTO.from_json(json) +# print the JSON string representation of the object +print(EconomicDataDTO.to_json()) + +# convert the object into a dict +economic_data_dto_dict = economic_data_dto_instance.to_dict() +# create an instance of EconomicDataDTO from a dict +economic_data_dto_from_dict = EconomicDataDTO.from_dict(economic_data_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EconomicIndicatorProperty.md b/docs/EconomicIndicatorProperty.md new file mode 100644 index 0000000..efe7add --- /dev/null +++ b/docs/EconomicIndicatorProperty.md @@ -0,0 +1,36 @@ +# EconomicIndicatorProperty + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | | [optional] +**frequency** | **str** | | [optional] +**unit** | **str** | | [optional] +**data_source** | **str** | | [optional] +**country_iso3** | **str** | | [optional] +**latest_value** | **float** | | [optional] +**latest_value_date** | **datetime** | | [optional] + +## Example + +```python +from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty + +# TODO update the JSON string below +json = "{}" +# create an instance of EconomicIndicatorProperty from a JSON string +economic_indicator_property_instance = EconomicIndicatorProperty.from_json(json) +# print the JSON string representation of the object +print(EconomicIndicatorProperty.to_json()) + +# convert the object into a dict +economic_indicator_property_dict = economic_indicator_property_instance.to_dict() +# create an instance of EconomicIndicatorProperty from a dict +economic_indicator_property_from_dict = EconomicIndicatorProperty.from_dict(economic_indicator_property_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EconomicIndicatorPropertyPagedResult.md b/docs/EconomicIndicatorPropertyPagedResult.md new file mode 100644 index 0000000..5a67a36 --- /dev/null +++ b/docs/EconomicIndicatorPropertyPagedResult.md @@ -0,0 +1,31 @@ +# EconomicIndicatorPropertyPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[EconomicIndicatorProperty]**](EconomicIndicatorProperty.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of EconomicIndicatorPropertyPagedResult from a JSON string +economic_indicator_property_paged_result_instance = EconomicIndicatorPropertyPagedResult.from_json(json) +# print the JSON string representation of the object +print(EconomicIndicatorPropertyPagedResult.to_json()) + +# convert the object into a dict +economic_indicator_property_paged_result_dict = economic_indicator_property_paged_result_instance.to_dict() +# create an instance of EconomicIndicatorPropertyPagedResult from a dict +economic_indicator_property_paged_result_from_dict = EconomicIndicatorPropertyPagedResult.from_dict(economic_indicator_property_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Feature.md b/docs/Feature.md new file mode 100644 index 0000000..a76c353 --- /dev/null +++ b/docs/Feature.md @@ -0,0 +1,33 @@ +# Feature + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**id** | **int** | | [optional] +**bbox** | **List[float]** | | [optional] +**geometry** | [**Geometry**](Geometry.md) | | [optional] +**properties** | [**Properties**](Properties.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.feature import Feature + +# TODO update the JSON string below +json = "{}" +# create an instance of Feature from a JSON string +feature_instance = Feature.from_json(json) +# print the JSON string representation of the object +print(Feature.to_json()) + +# convert the object into a dict +feature_dict = feature_instance.to_dict() +# create an instance of Feature from a dict +feature_from_dict = Feature.from_dict(feature_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Geometry.md b/docs/Geometry.md new file mode 100644 index 0000000..e65b4d5 --- /dev/null +++ b/docs/Geometry.md @@ -0,0 +1,30 @@ +# Geometry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**coordinates** | **List[float]** | | [optional] + +## Example + +```python +from data_bridges_client.models.geometry import Geometry + +# TODO update the JSON string below +json = "{}" +# create an instance of Geometry from a JSON string +geometry_instance = Geometry.from_json(json) +# print the JSON string representation of the object +print(Geometry.to_json()) + +# convert the object into a dict +geometry_dict = geometry_instance.to_dict() +# create an instance of Geometry from a dict +geometry_from_dict = Geometry.from_dict(geometry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HouseholdSurveyListDTO.md b/docs/HouseholdSurveyListDTO.md new file mode 100644 index 0000000..c8332b1 --- /dev/null +++ b/docs/HouseholdSurveyListDTO.md @@ -0,0 +1,55 @@ +# HouseholdSurveyListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | The Id of the Survey | [optional] +**survey_status_id** | **int** | The Id of the Survey status | [optional] +**survey_start_date** | **datetime** | The date when the survey has started | [optional] +**survey_end_date** | **datetime** | The date when the survey has ended | [optional] +**survey_create_date** | **datetime** | The date when the survey has been uploaded in the Data Bridges platform | [optional] +**survey_validation_report** | **str** | The detailed report on the validation performed on the survey schema | [optional] +**survey_original_filename** | **str** | The filename of the survey CSV file | [optional] +**xls_form_name** | **str** | The name of the XLSForm used to collect data | [optional] +**base_xls_form_name** | **str** | The name of the base XLSForm used to build the XLSForm | [optional] +**country_name** | **str** | The name of the country where the survey has taken place | [optional] +**adm0_code** | **int** | The internal code of the country where the survey has taken place | [optional] +**iso3_alpha3** | **str** | The ISO3 alpha code of the country where the survey has taken place | [optional] +**user_name** | **str** | The name of the user that has uploaded the survey data | [optional] +**approved_by** | **str** | | [optional] +**original_csv_file** | **str** | The link to download the original CSV file | [optional] +**base_data** | **str** | The link to the JSON data reshaped on the base XLSForm | [optional] +**survey_attributes** | [**List[KeyNameDto]**](KeyNameDto.md) | | [optional] +**organizations** | [**List[KeyNameDto]**](KeyNameDto.md) | | [optional] +**survey_modality_name** | **str** | | [optional] +**survey_category_name** | **str** | | [optional] +**survey_sub_category_name** | **str** | | [optional] +**survey_phase_name** | **str** | | [optional] +**survey_visibility** | **str** | | [optional] +**is_continuous_monitoring** | **bool** | | [optional] +**survey_name** | **str** | | [optional] +**xls_form_id** | **int** | | [optional] +**base_xls_form_id** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of HouseholdSurveyListDTO from a JSON string +household_survey_list_dto_instance = HouseholdSurveyListDTO.from_json(json) +# print the JSON string representation of the object +print(HouseholdSurveyListDTO.to_json()) + +# convert the object into a dict +household_survey_list_dto_dict = household_survey_list_dto_instance.to_dict() +# create an instance of HouseholdSurveyListDTO from a dict +household_survey_list_dto_from_dict = HouseholdSurveyListDTO.from_dict(household_survey_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HouseholdSurveyListDTOPagedResult.md b/docs/HouseholdSurveyListDTOPagedResult.md new file mode 100644 index 0000000..bb04d2f --- /dev/null +++ b/docs/HouseholdSurveyListDTOPagedResult.md @@ -0,0 +1,31 @@ +# HouseholdSurveyListDTOPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[HouseholdSurveyListDTO]**](HouseholdSurveyListDTO.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of HouseholdSurveyListDTOPagedResult from a JSON string +household_survey_list_dto_paged_result_instance = HouseholdSurveyListDTOPagedResult.from_json(json) +# print the JSON string representation of the object +print(HouseholdSurveyListDTOPagedResult.to_json()) + +# convert the object into a dict +household_survey_list_dto_paged_result_dict = household_survey_list_dto_paged_result_instance.to_dict() +# create an instance of HouseholdSurveyListDTOPagedResult from a dict +household_survey_list_dto_paged_result_from_dict = HouseholdSurveyListDTOPagedResult.from_dict(household_survey_list_dto_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/KeyNameDto.md b/docs/KeyNameDto.md new file mode 100644 index 0000000..98c1b72 --- /dev/null +++ b/docs/KeyNameDto.md @@ -0,0 +1,30 @@ +# KeyNameDto + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.key_name_dto import KeyNameDto + +# TODO update the JSON string below +json = "{}" +# create an instance of KeyNameDto from a JSON string +key_name_dto_instance = KeyNameDto.from_json(json) +# print the JSON string representation of the object +print(KeyNameDto.to_json()) + +# convert the object into a dict +key_name_dto_dict = key_name_dto_instance.to_dict() +# create an instance of KeyNameDto from a dict +key_name_dto_from_dict = KeyNameDto.from_dict(key_name_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MFIProcessedDataDTO.md b/docs/MFIProcessedDataDTO.md new file mode 100644 index 0000000..865c151 --- /dev/null +++ b/docs/MFIProcessedDataDTO.md @@ -0,0 +1,54 @@ +# MFIProcessedDataDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | The Id of the Survey | [optional] +**start_date** | **datetime** | The Id of the Survey status | [optional] +**end_date** | **datetime** | | [optional] +**market_id** | **int** | | [optional] +**market_name** | **str** | | [optional] +**market_latitude** | **float** | | [optional] +**market_longitude** | **float** | | [optional] +**regional_bureau_id** | **int** | | [optional] +**regional_bureau_name** | **str** | | [optional] +**adm0_code** | **int** | | [optional] +**adm0_name** | **str** | | [optional] +**adm1_code** | **int** | | [optional] +**adm1_name** | **str** | | [optional] +**adm2_code** | **int** | | [optional] +**adm2_name** | **str** | | [optional] +**level_id** | **int** | | [optional] +**level_name** | **str** | | [optional] +**dimension_id** | **int** | | [optional] +**dimension_name** | **str** | | [optional] +**variable_id** | **int** | | [optional] +**variable_name** | **str** | | [optional] +**variable_label** | **str** | | [optional] +**output_value** | **float** | | [optional] +**traders_sample_size** | **int** | | [optional] +**base_xls_form_id** | **int** | | [optional] +**base_xls_form_name** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of MFIProcessedDataDTO from a JSON string +mfi_processed_data_dto_instance = MFIProcessedDataDTO.from_json(json) +# print the JSON string representation of the object +print(MFIProcessedDataDTO.to_json()) + +# convert the object into a dict +mfi_processed_data_dto_dict = mfi_processed_data_dto_instance.to_dict() +# create an instance of MFIProcessedDataDTO from a dict +mfi_processed_data_dto_from_dict = MFIProcessedDataDTO.from_dict(mfi_processed_data_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MarketDTO.md b/docs/MarketDTO.md new file mode 100644 index 0000000..384f8e1 --- /dev/null +++ b/docs/MarketDTO.md @@ -0,0 +1,37 @@ +# MarketDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**market_id** | **int** | The internal ID of the market | [optional] +**market_name** | **str** | The name of the market | [optional] +**market_local_name** | **str** | The local name of the market | [optional] +**market_latitude** | **float** | The decimal latitude | [optional] +**market_longitude** | **float** | The decimal longitude | [optional] +**admin1_name** | **str** | The name of the first level administrative division where the market is placed | [optional] +**admin1_code** | **int** | The code of the first level administrative division where the market is placed | [optional] +**admin2_name** | **str** | The name of the second level administrative division where the market is placed | [optional] +**admin2_code** | **int** | The code of the second level administrative division where the market is placed | [optional] + +## Example + +```python +from data_bridges_client.models.market_dto import MarketDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of MarketDTO from a JSON string +market_dto_instance = MarketDTO.from_json(json) +# print the JSON string representation of the object +print(MarketDTO.to_json()) + +# convert the object into a dict +market_dto_dict = market_dto_instance.to_dict() +# create an instance of MarketDTO from a dict +market_dto_from_dict = MarketDTO.from_dict(market_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MarketGeoJsonRoot.md b/docs/MarketGeoJsonRoot.md new file mode 100644 index 0000000..ec7be0b --- /dev/null +++ b/docs/MarketGeoJsonRoot.md @@ -0,0 +1,31 @@ +# MarketGeoJsonRoot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**features** | [**List[Feature]**](Feature.md) | | [optional] +**bbox** | **object** | | [optional] + +## Example + +```python +from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot + +# TODO update the JSON string below +json = "{}" +# create an instance of MarketGeoJsonRoot from a JSON string +market_geo_json_root_instance = MarketGeoJsonRoot.from_json(json) +# print the JSON string representation of the object +print(MarketGeoJsonRoot.to_json()) + +# convert the object into a dict +market_geo_json_root_dict = market_geo_json_root_instance.to_dict() +# create an instance of MarketGeoJsonRoot from a dict +market_geo_json_root_from_dict = MarketGeoJsonRoot.from_dict(market_geo_json_root_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NearbyMarketsDTO.md b/docs/NearbyMarketsDTO.md new file mode 100644 index 0000000..ea03730 --- /dev/null +++ b/docs/NearbyMarketsDTO.md @@ -0,0 +1,31 @@ +# NearbyMarketsDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**market_id** | **int** | The internal ID of the market | [optional] +**market_name** | **str** | The name of the market | [optional] +**distance** | **float** | The distance in meters of the market from the provided point | [optional] + +## Example + +```python +from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of NearbyMarketsDTO from a JSON string +nearby_markets_dto_instance = NearbyMarketsDTO.from_json(json) +# print the JSON string representation of the object +print(NearbyMarketsDTO.to_json()) + +# convert the object into a dict +nearby_markets_dto_dict = nearby_markets_dto_instance.to_dict() +# create an instance of NearbyMarketsDTO from a dict +nearby_markets_dto_from_dict = NearbyMarketsDTO.from_dict(nearby_markets_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedCommodityListDTO.md b/docs/PagedCommodityListDTO.md new file mode 100644 index 0000000..b386cc4 --- /dev/null +++ b/docs/PagedCommodityListDTO.md @@ -0,0 +1,31 @@ +# PagedCommodityListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[CommodityDTO]**](CommodityDTO.md) | The list of paged items | [optional] + +## Example + +```python +from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedCommodityListDTO from a JSON string +paged_commodity_list_dto_instance = PagedCommodityListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedCommodityListDTO.to_json()) + +# convert the object into a dict +paged_commodity_list_dto_dict = paged_commodity_list_dto_instance.to_dict() +# create an instance of PagedCommodityListDTO from a dict +paged_commodity_list_dto_from_dict = PagedCommodityListDTO.from_dict(paged_commodity_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedCommodityPriceListDTO.md b/docs/PagedCommodityPriceListDTO.md new file mode 100644 index 0000000..59e11db --- /dev/null +++ b/docs/PagedCommodityPriceListDTO.md @@ -0,0 +1,31 @@ +# PagedCommodityPriceListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[CommodityPriceDTO]**](CommodityPriceDTO.md) | The list of paged items | [optional] + +## Example + +```python +from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedCommodityPriceListDTO from a JSON string +paged_commodity_price_list_dto_instance = PagedCommodityPriceListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedCommodityPriceListDTO.to_json()) + +# convert the object into a dict +paged_commodity_price_list_dto_dict = paged_commodity_price_list_dto_instance.to_dict() +# create an instance of PagedCommodityPriceListDTO from a dict +paged_commodity_price_list_dto_from_dict = PagedCommodityPriceListDTO.from_dict(paged_commodity_price_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md b/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md new file mode 100644 index 0000000..719ff31 --- /dev/null +++ b/docs/PagedCommodityWeeklyAggregatedPriceListDTO.md @@ -0,0 +1,31 @@ +# PagedCommodityWeeklyAggregatedPriceListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[WeeklyAggregatedPrice]**](WeeklyAggregatedPrice.md) | The list of paged items | [optional] + +## Example + +```python +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedCommodityWeeklyAggregatedPriceListDTO from a JSON string +paged_commodity_weekly_aggregated_price_list_dto_instance = PagedCommodityWeeklyAggregatedPriceListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedCommodityWeeklyAggregatedPriceListDTO.to_json()) + +# convert the object into a dict +paged_commodity_weekly_aggregated_price_list_dto_dict = paged_commodity_weekly_aggregated_price_list_dto_instance.to_dict() +# create an instance of PagedCommodityWeeklyAggregatedPriceListDTO from a dict +paged_commodity_weekly_aggregated_price_list_dto_from_dict = PagedCommodityWeeklyAggregatedPriceListDTO.from_dict(paged_commodity_weekly_aggregated_price_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedCurrencyListDTO.md b/docs/PagedCurrencyListDTO.md new file mode 100644 index 0000000..6a789f3 --- /dev/null +++ b/docs/PagedCurrencyListDTO.md @@ -0,0 +1,31 @@ +# PagedCurrencyListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[CurrencyDTO]**](CurrencyDTO.md) | The list of paged items | [optional] + +## Example + +```python +from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedCurrencyListDTO from a JSON string +paged_currency_list_dto_instance = PagedCurrencyListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedCurrencyListDTO.to_json()) + +# convert the object into a dict +paged_currency_list_dto_dict = paged_currency_list_dto_instance.to_dict() +# create an instance of PagedCurrencyListDTO from a dict +paged_currency_list_dto_from_dict = PagedCurrencyListDTO.from_dict(paged_currency_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedEconomicDataDTO.md b/docs/PagedEconomicDataDTO.md new file mode 100644 index 0000000..5d387cf --- /dev/null +++ b/docs/PagedEconomicDataDTO.md @@ -0,0 +1,34 @@ +# PagedEconomicDataDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**unit** | **str** | | [optional] +**frequency** | **str** | | [optional] +**data_source** | **str** | | [optional] +**items** | [**List[EconomicDataDTO]**](EconomicDataDTO.md) | The list of paged items | [optional] + +## Example + +```python +from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedEconomicDataDTO from a JSON string +paged_economic_data_dto_instance = PagedEconomicDataDTO.from_json(json) +# print the JSON string representation of the object +print(PagedEconomicDataDTO.to_json()) + +# convert the object into a dict +paged_economic_data_dto_dict = paged_economic_data_dto_instance.to_dict() +# create an instance of PagedEconomicDataDTO from a dict +paged_economic_data_dto_from_dict = PagedEconomicDataDTO.from_dict(paged_economic_data_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedMarketListDTO.md b/docs/PagedMarketListDTO.md new file mode 100644 index 0000000..1ca691a --- /dev/null +++ b/docs/PagedMarketListDTO.md @@ -0,0 +1,31 @@ +# PagedMarketListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[MarketDTO]**](MarketDTO.md) | The list of markets | [optional] + +## Example + +```python +from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedMarketListDTO from a JSON string +paged_market_list_dto_instance = PagedMarketListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedMarketListDTO.to_json()) + +# convert the object into a dict +paged_market_list_dto_dict = paged_market_list_dto_instance.to_dict() +# create an instance of PagedMarketListDTO from a dict +paged_market_list_dto_from_dict = PagedMarketListDTO.from_dict(paged_market_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedProcessedDataDTO.md b/docs/PagedProcessedDataDTO.md new file mode 100644 index 0000000..a43ee85 --- /dev/null +++ b/docs/PagedProcessedDataDTO.md @@ -0,0 +1,32 @@ +# PagedProcessedDataDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**scroll_id** | **int** | | [optional] +**items** | [**List[MFIProcessedDataDTO]**](MFIProcessedDataDTO.md) | The list of processed data | [optional] + +## Example + +```python +from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedProcessedDataDTO from a JSON string +paged_processed_data_dto_instance = PagedProcessedDataDTO.from_json(json) +# print the JSON string representation of the object +print(PagedProcessedDataDTO.to_json()) + +# convert the object into a dict +paged_processed_data_dto_dict = paged_processed_data_dto_instance.to_dict() +# create an instance of PagedProcessedDataDTO from a dict +paged_processed_data_dto_from_dict = PagedProcessedDataDTO.from_dict(paged_processed_data_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedSurveyListDTO.md b/docs/PagedSurveyListDTO.md new file mode 100644 index 0000000..5953e2e --- /dev/null +++ b/docs/PagedSurveyListDTO.md @@ -0,0 +1,31 @@ +# PagedSurveyListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[SurveyListDTO]**](SurveyListDTO.md) | The list of surveys | [optional] + +## Example + +```python +from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedSurveyListDTO from a JSON string +paged_survey_list_dto_instance = PagedSurveyListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedSurveyListDTO.to_json()) + +# convert the object into a dict +paged_survey_list_dto_dict = paged_survey_list_dto_instance.to_dict() +# create an instance of PagedSurveyListDTO from a dict +paged_survey_list_dto_from_dict = PagedSurveyListDTO.from_dict(paged_survey_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedSurveyResponsesDTO.md b/docs/PagedSurveyResponsesDTO.md new file mode 100644 index 0000000..05a1e3f --- /dev/null +++ b/docs/PagedSurveyResponsesDTO.md @@ -0,0 +1,31 @@ +# PagedSurveyResponsesDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of responses | [optional] +**page** | **int** | The current page | [optional] +**items** | **List[object]** | The list of survey responses | [optional] + +## Example + +```python +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedSurveyResponsesDTO from a JSON string +paged_survey_responses_dto_instance = PagedSurveyResponsesDTO.from_json(json) +# print the JSON string representation of the object +print(PagedSurveyResponsesDTO.to_json()) + +# convert the object into a dict +paged_survey_responses_dto_dict = paged_survey_responses_dto_instance.to_dict() +# create an instance of PagedSurveyResponsesDTO from a dict +paged_survey_responses_dto_from_dict = PagedSurveyResponsesDTO.from_dict(paged_survey_responses_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PagedXlsFormListDTO.md b/docs/PagedXlsFormListDTO.md new file mode 100644 index 0000000..40a0afb --- /dev/null +++ b/docs/PagedXlsFormListDTO.md @@ -0,0 +1,31 @@ +# PagedXlsFormListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_items** | **int** | The total number of items | [optional] +**page** | **int** | The current page | [optional] +**items** | [**List[XlsFormDTO]**](XlsFormDTO.md) | The list of XlsForms | [optional] + +## Example + +```python +from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PagedXlsFormListDTO from a JSON string +paged_xls_form_list_dto_instance = PagedXlsFormListDTO.from_json(json) +# print the JSON string representation of the object +print(PagedXlsFormListDTO.to_json()) + +# convert the object into a dict +paged_xls_form_list_dto_dict = paged_xls_form_list_dto_instance.to_dict() +# create an instance of PagedXlsFormListDTO from a dict +paged_xls_form_list_dto_from_dict = PagedXlsFormListDTO.from_dict(paged_xls_form_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProblemDetails.md b/docs/ProblemDetails.md new file mode 100644 index 0000000..1dd7d96 --- /dev/null +++ b/docs/ProblemDetails.md @@ -0,0 +1,33 @@ +# ProblemDetails + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**title** | **str** | | [optional] +**status** | **int** | | [optional] +**detail** | **str** | | [optional] +**instance** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.problem_details import ProblemDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of ProblemDetails from a JSON string +problem_details_instance = ProblemDetails.from_json(json) +# print the JSON string representation of the object +print(ProblemDetails.to_json()) + +# convert the object into a dict +problem_details_dict = problem_details_instance.to_dict() +# create an instance of ProblemDetails from a dict +problem_details_from_dict = ProblemDetails.from_dict(problem_details_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Properties.md b/docs/Properties.md new file mode 100644 index 0000000..7ce4c66 --- /dev/null +++ b/docs/Properties.md @@ -0,0 +1,29 @@ +# Properties + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.properties import Properties + +# TODO update the JSON string below +json = "{}" +# create an instance of Properties from a JSON string +properties_instance = Properties.from_json(json) +# print the JSON string representation of the object +print(Properties.to_json()) + +# convert the object into a dict +properties_dict = properties_instance.to_dict() +# create an instance of Properties from a dict +properties_from_dict = Properties.from_dict(properties_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RpmeAssessment.md b/docs/RpmeAssessment.md new file mode 100644 index 0000000..9958e13 --- /dev/null +++ b/docs/RpmeAssessment.md @@ -0,0 +1,48 @@ +# RpmeAssessment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | | [optional] +**assessment_date** | **datetime** | | [optional] +**shop_id** | **int** | | [optional] +**adm0_code** | **int** | | [optional] +**adm1_code** | **int** | | [optional] +**adm2_code** | **int** | | [optional] +**adm0_code_dots** | **str** | | [optional] +**adm1_code_dots** | **str** | | [optional] +**adm2_code_dots** | **str** | | [optional] +**market_id** | **int** | | [optional] +**sh_latitude** | **float** | | [optional] +**sh_longitude** | **float** | | [optional] +**nb_beneficiaries_interviewed** | **int** | | [optional] +**price_score_tbu** | **bool** | | [optional] +**price_score_tbd** | **bool** | | [optional] +**beneficiaries_score_tbu** | **bool** | | [optional] +**trd_name** | **str** | | [optional] +**sev_cntr_dev** | **str** | | [optional] +**ben_sev_cntr_dev** | **str** | | [optional] +**output_values** | [**List[RpmeOutputValues]**](RpmeOutputValues.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.rpme_assessment import RpmeAssessment + +# TODO update the JSON string below +json = "{}" +# create an instance of RpmeAssessment from a JSON string +rpme_assessment_instance = RpmeAssessment.from_json(json) +# print the JSON string representation of the object +print(RpmeAssessment.to_json()) + +# convert the object into a dict +rpme_assessment_dict = rpme_assessment_instance.to_dict() +# create an instance of RpmeAssessment from a dict +rpme_assessment_from_dict = RpmeAssessment.from_dict(rpme_assessment_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RpmeAssessmentPagedResult.md b/docs/RpmeAssessmentPagedResult.md new file mode 100644 index 0000000..6625a03 --- /dev/null +++ b/docs/RpmeAssessmentPagedResult.md @@ -0,0 +1,31 @@ +# RpmeAssessmentPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[RpmeAssessment]**](RpmeAssessment.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of RpmeAssessmentPagedResult from a JSON string +rpme_assessment_paged_result_instance = RpmeAssessmentPagedResult.from_json(json) +# print the JSON string representation of the object +print(RpmeAssessmentPagedResult.to_json()) + +# convert the object into a dict +rpme_assessment_paged_result_dict = rpme_assessment_paged_result_instance.to_dict() +# create an instance of RpmeAssessmentPagedResult from a dict +rpme_assessment_paged_result_from_dict = RpmeAssessmentPagedResult.from_dict(rpme_assessment_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RpmeOutputValues.md b/docs/RpmeOutputValues.md new file mode 100644 index 0000000..371295e --- /dev/null +++ b/docs/RpmeOutputValues.md @@ -0,0 +1,30 @@ +# RpmeOutputValues + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**variable_id** | **int** | | [optional] +**output_value** | **float** | | [optional] + +## Example + +```python +from data_bridges_client.models.rpme_output_values import RpmeOutputValues + +# TODO update the JSON string below +json = "{}" +# create an instance of RpmeOutputValues from a JSON string +rpme_output_values_instance = RpmeOutputValues.from_json(json) +# print the JSON string representation of the object +print(RpmeOutputValues.to_json()) + +# convert the object into a dict +rpme_output_values_dict = rpme_output_values_instance.to_dict() +# create an instance of RpmeOutputValues from a dict +rpme_output_values_from_dict = RpmeOutputValues.from_dict(rpme_output_values_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RpmeVariable.md b/docs/RpmeVariable.md new file mode 100644 index 0000000..dfb9ba5 --- /dev/null +++ b/docs/RpmeVariable.md @@ -0,0 +1,37 @@ +# RpmeVariable + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**variable_id** | **int** | | [optional] +**variable_name** | **str** | | [optional] +**variable_description** | **str** | | [optional] +**dimension_id** | **int** | | [optional] +**dimension_name** | **str** | | [optional] +**level_id** | **int** | | [optional] +**level_name** | **str** | | [optional] +**survey_mode_id** | **int** | | [optional] +**survey_mode_name** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.rpme_variable import RpmeVariable + +# TODO update the JSON string below +json = "{}" +# create an instance of RpmeVariable from a JSON string +rpme_variable_instance = RpmeVariable.from_json(json) +# print the JSON string representation of the object +print(RpmeVariable.to_json()) + +# convert the object into a dict +rpme_variable_dict = rpme_variable_instance.to_dict() +# create an instance of RpmeVariable from a dict +rpme_variable_from_dict = RpmeVariable.from_dict(rpme_variable_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RpmeVariablePagedResult.md b/docs/RpmeVariablePagedResult.md new file mode 100644 index 0000000..d067faf --- /dev/null +++ b/docs/RpmeVariablePagedResult.md @@ -0,0 +1,31 @@ +# RpmeVariablePagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[RpmeVariable]**](RpmeVariable.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of RpmeVariablePagedResult from a JSON string +rpme_variable_paged_result_instance = RpmeVariablePagedResult.from_json(json) +# print the JSON string representation of the object +print(RpmeVariablePagedResult.to_json()) + +# convert the object into a dict +rpme_variable_paged_result_dict = rpme_variable_paged_result_instance.to_dict() +# create an instance of RpmeVariablePagedResult from a dict +rpme_variable_paged_result_from_dict = RpmeVariablePagedResult.from_dict(rpme_variable_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SurveyListDTO.md b/docs/SurveyListDTO.md new file mode 100644 index 0000000..9e4df27 --- /dev/null +++ b/docs/SurveyListDTO.md @@ -0,0 +1,43 @@ +# SurveyListDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**survey_id** | **int** | The Id of the Survey | [optional] +**survey_status_id** | **int** | The Id of the Survey status | [optional] +**survey_start_date** | **datetime** | The date when the survey has started | [optional] +**survey_end_date** | **datetime** | The date when the survey has ended | [optional] +**survey_create_date** | **datetime** | The date when the survey has been uploaded in the Data Bridges platform | [optional] +**survey_validation_report** | **str** | The detailed report on the validation performed on the survey schema | [optional] +**survey_original_filename** | **str** | The filename of the survey CSV file | [optional] +**xls_form_name** | **str** | The name of the XLSForm used to collect data | [optional] +**base_xls_form_name** | **str** | The name of the base XLSForm used to build the XLSForm | [optional] +**country_name** | **str** | The name of the country where the survey has taken place | [optional] +**adm0_code** | **int** | The internal code of the country where the survey has taken place | [optional] +**iso3_alpha3** | **str** | The ISO3 alpha code of the country where the survey has taken place | [optional] +**user_name** | **str** | The name of the user that has uploaded the survey data | [optional] +**original_csv_file** | **str** | The link to download the original CSV file | [optional] +**base_data** | **str** | The link to the JSON data reshaped on the base XLSForm | [optional] + +## Example + +```python +from data_bridges_client.models.survey_list_dto import SurveyListDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of SurveyListDTO from a JSON string +survey_list_dto_instance = SurveyListDTO.from_json(json) +# print the JSON string representation of the object +print(SurveyListDTO.to_json()) + +# convert the object into a dict +survey_list_dto_dict = survey_list_dto_instance.to_dict() +# create an instance of SurveyListDTO from a dict +survey_list_dto_from_dict = SurveyListDTO.from_dict(survey_list_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsdIndirectQuotation.md b/docs/UsdIndirectQuotation.md new file mode 100644 index 0000000..f8d9ced --- /dev/null +++ b/docs/UsdIndirectQuotation.md @@ -0,0 +1,36 @@ +# UsdIndirectQuotation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**name** | **str** | the ISO3 code for the currency, based on ISO4217 | [optional] +**adm0_code** | **int** | | [optional] +**country_iso3** | **str** | | [optional] +**is_official** | **bool** | The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database | [optional] +**frequency** | **str** | (it’s from the reporting commodity named Exchange Rate | [optional] +**value** | **float** | | [optional] +**var_date** | **datetime** | | [optional] + +## Example + +```python +from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation + +# TODO update the JSON string below +json = "{}" +# create an instance of UsdIndirectQuotation from a JSON string +usd_indirect_quotation_instance = UsdIndirectQuotation.from_json(json) +# print the JSON string representation of the object +print(UsdIndirectQuotation.to_json()) + +# convert the object into a dict +usd_indirect_quotation_dict = usd_indirect_quotation_instance.to_dict() +# create an instance of UsdIndirectQuotation from a dict +usd_indirect_quotation_from_dict = UsdIndirectQuotation.from_dict(usd_indirect_quotation_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsdIndirectQuotationPagedResult.md b/docs/UsdIndirectQuotationPagedResult.md new file mode 100644 index 0000000..b93be35 --- /dev/null +++ b/docs/UsdIndirectQuotationPagedResult.md @@ -0,0 +1,31 @@ +# UsdIndirectQuotationPagedResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**List[UsdIndirectQuotation]**](UsdIndirectQuotation.md) | | [optional] [readonly] +**page** | **int** | | [optional] +**total_items** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult + +# TODO update the JSON string below +json = "{}" +# create an instance of UsdIndirectQuotationPagedResult from a JSON string +usd_indirect_quotation_paged_result_instance = UsdIndirectQuotationPagedResult.from_json(json) +# print the JSON string representation of the object +print(UsdIndirectQuotationPagedResult.to_json()) + +# convert the object into a dict +usd_indirect_quotation_paged_result_dict = usd_indirect_quotation_paged_result_instance.to_dict() +# create an instance of UsdIndirectQuotationPagedResult from a dict +usd_indirect_quotation_paged_result_from_dict = UsdIndirectQuotationPagedResult.from_dict(usd_indirect_quotation_paged_result_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/XlsFormDTO.md b/docs/XlsFormDTO.md new file mode 100644 index 0000000..fd1d487 --- /dev/null +++ b/docs/XlsFormDTO.md @@ -0,0 +1,35 @@ +# XlsFormDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**xls_form_id** | **int** | | [optional] +**xls_form_name** | **str** | | [optional] +**xls_form_create_date** | **datetime** | | [optional] +**user_name** | **str** | | [optional] +**xls_form_source_file** | **str** | | [optional] +**xls_form_is_base_schema** | **bool** | | [optional] +**adm0_code** | **int** | | [optional] + +## Example + +```python +from data_bridges_client.models.xls_form_dto import XlsFormDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of XlsFormDTO from a JSON string +xls_form_dto_instance = XlsFormDTO.from_json(json) +# print the JSON string representation of the object +print(XlsFormDTO.to_json()) + +# convert the object into a dict +xls_form_dto_dict = xls_form_dto_instance.to_dict() +# create an instance of XlsFormDTO from a dict +xls_form_dto_from_dict = XlsFormDTO.from_dict(xls_form_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/XlsFormDefinitionNewSchemaDTO.md b/docs/XlsFormDefinitionNewSchemaDTO.md new file mode 100644 index 0000000..7da518e --- /dev/null +++ b/docs/XlsFormDefinitionNewSchemaDTO.md @@ -0,0 +1,36 @@ +# XlsFormDefinitionNewSchemaDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**form_name** | **str** | | [optional] +**form_description** | **str** | | [optional] +**form_type** | **str** | | [optional] +**adm0_code** | **int** | | [optional] +**base_schema_id** | **int** | | [optional] +**category** | **str** | | [optional] +**type** | **str** | | [optional] +**fields** | [**List[XlsFormFieldsDTO]**](XlsFormFieldsDTO.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of XlsFormDefinitionNewSchemaDTO from a JSON string +xls_form_definition_new_schema_dto_instance = XlsFormDefinitionNewSchemaDTO.from_json(json) +# print the JSON string representation of the object +print(XlsFormDefinitionNewSchemaDTO.to_json()) + +# convert the object into a dict +xls_form_definition_new_schema_dto_dict = xls_form_definition_new_schema_dto_instance.to_dict() +# create an instance of XlsFormDefinitionNewSchemaDTO from a dict +xls_form_definition_new_schema_dto_from_dict = XlsFormDefinitionNewSchemaDTO.from_dict(xls_form_definition_new_schema_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/XlsFormFieldsDTO.md b/docs/XlsFormFieldsDTO.md new file mode 100644 index 0000000..dc42b48 --- /dev/null +++ b/docs/XlsFormFieldsDTO.md @@ -0,0 +1,32 @@ +# XlsFormFieldsDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**label** | **str** | | [optional] +**type** | **str** | | [optional] +**choice_list** | [**XlsFormListChoicesDTO**](XlsFormListChoicesDTO.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of XlsFormFieldsDTO from a JSON string +xls_form_fields_dto_instance = XlsFormFieldsDTO.from_json(json) +# print the JSON string representation of the object +print(XlsFormFieldsDTO.to_json()) + +# convert the object into a dict +xls_form_fields_dto_dict = xls_form_fields_dto_instance.to_dict() +# create an instance of XlsFormFieldsDTO from a dict +xls_form_fields_dto_from_dict = XlsFormFieldsDTO.from_dict(xls_form_fields_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/XlsFormListChoiceDTO.md b/docs/XlsFormListChoiceDTO.md new file mode 100644 index 0000000..953e247 --- /dev/null +++ b/docs/XlsFormListChoiceDTO.md @@ -0,0 +1,30 @@ +# XlsFormListChoiceDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**label** | **str** | | [optional] + +## Example + +```python +from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of XlsFormListChoiceDTO from a JSON string +xls_form_list_choice_dto_instance = XlsFormListChoiceDTO.from_json(json) +# print the JSON string representation of the object +print(XlsFormListChoiceDTO.to_json()) + +# convert the object into a dict +xls_form_list_choice_dto_dict = xls_form_list_choice_dto_instance.to_dict() +# create an instance of XlsFormListChoiceDTO from a dict +xls_form_list_choice_dto_from_dict = XlsFormListChoiceDTO.from_dict(xls_form_list_choice_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/XlsFormListChoicesDTO.md b/docs/XlsFormListChoicesDTO.md new file mode 100644 index 0000000..4173b54 --- /dev/null +++ b/docs/XlsFormListChoicesDTO.md @@ -0,0 +1,30 @@ +# XlsFormListChoicesDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**choices** | [**List[XlsFormListChoiceDTO]**](XlsFormListChoiceDTO.md) | | [optional] + +## Example + +```python +from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of XlsFormListChoicesDTO from a JSON string +xls_form_list_choices_dto_instance = XlsFormListChoicesDTO.from_json(json) +# print the JSON string representation of the object +print(XlsFormListChoicesDTO.to_json()) + +# convert the object into a dict +xls_form_list_choices_dto_dict = xls_form_list_choices_dto_instance.to_dict() +# create an instance of XlsFormListChoicesDTO from a dict +xls_form_list_choices_dto_from_dict = XlsFormListChoicesDTO.from_dict(xls_form_list_choices_dto_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/generate/swagger-7.0.0.json b/generate/swagger.json similarity index 100% rename from generate/swagger-7.0.0.json rename to generate/swagger.json diff --git a/generate/swagger_v5.1.0.json b/generate/swagger_v5.1.0.json deleted file mode 100644 index 0ff6768..0000000 --- a/generate/swagger_v5.1.0.json +++ /dev/null @@ -1,7229 +0,0 @@ -{ - "openapi" : "3.0.0", - "info" : { - "title" : "VAM-Data-Bridges", - "description" : "API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "contact" : { - "name" : "VAM-INFO", - "email" : "wfp.economicanalysis@wfp.org" - }, - "version" : "5.1.0" - }, - "servers" : [ { - "url" : "https://api.wfp.org/vam-data-bridges/5.1.0" - } ], - "security" : [ { - "default" : [ ] - } ], - "tags" : [ { - "name" : "Aims", - "description" : "The Asset Impact Monitoring from Space (AIMS) is a high-tech, data-driven, service that uses satellite \r\nimagery and landscape monitoring techniques to demonstrate and evaluate the impact of asset creation and livelihood programmes." - }, { - "name" : "Commodities", - "description" : "Returns the list of commodities and their categories." - }, { - "name" : "CommodityUnits", - "description" : "Returns the list of unit of measures and their conversion factors to standard quantities." - }, { - "name" : "Currency", - "description" : "Returns official and, where available, unofficial exchange rates." - }, { - "name" : "EconomicData", - "description" : "Returns the time series of values for different indicators. \r\nOriginal source is Trading Economics, licensed for redistribution only to the Vulnerability Analysis and Mapping - Economic and Market Analysis Unit." - }, { - "name" : "FoodSecurity", - "description" : "IPC data" - }, { - "name" : "Gorp", - "description" : "Number of acutely food insecure people in countries with WFP operational presence, in millions. \r\nSource is WFP’s Global Operational Response plan, numbers are updated with each publication (3 times a year). \r\nNumbers are updates to WFP’s original estimate of COVID-19’s impact on acute food security conducted in June 2020 \r\n(see [https://docs.wfp.org/api/documents/WFP-0000128212/download/](https://docs.wfp.org/api/documents/WFP-0000128212/download/)). In the updates, the original estimations from June 2020 are \r\nreplaced with the most recent assessment data and projections for the given year from Integrated Phase Classification (IPC), Cadre Harmonisé (CH), or \r\ncomparable analyses (peak values). As updates provide improved estimates for the given year, they are not intended for trend analysis." - }, { - "name" : "Household", - "description" : "Household Surveys" - }, { - "name" : "MarketPrices", - "description" : "Returns time series of commodity market prices at different frequencies." - }, { - "name" : "Markets", - "description" : "Returns the list of market locations with Administrative level codes matching with the VAM internal API." - }, { - "name" : "Rpme", - "description" : "Retail Performance Monitoring and Evaluation" - }, { - "name" : "Surveys", - "description" : "Market Functionality Index Surveys" - }, { - "name" : "XlsForms", - "description" : "Market Functionality Index XLS Forms" - } ], - "paths" : { - "/Aims/DownloadAllAnalysisRounds" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Each asset has a baseline and several rounds. Each round reflects the number of times the asset \r\nhas been analysed over time. The number of total rounds changes according to the workstream: \r\nAsset Detection (AD) assets can have a total of 5 rounds, while there is no limit to the monitoring of \r\nLandscape Impact Assessment (LIA) assets. Assets considered for Site Prioritization (SP) have one round only. \r\nPlease note that adm0code can be obtained from https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only).", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadallanalysisrounds_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "The country adm0Code", - "required" : true, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK" - } - }, - "security" : [ { - "default" : [ "vamdatabridges_aims-downloadallanalysisrounds_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Aims/DownloadPolygonFiles" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Polygon files are available for Landscape Impact Assessment (LIA) assets only. \r\nThe file name corresponds to the “Geotrace” name. Please note that adm0code can be obtained \r\nfrom https://api.vam.wfp.org/geodata/swagger/index.html (VPN access only).", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_aims-downloadpolygonfiles_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "The country adm0Code", - "required" : true, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK" - } - }, - "security" : [ { - "default" : [ "vamdatabridges_aims-downloadpolygonfiles_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Commodities/List" : { - "get" : { - "tags" : [ "Commodities" ], - "summary" : "Provide the detailed list of the commodities available in DataBridges platform", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodities-list_get\"\n\nCOICOP 2018 codes are returned to hierarchically matching categories based on [UN-Statistical Division codes](https://unstats.un.org/unsd/classifications/Econ/). No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "commodityName", - "in" : "query", - "description" : "The name, even partial and case insensitive, of a commodity", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a commodity", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_commodities-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Commodities/Categories/List" : { - "get" : { - "tags" : [ "Commodities" ], - "summary" : "Provides the list of categories.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodities-categories-list_get\"\n\nCategories are matched with high level WFP commodity classification at level 1. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "categoryName", - "in" : "query", - "description" : "The name, even partial and case insensitive, of a commodity category.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "categoryID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_commodities-categories-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/CommodityUnits/List" : { - "get" : { - "tags" : [ "CommodityUnits" ], - "summary" : "Provides the detailed list of the unit of measure available in DataBridges platform", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodityunits-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "commodityUnitName", - "in" : "query", - "description" : "The name, even partial and case insensitive, of a commodity unit", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "commodityUnitID", - "in" : "query", - "description" : "The exact ID of a commodity unit", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_commodityunits-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/CommodityUnits/Conversion/List" : { - "get" : { - "tags" : [ "CommodityUnits" ], - "summary" : "Provides conversion factors to Kilogram or Litres for each convertible unit of measure.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_commodityunits-conversion-list_get\"\n\nSome non-standard units of measure might have different a conversion factor based on the country [Adm0Code]; Other non-standard units of measure might have a different conversion factor based on the commodity [CommodityID] being measured. Other cases will have null adm0code and CommodityID. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "fromUnitID", - "in" : "query", - "description" : "The exact ID of the original unit of measure of the price of a commodity, as found in /CommodityUnits/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "toUnitID", - "in" : "query", - "description" : "The exact ID of the converted unit of measure of the price of a commodity, as found in /CommodityUnits/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_commodityunits-conversion-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Currency/List" : { - "get" : { - "tags" : [ "Currency" ], - "summary" : "Returns the list of currencies available in the internal VAM database, with Currency 3-letter code, matching with ISO 4217.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_currency-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "currencyName", - "in" : "query", - "description" : "Currency 3-letter code, matching with ISO 4217.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "Unique code to identify the currency in internal VAM currencies.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCurrencyListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCurrencyListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCurrencyListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_currency-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Currency/UsdIndirectQuotation" : { - "get" : { - "tags" : [ "Currency" ], - "summary" : "Returns the value of the Exchange rates from Trading Economics, for official rates, and DataViz for unofficial rates.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_currency-usdindirectquotation_get\"\n\nReturns the time series of values of the Exchange rate of the Local Currency for buying 1 USD in the official market. Original frequency for official rates is daily, non-indicated. Unofficial rates are aggregated at national level by the original frequency of collection. For greater detail on unofficial exchange rates, explore the Exchange Rate (unofficial) commodity in Market Prices Prices. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryIso3", - "in" : "query", - "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyName", - "in" : "query", - "description" : "the ISO3 code for the currency, based on ISO4217", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/UsdIndirectQuotationPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_currency-usdindirectquotation_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/EconomicData/{indicatorName}" : { - "get" : { - "tags" : [ "EconomicData" ], - "summary" : "Returns the time series of values for different indicators.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_economicdata_get\"\n\nIndicator name as retrieved from /EconomicData/IndicatorList is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "indicatorName", - "in" : "path", - "description" : "Name of the indicator as found in /EconomicData/IndicatorList.", - "required" : true, - "style" : "simple", - "explode" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "iso3", - "in" : "query", - "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedEconomicDataDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedEconomicDataDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedEconomicDataDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_economicdata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/EconomicData/IndicatorList" : { - "get" : { - "tags" : [ "EconomicData" ], - "summary" : "Returns the lists of indicators.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_economicdata-indicatorlist_get\"\n\nReturns the lists of indicators for which Vulnerability Analysis and Mapping - Economic and Market Analysis Unit has redistribution licensing from Trading Economics. No mandatory parameter.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "indicatorName", - "in" : "query", - "description" : "Unique indicator name.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "iso3", - "in" : "query", - "description" : "The code to identify the country. Must be a ISO-3166 Alpha 3 code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/EconomicIndicatorPropertyPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_economicdata-indicatorlist_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/FoodSecurity/List" : { - "get" : { - "tags" : [ "FoodSecurity" ], - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_foodsecurity-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "iso3", - "in" : "query", - "description" : "The country ISO3 code", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "year", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/IpcValuePagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/IpcValuePagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/IpcValuePagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_foodsecurity-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Gorp/List" : { - "get" : { - "tags" : [ "Gorp" ], - "summary" : "Return the full dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "page", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_gorp-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Gorp/Latest" : { - "get" : { - "tags" : [ "Gorp" ], - "summary" : "Return the latest dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-latest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "page", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpValueWithChangesPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_gorp-latest_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Gorp/CountryLatest" : { - "get" : { - "tags" : [ "Gorp" ], - "summary" : "Return the latest country dataset of number of acutely food insecure (in thousands) based on WFP Global Operational Response Plan.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-countrylatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpCountryApiDto" - } - } - }, - "application/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpCountryApiDto" - } - } - }, - "text/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpCountryApiDto" - } - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_gorp-countrylatest_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Gorp/RegionalLatest" : { - "get" : { - "tags" : [ "Gorp" ], - "summary" : "Return the latest regional dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-regionallatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpRegionalApiDto" - } - } - }, - "application/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpRegionalApiDto" - } - } - }, - "text/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/GorpRegionalApiDto" - } - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_gorp-regionallatest_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Gorp/GlobalLatest" : { - "get" : { - "tags" : [ "Gorp" ], - "summary" : "Return the latest global dataset of number of acutely food insecure (in millions) based on WFP Global Operational Response Plan.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_gorp-globallatest_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/GorpGlobalApiDto" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpGlobalApiDto" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/GorpGlobalApiDto" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_gorp-globallatest_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Household/Surveys" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all household surveys conducted in a country. \r\nA date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload for each survey.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "surveyId", - "in" : "query", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/HouseholdSurveyListDTOPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_household-surveys_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Household/FullData" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core household fields by Survey ID.\r\nTo access this data, please contact Wael ATTIA for authorization. \r\nThis endpoint will send you only data you have access to, based on permissions assigned to your application profile. \r\nThe \"apiKey\" can be found in the profile section of the DataBridges application.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "apiKey", - "in" : "query", - "required" : true, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "403" : { - "description" : "Forbidden", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_household-fulldata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Household/DraftInternalBaseData" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Get data that includes the core household fields only by Survey ID.\r\nTo access this data, please contact Wael ATTIA for authorization. \r\nThis endpoint will send you only data you have access to, based on permissions assigned to your application profile. \r\nThe \"apiKey\" can be found in the profile section of the DataBridges application.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-draftinternalbasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "apiKey", - "in" : "query", - "required" : true, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "403" : { - "description" : "Forbidden", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_household-draftinternalbasedata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Household/OfficialUseBaseData" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Get data that includes the core household fields only by Survey ID", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-officialusebasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_household-officialusebasedata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Household/PublicBaseData" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Get data that includes the core household fields only by Survey ID", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_household-publicbasedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_household-publicbasedata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MarketPrices/PriceMonthly" : { - "get" : { - "tags" : [ "MarketPrices" ], - "summary" : "Returns a monthly time series of commodity market prices.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricemonthly_get\"\n\nThis is the lowest frequency available and the most complete data source. Data is flagged according to its pre-processing characteristics. actual data is collected originally with monthly frequency; aggregated data is collected with higher frequency (daily or weekly) averaged through a weighted mean to monthly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceTypeName", - "in" : "query", - "description" : "Price type: [retail|wholesale|farmgate]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "The exact ID of a currency, as found in /Currency/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceFlag", - "in" : "query", - "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "latestValueOnly", - "in" : "query", - "description" : "[TRUE|FALSE]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_marketprices-pricemonthly_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MarketPrices/PriceWeekly" : { - "get" : { - "tags" : [ "MarketPrices" ], - "summary" : "Returns a weekly time series of commodity market prices.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-priceweekly_get\"\n\nWeeks used as reference are the International Organization for Standardization (ISO) week-numbering year (ISO-8601). Data is flagged according to its pre-processing characteristics. Aactual data is collected originally with weekly frequency; aggregated data is collected with higher frequency (daily) averaged through a weighted mean to weekly; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in [DataLibrary](https://datalib.vam.wfp.org/). For specific methodological notes on forecasts and imputations refer to the dedicated page in [DataViz](https://dataviz.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceTypeName", - "in" : "query", - "description" : "Price type: [retail|wholesale|farmgate]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "The exact ID of a currency, as found in /Currency/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceFlag", - "in" : "query", - "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "latestValueOnly", - "in" : "query", - "description" : "[TRUE|FALSE]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityWeeklyAggregatedPriceListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_marketprices-priceweekly_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MarketPrices/PriceDaily" : { - "get" : { - "tags" : [ "MarketPrices" ], - "summary" : "Returns a daily time series of commodity market prices.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-pricedaily_get\"\n\nThis is the highest frequency available. Data is flagged according to its pre-processing characteristics.\r\nActual data is collected originally with daily frequency; aggregated data returns an empty list; imputed data is an estimation of missing values in the time series, obtained through the R Amelia-II package; forecasted data is a six months prediction obtained through different methods, which are reported in the API. For country specific meta-data please refer to documentation available in DataLibrary. For specific methodological notes on forecasts and imputations refer to the dedicated page in DataViz. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceTypeName", - "in" : "query", - "description" : "Price type: [retail|wholesale|farmgate]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "The exact ID of a currency, as found in /Currency/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceFlag", - "in" : "query", - "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "latestValueOnly", - "in" : "query", - "description" : "[TRUE|FALSE]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPricePagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_marketprices-pricedaily_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MarketPrices/PriceRaw" : { - "get" : { - "tags" : [ "MarketPrices" ], - "summary" : "Returns original commodity market prices", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-priceraw_get\"\n\nRestricted endpoint. Returns the original data with the entire Commodity Price Metadata as inserted by the focal point, which might contain sensitive or personal informatio. Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceTypeName", - "in" : "query", - "description" : "Price type: [retail|wholesale|farmgate]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "The exact ID of a currency, as found in /Currency/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceFlag", - "in" : "query", - "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "latestValueOnly", - "in" : "query", - "description" : "[TRUE|FALSE]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedCommodityPriceListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_marketprices-priceraw_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MarketPrices/Alps" : { - "get" : { - "tags" : [ "MarketPrices" ], - "summary" : "Returns time series values of ALPS and PEWI.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_marketprices-alps_get\"\n\nReturns the full time series of the Alert for Price Spikes (ALPS) and the value of the Price Early Warning Index (PEWI). Methodology is available in [DataViz](https://dataviz.vam.wfp.org/) and [VAM-Resource Centre](https://resources.vam.wfp.org/). Country code, either ISO-3166 Alpha 3 code or the VAM internal admin0code is mandatory.\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "Unique ID of a Market, as found in /Markets/GeoJSONList", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "commodityID", - "in" : "query", - "description" : "The exact ID of a Commodity, as found in /Commodities/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceTypeName", - "in" : "query", - "description" : "Price type: [retail|wholesale|farmgate]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "currencyID", - "in" : "query", - "description" : "The exact ID of a currency, as found in /Currency/List", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "priceFlag", - "in" : "query", - "description" : "Type of price data: [actual|aggregate|estimated|forecasted]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \\\"-\\\" month \\\"-\\\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "latestValueOnly", - "in" : "query", - "description" : "[TRUE|FALSE]", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "page", - "in" : "query", - "description" : "Page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAlpsValuePagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAlpsValuePagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ViewExtendedAlpsValuePagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_marketprices-alps_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Markets/GeoJSONList" : { - "get" : { - "tags" : [ "Markets" ], - "summary" : "Provide a list of geo referenced markets in a specific country", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-geojsonlist_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0code", - "in" : "query", - "description" : "The admin code of the country", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/geo+json" : { - "schema" : { - "$ref" : "#/components/schemas/MarketGeoJsonRoot" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/geo+json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_markets-geojsonlist_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Markets/NearbyMarkets" : { - "get" : { - "tags" : [ "Markets" ], - "summary" : "Find markets near a given location by longitude and latitude within a 15Km distance", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-nearbymarkets_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "lat", - "in" : "query", - "description" : "latitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "number", - "format" : "double" - } - }, { - "name" : "lng", - "in" : "query", - "description" : "longitude of the point that will be used to search for existing nearby markets. Geo-reference standard used for this coordinate is decimal", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "number", - "format" : "double" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/NearbyMarketsDTO" - } - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_markets-nearbymarkets_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Markets/MarketsAsCSV" : { - "get" : { - "tags" : [ "Markets" ], - "summary" : "Get a complete list of markets in a country", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-marketsascsv_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0code", - "in" : "query", - "description" : "The admin code of the country", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "localNames", - "in" : "query", - "description" : "If true the name of markets and regions will be localized if available", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "boolean", - "default" : false - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "type" : "string", - "format" : "binary" - } - }, - "application/json" : { - "schema" : { - "type" : "string", - "format" : "binary" - } - }, - "text/json" : { - "schema" : { - "type" : "string", - "format" : "binary" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_markets-marketsascsv_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Markets/List" : { - "get" : { - "tags" : [ "Markets" ], - "summary" : "Get a complete list of markets in a country", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_markets-list_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "countryCode", - "in" : "query", - "description" : "The code to identify the country. It can be a ISO-3166 Alpha 3 code or the VAM internal admin0code", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedMarketListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedMarketListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedMarketListDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_markets-list_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/Variables" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "List of variables", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-variables_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "page", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeVariablePagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeVariablePagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeVariablePagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-variables_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/OutputValues" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "Processed values for each variable used in the assessments", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-outputvalues_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "adm0Code", - "in" : "query", - "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "surveyId", - "in" : "query", - "description" : "The ID of the survey", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "shopId", - "in" : "query", - "description" : "The ID of the shop", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "marketId", - "in" : "query", - "description" : "The ID of the market", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "adm0CodeDots", - "in" : "query", - "description" : "", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/RpmeAssessmentPagedResult" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-outputvalues_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/Surveys" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all RPME surveys conducted in a country. The date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload of each survey.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyListDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyListDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-surveys_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/XLSForms" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "Get a complete list of XLS Forms uploaded on the RPME in a given period of data collection. This is the digital version of the questionnaire used during the data collection exercise.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-xlsforms_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedXlsFormListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-xlsforms_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/FullData" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core RPME fields by Survey ID.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-fulldata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/Rpme/BaseData" : { - "get" : { - "tags" : [ "Rpme" ], - "summary" : "Get data that includes the core RPME fields only by Survey ID", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_rpme-basedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_rpme-basedata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/Surveys" : { - "get" : { - "tags" : [ "Surveys" ], - "summary" : "Retrieve 1) Survey IDs, 2) their corresponding XLS Form IDs, and 3) Base XLS Form of all MFI surveys conducted in a country. \r\nA date of reference, SurveyDate, for the data collection is set by the officer responsible for the upload for each survey.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-surveys_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/Surveys/ProcessedData" : { - "get" : { - "tags" : [ "Surveys" ], - "summary" : "Get a MFI processed data in long format; levels indicate the data aggregation level 1) Normalized Score, 2) Trader Aggregate Score, \r\n3) Market Aggregate Score, 4) Trader Median, 5) Trader Mean, 6) Market Mean; each line corresponds to one of the nine dimensions of scores \r\nplus the final MFI aggregate score; 1) Assortment, 2) Availability, 3) Price, 4) Resilience, 5) Competition, 6) Infrastructure, 7) Service, \r\n8) Quality, 9) Access and Protection, and 10) MFI final score; the variable label describes each variable and its value range", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-processeddata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "The ID of the survey", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "adm0Codes", - "in" : "query", - "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "The ID of the market", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "surveyType", - "in" : "query", - "description" : "The survey type", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-surveys-processeddata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/Surveys/ProcessedDataWithKeysetPagination" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Please use this endpoint only for large data retrieval - Response will include only JSON format - \r\nGet a MFI processed data in long format; levels indicate the data aggregation level 1) Normalized Score, 2) Trader Aggregate Score, \r\n3) Market Aggregate Score, 4) Trader Median, 5) Trader Mean, 6) Market Mean; each line corresponds to one of the nine dimensions of scores \r\nplus the final MFI aggregate score; 1) Assortment, 2) Availability, 3) Price, 4) Resilience, 5) Competition, 6) Infrastructure, 7) Service, \r\n8) Quality, 9) Access and Protection, and 10) MFI final score; the variable label describes each variable and its value range", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-processeddatakeysetpagination_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "The ID of the survey", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "scrollId", - "in" : "query", - "description" : "The pointer to the next paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "pageSize", - "in" : "query", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1000 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "Starting date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "Ending date for the range in which data was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "adm0Codes", - "in" : "query", - "description" : "Code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "marketID", - "in" : "query", - "description" : "The ID of the market", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "surveyType", - "in" : "query", - "description" : "The survey type", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedProcessedDataDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/Surveys/FullData" : { - "get" : { - "tags" : [ "Surveys" ], - "summary" : "Get a full dataset that includes all the fields included in the survey in addition to the core Market Functionality Index (MFI) fields by Survey ID. To access this data, please contact global.mfi@wfp.org for authorization.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access%20Policy-TEC_Architecture_+_Service_Owner_approvals_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Official%20Use%20Only-yellow)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-fulldata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "format", - "in" : "query", - "description" : "Output format: [JSON|CSV] Json is the default value", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "default" : "json" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-surveys-fulldata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/Surveys/BaseData" : { - "get" : { - "tags" : [ "Surveys" ], - "summary" : "Get data that includes the core Market Functionality Index (MFI) fields only by Survey ID", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-surveys-basedata_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "surveyID", - "in" : "query", - "description" : "unique identifier for the collected data, as retrieved from /Surveys API.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "pageSize", - "in" : "query", - "description" : "page size for paged results, default value is 20.", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 20 - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedSurveyResponsesDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - }, - "404" : { - "description" : "Not Found", - "content" : { - "text/plain" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - }, - "text/json" : { - "schema" : { - "$ref" : "#/components/schemas/ProblemDetails" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-surveys-basedata_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/MFI/XlsForms" : { - "get" : { - "tags" : [ "XlsForms" ], - "summary" : "Get a complete list of XLS Forms uploaded on the MFI Data Bridge in a given period of data collection. This is the digital version of the questionnaire used during the data collection exercise.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Production%20Ready-green)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_mfi-xlsforms_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "adm0Code", - "in" : "query", - "description" : "code for the country as retrieved from https://api.vam.wfp.org/geodata/CountriesInRegion", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 0 - } - }, { - "name" : "page", - "in" : "query", - "description" : "page number for paged results", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32", - "default" : 1 - } - }, { - "name" : "startDate", - "in" : "query", - "description" : "starting date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "endDate", - "in" : "query", - "description" : "ending date for the range in which data using this XLSForm was collected. Use the date formats defined by RFC 3339 ; use strings matching year \"-\" month \"-\" day (e.g. 2020/06/24)", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "format" : "date-time" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PagedXlsFormListDTO" - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_mfi-xlsforms_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - }, - "/XlsForms/definition" : { - "get" : { - "tags" : [ "Incubation" ], - "summary" : "Get a complete set of XLS Form definitions of a given XLS Form ID. This is the digital version of the questionnaire used during the data collection exercise.", - "description" : "\n\n[![Generic badge](https://img.shields.io/badge/Maturity%20Level-Incubation-red)]()\n\n[![Generic badge](https://img.shields.io/badge/Access_Policy-TEC_Architecture_approval_required-yellow)]()\n\n[![Generic badge](https://img.shields.io/badge/Data%20Classification-Public-green)]()\n\n### This endpoint is restricted, it requires the scope: \"vamdatabridges_xlsforms-definition_get\"\n\n\n\n\n\n**Data Controller** - Wael ATTIA\n\n**API Integration Pattern** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern", - "parameters" : [ { - "name" : "xlsFormId", - "in" : "query", - "description" : "unique identifier for the XLS Form, as retrieved from /XLSForms", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, { - "name" : "env", - "in" : "query", - "description" : "Environment.\n * `prod` - api.vam.wfp.org\n * `dev` - dev.api.vam.wfp.org", - "required" : false, - "style" : "form", - "explode" : true, - "schema" : { - "type" : "string", - "enum" : [ "prod", "dev" ] - } - } ], - "responses" : { - "200" : { - "description" : "OK", - "content" : { - "application/json" : { - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/XlsFormDefinitionNewSchemaDTO" - } - } - } - } - }, - "400" : { - "description" : "Bad Request", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/BadRequestDTO" - } - } - } - } - }, - "security" : [ { - "default" : [ "vamdatabridges_xlsforms-definition_get" ] - } ], - "x-auth-type" : "Application & Application User", - "x-throttling-tier" : "Unlimited" - } - } - }, - "components" : { - "schemas" : { - "BadRequestDTO" : { - "type" : "object", - "properties" : { - "error" : { - "type" : "string", - "description" : "The error message returned by the application", - "nullable" : true - } - }, - "additionalProperties" : { }, - "description" : "" - }, - "CommodityDTO" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "description" : "The internal ID of the commodity", - "format" : "int32" - }, - "parentId" : { - "type" : "integer", - "description" : "The internal parent ID of the commodity", - "format" : "int32", - "nullable" : true - }, - "name" : { - "type" : "string", - "description" : "The name of the commodity", - "nullable" : true - }, - "coicop2018" : { - "type" : "string", - "description" : "The COICOP 2018 definition", - "nullable" : true - }, - "supply" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "categoryId" : { - "type" : "integer", - "format" : "int32" - }, - "createDate" : { - "type" : "string", - "format" : "date-time" - }, - "updateDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - }, - "qualities" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/CommodityQualityDTO" - } - }, - "processing" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/CommodityProcessingDTO" - } - } - }, - "additionalProperties" : { } - }, - "CommodityPriceDTO" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "description" : "The internal ID of the commodity", - "format" : "int32" - }, - "commodityId" : { - "type" : "integer", - "format" : "int32" - }, - "marketId" : { - "type" : "integer", - "format" : "int32" - }, - "priceTypeId" : { - "type" : "integer", - "format" : "int32" - }, - "commodityUnitId" : { - "type" : "integer", - "format" : "int32" - }, - "currencyId" : { - "type" : "integer", - "format" : "int32" - }, - "commodityName" : { - "type" : "string", - "nullable" : true - }, - "marketName" : { - "type" : "string", - "nullable" : true - }, - "priceTypeName" : { - "type" : "string", - "nullable" : true - }, - "unitName" : { - "type" : "string", - "nullable" : true - }, - "currencyName" : { - "type" : "string", - "nullable" : true - }, - "originalFrequency" : { - "type" : "string", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32" - }, - "countryISO3" : { - "type" : "string", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "nullable" : true - }, - "commodityPrice" : { - "type" : "number", - "format" : "double" - }, - "commodityPriceSourceName" : { - "type" : "string", - "nullable" : true - }, - "commodityPriceMetadata" : { - "nullable" : true - }, - "commodityPriceDate" : { - "type" : "string", - "format" : "date-time" - }, - "commodityPriceObservations" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDateDay" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDateWeek" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDateMonth" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDateYear" : { - "type" : "integer", - "format" : "int32" - }, - "commodityPriceInsertDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - }, - "commodityPriceFlag" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "CommodityProcessingDTO" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "description" : "The internal ID of the commodity", - "format" : "int32" - }, - "name" : { - "type" : "string", - "description" : "The name of the process", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "CommodityQualityDTO" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "description" : "The internal ID of the commodity", - "format" : "int32" - }, - "name" : { - "type" : "string", - "description" : "The name of the commodity", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "CurrencyDTO" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "description" : "The internal ID of the unit", - "format" : "int32" - }, - "name" : { - "type" : "string", - "description" : "The name of the unit", - "nullable" : true - }, - "extendedName" : { - "type" : "string", - "nullable" : true - }, - "createDate" : { - "type" : "string", - "format" : "date-time" - }, - "updateDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "EconomicDataDTO" : { - "type" : "object", - "properties" : { - "date" : { - "type" : "string", - "format" : "date-time" - }, - "value" : { - "type" : "number", - "format" : "double" - } - }, - "additionalProperties" : { } - }, - "EconomicIndicatorProperty" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int32" - }, - "name" : { - "type" : "string", - "nullable" : true - }, - "frequency" : { - "type" : "string", - "nullable" : true - }, - "unit" : { - "type" : "string", - "nullable" : true - }, - "dataSource" : { - "type" : "string", - "nullable" : true - }, - "countryIso3" : { - "type" : "string", - "nullable" : true - }, - "latestValue" : { - "type" : "number", - "format" : "double" - }, - "latestValueDate" : { - "type" : "string", - "format" : "date-time" - } - }, - "additionalProperties" : { } - }, - "EconomicIndicatorPropertyPagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/EconomicIndicatorProperty" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "Feature" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "nullable" : true - }, - "id" : { - "type" : "integer", - "format" : "int32" - }, - "bbox" : { - "type" : "array", - "nullable" : true, - "items" : { - "type" : "number", - "format" : "double" - } - }, - "geometry" : { - "$ref" : "#/components/schemas/Geometry" - }, - "properties" : { - "$ref" : "#/components/schemas/Properties" - } - }, - "additionalProperties" : { } - }, - "Geometry" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "nullable" : true - }, - "coordinates" : { - "type" : "array", - "nullable" : true, - "items" : { - "type" : "number", - "format" : "double" - } - } - }, - "additionalProperties" : { } - }, - "GorpCountryApiDto" : { - "type" : "object", - "properties" : { - "gorpDate" : { - "type" : "string", - "nullable" : true - }, - "countryOfficeIso3" : { - "type" : "string", - "nullable" : true - }, - "gorpTotalValue" : { - "type" : "number", - "format" : "double" - }, - "gorpComment" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "GorpGlobalApiDto" : { - "type" : "object", - "properties" : { - "gorpDate" : { - "type" : "string", - "nullable" : true - }, - "gorpRegionName" : { - "type" : "string", - "nullable" : true - }, - "gorpTotalValue" : { - "type" : "number", - "format" : "double" - }, - "numberOfCountries" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "gorpComment" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "GorpRegionalApiDto" : { - "type" : "object", - "properties" : { - "gorpDate" : { - "type" : "string", - "nullable" : true - }, - "gorpRegionName" : { - "type" : "string", - "nullable" : true - }, - "gorpTotalValue" : { - "type" : "number", - "format" : "double" - }, - "numberOfCountries" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "gorpComment" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "GorpValueWithChanges" : { - "type" : "object", - "properties" : { - "year" : { - "type" : "integer", - "format" : "int32" - }, - "month" : { - "type" : "string", - "nullable" : true - }, - "regionName" : { - "type" : "string", - "nullable" : true - }, - "actualValue" : { - "type" : "number", - "format" : "double" - }, - "baselineValue" : { - "type" : "number", - "format" : "double" - }, - "percentageChange" : { - "type" : "number", - "format" : "double" - }, - "absoluteChange" : { - "type" : "number", - "format" : "double" - }, - "comments" : { - "type" : "string", - "nullable" : true - }, - "numberOfCountries" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "GorpValueWithChangesPagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/GorpValueWithChanges" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "HouseholdSurveyListDTO" : { - "type" : "object", - "properties" : { - "surveyID" : { - "type" : "integer", - "description" : "The Id of the Survey", - "format" : "int32" - }, - "surveyStatusID" : { - "type" : "integer", - "description" : "The Id of the Survey status", - "format" : "int32" - }, - "surveyStartDate" : { - "type" : "string", - "description" : "The date when the survey has started", - "format" : "date-time", - "nullable" : true - }, - "surveyEndDate" : { - "type" : "string", - "description" : "The date when the survey has ended", - "format" : "date-time", - "nullable" : true - }, - "surveyCreateDate" : { - "type" : "string", - "description" : "The date when the survey has been uploaded in the Data Bridges platform", - "format" : "date-time" - }, - "surveyValidationReport" : { - "type" : "string", - "description" : "The detailed report on the validation performed on the survey schema", - "nullable" : true - }, - "surveyOriginalFilename" : { - "maxLength" : 256, - "minLength" : 0, - "type" : "string", - "description" : "The filename of the survey CSV file", - "nullable" : true - }, - "xlsFormName" : { - "type" : "string", - "description" : "The name of the XLSForm used to collect data", - "nullable" : true - }, - "baseXlsFormName" : { - "type" : "string", - "description" : "The name of the base XLSForm used to build the XLSForm", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "description" : "The name of the country where the survey has taken place", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "description" : "The internal code of the country where the survey has taken place", - "format" : "int32" - }, - "iso3Alpha3" : { - "type" : "string", - "description" : "The ISO3 alpha code of the country where the survey has taken place", - "nullable" : true - }, - "userName" : { - "type" : "string", - "description" : "The name of the user that has uploaded the survey data", - "nullable" : true - }, - "approvedBy" : { - "type" : "string", - "nullable" : true - }, - "originalCsvFile" : { - "type" : "string", - "description" : "The link to download the original CSV file", - "nullable" : true - }, - "baseData" : { - "type" : "string", - "description" : "The link to the JSON data reshaped on the base XLSForm", - "nullable" : true - }, - "surveyAttributes" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/KeyNameDto" - } - }, - "organizations" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/KeyNameDto" - } - }, - "surveyModalityName" : { - "type" : "string", - "nullable" : true - }, - "surveyCategoryName" : { - "type" : "string", - "nullable" : true - }, - "surveySubCategoryName" : { - "type" : "string", - "nullable" : true - }, - "surveyPhaseName" : { - "type" : "string", - "nullable" : true - }, - "surveyVisibility" : { - "type" : "string", - "nullable" : true - }, - "isContinuousMonitoring" : { - "type" : "boolean" - }, - "surveyName" : { - "type" : "string", - "nullable" : true - }, - "xlsFormId" : { - "type" : "integer", - "format" : "int32" - }, - "baseXlsFormId" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "HouseholdSurveyListDTOPagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/HouseholdSurveyListDTO" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "IpcValue" : { - "type" : "object", - "properties" : { - "ipcId" : { - "type" : "integer", - "format" : "int32" - }, - "ipcYear" : { - "type" : "integer", - "format" : "int32" - }, - "iso3Alpha3" : { - "maxLength" : 3, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcIsLatestValue" : { - "type" : "boolean" - }, - "ipcCountryName" : { - "maxLength" : 128, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcAreaName" : { - "maxLength" : 128, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcPhase3Population" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "ipcPhase4Population" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "ipcPhase5Population" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "ipcPhase3Percentage" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "ipcPhase4Percentage" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "ipcPhase5Percentage" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "ipcAnalysedPopulation" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "ipcAnalysedPercentage" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "ipcAnalysisComment" : { - "type" : "string", - "nullable" : true - }, - "ipcDataType" : { - "maxLength" : 256, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcDataSource" : { - "maxLength" : 128, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcReferencePeriod" : { - "maxLength" : 256, - "minLength" : 0, - "type" : "string", - "nullable" : true - }, - "ipcCreateDate" : { - "type" : "string", - "format" : "date-time" - }, - "ipcUpdateDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "IpcValuePagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/IpcValue" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "KeyNameDto" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int32" - }, - "name" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "MFIProcessedDataDTO" : { - "type" : "object", - "properties" : { - "surveyID" : { - "type" : "integer", - "description" : "The Id of the Survey", - "format" : "int32" - }, - "startDate" : { - "type" : "string", - "description" : "The Id of the Survey status", - "format" : "date-time", - "nullable" : true - }, - "endDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - }, - "marketID" : { - "type" : "integer", - "format" : "int32" - }, - "marketName" : { - "type" : "string", - "nullable" : true - }, - "marketLatitude" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "marketLongitude" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "regionalBureauID" : { - "type" : "integer", - "format" : "int32" - }, - "regionalBureauName" : { - "type" : "string", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm0Name" : { - "type" : "string", - "nullable" : true - }, - "adm1Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm1Name" : { - "type" : "string", - "nullable" : true - }, - "adm2Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm2Name" : { - "type" : "string", - "nullable" : true - }, - "levelID" : { - "type" : "integer", - "format" : "int32" - }, - "levelName" : { - "type" : "string", - "nullable" : true - }, - "dimensionID" : { - "type" : "integer", - "format" : "int32" - }, - "dimensionName" : { - "type" : "string", - "nullable" : true - }, - "variableID" : { - "type" : "integer", - "format" : "int32" - }, - "variableName" : { - "type" : "string", - "nullable" : true - }, - "variableLabel" : { - "type" : "string", - "nullable" : true - }, - "outputValue" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "tradersSampleSize" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "baseXlsFormID" : { - "type" : "integer", - "format" : "int32" - }, - "baseXlsFormName" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "MarketDTO" : { - "type" : "object", - "properties" : { - "marketId" : { - "type" : "integer", - "description" : "The internal ID of the market", - "format" : "int32" - }, - "marketName" : { - "type" : "string", - "description" : "The name of the market", - "nullable" : true - }, - "marketLocalName" : { - "type" : "string", - "description" : "The local name of the market", - "nullable" : true - }, - "marketLatitude" : { - "type" : "number", - "description" : "The decimal latitude", - "format" : "double", - "nullable" : true - }, - "marketLongitude" : { - "type" : "number", - "description" : "The decimal longitude", - "format" : "double", - "nullable" : true - }, - "admin1Name" : { - "type" : "string", - "description" : "The name of the first level administrative division where the market is placed", - "nullable" : true - }, - "admin1Code" : { - "type" : "integer", - "description" : "The code of the first level administrative division where the market is placed", - "format" : "int32", - "nullable" : true - }, - "admin2Name" : { - "type" : "string", - "description" : "The name of the second level administrative division where the market is placed", - "nullable" : true - }, - "admin2Code" : { - "type" : "integer", - "description" : "The code of the second level administrative division where the market is placed", - "format" : "int32", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "MarketGeoJsonRoot" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "nullable" : true - }, - "features" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/Feature" - } - }, - "bbox" : { - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "NearbyMarketsDTO" : { - "type" : "object", - "properties" : { - "marketId" : { - "type" : "integer", - "description" : "The internal ID of the market", - "format" : "int32" - }, - "marketName" : { - "type" : "string", - "description" : "The name of the market", - "nullable" : true - }, - "distance" : { - "type" : "number", - "description" : "The distance in meters of the market from the provided point", - "format" : "double" - } - }, - "additionalProperties" : { } - }, - "PagedCommodityListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of paged items", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/CommodityDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedCommodityPriceListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of paged items", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/CommodityPriceDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedCommodityWeeklyAggregatedPriceListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of paged items", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/WeeklyAggregatedPrice" - } - } - }, - "additionalProperties" : { } - }, - "PagedCurrencyListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of paged items", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/CurrencyDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedEconomicDataDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "unit" : { - "type" : "string", - "nullable" : true - }, - "frequency" : { - "type" : "string", - "nullable" : true - }, - "dataSource" : { - "type" : "string", - "nullable" : true - }, - "items" : { - "type" : "array", - "description" : "The list of paged items", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/EconomicDataDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedMarketListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of markets", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/MarketDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedProcessedDataDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "scrollId" : { - "type" : "integer", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of processed data", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/MFIProcessedDataDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedSurveyListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of surveys", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/SurveyListDTO" - } - } - }, - "additionalProperties" : { } - }, - "PagedSurveyResponsesDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of responses", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of survey responses", - "nullable" : true, - "items" : { } - } - }, - "additionalProperties" : { } - }, - "PagedXlsFormListDTO" : { - "type" : "object", - "properties" : { - "totalItems" : { - "type" : "integer", - "description" : "The total number of items", - "format" : "int32" - }, - "page" : { - "type" : "integer", - "description" : "The current page", - "format" : "int32" - }, - "items" : { - "type" : "array", - "description" : "The list of XlsForms", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/XlsFormDTO" - } - } - }, - "additionalProperties" : { } - }, - "ProblemDetails" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "nullable" : true - }, - "title" : { - "type" : "string", - "nullable" : true - }, - "status" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "detail" : { - "type" : "string", - "nullable" : true - }, - "instance" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "Properties" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "RpmeAssessment" : { - "type" : "object", - "properties" : { - "surveyId" : { - "type" : "integer", - "format" : "int32" - }, - "assessmentDate" : { - "type" : "string", - "format" : "date-time" - }, - "shopId" : { - "type" : "integer", - "format" : "int32" - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm1Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm2Code" : { - "type" : "integer", - "format" : "int32" - }, - "adm0CodeDOTS" : { - "type" : "string", - "nullable" : true - }, - "adm1CodeDOTS" : { - "type" : "string", - "nullable" : true - }, - "adm2CodeDOTS" : { - "type" : "string", - "nullable" : true - }, - "marketId" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "shLatitude" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "shLongitude" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "nbBeneficiariesInterviewed" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "priceScoreTbu" : { - "type" : "boolean" - }, - "priceScoreTbd" : { - "type" : "boolean" - }, - "beneficiariesScoreTbu" : { - "type" : "boolean" - }, - "trdName" : { - "type" : "string", - "nullable" : true - }, - "sevCntrDev" : { - "type" : "string", - "nullable" : true - }, - "benSevCntrDev" : { - "type" : "string", - "nullable" : true - }, - "outputValues" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/RpmeOutputValues" - } - } - }, - "additionalProperties" : { } - }, - "RpmeAssessmentPagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/RpmeAssessment" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "RpmeOutputValues" : { - "type" : "object", - "properties" : { - "variableId" : { - "type" : "integer", - "format" : "int32" - }, - "outputValue" : { - "type" : "number", - "format" : "double", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "RpmeVariable" : { - "type" : "object", - "properties" : { - "variableId" : { - "type" : "integer", - "format" : "int32" - }, - "variableName" : { - "type" : "string", - "nullable" : true - }, - "variableDescription" : { - "type" : "string", - "nullable" : true - }, - "dimensionId" : { - "type" : "integer", - "format" : "int32" - }, - "dimensionName" : { - "type" : "string", - "nullable" : true - }, - "levelId" : { - "type" : "integer", - "format" : "int32" - }, - "levelName" : { - "type" : "string", - "nullable" : true - }, - "surveyModeId" : { - "type" : "integer", - "format" : "int32" - }, - "surveyModeName" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "RpmeVariablePagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/RpmeVariable" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "SurveyListDTO" : { - "type" : "object", - "properties" : { - "surveyID" : { - "type" : "integer", - "description" : "The Id of the Survey", - "format" : "int32" - }, - "surveyStatusID" : { - "type" : "integer", - "description" : "The Id of the Survey status", - "format" : "int32" - }, - "surveyStartDate" : { - "type" : "string", - "description" : "The date when the survey has started", - "format" : "date-time", - "nullable" : true - }, - "surveyEndDate" : { - "type" : "string", - "description" : "The date when the survey has ended", - "format" : "date-time", - "nullable" : true - }, - "surveyCreateDate" : { - "type" : "string", - "description" : "The date when the survey has been uploaded in the Data Bridges platform", - "format" : "date-time" - }, - "surveyValidationReport" : { - "type" : "string", - "description" : "The detailed report on the validation performed on the survey schema", - "nullable" : true - }, - "surveyOriginalFilename" : { - "maxLength" : 256, - "minLength" : 0, - "type" : "string", - "description" : "The filename of the survey CSV file", - "nullable" : true - }, - "xlsFormName" : { - "type" : "string", - "description" : "The name of the XLSForm used to collect data", - "nullable" : true - }, - "baseXlsFormName" : { - "type" : "string", - "description" : "The name of the base XLSForm used to build the XLSForm", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "description" : "The name of the country where the survey has taken place", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "description" : "The internal code of the country where the survey has taken place", - "format" : "int32" - }, - "iso3Alpha3" : { - "type" : "string", - "description" : "The ISO3 alpha code of the country where the survey has taken place", - "nullable" : true - }, - "userName" : { - "type" : "string", - "description" : "The name of the user that has uploaded the survey data", - "nullable" : true - }, - "originalCsvFile" : { - "type" : "string", - "description" : "The link to download the original CSV file", - "nullable" : true - }, - "baseData" : { - "type" : "string", - "description" : "The link to the JSON data reshaped on the base XLSForm", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "UsdIndirectQuotation" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int32" - }, - "name" : { - "type" : "string", - "description" : "the ISO3 code for the currency, based on ISO4217", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32" - }, - "countryISO3" : { - "type" : "string", - "description" : "", - "nullable" : true - }, - "isOfficial" : { - "type" : "boolean", - "description" : "The field IsOfficial is a boolean which can be set to true for the Trading Economics data and to false for the data coming from a commodity saved in the DataBridges database" - }, - "frequency" : { - "type" : "string", - "description" : "(it’s from the reporting commodity named Exchange Rate", - "nullable" : true - }, - "value" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "date" : { - "type" : "string", - "format" : "date-time" - } - }, - "additionalProperties" : { } - }, - "UsdIndirectQuotationPagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/UsdIndirectQuotation" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "ViewExtendedAggregatedPrice" : { - "type" : "object", - "properties" : { - "commodityID" : { - "type" : "integer", - "format" : "int32" - }, - "marketID" : { - "type" : "integer", - "format" : "int32" - }, - "priceTypeID" : { - "type" : "integer", - "format" : "int32" - }, - "commodityUnitID" : { - "type" : "integer", - "format" : "int32" - }, - "currencyID" : { - "type" : "integer", - "format" : "int32" - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityDateWeek" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityDateMonth" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityDateYear" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - }, - "commodityName" : { - "type" : "string", - "nullable" : true - }, - "marketName" : { - "type" : "string", - "nullable" : true - }, - "priceTypeName" : { - "type" : "string", - "nullable" : true - }, - "commodityUnitName" : { - "type" : "string", - "nullable" : true - }, - "currencyName" : { - "type" : "string", - "nullable" : true - }, - "countryISO3" : { - "type" : "string", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "nullable" : true - }, - "commodityPriceSourceName" : { - "type" : "string", - "nullable" : true - }, - "originalFrequency" : { - "type" : "string", - "nullable" : true - }, - "commodityPrice" : { - "type" : "number", - "format" : "double", - "nullable" : true - }, - "commodityPriceObservations" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceFlag" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "ViewExtendedAggregatedPricePagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/ViewExtendedAggregatedPrice" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "ViewExtendedAlpsValue" : { - "type" : "object", - "properties" : { - "commodityID" : { - "type" : "integer", - "format" : "int32" - }, - "marketID" : { - "type" : "integer", - "format" : "int32" - }, - "priceTypeID" : { - "type" : "integer", - "format" : "int32" - }, - "commodityUnitID" : { - "type" : "integer", - "format" : "int32" - }, - "currencyID" : { - "type" : "integer", - "format" : "int32" - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "nullable" : true - }, - "commodityPriceDateYear" : { - "type" : "integer", - "format" : "int32" - }, - "commodityPriceDateMonth" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDateWeek" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityPriceDate" : { - "type" : "string", - "format" : "date-time", - "nullable" : true - }, - "commodityName" : { - "type" : "string", - "nullable" : true - }, - "marketName" : { - "type" : "string", - "nullable" : true - }, - "priceTypeName" : { - "type" : "string", - "nullable" : true - }, - "commodityUnitName" : { - "type" : "string", - "nullable" : true - }, - "currencyName" : { - "type" : "string", - "nullable" : true - }, - "analysisValueEstimatedPrice" : { - "type" : "number", - "format" : "double" - }, - "analysisValuePewiValue" : { - "type" : "number", - "format" : "double" - }, - "analysisValuePriceFlag" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "ViewExtendedAlpsValuePagedResult" : { - "type" : "object", - "properties" : { - "items" : { - "type" : "array", - "nullable" : true, - "readOnly" : true, - "items" : { - "$ref" : "#/components/schemas/ViewExtendedAlpsValue" - } - }, - "page" : { - "type" : "integer", - "format" : "int32" - }, - "totalItems" : { - "type" : "integer", - "format" : "int32" - } - }, - "additionalProperties" : { } - }, - "WeeklyAggregatedPrice" : { - "type" : "object", - "properties" : { - "commodityId" : { - "type" : "integer", - "format" : "int32" - }, - "marketId" : { - "type" : "integer", - "format" : "int32" - }, - "priceTypeId" : { - "type" : "integer", - "format" : "int32" - }, - "commodityUnitId" : { - "type" : "integer", - "format" : "int32" - }, - "currencyId" : { - "type" : "integer", - "format" : "int32" - }, - "commodityName" : { - "type" : "string", - "nullable" : true - }, - "marketName" : { - "type" : "string", - "nullable" : true - }, - "priceTypeName" : { - "type" : "string", - "nullable" : true - }, - "commodityUnitName" : { - "type" : "string", - "nullable" : true - }, - "currencyName" : { - "type" : "string", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32" - }, - "countryISO3" : { - "type" : "string", - "nullable" : true - }, - "countryName" : { - "type" : "string", - "nullable" : true - }, - "commodityPrice" : { - "type" : "number", - "format" : "double" - }, - "originalFrequency" : { - "type" : "string", - "nullable" : true - }, - "commodityPriceSourceName" : { - "type" : "string", - "nullable" : true - }, - "commodityPriceObservations" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "commodityDateMonth" : { - "type" : "integer", - "format" : "int32" - }, - "commodityDateYear" : { - "type" : "integer", - "format" : "int32" - }, - "commodityPriceDate" : { - "type" : "string", - "format" : "date-time" - }, - "commodityPriceFlag" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "XlsFormDTO" : { - "type" : "object", - "properties" : { - "xlsFormID" : { - "type" : "integer", - "format" : "int32" - }, - "xlsFormName" : { - "type" : "string", - "nullable" : true - }, - "xlsFormCreateDate" : { - "type" : "string", - "format" : "date-time" - }, - "userName" : { - "type" : "string", - "nullable" : true - }, - "xlsFormSourceFile" : { - "type" : "string", - "nullable" : true - }, - "xlsFormIsBaseSchema" : { - "type" : "boolean" - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "XlsFormDefinitionNewSchemaDTO" : { - "type" : "object", - "properties" : { - "formName" : { - "type" : "string", - "nullable" : true - }, - "formDescription" : { - "type" : "string", - "nullable" : true - }, - "formType" : { - "type" : "string", - "nullable" : true - }, - "adm0Code" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "baseSchemaId" : { - "type" : "integer", - "format" : "int32", - "nullable" : true - }, - "category" : { - "type" : "string", - "nullable" : true - }, - "type" : { - "type" : "string", - "nullable" : true - }, - "fields" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/XlsFormFieldsDTO" - } - } - }, - "additionalProperties" : { } - }, - "XlsFormFieldsDTO" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "nullable" : true - }, - "label" : { - "type" : "string", - "nullable" : true - }, - "type" : { - "type" : "string", - "nullable" : true - }, - "choiceList" : { - "$ref" : "#/components/schemas/XlsFormListChoicesDTO" - } - }, - "additionalProperties" : { } - }, - "XlsFormListChoiceDTO" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "nullable" : true - }, - "label" : { - "type" : "string", - "nullable" : true - } - }, - "additionalProperties" : { } - }, - "XlsFormListChoicesDTO" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string", - "nullable" : true - }, - "choices" : { - "type" : "array", - "nullable" : true, - "items" : { - "$ref" : "#/components/schemas/XlsFormListChoiceDTO" - } - } - }, - "additionalProperties" : { } - } - }, - "parameters" : { }, - "securitySchemes" : { - "default" : { - "type" : "oauth2", - "flows" : { - "implicit" : { - "authorizationUrl" : "https://api.wfp.org/authorize", - "scopes" : { - "vamdatabridges_rpme-fulldata_get" : "vamdatabridges_rpme-fulldata_get", - "vamdatabridges_foodsecurity-list_get" : "vamdatabridges_foodsecurity-list_get", - "vamdatabridges_commodities-list_get" : "vamdatabridges_commodities-list_get", - "vamdatabridges_commodityunits-list_get" : "vamdatabridges_commodityunits-list_get", - "vamdatabridges_markets-nearbymarkets_get" : "vamdatabridges_markets-nearbymarkets_get", - "vamdatabridges_rpme-outputvalues_get" : "vamdatabridges_rpme-outputvalues_get", - "vamdatabridges_marketprices-alps_get" : "vamdatabridges_marketprices-alps_get", - "vamdatabridges_mfi-surveys_get" : "vamdatabridges_mfi-surveys_get", - "vamdatabridges_commodities-categories-list_get" : "vamdatabridges_commodities-categories-list_get", - "vamdatabridges_commodityunits-conversion-list_get" : "vamdatabridges_commodityunits-conversion-list_get", - "vamdatabridges_economicdata_get" : "vamdatabridges_economicdata_get", - "vamdatabridges_mfi-surveys-processeddata_get" : "vamdatabridges_mfi-surveys-processeddata_get", - "vamdatabridges_marketprices-priceweekly_get" : "vamdatabridges_marketprices-priceweekly_get", - "vamdatabridges_markets-marketsascsv_get" : "vamdatabridges_markets-marketsascsv_get", - "vamdatabridges_household-publicbasedata_get" : "vamdatabridges_household-publicbasedata_get", - "vamdatabridges_gorp-globallatest_get" : "vamdatabridges_gorp-globallatest_get", - "vamdatabridges_mfi-xlsforms_get" : "vamdatabridges_mfi-xlsforms_get", - "vamdatabridges_economicdata-indicatorlist_get" : "vamdatabridges_economicdata-indicatorlist_get", - "vamdatabridges_markets-geojsonlist_get" : "vamdatabridges_markets-geojsonlist_get", - "vamdatabridges_gorp-regionallatest_get" : "vamdatabridges_gorp-regionallatest_get", - "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" : "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get", - "vamdatabridges_rpme-surveys_get" : "vamdatabridges_rpme-surveys_get", - "vamdatabridges_rpme-xlsforms_get" : "vamdatabridges_rpme-xlsforms_get", - "vamdatabridges_mfi-surveys-basedata_get" : "vamdatabridges_mfi-surveys-basedata_get", - "vamdatabridges_mfi-surveys-fulldata_get" : "vamdatabridges_mfi-surveys-fulldata_get", - "vamdatabridges_household-fulldata_get" : "vamdatabridges_household-fulldata_get", - "vamdatabridges_household-officialusebasedata_get" : "vamdatabridges_household-officialusebasedata_get", - "vamdatabridges_marketprices-pricemonthly_get" : "vamdatabridges_marketprices-pricemonthly_get", - "vamdatabridges_aims-downloadallanalysisrounds_get" : "vamdatabridges_aims-downloadallanalysisrounds_get", - "vamdatabridges_markets-list_get" : "vamdatabridges_markets-list_get", - "vamdatabridges_currency-list_get" : "vamdatabridges_currency-list_get", - "vamdatabridges_gorp-list_get" : "vamdatabridges_gorp-list_get", - "vamdatabridges_marketprices-priceraw_get" : "vamdatabridges_marketprices-priceraw_get", - "vamdatabridges_rpme-variables_get" : "vamdatabridges_rpme-variables_get", - "vamdatabridges_aims-downloadpolygonfiles_get" : "vamdatabridges_aims-downloadpolygonfiles_get", - "vamdatabridges_gorp-latest_get" : "vamdatabridges_gorp-latest_get", - "vamdatabridges_gorp-countrylatest_get" : "vamdatabridges_gorp-countrylatest_get", - "vamdatabridges_currency-usdindirectquotation_get" : "vamdatabridges_currency-usdindirectquotation_get", - "vamdatabridges_xlsforms-definition_get" : "vamdatabridges_xlsforms-definition_get", - "vamdatabridges_household-draftinternalbasedata_get" : "vamdatabridges_household-draftinternalbasedata_get", - "vamdatabridges_household-surveys_get" : "vamdatabridges_household-surveys_get", - "vamdatabridges_marketprices-pricedaily_get" : "vamdatabridges_marketprices-pricedaily_get", - "vamdatabridges_rpme-basedata_get" : "vamdatabridges_rpme-basedata_get" - }, - "x-scopes-bindings" : { - "vamdatabridges_rpme-fulldata_get" : "vamdatabridges_rpme-fulldata_get", - "vamdatabridges_foodsecurity-list_get" : "vamdatabridges_foodsecurity-list_get", - "vamdatabridges_commodities-list_get" : "vamdatabridges_commodities-list_get", - "vamdatabridges_commodityunits-list_get" : "vamdatabridges_commodityunits-list_get", - "vamdatabridges_markets-nearbymarkets_get" : "vamdatabridges_markets-nearbymarkets_get", - "vamdatabridges_rpme-outputvalues_get" : "vamdatabridges_rpme-outputvalues_get", - "vamdatabridges_marketprices-alps_get" : "vamdatabridges_marketprices-alps_get", - "vamdatabridges_mfi-surveys_get" : "vamdatabridges_mfi-surveys_get", - "vamdatabridges_commodities-categories-list_get" : "vamdatabridges_commodities-categories-list_get", - "vamdatabridges_commodityunits-conversion-list_get" : "vamdatabridges_commodityunits-conversion-list_get", - "vamdatabridges_economicdata_get" : "vamdatabridges_economicdata_get", - "vamdatabridges_mfi-surveys-processeddata_get" : "vamdatabridges_mfi-surveys-processeddata_get", - "vamdatabridges_marketprices-priceweekly_get" : "vamdatabridges_marketprices-priceweekly_get", - "vamdatabridges_markets-marketsascsv_get" : "vamdatabridges_markets-marketsascsv_get", - "vamdatabridges_household-publicbasedata_get" : "vamdatabridges_household-publicbasedata_get", - "vamdatabridges_gorp-globallatest_get" : "vamdatabridges_gorp-globallatest_get", - "vamdatabridges_mfi-xlsforms_get" : "vamdatabridges_mfi-xlsforms_get", - "vamdatabridges_economicdata-indicatorlist_get" : "vamdatabridges_economicdata-indicatorlist_get", - "vamdatabridges_markets-geojsonlist_get" : "vamdatabridges_markets-geojsonlist_get", - "vamdatabridges_gorp-regionallatest_get" : "vamdatabridges_gorp-regionallatest_get", - "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get" : "vamdatabridges_mfi-surveys-processeddatakeysetpagination_get", - "vamdatabridges_rpme-surveys_get" : "vamdatabridges_rpme-surveys_get", - "vamdatabridges_rpme-xlsforms_get" : "vamdatabridges_rpme-xlsforms_get", - "vamdatabridges_mfi-surveys-basedata_get" : "vamdatabridges_mfi-surveys-basedata_get", - "vamdatabridges_mfi-surveys-fulldata_get" : "vamdatabridges_mfi-surveys-fulldata_get", - "vamdatabridges_household-fulldata_get" : "vamdatabridges_household-fulldata_get", - "vamdatabridges_household-officialusebasedata_get" : "vamdatabridges_household-officialusebasedata_get", - "vamdatabridges_marketprices-pricemonthly_get" : "vamdatabridges_marketprices-pricemonthly_get", - "vamdatabridges_aims-downloadallanalysisrounds_get" : "vamdatabridges_aims-downloadallanalysisrounds_get", - "vamdatabridges_markets-list_get" : "vamdatabridges_markets-list_get", - "vamdatabridges_currency-list_get" : "vamdatabridges_currency-list_get", - "vamdatabridges_gorp-list_get" : "vamdatabridges_gorp-list_get", - "vamdatabridges_marketprices-priceraw_get" : "vamdatabridges_marketprices-priceraw_get", - "vamdatabridges_rpme-variables_get" : "vamdatabridges_rpme-variables_get", - "vamdatabridges_aims-downloadpolygonfiles_get" : "vamdatabridges_aims-downloadpolygonfiles_get", - "vamdatabridges_gorp-latest_get" : "vamdatabridges_gorp-latest_get", - "vamdatabridges_gorp-countrylatest_get" : "vamdatabridges_gorp-countrylatest_get", - "vamdatabridges_currency-usdindirectquotation_get" : "vamdatabridges_currency-usdindirectquotation_get", - "vamdatabridges_xlsforms-definition_get" : "vamdatabridges_xlsforms-definition_get", - "vamdatabridges_household-draftinternalbasedata_get" : "vamdatabridges_household-draftinternalbasedata_get", - "vamdatabridges_household-surveys_get" : "vamdatabridges_household-surveys_get", - "vamdatabridges_marketprices-pricedaily_get" : "vamdatabridges_marketprices-pricedaily_get", - "vamdatabridges_rpme-basedata_get" : "vamdatabridges_rpme-basedata_get" - } - } - } - } - } - }, - "x-changelog" : [ { - "changes" : "First release", - "version" : "1.0.0" - }, { - "changes" : "\n*What's New*:\n\n- GET _/Commodities/Categories/List_\n- GET _/Commodities/List_\n- GET _/CommodityUnits/Conversion/List_\n- GET _/CommodityUnits/List_\n- GET _/Currency/List_\n- GET _/Currency/UsdIndirectQuotation_\n- GET _/EconomicData/IndicatorList_\n- GET _/EconomicData/{indicatorName}_\n- GET _/MarketPrices/Alps_\n- GET _/MarketPrices/PriceDaily_\n- GET _/MarketPrices/PriceMonthly_\n- GET _/MarketPrices/PriceRaw_\n- GET _/MarketPrices/PriceWeekly_\n- GET _/Markets/List_\n", - "version" : "1.1.0" - }, { - "changes" : "\n*What's New*:\n\n- GET /Gorp/Latest\n- GET /Gorp/List\n", - "version" : "1.2.0" - }, { - "changes" : "\n*What's New*:\n\n- GET /FoodSecurity/List\n- GET /Rpme/OutputValues\n- GET /Rpme/Surveys\n- GET /Rpme/Variables\n- GET /Rpme/XLSForms", - "version" : "1.3.0" - }, { - "changes" : "\n*What's Changed*:\n\n- Rpme/OutputValues response schema\n- /Rpme/* and /FoodSecurity/List maturity level to production-ready", - "version" : "1.3.1" - }, { - "changes" : "\n*What's Changed*:\n- Changed response schema in GET /MFI/Surveys/BaseData \n- Changed response schema in GET /MFI/Surveys/FullData \n- Changed response schema in GET /MFI/XlsForms/definition \n- Changed response schema in GET /Markets/NearbyMarkets \n- Changed response schema in GET /Currency/List \n- Changed response schema in GET /Currency/UsdIndirectQuotation \n- Changed response schema in GET /FoodSecurity/List \n- Changed response schema in GET /Gorp/Latest \n- Changed response schema in GET /Gorp/List \n- Changed response schema in GET /MFI/Surveys \n- Changed response schema in GET /MFI/Surveys/ProcessedData \n- Changed response schema in GET /MFI/XlsForms \n- Changed response schema in GET /MarketPrices/Alps \n- Changed response schema in GET /MarketPrices/PriceDaily \n- Changed response schema in GET /MarketPrices/PriceMonthly \n- Changed response schema in GET /MarketPrices/PriceRaw \n- Changed response schema in GET /MarketPrices/PriceWeekly \n- Changed response schema in GET /Rpme/Surveys \n- Changed response schema in GET /Rpme/Variables \n- Changed response schema in GET /Rpme/XLSForms \n- Changed response schema in GET /Commodities/Categories/List \n- Changed response schema in GET /Commodities/List \n- Changed response schema in GET /CommodityUnits/Conversion/List \n- Changed response schema in GET /CommodityUnits/List \n- Changed response schema in GET /Rpme/OutputValues \n- Changed response schema in GET /Markets/GeoJSONList \n", - "version" : "1.3.3" - }, { - "changes" : "\n*What's New*:\n- GET /Household/Surveys\n- GET /Household/FullData\n- GET /Household/DraftInternalBaseData\n- GET /Household/OfficialUseBaseData\n- GET /Household/PublicBaseData\n- GET /Rpme/FullData\n- GET /Rpme/BaseData\n*What's Changed*:\n- Changed summary in GET /MFI/Surveys \n- Changed summary in GET /MFI/Surveys/ProcessedData \n- Changed description in GET /MarketPrices/PriceDaily \n", - "version" : "1.4.0" - }, { - "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's Changed*:\n- Changed response schema in GET /MFI/XlsForms (Non-backward compatible)\n- Changed response schema in GET /Markets/GeoJSONList (Non-backward compatible)\n- Changed response schema in GET /Markets/List (Non-backward compatible)\n- GET /Markets/MarketsAsCSV \n- Changed response schema in GET /Rpme/XLSForms (Non-backward compatible)\n- Changed response schema in GET /EconomicData/{indicatorName} (Non-backward compatible)\n- Changed response schema in GET /Household/DraftInternalBaseData \n- Changed response schema in GET /Household/FullData \n- Changed response schema in GET /Household/OfficialUseBaseData \n- Changed response schema in GET /Household/PublicBaseData \n- Changed response schema in GET /Household/Surveys (Non-backward compatible)\n- Changed response schema in GET /MFI/Surveys (Non-backward compatible)\n- Changed response schema in GET /MFI/Surveys/BaseData \n- Changed response schema in GET /MFI/Surveys/FullData \n- Changed response schema in GET /MFI/XlsForms/definition (Non-backward compatible)\n- Changed response schema in GET /Markets/NearbyMarkets (Non-backward compatible)\n- Changed response schema in GET /Rpme/BaseData \n- Changed response schema in GET /Rpme/FullData \n- Changed response schema in GET /Rpme/Surveys (Non-backward compatible)\n- GET /Currency/List \n- Changed response schema in GET /Currency/UsdIndirectQuotation \n- Changed response schema in GET /EconomicData/IndicatorList (Non-backward compatible)\n- Changed response schema in GET /FoodSecurity/List \n- Changed response schema in GET /Gorp/Latest \n- Changed response schema in GET /Gorp/List \n- GET /MFI/Surveys/ProcessedData \n- Changed response schema in GET /MarketPrices/Alps \n- Changed response schema in GET /MarketPrices/PriceDaily \n- Changed response schema in GET /MarketPrices/PriceMonthly \n- GET /MarketPrices/PriceRaw \n- GET /MarketPrices/PriceWeekly \n- Changed response schema in GET /Rpme/Variables \n- GET /Commodities/Categories/List \n- GET /Commodities/List \n- GET /CommodityUnits/Conversion/List \n- GET /CommodityUnits/List \n- Changed response schema in GET /Rpme/OutputValues \n", - "version" : "2.0.0" - }, { - "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's Changed*:\n- Add access scope to GET /Markets/MarketsAsCSV (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys/BaseData (Non-backward compatible)\n- Add access scope to GET /MFI/XlsForms/definition (Non-backward compatible)\n- Add access scope to GET /Markets/NearbyMarkets (Non-backward compatible)\n- Add access scope to GET /Rpme/BaseData (Non-backward compatible)\n- Add access scope to GET /Currency/List (Non-backward compatible)\n- Add access scope to GET /Currency/UsdIndirectQuotation (Non-backward compatible)\n- Add access scope to GET /EconomicData/IndicatorList (Non-backward compatible)\n- Add access scope to GET /EconomicData/{indicatorName} (Non-backward compatible)\n- Add access scope to GET /FoodSecurity/List (Non-backward compatible)\n- Add access scope to GET /Gorp/Latest (Non-backward compatible)\n- Add access scope to GET /Gorp/List (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys (Non-backward compatible)\n- Add access scope to GET /MFI/Surveys/ProcessedData (Non-backward compatible)\n- Add access scope to GET /MFI/XlsForms (Non-backward compatible)\n- Add access scope to GET /MarketPrices/Alps (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceDaily (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceMonthly (Non-backward compatible)\n- Add access scope to GET /MarketPrices/PriceWeekly (Non-backward compatible)\n- Add access scope to GET /Markets/List (Non-backward compatible)\n- Add access scope to GET /Rpme/Surveys (Non-backward compatible)\n- Add access scope to GET /Rpme/Variables (Non-backward compatible)\n- Add access scope to GET /Rpme/XLSForms (Non-backward compatible)\n- Add access scope to GET /Commodities/Categories/List (Non-backward compatible)\n- Add access scope to GET /Commodities/List (Non-backward compatible)\n- Add access scope to GET /CommodityUnits/Conversion/List (Non-backward compatible)\n- Add access scope to GET /CommodityUnits/List (Non-backward compatible)\n- Add access scope to GET /Household/Surveys (Non-backward compatible)\n- Add access scope to GET /Markets/GeoJSONList (Non-backward compatible)\n- Add access scope to GET /Rpme/OutputValues (Non-backward compatible)\n", - "version" : "3.0.0" - }, { - "changes" : "\n*This version is not backward-compatible with previous versions.*\n*What's New*:\n- GET /XlsForms/definition\n*What's Deleted*:\n- GET /MFI/XlsForms/definition\n*What's Changed*:\n- Added _pageSize_ query parameter to GET /Household/DraftInternalBaseData \n- Added _pageSize_ query parameter to GET /Household/FullData \n- Added _pageSize_ query parameter to GET /Household/OfficialUseBaseData \n- Added _pageSize_ query parameter to GET /Household/PublicBaseData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/BaseData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/FullData \n- Added _pageSize_ query parameter to GET /Rpme/BaseData \n- Added _pageSize_ query parameter to GET /Rpme/FullData \n- Added _pageSize_ query parameter to GET /MFI/Surveys/ProcessedData \n- Minor changes to summaries\n", - "version" : "4.0.0" - }, { - "changes" : "\n*What's New*:\n- GET /Aims/DownloadAllAnalysisRounds\n- GET /Aims/DownloadPolygonFiles\n- GET /Gorp/CountryLatest\n- GET /Gorp/RegionalLatest\n- GET /Gorp/GlobalLatest\n*What's Changed*:\n- Minor changes to descriptions\n", - "version" : "4.1.0" - }, { - "changes" : "\n*What's Changed*:\n- Changed response schema and added _apiKey_ query parameter to GET /Household/DraftInternalBaseData (Non-backward compatible)\n- Changed response schema and added _apiKey_ query parameter to GET /Household/FullData (Non-backward compatible)\n- Changed response schema and added _surveyId_ query parameter to GET /Household/Surveys \n- Minor changes to summaries\n", - "version" : "5.1.0" - }, { - "changes" : "\n\n\n*What's New*:\n- GET /MFI/Surveys/ProcessedDataWithKeysetPagination", - "version" : "5.1.0" - } ] -} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 29fd210..9592626 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,16 @@ [tool.poetry] name = "data_bridges_client" -version = "1.0.0" +version = "7.0.0" description = "VAM-Data-Bridges" authors = ["VAM-INFO "] -license = "NoLicense" +license = "Affero GPL 3.0" readme = "README.md" repository = "https://github.com/WFP-VAM/DataBridgesAPI" keywords = ["OpenAPI", "OpenAPI-Generator", "VAM-Data-Bridges"] include = ["data_bridges_client/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.10" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" @@ -35,8 +35,8 @@ extension-pkg-whitelist = "pydantic" [tool.mypy] files = [ "data_bridges_client", - #"test", # auto-generated tests - "tests", # hand-written tests + "test", # auto-generated tests + # "tests", # hand-written tests ] # TODO: enable "strict" once all these individual checks are passing # strict = true diff --git a/setup.py b/setup.py index 10a87d8..dc6b43b 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -41,7 +42,7 @@ install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, - long_description_content_type="text/markdown", + long_description_content_type='text/markdown', long_description="""\ API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern """, # noqa: E501 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_bad_request_dto.py b/test/test_bad_request_dto.py index 613e4cb..c48a452 100644 --- a/test/test_bad_request_dto.py +++ b/test/test_bad_request_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.bad_request_dto import BadRequestDTO - class TestBadRequestDTO(unittest.TestCase): """BadRequestDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> BadRequestDTO: """Test BadRequestDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `BadRequestDTO` """ model = BadRequestDTO() @@ -48,6 +48,5 @@ def testBadRequestDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_cari_adm0_values_dto.py b/test/test_cari_adm0_values_dto.py index 8a8fe51..9ad7610 100644 --- a/test/test_cari_adm0_values_dto.py +++ b/test/test_cari_adm0_values_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.cari_adm0_values_dto import CariAdm0ValuesDTO - class TestCariAdm0ValuesDTO(unittest.TestCase): """CariAdm0ValuesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm0ValuesDTO: """Test CariAdm0ValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CariAdm0ValuesDTO` """ model = CariAdm0ValuesDTO() @@ -58,6 +58,5 @@ def testCariAdm0ValuesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_cari_adm0_values_dto_paged_result.py b/test/test_cari_adm0_values_dto_paged_result.py index 3ef92d7..8c6e32c 100644 --- a/test/test_cari_adm0_values_dto_paged_result.py +++ b/test/test_cari_adm0_values_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.cari_adm0_values_dto_paged_result import ( - CariAdm0ValuesDTOPagedResult, -) +import unittest +from data_bridges_client.models.cari_adm0_values_dto_paged_result import CariAdm0ValuesDTOPagedResult class TestCariAdm0ValuesDTOPagedResult(unittest.TestCase): """CariAdm0ValuesDTOPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm0ValuesDTOPagedResult: """Test CariAdm0ValuesDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CariAdm0ValuesDTOPagedResult` """ model = CariAdm0ValuesDTOPagedResult() @@ -56,6 +54,5 @@ def testCariAdm0ValuesDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_cari_adm1_values_dto.py b/test/test_cari_adm1_values_dto.py index b44b8b5..19f741c 100644 --- a/test/test_cari_adm1_values_dto.py +++ b/test/test_cari_adm1_values_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.cari_adm1_values_dto import CariAdm1ValuesDTO - class TestCariAdm1ValuesDTO(unittest.TestCase): """CariAdm1ValuesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm1ValuesDTO: """Test CariAdm1ValuesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CariAdm1ValuesDTO` """ model = CariAdm1ValuesDTO() @@ -60,6 +60,5 @@ def testCariAdm1ValuesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_cari_adm1_values_dto_paged_result.py b/test/test_cari_adm1_values_dto_paged_result.py index d979afb..379ee72 100644 --- a/test/test_cari_adm1_values_dto_paged_result.py +++ b/test/test_cari_adm1_values_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.cari_adm1_values_dto_paged_result import ( - CariAdm1ValuesDTOPagedResult, -) +import unittest +from data_bridges_client.models.cari_adm1_values_dto_paged_result import CariAdm1ValuesDTOPagedResult class TestCariAdm1ValuesDTOPagedResult(unittest.TestCase): """CariAdm1ValuesDTOPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CariAdm1ValuesDTOPagedResult: """Test CariAdm1ValuesDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CariAdm1ValuesDTOPagedResult` """ model = CariAdm1ValuesDTOPagedResult() @@ -56,6 +54,5 @@ def testCariAdm1ValuesDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_categories_and_indicators_dto.py b/test/test_categories_and_indicators_dto.py index d51ed52..c2d8efa 100644 --- a/test/test_categories_and_indicators_dto.py +++ b/test/test_categories_and_indicators_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.categories_and_indicators_dto import ( - CategoriesAndIndicatorsDTO, -) +import unittest +from data_bridges_client.models.categories_and_indicators_dto import CategoriesAndIndicatorsDTO class TestCategoriesAndIndicatorsDTO(unittest.TestCase): """CategoriesAndIndicatorsDTO unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CategoriesAndIndicatorsDTO: """Test CategoriesAndIndicatorsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CategoriesAndIndicatorsDTO` """ model = CategoriesAndIndicatorsDTO() @@ -59,6 +57,5 @@ def testCategoriesAndIndicatorsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodities_api.py b/test/test_commodities_api.py index 255ccf8..78e8cd3 100644 --- a/test/test_commodities_api.py +++ b/test/test_commodities_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.commodities_api import CommoditiesApi @@ -41,5 +42,5 @@ def test_commodities_list_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodity_dto.py b/test/test_commodity_dto.py index 013b514..c89a83e 100644 --- a/test/test_commodity_dto.py +++ b/test/test_commodity_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.commodity_dto import CommodityDTO - class TestCommodityDTO(unittest.TestCase): """CommodityDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityDTO: """Test CommodityDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CommodityDTO` """ model = CommodityDTO() @@ -65,6 +65,5 @@ def testCommodityDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodity_price_dto.py b/test/test_commodity_price_dto.py index b516412..c618476 100644 --- a/test/test_commodity_price_dto.py +++ b/test/test_commodity_price_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.commodity_price_dto import CommodityPriceDTO - class TestCommodityPriceDTO(unittest.TestCase): """CommodityPriceDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityPriceDTO: """Test CommodityPriceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CommodityPriceDTO` """ model = CommodityPriceDTO() @@ -73,6 +73,5 @@ def testCommodityPriceDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodity_processing_dto.py b/test/test_commodity_processing_dto.py index d12bca5..2ec77c0 100644 --- a/test/test_commodity_processing_dto.py +++ b/test/test_commodity_processing_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.commodity_processing_dto import CommodityProcessingDTO - class TestCommodityProcessingDTO(unittest.TestCase): """CommodityProcessingDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityProcessingDTO: """Test CommodityProcessingDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CommodityProcessingDTO` """ model = CommodityProcessingDTO() @@ -49,6 +49,5 @@ def testCommodityProcessingDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodity_quality_dto.py b/test/test_commodity_quality_dto.py index 0ea5fca..ec8293d 100644 --- a/test/test_commodity_quality_dto.py +++ b/test/test_commodity_quality_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.commodity_quality_dto import CommodityQualityDTO - class TestCommodityQualityDTO(unittest.TestCase): """CommodityQualityDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CommodityQualityDTO: """Test CommodityQualityDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CommodityQualityDTO` """ model = CommodityQualityDTO() @@ -49,6 +49,5 @@ def testCommodityQualityDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_commodity_units_api.py b/test/test_commodity_units_api.py index af0d3e3..7d3ac99 100644 --- a/test/test_commodity_units_api.py +++ b/test/test_commodity_units_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.commodity_units_api import CommodityUnitsApi @@ -41,5 +42,5 @@ def test_commodity_units_list_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_currency_api.py b/test/test_currency_api.py index 2d0caa0..4720bfa 100644 --- a/test/test_currency_api.py +++ b/test/test_currency_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.currency_api import CurrencyApi @@ -41,5 +42,5 @@ def test_currency_usd_indirect_quotation_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_currency_dto.py b/test/test_currency_dto.py index 04bd587..83b4a87 100644 --- a/test/test_currency_dto.py +++ b/test/test_currency_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.currency_dto import CurrencyDTO - class TestCurrencyDTO(unittest.TestCase): """CurrencyDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CurrencyDTO: """Test CurrencyDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `CurrencyDTO` """ model = CurrencyDTO() @@ -52,6 +52,5 @@ def testCurrencyDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_economic_data_api.py b/test/test_economic_data_api.py index e470f27..42e7dbe 100644 --- a/test/test_economic_data_api.py +++ b/test/test_economic_data_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.economic_data_api import EconomicDataApi @@ -41,5 +42,5 @@ def test_economic_data_indicator_name_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_economic_data_dto.py b/test/test_economic_data_dto.py index 88a6c4a..9623cef 100644 --- a/test/test_economic_data_dto.py +++ b/test/test_economic_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.economic_data_dto import EconomicDataDTO - class TestEconomicDataDTO(unittest.TestCase): """EconomicDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicDataDTO: """Test EconomicDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `EconomicDataDTO` """ model = EconomicDataDTO() @@ -49,6 +49,5 @@ def testEconomicDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_economic_indicator_property.py b/test/test_economic_indicator_property.py index c1e5fdc..d54dcea 100644 --- a/test/test_economic_indicator_property.py +++ b/test/test_economic_indicator_property.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.economic_indicator_property import ( - EconomicIndicatorProperty, -) +import unittest +from data_bridges_client.models.economic_indicator_property import EconomicIndicatorProperty class TestEconomicIndicatorProperty(unittest.TestCase): """EconomicIndicatorProperty unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicIndicatorProperty: """Test EconomicIndicatorProperty - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `EconomicIndicatorProperty` """ model = EconomicIndicatorProperty() @@ -57,6 +55,5 @@ def testEconomicIndicatorProperty(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_economic_indicator_property_paged_result.py b/test/test_economic_indicator_property_paged_result.py index 8ebb005..43281c7 100644 --- a/test/test_economic_indicator_property_paged_result.py +++ b/test/test_economic_indicator_property_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.economic_indicator_property_paged_result import ( - EconomicIndicatorPropertyPagedResult, -) +import unittest +from data_bridges_client.models.economic_indicator_property_paged_result import EconomicIndicatorPropertyPagedResult class TestEconomicIndicatorPropertyPagedResult(unittest.TestCase): """EconomicIndicatorPropertyPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> EconomicIndicatorPropertyPagedResult: """Test EconomicIndicatorPropertyPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `EconomicIndicatorPropertyPagedResult` """ model = EconomicIndicatorPropertyPagedResult() @@ -56,6 +54,5 @@ def testEconomicIndicatorPropertyPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_extended_alps_value_dto.py b/test/test_extended_alps_value_dto.py index 04193a6..e5befce 100644 --- a/test/test_extended_alps_value_dto.py +++ b/test/test_extended_alps_value_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.extended_alps_value_dto import ExtendedAlpsValueDto - class TestExtendedAlpsValueDto(unittest.TestCase): """ExtendedAlpsValueDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExtendedAlpsValueDto: """Test ExtendedAlpsValueDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExtendedAlpsValueDto` """ model = ExtendedAlpsValueDto() @@ -66,6 +66,5 @@ def testExtendedAlpsValueDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_extended_alps_value_dto_paged_result.py b/test/test_extended_alps_value_dto_paged_result.py index af3e562..81edf80 100644 --- a/test/test_extended_alps_value_dto_paged_result.py +++ b/test/test_extended_alps_value_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.extended_alps_value_dto_paged_result import ( - ExtendedAlpsValueDtoPagedResult, -) +import unittest +from data_bridges_client.models.extended_alps_value_dto_paged_result import ExtendedAlpsValueDtoPagedResult class TestExtendedAlpsValueDtoPagedResult(unittest.TestCase): """ExtendedAlpsValueDtoPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExtendedAlpsValueDtoPagedResult: """Test ExtendedAlpsValueDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ExtendedAlpsValueDtoPagedResult` """ model = ExtendedAlpsValueDtoPagedResult() @@ -56,6 +54,5 @@ def testExtendedAlpsValueDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_feature.py b/test/test_feature.py index 1092d09..c105fdf 100644 --- a/test/test_feature.py +++ b/test/test_feature.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.feature import Feature - class TestFeature(unittest.TestCase): """Feature unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Feature: """Test Feature - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Feature` """ model = Feature() @@ -58,6 +58,5 @@ def testFeature(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_geometry.py b/test/test_geometry.py index 59575c8..a8e05f0 100644 --- a/test/test_geometry.py +++ b/test/test_geometry.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.geometry import Geometry - class TestGeometry(unittest.TestCase): """Geometry unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Geometry: """Test Geometry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Geometry` """ model = Geometry() @@ -51,6 +51,5 @@ def testGeometry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_global_outlook_api.py b/test/test_global_outlook_api.py index 0c6ba77..9384bf5 100644 --- a/test/test_global_outlook_api.py +++ b/test/test_global_outlook_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.global_outlook_api import GlobalOutlookApi @@ -48,5 +49,5 @@ def test_global_outlook_regional_latest_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_global_outlook_api_dto.py b/test/test_global_outlook_api_dto.py index 2b210d7..99c7e69 100644 --- a/test/test_global_outlook_api_dto.py +++ b/test/test_global_outlook_api_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.global_outlook_api_dto import GlobalOutlookApiDto - class TestGlobalOutlookApiDto(unittest.TestCase): """GlobalOutlookApiDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookApiDto: """Test GlobalOutlookApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GlobalOutlookApiDto` """ model = GlobalOutlookApiDto() @@ -52,6 +52,5 @@ def testGlobalOutlookApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_global_outlook_country_api_dto.py b/test/test_global_outlook_country_api_dto.py index 8f2cf48..389541c 100644 --- a/test/test_global_outlook_country_api_dto.py +++ b/test/test_global_outlook_country_api_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.global_outlook_country_api_dto import ( - GlobalOutlookCountryApiDto, -) +import unittest +from data_bridges_client.models.global_outlook_country_api_dto import GlobalOutlookCountryApiDto class TestGlobalOutlookCountryApiDto(unittest.TestCase): """GlobalOutlookCountryApiDto unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookCountryApiDto: """Test GlobalOutlookCountryApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GlobalOutlookCountryApiDto` """ model = GlobalOutlookCountryApiDto() @@ -53,6 +51,5 @@ def testGlobalOutlookCountryApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_global_outlook_regional_api_dto.py b/test/test_global_outlook_regional_api_dto.py index 1463859..921b63f 100644 --- a/test/test_global_outlook_regional_api_dto.py +++ b/test/test_global_outlook_regional_api_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.global_outlook_regional_api_dto import ( - GlobalOutlookRegionalApiDto, -) +import unittest +from data_bridges_client.models.global_outlook_regional_api_dto import GlobalOutlookRegionalApiDto class TestGlobalOutlookRegionalApiDto(unittest.TestCase): """GlobalOutlookRegionalApiDto unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GlobalOutlookRegionalApiDto: """Test GlobalOutlookRegionalApiDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `GlobalOutlookRegionalApiDto` """ model = GlobalOutlookRegionalApiDto() @@ -54,6 +52,5 @@ def testGlobalOutlookRegionalApiDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_household_survey_list_dto.py b/test/test_household_survey_list_dto.py index c93f447..6ed206a 100644 --- a/test/test_household_survey_list_dto.py +++ b/test/test_household_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.household_survey_list_dto import HouseholdSurveyListDTO - class TestHouseholdSurveyListDTO(unittest.TestCase): """HouseholdSurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HouseholdSurveyListDTO: """Test HouseholdSurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HouseholdSurveyListDTO` """ model = HouseholdSurveyListDTO() @@ -82,6 +82,5 @@ def testHouseholdSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_household_survey_list_dto_paged_result.py b/test/test_household_survey_list_dto_paged_result.py index 5e3744c..c2409e1 100644 --- a/test/test_household_survey_list_dto_paged_result.py +++ b/test/test_household_survey_list_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.household_survey_list_dto_paged_result import ( - HouseholdSurveyListDTOPagedResult, -) +import unittest +from data_bridges_client.models.household_survey_list_dto_paged_result import HouseholdSurveyListDTOPagedResult class TestHouseholdSurveyListDTOPagedResult(unittest.TestCase): """HouseholdSurveyListDTOPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HouseholdSurveyListDTOPagedResult: """Test HouseholdSurveyListDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HouseholdSurveyListDTOPagedResult` """ model = HouseholdSurveyListDTOPagedResult() @@ -56,6 +54,5 @@ def testHouseholdSurveyListDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_hunger_hot_spot_data_dto.py b/test/test_hunger_hot_spot_data_dto.py index d55c235..2ed48ec 100644 --- a/test/test_hunger_hot_spot_data_dto.py +++ b/test/test_hunger_hot_spot_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.hunger_hot_spot_data_dto import HungerHotSpotDataDTO - class TestHungerHotSpotDataDTO(unittest.TestCase): """HungerHotSpotDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HungerHotSpotDataDTO: """Test HungerHotSpotDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HungerHotSpotDataDTO` """ model = HungerHotSpotDataDTO() @@ -57,6 +57,5 @@ def testHungerHotSpotDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_hunger_hot_spot_data_dto_paged_result.py b/test/test_hunger_hot_spot_data_dto_paged_result.py index 03790da..3ce65c9 100644 --- a/test/test_hunger_hot_spot_data_dto_paged_result.py +++ b/test/test_hunger_hot_spot_data_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import ( - HungerHotSpotDataDTOPagedResult, -) +import unittest +from data_bridges_client.models.hunger_hot_spot_data_dto_paged_result import HungerHotSpotDataDTOPagedResult class TestHungerHotSpotDataDTOPagedResult(unittest.TestCase): """HungerHotSpotDataDTOPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HungerHotSpotDataDTOPagedResult: """Test HungerHotSpotDataDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `HungerHotSpotDataDTOPagedResult` """ model = HungerHotSpotDataDTOPagedResult() @@ -56,6 +54,5 @@ def testHungerHotSpotDataDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_hunger_hotspot_api.py b/test/test_hunger_hotspot_api.py index f5226ca..2049c9a 100644 --- a/test/test_hunger_hotspot_api.py +++ b/test/test_hunger_hotspot_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.hunger_hotspot_api import HungerHotspotApi @@ -41,5 +42,5 @@ def test_hunger_hotspot_data_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_incubation_api.py b/test/test_incubation_api.py index 69fdcfe..e294dc7 100644 --- a/test/test_incubation_api.py +++ b/test/test_incubation_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.incubation_api import IncubationApi @@ -90,5 +91,5 @@ def test_xls_forms_definition_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipc_historical_datum_dto.py b/test/test_ipc_historical_datum_dto.py index 588955f..b68a78e 100644 --- a/test/test_ipc_historical_datum_dto.py +++ b/test/test_ipc_historical_datum_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.ipc_historical_datum_dto import IpcHistoricalDatumDto - class TestIpcHistoricalDatumDto(unittest.TestCase): """IpcHistoricalDatumDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcHistoricalDatumDto: """Test IpcHistoricalDatumDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcHistoricalDatumDto` """ model = IpcHistoricalDatumDto() @@ -99,6 +99,5 @@ def testIpcHistoricalDatumDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipc_historical_datum_dto_paged_result.py b/test/test_ipc_historical_datum_dto_paged_result.py index 331e1f1..c1cb934 100644 --- a/test/test_ipc_historical_datum_dto_paged_result.py +++ b/test/test_ipc_historical_datum_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.ipc_historical_datum_dto_paged_result import ( - IpcHistoricalDatumDtoPagedResult, -) +import unittest +from data_bridges_client.models.ipc_historical_datum_dto_paged_result import IpcHistoricalDatumDtoPagedResult class TestIpcHistoricalDatumDtoPagedResult(unittest.TestCase): """IpcHistoricalDatumDtoPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcHistoricalDatumDtoPagedResult: """Test IpcHistoricalDatumDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcHistoricalDatumDtoPagedResult` """ model = IpcHistoricalDatumDtoPagedResult() @@ -56,6 +54,5 @@ def testIpcHistoricalDatumDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto.py b/test/test_ipcch_and_equivalent_peaks_dto.py index 9d7de23..cdddbf2 100644 --- a/test/test_ipcch_and_equivalent_peaks_dto.py +++ b/test/test_ipcch_and_equivalent_peaks_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import ( - IpcchAndEquivalentPeaksDTO, -) +import unittest +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto import IpcchAndEquivalentPeaksDTO class TestIpcchAndEquivalentPeaksDTO(unittest.TestCase): """IpcchAndEquivalentPeaksDTO unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTO: """Test IpcchAndEquivalentPeaksDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTO` """ model = IpcchAndEquivalentPeaksDTO() @@ -57,6 +55,5 @@ def testIpcchAndEquivalentPeaksDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py index 590eed9..e10e0cf 100644 --- a/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py +++ b/test/test_ipcch_and_equivalent_peaks_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import ( - IpcchAndEquivalentPeaksDTOPagedResult, -) +import unittest +from data_bridges_client.models.ipcch_and_equivalent_peaks_dto_paged_result import IpcchAndEquivalentPeaksDTOPagedResult class TestIpcchAndEquivalentPeaksDTOPagedResult(unittest.TestCase): """IpcchAndEquivalentPeaksDTOPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchAndEquivalentPeaksDTOPagedResult: """Test IpcchAndEquivalentPeaksDTOPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchAndEquivalentPeaksDTOPagedResult` """ model = IpcchAndEquivalentPeaksDTOPagedResult() @@ -56,6 +54,5 @@ def testIpcchAndEquivalentPeaksDTOPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_api.py b/test/test_ipcch_api.py index 0f9dd75..e75f289 100644 --- a/test/test_ipcch_api.py +++ b/test/test_ipcch_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.ipcch_api import IpcchApi @@ -62,5 +63,5 @@ def test_ipcch_ipcch_historical_data_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_base_dto.py b/test/test_ipcch_base_dto.py index fd3cda6..52e2e42 100644 --- a/test/test_ipcch_base_dto.py +++ b/test/test_ipcch_base_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.ipcch_base_dto import IpcchBaseDto - class TestIpcchBaseDto(unittest.TestCase): """IpcchBaseDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchBaseDto: """Test IpcchBaseDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchBaseDto` """ model = IpcchBaseDto() @@ -70,6 +70,5 @@ def testIpcchBaseDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_base_dto_paged_result.py b/test/test_ipcch_base_dto_paged_result.py index 3ab148d..b6a34f1 100644 --- a/test/test_ipcch_base_dto_paged_result.py +++ b/test/test_ipcch_base_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.ipcch_base_dto_paged_result import ( - IpcchBaseDtoPagedResult, -) +import unittest +from data_bridges_client.models.ipcch_base_dto_paged_result import IpcchBaseDtoPagedResult class TestIpcchBaseDtoPagedResult(unittest.TestCase): """IpcchBaseDtoPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchBaseDtoPagedResult: """Test IpcchBaseDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchBaseDtoPagedResult` """ model = IpcchBaseDtoPagedResult() @@ -56,6 +54,5 @@ def testIpcchBaseDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_peaks_dto.py b/test/test_ipcch_peaks_dto.py index 53c88a3..f72f64a 100644 --- a/test/test_ipcch_peaks_dto.py +++ b/test/test_ipcch_peaks_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.ipcch_peaks_dto import IpcchPeaksDto - class TestIpcchPeaksDto(unittest.TestCase): """IpcchPeaksDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchPeaksDto: """Test IpcchPeaksDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchPeaksDto` """ model = IpcchPeaksDto() @@ -71,6 +71,5 @@ def testIpcchPeaksDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_ipcch_peaks_dto_paged_result.py b/test/test_ipcch_peaks_dto_paged_result.py index 0c7731f..c2529b6 100644 --- a/test/test_ipcch_peaks_dto_paged_result.py +++ b/test/test_ipcch_peaks_dto_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.ipcch_peaks_dto_paged_result import ( - IpcchPeaksDtoPagedResult, -) +import unittest +from data_bridges_client.models.ipcch_peaks_dto_paged_result import IpcchPeaksDtoPagedResult class TestIpcchPeaksDtoPagedResult(unittest.TestCase): """IpcchPeaksDtoPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> IpcchPeaksDtoPagedResult: """Test IpcchPeaksDtoPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `IpcchPeaksDtoPagedResult` """ model = IpcchPeaksDtoPagedResult() @@ -56,6 +54,5 @@ def testIpcchPeaksDtoPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_key_name_dto.py b/test/test_key_name_dto.py index b6564c9..027ce92 100644 --- a/test/test_key_name_dto.py +++ b/test/test_key_name_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.key_name_dto import KeyNameDto - class TestKeyNameDto(unittest.TestCase): """KeyNameDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KeyNameDto: """Test KeyNameDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `KeyNameDto` """ model = KeyNameDto() @@ -49,6 +49,5 @@ def testKeyNameDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_list_item_dto.py b/test/test_list_item_dto.py index b51e740..82ca947 100644 --- a/test/test_list_item_dto.py +++ b/test/test_list_item_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.list_item_dto import ListItemDto - class TestListItemDto(unittest.TestCase): """ListItemDto unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListItemDto: """Test ListItemDto - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ListItemDto` """ model = ListItemDto() @@ -52,6 +52,5 @@ def testListItemDto(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_market_dto.py b/test/test_market_dto.py index d3b2adb..9aea88b 100644 --- a/test/test_market_dto.py +++ b/test/test_market_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.market_dto import MarketDTO - class TestMarketDTO(unittest.TestCase): """MarketDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MarketDTO: """Test MarketDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `MarketDTO` """ model = MarketDTO() @@ -56,6 +56,5 @@ def testMarketDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_market_geo_json_root.py b/test/test_market_geo_json_root.py index 11b4260..dd2046d 100644 --- a/test/test_market_geo_json_root.py +++ b/test/test_market_geo_json_root.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.market_geo_json_root import MarketGeoJsonRoot - class TestMarketGeoJsonRoot(unittest.TestCase): """MarketGeoJsonRoot unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MarketGeoJsonRoot: """Test MarketGeoJsonRoot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `MarketGeoJsonRoot` """ model = MarketGeoJsonRoot() @@ -54,6 +54,5 @@ def testMarketGeoJsonRoot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_market_prices_api.py b/test/test_market_prices_api.py index 440cf15..afa438e 100644 --- a/test/test_market_prices_api.py +++ b/test/test_market_prices_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.market_prices_api import MarketPricesApi @@ -62,5 +63,5 @@ def test_market_prices_price_weekly_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_markets_api.py b/test/test_markets_api.py index 0ed3325..0824098 100644 --- a/test/test_markets_api.py +++ b/test/test_markets_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.markets_api import MarketsApi @@ -55,5 +56,5 @@ def test_markets_nearby_markets_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_mfi_processed_data_dto.py b/test/test_mfi_processed_data_dto.py index ffc7aba..aad07e6 100644 --- a/test/test_mfi_processed_data_dto.py +++ b/test/test_mfi_processed_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.mfi_processed_data_dto import MFIProcessedDataDTO - class TestMFIProcessedDataDTO(unittest.TestCase): """MFIProcessedDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MFIProcessedDataDTO: """Test MFIProcessedDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `MFIProcessedDataDTO` """ model = MFIProcessedDataDTO() @@ -73,6 +73,5 @@ def testMFIProcessedDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_nearby_markets_dto.py b/test/test_nearby_markets_dto.py index 9789b9f..a8730fb 100644 --- a/test/test_nearby_markets_dto.py +++ b/test/test_nearby_markets_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.nearby_markets_dto import NearbyMarketsDTO - class TestNearbyMarketsDTO(unittest.TestCase): """NearbyMarketsDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NearbyMarketsDTO: """Test NearbyMarketsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `NearbyMarketsDTO` """ model = NearbyMarketsDTO() @@ -50,6 +50,5 @@ def testNearbyMarketsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_commodity_list_dto.py b/test/test_paged_commodity_list_dto.py index 36c23ad..2678850 100644 --- a/test/test_paged_commodity_list_dto.py +++ b/test/test_paged_commodity_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_commodity_list_dto import PagedCommodityListDTO - class TestPagedCommodityListDTO(unittest.TestCase): """PagedCommodityListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCommodityListDTO: """Test PagedCommodityListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedCommodityListDTO` """ model = PagedCommodityListDTO() @@ -54,6 +54,5 @@ def testPagedCommodityListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_commodity_price_list_dto.py b/test/test_paged_commodity_price_list_dto.py index 791ecfd..e84c767 100644 --- a/test/test_paged_commodity_price_list_dto.py +++ b/test/test_paged_commodity_price_list_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.paged_commodity_price_list_dto import ( - PagedCommodityPriceListDTO, -) +import unittest +from data_bridges_client.models.paged_commodity_price_list_dto import PagedCommodityPriceListDTO class TestPagedCommodityPriceListDTO(unittest.TestCase): """PagedCommodityPriceListDTO unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCommodityPriceListDTO: """Test PagedCommodityPriceListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedCommodityPriceListDTO` """ model = PagedCommodityPriceListDTO() @@ -56,6 +54,5 @@ def testPagedCommodityPriceListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py index 9138fcd..178477f 100644 --- a/test/test_paged_commodity_weekly_aggregated_price_list_dto.py +++ b/test/test_paged_commodity_weekly_aggregated_price_list_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import ( - PagedCommodityWeeklyAggregatedPriceListDTO, -) +import unittest +from data_bridges_client.models.paged_commodity_weekly_aggregated_price_list_dto import PagedCommodityWeeklyAggregatedPriceListDTO class TestPagedCommodityWeeklyAggregatedPriceListDTO(unittest.TestCase): """PagedCommodityWeeklyAggregatedPriceListDTO unit test stubs""" @@ -28,13 +26,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> PagedCommodityWeeklyAggregatedPriceListDTO: + def make_instance(self, include_optional) -> PagedCommodityWeeklyAggregatedPriceListDTO: """Test PagedCommodityWeeklyAggregatedPriceListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedCommodityWeeklyAggregatedPriceListDTO` """ model = PagedCommodityWeeklyAggregatedPriceListDTO() @@ -58,6 +54,5 @@ def testPagedCommodityWeeklyAggregatedPriceListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_currency_list_dto.py b/test/test_paged_currency_list_dto.py index 214d81b..2c223d9 100644 --- a/test/test_paged_currency_list_dto.py +++ b/test/test_paged_currency_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_currency_list_dto import PagedCurrencyListDTO - class TestPagedCurrencyListDTO(unittest.TestCase): """PagedCurrencyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedCurrencyListDTO: """Test PagedCurrencyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedCurrencyListDTO` """ model = PagedCurrencyListDTO() @@ -54,6 +54,5 @@ def testPagedCurrencyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_economic_data_dto.py b/test/test_paged_economic_data_dto.py index 9f5eef5..4e1ffe5 100644 --- a/test/test_paged_economic_data_dto.py +++ b/test/test_paged_economic_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_economic_data_dto import PagedEconomicDataDTO - class TestPagedEconomicDataDTO(unittest.TestCase): """PagedEconomicDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedEconomicDataDTO: """Test PagedEconomicDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedEconomicDataDTO` """ model = PagedEconomicDataDTO() @@ -57,6 +57,5 @@ def testPagedEconomicDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_market_list_dto.py b/test/test_paged_market_list_dto.py index 0e50208..614e9f5 100644 --- a/test/test_paged_market_list_dto.py +++ b/test/test_paged_market_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_market_list_dto import PagedMarketListDTO - class TestPagedMarketListDTO(unittest.TestCase): """PagedMarketListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedMarketListDTO: """Test PagedMarketListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedMarketListDTO` """ model = PagedMarketListDTO() @@ -54,6 +54,5 @@ def testPagedMarketListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_processed_data_dto.py b/test/test_paged_processed_data_dto.py index 2aeb671..defdca5 100644 --- a/test/test_paged_processed_data_dto.py +++ b/test/test_paged_processed_data_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_processed_data_dto import PagedProcessedDataDTO - class TestPagedProcessedDataDTO(unittest.TestCase): """PagedProcessedDataDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedProcessedDataDTO: """Test PagedProcessedDataDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedProcessedDataDTO` """ model = PagedProcessedDataDTO() @@ -55,6 +55,5 @@ def testPagedProcessedDataDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_survey_list_dto.py b/test/test_paged_survey_list_dto.py index 8cc66a5..e58be18 100644 --- a/test/test_paged_survey_list_dto.py +++ b/test/test_paged_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_survey_list_dto import PagedSurveyListDTO - class TestPagedSurveyListDTO(unittest.TestCase): """PagedSurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedSurveyListDTO: """Test PagedSurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedSurveyListDTO` """ model = PagedSurveyListDTO() @@ -54,6 +54,5 @@ def testPagedSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_survey_responses_dto.py b/test/test_paged_survey_responses_dto.py index 1c36a12..6fad96c 100644 --- a/test/test_paged_survey_responses_dto.py +++ b/test/test_paged_survey_responses_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.paged_survey_responses_dto import ( - PagedSurveyResponsesDTO, -) +import unittest +from data_bridges_client.models.paged_survey_responses_dto import PagedSurveyResponsesDTO class TestPagedSurveyResponsesDTO(unittest.TestCase): """PagedSurveyResponsesDTO unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedSurveyResponsesDTO: """Test PagedSurveyResponsesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedSurveyResponsesDTO` """ model = PagedSurveyResponsesDTO() @@ -54,6 +52,5 @@ def testPagedSurveyResponsesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_paged_xls_form_list_dto.py b/test/test_paged_xls_form_list_dto.py index 511cf68..8776611 100644 --- a/test/test_paged_xls_form_list_dto.py +++ b/test/test_paged_xls_form_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.paged_xls_form_list_dto import PagedXlsFormListDTO - class TestPagedXlsFormListDTO(unittest.TestCase): """PagedXlsFormListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PagedXlsFormListDTO: """Test PagedXlsFormListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `PagedXlsFormListDTO` """ model = PagedXlsFormListDTO() @@ -54,6 +54,5 @@ def testPagedXlsFormListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_problem_details.py b/test/test_problem_details.py index 326d87c..f99cac6 100644 --- a/test/test_problem_details.py +++ b/test/test_problem_details.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.problem_details import ProblemDetails - class TestProblemDetails(unittest.TestCase): """ProblemDetails unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ProblemDetails: """Test ProblemDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ProblemDetails` """ model = ProblemDetails() @@ -52,6 +52,5 @@ def testProblemDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_properties.py b/test/test_properties.py index 93e41d8..924ed94 100644 --- a/test/test_properties.py +++ b/test/test_properties.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.properties import Properties - class TestProperties(unittest.TestCase): """Properties unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Properties: """Test Properties - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `Properties` """ model = Properties() @@ -48,6 +48,5 @@ def testProperties(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_api.py b/test/test_rpme_api.py index 5004434..316ae48 100644 --- a/test/test_rpme_api.py +++ b/test/test_rpme_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.rpme_api import RpmeApi @@ -69,5 +70,5 @@ def test_rpme_xls_forms_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_assessment.py b/test/test_rpme_assessment.py index 22824b8..d441ebf 100644 --- a/test/test_rpme_assessment.py +++ b/test/test_rpme_assessment.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.rpme_assessment import RpmeAssessment - class TestRpmeAssessment(unittest.TestCase): """RpmeAssessment unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeAssessment: """Test RpmeAssessment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RpmeAssessment` """ model = RpmeAssessment() @@ -71,6 +71,5 @@ def testRpmeAssessment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_assessment_paged_result.py b/test/test_rpme_assessment_paged_result.py index c0332d4..d68b4ec 100644 --- a/test/test_rpme_assessment_paged_result.py +++ b/test/test_rpme_assessment_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.rpme_assessment_paged_result import ( - RpmeAssessmentPagedResult, -) +import unittest +from data_bridges_client.models.rpme_assessment_paged_result import RpmeAssessmentPagedResult class TestRpmeAssessmentPagedResult(unittest.TestCase): """RpmeAssessmentPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeAssessmentPagedResult: """Test RpmeAssessmentPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RpmeAssessmentPagedResult` """ model = RpmeAssessmentPagedResult() @@ -56,6 +54,5 @@ def testRpmeAssessmentPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_output_values.py b/test/test_rpme_output_values.py index 2e02b68..3eec31a 100644 --- a/test/test_rpme_output_values.py +++ b/test/test_rpme_output_values.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.rpme_output_values import RpmeOutputValues - class TestRpmeOutputValues(unittest.TestCase): """RpmeOutputValues unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeOutputValues: """Test RpmeOutputValues - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RpmeOutputValues` """ model = RpmeOutputValues() @@ -49,6 +49,5 @@ def testRpmeOutputValues(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_variable.py b/test/test_rpme_variable.py index be9214e..2888b1c 100644 --- a/test/test_rpme_variable.py +++ b/test/test_rpme_variable.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.rpme_variable import RpmeVariable - class TestRpmeVariable(unittest.TestCase): """RpmeVariable unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeVariable: """Test RpmeVariable - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RpmeVariable` """ model = RpmeVariable() @@ -56,6 +56,5 @@ def testRpmeVariable(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_rpme_variable_paged_result.py b/test/test_rpme_variable_paged_result.py index b224aee..8d9cfe2 100644 --- a/test/test_rpme_variable_paged_result.py +++ b/test/test_rpme_variable_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.rpme_variable_paged_result import ( - RpmeVariablePagedResult, -) +import unittest +from data_bridges_client.models.rpme_variable_paged_result import RpmeVariablePagedResult class TestRpmeVariablePagedResult(unittest.TestCase): """RpmeVariablePagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RpmeVariablePagedResult: """Test RpmeVariablePagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `RpmeVariablePagedResult` """ model = RpmeVariablePagedResult() @@ -56,6 +54,5 @@ def testRpmeVariablePagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_survey_list_dto.py b/test/test_survey_list_dto.py index 757694f..cf44dc3 100644 --- a/test/test_survey_list_dto.py +++ b/test/test_survey_list_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.survey_list_dto import SurveyListDTO - class TestSurveyListDTO(unittest.TestCase): """SurveyListDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SurveyListDTO: """Test SurveyListDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `SurveyListDTO` """ model = SurveyListDTO() @@ -62,6 +62,5 @@ def testSurveyListDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_surveys_api.py b/test/test_surveys_api.py index 6352b46..5e06055 100644 --- a/test/test_surveys_api.py +++ b/test/test_surveys_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.surveys_api import SurveysApi @@ -55,5 +56,5 @@ def test_m_fi_surveys_processed_data_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_usd_indirect_quotation.py b/test/test_usd_indirect_quotation.py index 7dfbf88..ba6728a 100644 --- a/test/test_usd_indirect_quotation.py +++ b/test/test_usd_indirect_quotation.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.usd_indirect_quotation import UsdIndirectQuotation - class TestUsdIndirectQuotation(unittest.TestCase): """UsdIndirectQuotation unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsdIndirectQuotation: """Test UsdIndirectQuotation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UsdIndirectQuotation` """ model = UsdIndirectQuotation() @@ -55,6 +55,5 @@ def testUsdIndirectQuotation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_usd_indirect_quotation_paged_result.py b/test/test_usd_indirect_quotation_paged_result.py index 7a06000..3ee915d 100644 --- a/test/test_usd_indirect_quotation_paged_result.py +++ b/test/test_usd_indirect_quotation_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.usd_indirect_quotation_paged_result import ( - UsdIndirectQuotationPagedResult, -) +import unittest +from data_bridges_client.models.usd_indirect_quotation_paged_result import UsdIndirectQuotationPagedResult class TestUsdIndirectQuotationPagedResult(unittest.TestCase): """UsdIndirectQuotationPagedResult unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsdIndirectQuotationPagedResult: """Test UsdIndirectQuotationPagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `UsdIndirectQuotationPagedResult` """ model = UsdIndirectQuotationPagedResult() @@ -56,6 +54,5 @@ def testUsdIndirectQuotationPagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_view_extended_monthly_aggregated_price.py b/test/test_view_extended_monthly_aggregated_price.py index 176b928..4b0626a 100644 --- a/test/test_view_extended_monthly_aggregated_price.py +++ b/test/test_view_extended_monthly_aggregated_price.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.view_extended_monthly_aggregated_price import ( - ViewExtendedMonthlyAggregatedPrice, -) +import unittest +from data_bridges_client.models.view_extended_monthly_aggregated_price import ViewExtendedMonthlyAggregatedPrice class TestViewExtendedMonthlyAggregatedPrice(unittest.TestCase): """ViewExtendedMonthlyAggregatedPrice unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPrice: """Test ViewExtendedMonthlyAggregatedPrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPrice` """ model = ViewExtendedMonthlyAggregatedPrice() @@ -71,6 +69,5 @@ def testViewExtendedMonthlyAggregatedPrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_view_extended_monthly_aggregated_price_paged_result.py b/test/test_view_extended_monthly_aggregated_price_paged_result.py index cc0bcb5..9c2023b 100644 --- a/test/test_view_extended_monthly_aggregated_price_paged_result.py +++ b/test/test_view_extended_monthly_aggregated_price_paged_result.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ( - ViewExtendedMonthlyAggregatedPricePagedResult, -) +import unittest +from data_bridges_client.models.view_extended_monthly_aggregated_price_paged_result import ViewExtendedMonthlyAggregatedPricePagedResult class TestViewExtendedMonthlyAggregatedPricePagedResult(unittest.TestCase): """ViewExtendedMonthlyAggregatedPricePagedResult unit test stubs""" @@ -28,13 +26,11 @@ def setUp(self): def tearDown(self): pass - def make_instance( - self, include_optional - ) -> ViewExtendedMonthlyAggregatedPricePagedResult: + def make_instance(self, include_optional) -> ViewExtendedMonthlyAggregatedPricePagedResult: """Test ViewExtendedMonthlyAggregatedPricePagedResult - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `ViewExtendedMonthlyAggregatedPricePagedResult` """ model = ViewExtendedMonthlyAggregatedPricePagedResult() @@ -58,6 +54,5 @@ def testViewExtendedMonthlyAggregatedPricePagedResult(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_weekly_aggregated_price.py b/test/test_weekly_aggregated_price.py index 438a741..5e69e77 100644 --- a/test/test_weekly_aggregated_price.py +++ b/test/test_weekly_aggregated_price.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.weekly_aggregated_price import WeeklyAggregatedPrice - class TestWeeklyAggregatedPrice(unittest.TestCase): """WeeklyAggregatedPrice unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> WeeklyAggregatedPrice: """Test WeeklyAggregatedPrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `WeeklyAggregatedPrice` """ model = WeeklyAggregatedPrice() @@ -69,6 +69,5 @@ def testWeeklyAggregatedPrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_form_definition_new_schema_dto.py b/test/test_xls_form_definition_new_schema_dto.py index 601aaf6..05cf842 100644 --- a/test/test_xls_form_definition_new_schema_dto.py +++ b/test/test_xls_form_definition_new_schema_dto.py @@ -1,23 +1,21 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 -import unittest -from data_bridges_client.models.xls_form_definition_new_schema_dto import ( - XlsFormDefinitionNewSchemaDTO, -) +import unittest +from data_bridges_client.models.xls_form_definition_new_schema_dto import XlsFormDefinitionNewSchemaDTO class TestXlsFormDefinitionNewSchemaDTO(unittest.TestCase): """XlsFormDefinitionNewSchemaDTO unit test stubs""" @@ -30,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormDefinitionNewSchemaDTO: """Test XlsFormDefinitionNewSchemaDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `XlsFormDefinitionNewSchemaDTO` """ model = XlsFormDefinitionNewSchemaDTO() @@ -61,6 +59,5 @@ def testXlsFormDefinitionNewSchemaDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_form_dto.py b/test/test_xls_form_dto.py index 2c8ad4d..d07276e 100644 --- a/test/test_xls_form_dto.py +++ b/test/test_xls_form_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.xls_form_dto import XlsFormDTO - class TestXlsFormDTO(unittest.TestCase): """XlsFormDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormDTO: """Test XlsFormDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `XlsFormDTO` """ model = XlsFormDTO() @@ -54,6 +54,5 @@ def testXlsFormDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_form_fields_dto.py b/test/test_xls_form_fields_dto.py index 3f92e11..183d1c3 100644 --- a/test/test_xls_form_fields_dto.py +++ b/test/test_xls_form_fields_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.xls_form_fields_dto import XlsFormFieldsDTO - class TestXlsFormFieldsDTO(unittest.TestCase): """XlsFormFieldsDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormFieldsDTO: """Test XlsFormFieldsDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `XlsFormFieldsDTO` """ model = XlsFormFieldsDTO() @@ -53,6 +53,5 @@ def testXlsFormFieldsDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_form_list_choice_dto.py b/test/test_xls_form_list_choice_dto.py index 18c64d3..5941f05 100644 --- a/test/test_xls_form_list_choice_dto.py +++ b/test/test_xls_form_list_choice_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.xls_form_list_choice_dto import XlsFormListChoiceDTO - class TestXlsFormListChoiceDTO(unittest.TestCase): """XlsFormListChoiceDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormListChoiceDTO: """Test XlsFormListChoiceDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `XlsFormListChoiceDTO` """ model = XlsFormListChoiceDTO() @@ -49,6 +49,5 @@ def testXlsFormListChoiceDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_form_list_choices_dto.py b/test/test_xls_form_list_choices_dto.py index e438e2c..055181f 100644 --- a/test/test_xls_form_list_choices_dto.py +++ b/test/test_xls_form_list_choices_dto.py @@ -1,22 +1,22 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.models.xls_form_list_choices_dto import XlsFormListChoicesDTO - class TestXlsFormListChoicesDTO(unittest.TestCase): """XlsFormListChoicesDTO unit test stubs""" @@ -28,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> XlsFormListChoicesDTO: """Test XlsFormListChoicesDTO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included""" + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ # uncomment below to create an instance of `XlsFormListChoicesDTO` """ model = XlsFormListChoicesDTO() @@ -53,6 +53,5 @@ def testXlsFormListChoicesDTO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() diff --git a/test/test_xls_forms_api.py b/test/test_xls_forms_api.py index 484d53f..fbea411 100644 --- a/test/test_xls_forms_api.py +++ b/test/test_xls_forms_api.py @@ -1,17 +1,18 @@ # coding: utf-8 """ -VAM-Data-Bridges + VAM-Data-Bridges -API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern + API Documentation of the **DataBridges** platform: https://databridges.vam.wfp.org/. For API discussions and details: #api-integration-vam-data-bridges on Slack, [Teams channel](https://teams.microsoft.com/l/team/19%3a4ca595f7681f4ffa8a86b7af58832e8d%40thread.skype/conversations?groupId=cbd1e508-c6e8-459d-96b7-6cac3039c42c&tenantId=462ad9ae-d7d9-4206-b874-71b1e079776f) **API Integration** - This endpoint uses [Hey Jude](https://docs.api.wfp.org/providers/#api-patterns) pattern -The version of the OpenAPI document: 7.0.0 -Contact: wfp.economicanalysis@wfp.org -Generated by OpenAPI Generator (https://openapi-generator.tech) + The version of the OpenAPI document: 7.0.0 + Contact: wfp.economicanalysis@wfp.org + Generated by OpenAPI Generator (https://openapi-generator.tech) -Do not edit the class manually. + Do not edit the class manually. """ # noqa: E501 + import unittest from data_bridges_client.api.xls_forms_api import XlsFormsApi @@ -34,5 +35,5 @@ def test_m_fi_xls_forms_get(self) -> None: pass -if __name__ == "__main__": +if __name__ == '__main__': unittest.main() From a80e977496f2eb82f806f10127f8cf7377ed8cd5 Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 14:52:45 +0100 Subject: [PATCH 8/9] chore: update GitHub action --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index e01c473..ae3db0d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v3 From 8483976af8efe9e2ee174f273fd690fea6df7ced Mon Sep 17 00:00:00 2001 From: AlexGherardelli Date: Fri, 28 Nov 2025 14:54:04 +0100 Subject: [PATCH 9/9] chore: update GitHub action --- .github/workflows/python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index ae3db0d..0055eb6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3