policyengine-api-simulation-client 0.20260112.77__py3-none-any.whl → 0.20260114.79__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- policyengine_api_simulation_client/__init__.py +1 -1
- policyengine_api_simulation_client/api/default/get_country_versions_versions_country_get.py +172 -0
- policyengine_api_simulation_client/api/default/get_job_status_jobs_job_id_get.py +204 -0
- policyengine_api_simulation_client/api/default/{started_ping_started_get.py → health_health_get.py} +27 -21
- policyengine_api_simulation_client/api/default/{alive_ping_alive_get.py → list_versions_versions_get.py} +27 -29
- policyengine_api_simulation_client/api/default/ping_ping_post.py +8 -8
- policyengine_api_simulation_client/api/default/{simulate_simulate_economy_comparison_post.py → submit_simulation_simulate_economy_comparison_post.py} +51 -27
- policyengine_api_simulation_client/models/__init__.py +17 -103
- policyengine_api_simulation_client/models/{baseline_reform_values.py → get_country_versions_versions_country_get_response_get_country_versions_versions_country_get.py} +6 -29
- policyengine_api_simulation_client/models/{labor_supply_response_relative_lsr.py → health_health_get_response_health_health_get.py} +5 -5
- policyengine_api_simulation_client/models/job_status_response.py +122 -0
- policyengine_api_simulation_client/models/{simulation_options_data_type_1.py → job_status_response_result_type_0.py} +5 -5
- policyengine_api_simulation_client/models/{program_specific_impact.py → job_submit_response.py} +41 -24
- policyengine_api_simulation_client/models/{parameter_change_dict.py → list_versions_versions_get_response_list_versions_versions_get.py} +6 -13
- policyengine_api_simulation_client/models/ping_request.py +2 -1
- policyengine_api_simulation_client/models/ping_response.py +2 -1
- policyengine_api_simulation_client/models/{probe_status.py → simulation_request.py} +24 -31
- {policyengine_api_simulation_client-0.20260112.77.dist-info → policyengine_api_simulation_client-0.20260114.79.dist-info}/METADATA +4 -4
- policyengine_api_simulation_client-0.20260114.79.dist-info/RECORD +28 -0
- policyengine_api_simulation_client/models/age_group_baseline_reform_values.py +0 -91
- policyengine_api_simulation_client/models/budgetary_impact.py +0 -101
- policyengine_api_simulation_client/models/cliff_impact.py +0 -75
- policyengine_api_simulation_client/models/cliff_impact_in_simulation.py +0 -69
- policyengine_api_simulation_client/models/decile_impact.py +0 -77
- policyengine_api_simulation_client/models/decile_impact_average.py +0 -46
- policyengine_api_simulation_client/models/decile_impact_relative.py +0 -46
- policyengine_api_simulation_client/models/economy_comparison.py +0 -366
- policyengine_api_simulation_client/models/economy_comparison_detailed_budget_type_0.py +0 -59
- policyengine_api_simulation_client/models/gender_baseline_reform_values.py +0 -75
- policyengine_api_simulation_client/models/health_status.py +0 -83
- policyengine_api_simulation_client/models/hours_response.py +0 -93
- policyengine_api_simulation_client/models/inequality_impact.py +0 -83
- policyengine_api_simulation_client/models/intra_decile_impact.py +0 -77
- policyengine_api_simulation_client/models/intra_decile_impact_all.py +0 -46
- policyengine_api_simulation_client/models/intra_decile_impact_deciles.py +0 -53
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values.py +0 -77
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values_all.py +0 -46
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values_deciles.py +0 -53
- policyengine_api_simulation_client/models/labor_supply_response.py +0 -119
- policyengine_api_simulation_client/models/labor_supply_response_decile.py +0 -63
- policyengine_api_simulation_client/models/labor_supply_response_decile_additional_property.py +0 -65
- policyengine_api_simulation_client/models/labor_supply_response_decile_additional_property_additional_property.py +0 -46
- policyengine_api_simulation_client/models/parametric_reform.py +0 -80
- policyengine_api_simulation_client/models/poverty_gender_breakdown.py +0 -75
- policyengine_api_simulation_client/models/poverty_impact.py +0 -75
- policyengine_api_simulation_client/models/poverty_racial_breakdown_with_values.py +0 -67
- policyengine_api_simulation_client/models/racial_baseline_reform_values.py +0 -91
- policyengine_api_simulation_client/models/simulation_options.py +0 -309
- policyengine_api_simulation_client/models/simulation_options_country.py +0 -9
- policyengine_api_simulation_client/models/simulation_options_scope.py +0 -9
- policyengine_api_simulation_client/models/system_status.py +0 -91
- policyengine_api_simulation_client/models/uk_constituency_breakdown_by_constituency.py +0 -85
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values.py +0 -85
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_by_constituency.py +0 -59
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_outcomes_by_region.py +0 -67
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_outcomes_by_region_additional_property.py +0 -46
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_by_local_authority.py +0 -85
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_with_values.py +0 -71
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_with_values_by_local_authority.py +0 -59
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values.py +0 -77
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values_average.py +0 -46
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values_relative.py +0 -46
- policyengine_api_simulation_client-0.20260112.77.dist-info/RECORD +0 -68
- {policyengine_api_simulation_client-0.20260112.77.dist-info → policyengine_api_simulation_client-0.20260114.79.dist-info}/WHEEL +0 -0
|
@@ -67,10 +67,10 @@ def sync_detailed(
|
|
|
67
67
|
) -> Response[HTTPValidationError | PingResponse]:
|
|
68
68
|
"""Ping
|
|
69
69
|
|
|
70
|
-
Verify the
|
|
70
|
+
Verify the API is able to receive and process requests.
|
|
71
71
|
|
|
72
72
|
Args:
|
|
73
|
-
body (PingRequest):
|
|
73
|
+
body (PingRequest): Request model for ping endpoint.
|
|
74
74
|
|
|
75
75
|
Raises:
|
|
76
76
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -98,10 +98,10 @@ def sync(
|
|
|
98
98
|
) -> HTTPValidationError | PingResponse | None:
|
|
99
99
|
"""Ping
|
|
100
100
|
|
|
101
|
-
Verify the
|
|
101
|
+
Verify the API is able to receive and process requests.
|
|
102
102
|
|
|
103
103
|
Args:
|
|
104
|
-
body (PingRequest):
|
|
104
|
+
body (PingRequest): Request model for ping endpoint.
|
|
105
105
|
|
|
106
106
|
Raises:
|
|
107
107
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -124,10 +124,10 @@ async def asyncio_detailed(
|
|
|
124
124
|
) -> Response[HTTPValidationError | PingResponse]:
|
|
125
125
|
"""Ping
|
|
126
126
|
|
|
127
|
-
Verify the
|
|
127
|
+
Verify the API is able to receive and process requests.
|
|
128
128
|
|
|
129
129
|
Args:
|
|
130
|
-
body (PingRequest):
|
|
130
|
+
body (PingRequest): Request model for ping endpoint.
|
|
131
131
|
|
|
132
132
|
Raises:
|
|
133
133
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -153,10 +153,10 @@ async def asyncio(
|
|
|
153
153
|
) -> HTTPValidationError | PingResponse | None:
|
|
154
154
|
"""Ping
|
|
155
155
|
|
|
156
|
-
Verify the
|
|
156
|
+
Verify the API is able to receive and process requests.
|
|
157
157
|
|
|
158
158
|
Args:
|
|
159
|
-
body (PingRequest):
|
|
159
|
+
body (PingRequest): Request model for ping endpoint.
|
|
160
160
|
|
|
161
161
|
Raises:
|
|
162
162
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any
|
|
2
|
+
from typing import Any, cast
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.economy_comparison import EconomyComparison
|
|
9
8
|
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
-
from ...models.
|
|
9
|
+
from ...models.job_submit_response import JobSubmitResponse
|
|
10
|
+
from ...models.simulation_request import SimulationRequest
|
|
11
11
|
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
body:
|
|
16
|
+
body: SimulationRequest,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
|
|
@@ -32,12 +32,16 @@ def _get_kwargs(
|
|
|
32
32
|
|
|
33
33
|
def _parse_response(
|
|
34
34
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
35
|
-
) ->
|
|
35
|
+
) -> Any | HTTPValidationError | JobSubmitResponse | None:
|
|
36
36
|
if response.status_code == 200:
|
|
37
|
-
response_200 =
|
|
37
|
+
response_200 = JobSubmitResponse.from_dict(response.json())
|
|
38
38
|
|
|
39
39
|
return response_200
|
|
40
40
|
|
|
41
|
+
if response.status_code == 400:
|
|
42
|
+
response_400 = cast(Any, None)
|
|
43
|
+
return response_400
|
|
44
|
+
|
|
41
45
|
if response.status_code == 422:
|
|
42
46
|
response_422 = HTTPValidationError.from_dict(response.json())
|
|
43
47
|
|
|
@@ -51,7 +55,7 @@ def _parse_response(
|
|
|
51
55
|
|
|
52
56
|
def _build_response(
|
|
53
57
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
54
|
-
) -> Response[
|
|
58
|
+
) -> Response[Any | HTTPValidationError | JobSubmitResponse]:
|
|
55
59
|
return Response(
|
|
56
60
|
status_code=HTTPStatus(response.status_code),
|
|
57
61
|
content=response.content,
|
|
@@ -63,19 +67,24 @@ def _build_response(
|
|
|
63
67
|
def sync_detailed(
|
|
64
68
|
*,
|
|
65
69
|
client: AuthenticatedClient | Client,
|
|
66
|
-
body:
|
|
67
|
-
) -> Response[
|
|
68
|
-
"""
|
|
70
|
+
body: SimulationRequest,
|
|
71
|
+
) -> Response[Any | HTTPValidationError | JobSubmitResponse]:
|
|
72
|
+
"""Submit Simulation
|
|
73
|
+
|
|
74
|
+
Submit a simulation job.
|
|
75
|
+
|
|
76
|
+
Routes to the appropriate simulation app based on country and version.
|
|
77
|
+
Returns immediately with a job_id for polling.
|
|
69
78
|
|
|
70
79
|
Args:
|
|
71
|
-
body (
|
|
80
|
+
body (SimulationRequest): Request model for simulation submission.
|
|
72
81
|
|
|
73
82
|
Raises:
|
|
74
83
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
75
84
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
76
85
|
|
|
77
86
|
Returns:
|
|
78
|
-
Response[
|
|
87
|
+
Response[Any | HTTPValidationError | JobSubmitResponse]
|
|
79
88
|
"""
|
|
80
89
|
|
|
81
90
|
kwargs = _get_kwargs(
|
|
@@ -92,19 +101,24 @@ def sync_detailed(
|
|
|
92
101
|
def sync(
|
|
93
102
|
*,
|
|
94
103
|
client: AuthenticatedClient | Client,
|
|
95
|
-
body:
|
|
96
|
-
) ->
|
|
97
|
-
"""
|
|
104
|
+
body: SimulationRequest,
|
|
105
|
+
) -> Any | HTTPValidationError | JobSubmitResponse | None:
|
|
106
|
+
"""Submit Simulation
|
|
107
|
+
|
|
108
|
+
Submit a simulation job.
|
|
109
|
+
|
|
110
|
+
Routes to the appropriate simulation app based on country and version.
|
|
111
|
+
Returns immediately with a job_id for polling.
|
|
98
112
|
|
|
99
113
|
Args:
|
|
100
|
-
body (
|
|
114
|
+
body (SimulationRequest): Request model for simulation submission.
|
|
101
115
|
|
|
102
116
|
Raises:
|
|
103
117
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
104
118
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
105
119
|
|
|
106
120
|
Returns:
|
|
107
|
-
|
|
121
|
+
Any | HTTPValidationError | JobSubmitResponse
|
|
108
122
|
"""
|
|
109
123
|
|
|
110
124
|
return sync_detailed(
|
|
@@ -116,19 +130,24 @@ def sync(
|
|
|
116
130
|
async def asyncio_detailed(
|
|
117
131
|
*,
|
|
118
132
|
client: AuthenticatedClient | Client,
|
|
119
|
-
body:
|
|
120
|
-
) -> Response[
|
|
121
|
-
"""
|
|
133
|
+
body: SimulationRequest,
|
|
134
|
+
) -> Response[Any | HTTPValidationError | JobSubmitResponse]:
|
|
135
|
+
"""Submit Simulation
|
|
136
|
+
|
|
137
|
+
Submit a simulation job.
|
|
138
|
+
|
|
139
|
+
Routes to the appropriate simulation app based on country and version.
|
|
140
|
+
Returns immediately with a job_id for polling.
|
|
122
141
|
|
|
123
142
|
Args:
|
|
124
|
-
body (
|
|
143
|
+
body (SimulationRequest): Request model for simulation submission.
|
|
125
144
|
|
|
126
145
|
Raises:
|
|
127
146
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
128
147
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
129
148
|
|
|
130
149
|
Returns:
|
|
131
|
-
Response[
|
|
150
|
+
Response[Any | HTTPValidationError | JobSubmitResponse]
|
|
132
151
|
"""
|
|
133
152
|
|
|
134
153
|
kwargs = _get_kwargs(
|
|
@@ -143,19 +162,24 @@ async def asyncio_detailed(
|
|
|
143
162
|
async def asyncio(
|
|
144
163
|
*,
|
|
145
164
|
client: AuthenticatedClient | Client,
|
|
146
|
-
body:
|
|
147
|
-
) ->
|
|
148
|
-
"""
|
|
165
|
+
body: SimulationRequest,
|
|
166
|
+
) -> Any | HTTPValidationError | JobSubmitResponse | None:
|
|
167
|
+
"""Submit Simulation
|
|
168
|
+
|
|
169
|
+
Submit a simulation job.
|
|
170
|
+
|
|
171
|
+
Routes to the appropriate simulation app based on country and version.
|
|
172
|
+
Returns immediately with a job_id for polling.
|
|
149
173
|
|
|
150
174
|
Args:
|
|
151
|
-
body (
|
|
175
|
+
body (SimulationRequest): Request model for simulation submission.
|
|
152
176
|
|
|
153
177
|
Raises:
|
|
154
178
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
155
179
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
156
180
|
|
|
157
181
|
Returns:
|
|
158
|
-
|
|
182
|
+
Any | HTTPValidationError | JobSubmitResponse
|
|
159
183
|
"""
|
|
160
184
|
|
|
161
185
|
return (
|
|
@@ -1,117 +1,31 @@
|
|
|
1
1
|
"""Contains all the data models used in inputs/outputs"""
|
|
2
2
|
|
|
3
|
-
from .
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
from .
|
|
7
|
-
from .cliff_impact_in_simulation import CliffImpactInSimulation
|
|
8
|
-
from .decile_impact import DecileImpact
|
|
9
|
-
from .decile_impact_average import DecileImpactAverage
|
|
10
|
-
from .decile_impact_relative import DecileImpactRelative
|
|
11
|
-
from .economy_comparison import EconomyComparison
|
|
12
|
-
from .economy_comparison_detailed_budget_type_0 import EconomyComparisonDetailedBudgetType0
|
|
13
|
-
from .gender_baseline_reform_values import GenderBaselineReformValues
|
|
14
|
-
from .health_status import HealthStatus
|
|
15
|
-
from .hours_response import HoursResponse
|
|
3
|
+
from .get_country_versions_versions_country_get_response_get_country_versions_versions_country_get import (
|
|
4
|
+
GetCountryVersionsVersionsCountryGetResponseGetCountryVersionsVersionsCountryGet,
|
|
5
|
+
)
|
|
6
|
+
from .health_health_get_response_health_health_get import HealthHealthGetResponseHealthHealthGet
|
|
16
7
|
from .http_validation_error import HTTPValidationError
|
|
17
|
-
from .
|
|
18
|
-
from .
|
|
19
|
-
from .
|
|
20
|
-
from .
|
|
21
|
-
|
|
22
|
-
from .intra_wealth_decile_impact_with_values_all import IntraWealthDecileImpactWithValuesAll
|
|
23
|
-
from .intra_wealth_decile_impact_with_values_deciles import IntraWealthDecileImpactWithValuesDeciles
|
|
24
|
-
from .labor_supply_response import LaborSupplyResponse
|
|
25
|
-
from .labor_supply_response_decile import LaborSupplyResponseDecile
|
|
26
|
-
from .labor_supply_response_decile_additional_property import LaborSupplyResponseDecileAdditionalProperty
|
|
27
|
-
from .labor_supply_response_decile_additional_property_additional_property import (
|
|
28
|
-
LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty,
|
|
8
|
+
from .job_status_response import JobStatusResponse
|
|
9
|
+
from .job_status_response_result_type_0 import JobStatusResponseResultType0
|
|
10
|
+
from .job_submit_response import JobSubmitResponse
|
|
11
|
+
from .list_versions_versions_get_response_list_versions_versions_get import (
|
|
12
|
+
ListVersionsVersionsGetResponseListVersionsVersionsGet,
|
|
29
13
|
)
|
|
30
|
-
from .labor_supply_response_relative_lsr import LaborSupplyResponseRelativeLsr
|
|
31
|
-
from .parameter_change_dict import ParameterChangeDict
|
|
32
|
-
from .parametric_reform import ParametricReform
|
|
33
14
|
from .ping_request import PingRequest
|
|
34
15
|
from .ping_response import PingResponse
|
|
35
|
-
from .
|
|
36
|
-
from .poverty_impact import PovertyImpact
|
|
37
|
-
from .poverty_racial_breakdown_with_values import PovertyRacialBreakdownWithValues
|
|
38
|
-
from .probe_status import ProbeStatus
|
|
39
|
-
from .program_specific_impact import ProgramSpecificImpact
|
|
40
|
-
from .racial_baseline_reform_values import RacialBaselineReformValues
|
|
41
|
-
from .simulation_options import SimulationOptions
|
|
42
|
-
from .simulation_options_country import SimulationOptionsCountry
|
|
43
|
-
from .simulation_options_data_type_1 import SimulationOptionsDataType1
|
|
44
|
-
from .simulation_options_scope import SimulationOptionsScope
|
|
45
|
-
from .system_status import SystemStatus
|
|
46
|
-
from .uk_constituency_breakdown_by_constituency import UKConstituencyBreakdownByConstituency
|
|
47
|
-
from .uk_constituency_breakdown_with_values import UKConstituencyBreakdownWithValues
|
|
48
|
-
from .uk_constituency_breakdown_with_values_by_constituency import UKConstituencyBreakdownWithValuesByConstituency
|
|
49
|
-
from .uk_constituency_breakdown_with_values_outcomes_by_region import UKConstituencyBreakdownWithValuesOutcomesByRegion
|
|
50
|
-
from .uk_constituency_breakdown_with_values_outcomes_by_region_additional_property import (
|
|
51
|
-
UKConstituencyBreakdownWithValuesOutcomesByRegionAdditionalProperty,
|
|
52
|
-
)
|
|
53
|
-
from .uk_local_authority_breakdown_by_local_authority import UKLocalAuthorityBreakdownByLocalAuthority
|
|
54
|
-
from .uk_local_authority_breakdown_with_values import UKLocalAuthorityBreakdownWithValues
|
|
55
|
-
from .uk_local_authority_breakdown_with_values_by_local_authority import (
|
|
56
|
-
UKLocalAuthorityBreakdownWithValuesByLocalAuthority,
|
|
57
|
-
)
|
|
16
|
+
from .simulation_request import SimulationRequest
|
|
58
17
|
from .validation_error import ValidationError
|
|
59
|
-
from .wealth_decile_impact_with_values import WealthDecileImpactWithValues
|
|
60
|
-
from .wealth_decile_impact_with_values_average import WealthDecileImpactWithValuesAverage
|
|
61
|
-
from .wealth_decile_impact_with_values_relative import WealthDecileImpactWithValuesRelative
|
|
62
18
|
|
|
63
19
|
__all__ = (
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"BudgetaryImpact",
|
|
67
|
-
"CliffImpact",
|
|
68
|
-
"CliffImpactInSimulation",
|
|
69
|
-
"DecileImpact",
|
|
70
|
-
"DecileImpactAverage",
|
|
71
|
-
"DecileImpactRelative",
|
|
72
|
-
"EconomyComparison",
|
|
73
|
-
"EconomyComparisonDetailedBudgetType0",
|
|
74
|
-
"GenderBaselineReformValues",
|
|
75
|
-
"HealthStatus",
|
|
76
|
-
"HoursResponse",
|
|
20
|
+
"GetCountryVersionsVersionsCountryGetResponseGetCountryVersionsVersionsCountryGet",
|
|
21
|
+
"HealthHealthGetResponseHealthHealthGet",
|
|
77
22
|
"HTTPValidationError",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"IntraWealthDecileImpactWithValues",
|
|
83
|
-
"IntraWealthDecileImpactWithValuesAll",
|
|
84
|
-
"IntraWealthDecileImpactWithValuesDeciles",
|
|
85
|
-
"LaborSupplyResponse",
|
|
86
|
-
"LaborSupplyResponseDecile",
|
|
87
|
-
"LaborSupplyResponseDecileAdditionalProperty",
|
|
88
|
-
"LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty",
|
|
89
|
-
"LaborSupplyResponseRelativeLsr",
|
|
90
|
-
"ParameterChangeDict",
|
|
91
|
-
"ParametricReform",
|
|
23
|
+
"JobStatusResponse",
|
|
24
|
+
"JobStatusResponseResultType0",
|
|
25
|
+
"JobSubmitResponse",
|
|
26
|
+
"ListVersionsVersionsGetResponseListVersionsVersionsGet",
|
|
92
27
|
"PingRequest",
|
|
93
28
|
"PingResponse",
|
|
94
|
-
"
|
|
95
|
-
"PovertyImpact",
|
|
96
|
-
"PovertyRacialBreakdownWithValues",
|
|
97
|
-
"ProbeStatus",
|
|
98
|
-
"ProgramSpecificImpact",
|
|
99
|
-
"RacialBaselineReformValues",
|
|
100
|
-
"SimulationOptions",
|
|
101
|
-
"SimulationOptionsCountry",
|
|
102
|
-
"SimulationOptionsDataType1",
|
|
103
|
-
"SimulationOptionsScope",
|
|
104
|
-
"SystemStatus",
|
|
105
|
-
"UKConstituencyBreakdownByConstituency",
|
|
106
|
-
"UKConstituencyBreakdownWithValues",
|
|
107
|
-
"UKConstituencyBreakdownWithValuesByConstituency",
|
|
108
|
-
"UKConstituencyBreakdownWithValuesOutcomesByRegion",
|
|
109
|
-
"UKConstituencyBreakdownWithValuesOutcomesByRegionAdditionalProperty",
|
|
110
|
-
"UKLocalAuthorityBreakdownByLocalAuthority",
|
|
111
|
-
"UKLocalAuthorityBreakdownWithValues",
|
|
112
|
-
"UKLocalAuthorityBreakdownWithValuesByLocalAuthority",
|
|
29
|
+
"SimulationRequest",
|
|
113
30
|
"ValidationError",
|
|
114
|
-
"WealthDecileImpactWithValues",
|
|
115
|
-
"WealthDecileImpactWithValuesAverage",
|
|
116
|
-
"WealthDecileImpactWithValuesRelative",
|
|
117
31
|
)
|
|
@@ -6,51 +6,28 @@ from typing import Any, TypeVar
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
9
|
+
T = TypeVar("T", bound="GetCountryVersionsVersionsCountryGetResponseGetCountryVersionsVersionsCountryGet")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
|
-
class
|
|
14
|
-
"""
|
|
15
|
-
Attributes:
|
|
16
|
-
baseline (float):
|
|
17
|
-
reform (float):
|
|
18
|
-
"""
|
|
13
|
+
class GetCountryVersionsVersionsCountryGetResponseGetCountryVersionsVersionsCountryGet:
|
|
14
|
+
""" """
|
|
19
15
|
|
|
20
|
-
baseline: float
|
|
21
|
-
reform: float
|
|
22
16
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
17
|
|
|
24
18
|
def to_dict(self) -> dict[str, Any]:
|
|
25
|
-
baseline = self.baseline
|
|
26
|
-
|
|
27
|
-
reform = self.reform
|
|
28
|
-
|
|
29
19
|
field_dict: dict[str, Any] = {}
|
|
30
20
|
field_dict.update(self.additional_properties)
|
|
31
|
-
field_dict.update(
|
|
32
|
-
{
|
|
33
|
-
"baseline": baseline,
|
|
34
|
-
"reform": reform,
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
21
|
|
|
38
22
|
return field_dict
|
|
39
23
|
|
|
40
24
|
@classmethod
|
|
41
25
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
42
26
|
d = dict(src_dict)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
reform = d.pop("reform")
|
|
46
|
-
|
|
47
|
-
baseline_reform_values = cls(
|
|
48
|
-
baseline=baseline,
|
|
49
|
-
reform=reform,
|
|
50
|
-
)
|
|
27
|
+
get_country_versions_versions_country_get_response_get_country_versions_versions_country_get = cls()
|
|
51
28
|
|
|
52
|
-
|
|
53
|
-
return
|
|
29
|
+
get_country_versions_versions_country_get_response_get_country_versions_versions_country_get.additional_properties = d
|
|
30
|
+
return get_country_versions_versions_country_get_response_get_country_versions_versions_country_get
|
|
54
31
|
|
|
55
32
|
@property
|
|
56
33
|
def additional_keys(self) -> list[str]:
|
|
@@ -6,11 +6,11 @@ from typing import Any, TypeVar
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
9
|
+
T = TypeVar("T", bound="HealthHealthGetResponseHealthHealthGet")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
|
-
class
|
|
13
|
+
class HealthHealthGetResponseHealthHealthGet:
|
|
14
14
|
""" """
|
|
15
15
|
|
|
16
16
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -24,10 +24,10 @@ class LaborSupplyResponseRelativeLsr:
|
|
|
24
24
|
@classmethod
|
|
25
25
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
26
26
|
d = dict(src_dict)
|
|
27
|
-
|
|
27
|
+
health_health_get_response_health_health_get = cls()
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
return
|
|
29
|
+
health_health_get_response_health_health_get.additional_properties = d
|
|
30
|
+
return health_health_get_response_health_health_get
|
|
31
31
|
|
|
32
32
|
@property
|
|
33
33
|
def additional_keys(self) -> list[str]:
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.job_status_response_result_type_0 import JobStatusResponseResultType0
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="JobStatusResponse")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class JobStatusResponse:
|
|
20
|
+
"""Response model for job status polling.
|
|
21
|
+
|
|
22
|
+
Attributes:
|
|
23
|
+
status (str):
|
|
24
|
+
result (JobStatusResponseResultType0 | None | Unset):
|
|
25
|
+
error (None | str | Unset):
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
status: str
|
|
29
|
+
result: JobStatusResponseResultType0 | None | Unset = UNSET
|
|
30
|
+
error: None | str | Unset = UNSET
|
|
31
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
32
|
+
|
|
33
|
+
def to_dict(self) -> dict[str, Any]:
|
|
34
|
+
from ..models.job_status_response_result_type_0 import JobStatusResponseResultType0
|
|
35
|
+
|
|
36
|
+
status = self.status
|
|
37
|
+
|
|
38
|
+
result: dict[str, Any] | None | Unset
|
|
39
|
+
if isinstance(self.result, Unset):
|
|
40
|
+
result = UNSET
|
|
41
|
+
elif isinstance(self.result, JobStatusResponseResultType0):
|
|
42
|
+
result = self.result.to_dict()
|
|
43
|
+
else:
|
|
44
|
+
result = self.result
|
|
45
|
+
|
|
46
|
+
error: None | str | Unset
|
|
47
|
+
if isinstance(self.error, Unset):
|
|
48
|
+
error = UNSET
|
|
49
|
+
else:
|
|
50
|
+
error = self.error
|
|
51
|
+
|
|
52
|
+
field_dict: dict[str, Any] = {}
|
|
53
|
+
field_dict.update(self.additional_properties)
|
|
54
|
+
field_dict.update(
|
|
55
|
+
{
|
|
56
|
+
"status": status,
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
if result is not UNSET:
|
|
60
|
+
field_dict["result"] = result
|
|
61
|
+
if error is not UNSET:
|
|
62
|
+
field_dict["error"] = error
|
|
63
|
+
|
|
64
|
+
return field_dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
68
|
+
from ..models.job_status_response_result_type_0 import JobStatusResponseResultType0
|
|
69
|
+
|
|
70
|
+
d = dict(src_dict)
|
|
71
|
+
status = d.pop("status")
|
|
72
|
+
|
|
73
|
+
def _parse_result(data: object) -> JobStatusResponseResultType0 | None | Unset:
|
|
74
|
+
if data is None:
|
|
75
|
+
return data
|
|
76
|
+
if isinstance(data, Unset):
|
|
77
|
+
return data
|
|
78
|
+
try:
|
|
79
|
+
if not isinstance(data, dict):
|
|
80
|
+
raise TypeError()
|
|
81
|
+
result_type_0 = JobStatusResponseResultType0.from_dict(data)
|
|
82
|
+
|
|
83
|
+
return result_type_0
|
|
84
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
85
|
+
pass
|
|
86
|
+
return cast(JobStatusResponseResultType0 | None | Unset, data)
|
|
87
|
+
|
|
88
|
+
result = _parse_result(d.pop("result", UNSET))
|
|
89
|
+
|
|
90
|
+
def _parse_error(data: object) -> None | str | Unset:
|
|
91
|
+
if data is None:
|
|
92
|
+
return data
|
|
93
|
+
if isinstance(data, Unset):
|
|
94
|
+
return data
|
|
95
|
+
return cast(None | str | Unset, data)
|
|
96
|
+
|
|
97
|
+
error = _parse_error(d.pop("error", UNSET))
|
|
98
|
+
|
|
99
|
+
job_status_response = cls(
|
|
100
|
+
status=status,
|
|
101
|
+
result=result,
|
|
102
|
+
error=error,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
job_status_response.additional_properties = d
|
|
106
|
+
return job_status_response
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def additional_keys(self) -> list[str]:
|
|
110
|
+
return list(self.additional_properties.keys())
|
|
111
|
+
|
|
112
|
+
def __getitem__(self, key: str) -> Any:
|
|
113
|
+
return self.additional_properties[key]
|
|
114
|
+
|
|
115
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
116
|
+
self.additional_properties[key] = value
|
|
117
|
+
|
|
118
|
+
def __delitem__(self, key: str) -> None:
|
|
119
|
+
del self.additional_properties[key]
|
|
120
|
+
|
|
121
|
+
def __contains__(self, key: str) -> bool:
|
|
122
|
+
return key in self.additional_properties
|
|
@@ -6,11 +6,11 @@ from typing import Any, TypeVar
|
|
|
6
6
|
from attrs import define as _attrs_define
|
|
7
7
|
from attrs import field as _attrs_field
|
|
8
8
|
|
|
9
|
-
T = TypeVar("T", bound="
|
|
9
|
+
T = TypeVar("T", bound="JobStatusResponseResultType0")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
@_attrs_define
|
|
13
|
-
class
|
|
13
|
+
class JobStatusResponseResultType0:
|
|
14
14
|
""" """
|
|
15
15
|
|
|
16
16
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -24,10 +24,10 @@ class SimulationOptionsDataType1:
|
|
|
24
24
|
@classmethod
|
|
25
25
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
26
26
|
d = dict(src_dict)
|
|
27
|
-
|
|
27
|
+
job_status_response_result_type_0 = cls()
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
return
|
|
29
|
+
job_status_response_result_type_0.additional_properties = d
|
|
30
|
+
return job_status_response_result_type_0
|
|
31
31
|
|
|
32
32
|
@property
|
|
33
33
|
def additional_keys(self) -> list[str]:
|