lusid-sdk 2.1.580__py3-none-any.whl → 2.1.590__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.
- lusid/__init__.py +10 -0
- lusid/api/abor_api.py +18 -18
- lusid/api/allocations_api.py +30 -11
- lusid/api/funds_api.py +454 -0
- lusid/configuration.py +1 -1
- lusid/models/__init__.py +10 -0
- lusid/models/accumulation_event.py +3 -3
- lusid/models/additional_payment.py +3 -3
- lusid/models/amortisation_event.py +3 -3
- lusid/models/bond_coupon_event.py +3 -3
- lusid/models/bond_default_event.py +3 -3
- lusid/models/bond_principal_event.py +3 -3
- lusid/models/bonus_issue_event.py +3 -3
- lusid/models/call_on_intermediate_securities_event.py +3 -3
- lusid/models/cap_floor.py +13 -3
- lusid/models/capital_distribution_event.py +3 -3
- lusid/models/cash_dividend_event.py +3 -3
- lusid/models/cash_flow_event.py +3 -3
- lusid/models/cds_credit_event.py +3 -3
- lusid/models/cds_index.py +20 -5
- lusid/models/cdx_credit_event.py +3 -3
- lusid/models/close_event.py +3 -3
- lusid/models/contribution_to_non_passing_rule_detail.py +89 -0
- lusid/models/create_derived_property_definition_request.py +3 -3
- lusid/models/create_property_definition_request.py +3 -3
- lusid/models/credit_default_swap.py +21 -6
- lusid/models/credit_premium_cash_flow_event.py +3 -3
- lusid/models/dividend_option_event.py +3 -3
- lusid/models/dividend_reinvestment_event.py +3 -3
- lusid/models/early_redemption_election.py +73 -0
- lusid/models/early_redemption_event.py +124 -0
- lusid/models/equity_swap.py +20 -5
- lusid/models/exercise_event.py +3 -3
- lusid/models/expiry_event.py +3 -3
- lusid/models/future_expiry_event.py +3 -3
- lusid/models/fx_forward_settlement_event.py +3 -3
- lusid/models/inflation_swap.py +20 -5
- lusid/models/informational_error_event.py +3 -3
- lusid/models/informational_event.py +3 -3
- lusid/models/instrument_event.py +6 -5
- lusid/models/instrument_event_type.py +1 -0
- lusid/models/interest_rate_swap.py +1 -1
- lusid/models/intermediate_securities_distribution_event.py +3 -3
- lusid/models/maturity_event.py +3 -3
- lusid/models/mbs_coupon_event.py +3 -3
- lusid/models/mbs_interest_deferral_event.py +3 -3
- lusid/models/mbs_interest_shortfall_event.py +3 -3
- lusid/models/mbs_principal_event.py +3 -3
- lusid/models/mbs_principal_write_off_event.py +3 -3
- lusid/models/merger_event.py +3 -3
- lusid/models/movement_type.py +2 -0
- lusid/models/open_event.py +3 -3
- lusid/models/option_entry.py +10 -3
- lusid/models/option_exercise_cash_event.py +3 -3
- lusid/models/option_exercise_physical_event.py +3 -3
- lusid/models/order_graph_block_order_detail.py +19 -4
- lusid/models/output_transaction.py +8 -2
- lusid/models/property_definition.py +3 -3
- lusid/models/property_definition_search_result.py +3 -3
- lusid/models/property_domain.py +1 -0
- lusid/models/protection_payout_cash_flow_event.py +3 -3
- lusid/models/raw_vendor_event.py +3 -3
- lusid/models/reset_event.py +3 -3
- lusid/models/reverse_stock_split_event.py +3 -3
- lusid/models/scrip_dividend_event.py +3 -3
- lusid/models/spin_off_event.py +3 -3
- lusid/models/stock_dividend_event.py +3 -3
- lusid/models/stock_split_event.py +3 -3
- lusid/models/swap_cash_flow_event.py +3 -3
- lusid/models/swap_principal_event.py +3 -3
- lusid/models/tender_event.py +3 -3
- lusid/models/term_deposit_interest_event.py +3 -3
- lusid/models/term_deposit_principal_event.py +3 -3
- lusid/models/total_return_swap.py +20 -5
- lusid/models/transaction_configuration_movement_data.py +3 -3
- lusid/models/transaction_configuration_movement_data_request.py +3 -3
- lusid/models/transaction_type_details.py +5 -20
- lusid/models/transition_event.py +3 -3
- lusid/models/trigger_event.py +3 -3
- lusid/models/valuation_point_resource_list_of_journal_entry_line.py +125 -0
- lusid/models/valuation_point_resource_list_of_trial_balance.py +125 -0
- {lusid_sdk-2.1.580.dist-info → lusid_sdk-2.1.590.dist-info}/METADATA +9 -2
- {lusid_sdk-2.1.580.dist-info → lusid_sdk-2.1.590.dist-info}/RECORD +84 -79
- {lusid_sdk-2.1.580.dist-info → lusid_sdk-2.1.590.dist-info}/WHEEL +0 -0
lusid/__init__.py
CHANGED
@@ -290,6 +290,7 @@ from lusid.models.configuration_recipe import ConfigurationRecipe
|
|
290
290
|
from lusid.models.constant_volatility_surface import ConstantVolatilitySurface
|
291
291
|
from lusid.models.constituents_adjustment_header import ConstituentsAdjustmentHeader
|
292
292
|
from lusid.models.contract_for_difference import ContractForDifference
|
293
|
+
from lusid.models.contribution_to_non_passing_rule_detail import ContributionToNonPassingRuleDetail
|
293
294
|
from lusid.models.corporate_action import CorporateAction
|
294
295
|
from lusid.models.corporate_action_source import CorporateActionSource
|
295
296
|
from lusid.models.corporate_action_transition import CorporateActionTransition
|
@@ -393,6 +394,8 @@ from lusid.models.discounting_dependency import DiscountingDependency
|
|
393
394
|
from lusid.models.discounting_method import DiscountingMethod
|
394
395
|
from lusid.models.dividend_option_event import DividendOptionEvent
|
395
396
|
from lusid.models.dividend_reinvestment_event import DividendReinvestmentEvent
|
397
|
+
from lusid.models.early_redemption_election import EarlyRedemptionElection
|
398
|
+
from lusid.models.early_redemption_event import EarlyRedemptionEvent
|
396
399
|
from lusid.models.economic_dependency import EconomicDependency
|
397
400
|
from lusid.models.economic_dependency_type import EconomicDependencyType
|
398
401
|
from lusid.models.economic_dependency_with_complex_market_data import EconomicDependencyWithComplexMarketData
|
@@ -1201,6 +1204,8 @@ from lusid.models.valuation_point_data_query_parameters import ValuationPointDat
|
|
1201
1204
|
from lusid.models.valuation_point_data_request import ValuationPointDataRequest
|
1202
1205
|
from lusid.models.valuation_point_data_response import ValuationPointDataResponse
|
1203
1206
|
from lusid.models.valuation_point_overview import ValuationPointOverview
|
1207
|
+
from lusid.models.valuation_point_resource_list_of_journal_entry_line import ValuationPointResourceListOfJournalEntryLine
|
1208
|
+
from lusid.models.valuation_point_resource_list_of_trial_balance import ValuationPointResourceListOfTrialBalance
|
1204
1209
|
from lusid.models.valuation_request import ValuationRequest
|
1205
1210
|
from lusid.models.valuation_schedule import ValuationSchedule
|
1206
1211
|
from lusid.models.valuations_reconciliation_request import ValuationsReconciliationRequest
|
@@ -1512,6 +1517,7 @@ __all__ = [
|
|
1512
1517
|
"ConstantVolatilitySurface",
|
1513
1518
|
"ConstituentsAdjustmentHeader",
|
1514
1519
|
"ContractForDifference",
|
1520
|
+
"ContributionToNonPassingRuleDetail",
|
1515
1521
|
"CorporateAction",
|
1516
1522
|
"CorporateActionSource",
|
1517
1523
|
"CorporateActionTransition",
|
@@ -1615,6 +1621,8 @@ __all__ = [
|
|
1615
1621
|
"DiscountingMethod",
|
1616
1622
|
"DividendOptionEvent",
|
1617
1623
|
"DividendReinvestmentEvent",
|
1624
|
+
"EarlyRedemptionElection",
|
1625
|
+
"EarlyRedemptionEvent",
|
1618
1626
|
"EconomicDependency",
|
1619
1627
|
"EconomicDependencyType",
|
1620
1628
|
"EconomicDependencyWithComplexMarketData",
|
@@ -2423,6 +2431,8 @@ __all__ = [
|
|
2423
2431
|
"ValuationPointDataRequest",
|
2424
2432
|
"ValuationPointDataResponse",
|
2425
2433
|
"ValuationPointOverview",
|
2434
|
+
"ValuationPointResourceListOfJournalEntryLine",
|
2435
|
+
"ValuationPointResourceListOfTrialBalance",
|
2426
2436
|
"ValuationRequest",
|
2427
2437
|
"ValuationSchedule",
|
2428
2438
|
"ValuationsReconciliationRequest",
|
lusid/api/abor_api.py
CHANGED
@@ -1136,18 +1136,18 @@ class AborApi:
|
|
1136
1136
|
_request_auth=_params.get('_request_auth'))
|
1137
1137
|
|
1138
1138
|
@overload
|
1139
|
-
async def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope
|
1139
|
+
async def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], trial_balance_query_parameters : Annotated[TrialBalanceQueryParameters, Field(..., description="The query parameters used in running the generation of the Trial Balance.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, **kwargs) -> VersionedResourceListOfTrialBalance: # noqa: E501
|
1140
1140
|
...
|
1141
1141
|
|
1142
1142
|
@overload
|
1143
|
-
def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope
|
1143
|
+
def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], trial_balance_query_parameters : Annotated[TrialBalanceQueryParameters, Field(..., description="The query parameters used in running the generation of the Trial Balance.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, async_req: Optional[bool]=True, **kwargs) -> VersionedResourceListOfTrialBalance: # noqa: E501
|
1144
1144
|
...
|
1145
1145
|
|
1146
1146
|
@validate_arguments
|
1147
|
-
def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope
|
1148
|
-
"""[EXPERIMENTAL] GetTrialBalance: Get the Trial
|
1147
|
+
def get_trial_balance(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], trial_balance_query_parameters : Annotated[TrialBalanceQueryParameters, Field(..., description="The query parameters used in running the generation of the Trial Balance.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[VersionedResourceListOfTrialBalance, Awaitable[VersionedResourceListOfTrialBalance]]: # noqa: E501
|
1148
|
+
"""[EXPERIMENTAL] GetTrialBalance: Get the Trial Balance for the given Abor. # noqa: E501
|
1149
1149
|
|
1150
|
-
Gets the Trial
|
1150
|
+
Gets the Trial Balance for the given Abor. The Trial Balance has been generated from transactions, translated via Posting Rules and aggregated based on a General Ledger Profile (where specified). # noqa: E501
|
1151
1151
|
This method makes a synchronous HTTP request by default. To make an
|
1152
1152
|
asynchronous HTTP request, please pass async_req=True
|
1153
1153
|
|
@@ -1156,17 +1156,17 @@ class AborApi:
|
|
1156
1156
|
|
1157
1157
|
:param scope: The scope of the Abor. (required)
|
1158
1158
|
:type scope: str
|
1159
|
-
:param code: The code of the Abor. Together with the scope
|
1159
|
+
:param code: The code of the Abor. Together with the scope this uniquely identifies the Abor. (required)
|
1160
1160
|
:type code: str
|
1161
1161
|
:param trial_balance_query_parameters: The query parameters used in running the generation of the Trial Balance. (required)
|
1162
1162
|
:type trial_balance_query_parameters: TrialBalanceQueryParameters
|
1163
|
-
:param as_at: The asAt datetime at which to retrieve
|
1163
|
+
:param as_at: The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.
|
1164
1164
|
:type as_at: datetime
|
1165
|
-
:param filter:
|
1165
|
+
:param filter: Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
1166
1166
|
:type filter: str
|
1167
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
1167
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
1168
1168
|
:type limit: int
|
1169
|
-
:param page: The pagination token to use to continue listing Trial
|
1169
|
+
:param page: The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
1170
1170
|
:type page: str
|
1171
1171
|
:param async_req: Whether to execute the request asynchronously.
|
1172
1172
|
:type async_req: bool, optional
|
@@ -1187,10 +1187,10 @@ class AborApi:
|
|
1187
1187
|
return self.get_trial_balance_with_http_info(scope, code, trial_balance_query_parameters, as_at, filter, limit, page, **kwargs) # noqa: E501
|
1188
1188
|
|
1189
1189
|
@validate_arguments
|
1190
|
-
def get_trial_balance_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope
|
1191
|
-
"""[EXPERIMENTAL] GetTrialBalance: Get the Trial
|
1190
|
+
def get_trial_balance_with_http_info(self, scope : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The scope of the Abor.")], code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The code of the Abor. Together with the scope this uniquely identifies the Abor.")], trial_balance_query_parameters : Annotated[TrialBalanceQueryParameters, Field(..., description="The query parameters used in running the generation of the Trial Balance.")], as_at : Annotated[Optional[datetime], Field(description="The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.")] = None, filter : Annotated[Optional[constr(strict=True, max_length=16384, min_length=0)], Field(description="Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.")] = None, limit : Annotated[Optional[StrictInt], Field(description="When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.")] = None, page : Annotated[Optional[constr(strict=True, max_length=500, min_length=1)], Field(description="The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
1191
|
+
"""[EXPERIMENTAL] GetTrialBalance: Get the Trial Balance for the given Abor. # noqa: E501
|
1192
1192
|
|
1193
|
-
Gets the Trial
|
1193
|
+
Gets the Trial Balance for the given Abor. The Trial Balance has been generated from transactions, translated via Posting Rules and aggregated based on a General Ledger Profile (where specified). # noqa: E501
|
1194
1194
|
This method makes a synchronous HTTP request by default. To make an
|
1195
1195
|
asynchronous HTTP request, please pass async_req=True
|
1196
1196
|
|
@@ -1199,17 +1199,17 @@ class AborApi:
|
|
1199
1199
|
|
1200
1200
|
:param scope: The scope of the Abor. (required)
|
1201
1201
|
:type scope: str
|
1202
|
-
:param code: The code of the Abor. Together with the scope
|
1202
|
+
:param code: The code of the Abor. Together with the scope this uniquely identifies the Abor. (required)
|
1203
1203
|
:type code: str
|
1204
1204
|
:param trial_balance_query_parameters: The query parameters used in running the generation of the Trial Balance. (required)
|
1205
1205
|
:type trial_balance_query_parameters: TrialBalanceQueryParameters
|
1206
|
-
:param as_at: The asAt datetime at which to retrieve
|
1206
|
+
:param as_at: The asAt datetime at which to retrieve the Trial Balance. Defaults to returning the latest version if not specified.
|
1207
1207
|
:type as_at: datetime
|
1208
|
-
:param filter:
|
1208
|
+
:param filter: Expression to filter the results by. For more information about filtering results, see https://support.lusid.com/knowledgebase/article/KA-01914.
|
1209
1209
|
:type filter: str
|
1210
|
-
:param limit: When paginating, limit the number of returned results to this many.
|
1210
|
+
:param limit: When paginating, limit the number of returned results to this many. Defaults to 100 if not specified.
|
1211
1211
|
:type limit: int
|
1212
|
-
:param page: The pagination token to use to continue listing Trial
|
1212
|
+
:param page: The pagination token to use to continue listing Trial Balances. This token is returned from the previous call. If a pagination token is provided, the filter, effectiveAt and asAt fields must not have changed since the original request.
|
1213
1213
|
:type page: str
|
1214
1214
|
:param async_req: Whether to execute the request asynchronously.
|
1215
1215
|
:type async_req: bool, optional
|
lusid/api/allocations_api.py
CHANGED
@@ -22,7 +22,7 @@ from typing import overload, Optional, Union, Awaitable
|
|
22
22
|
from typing_extensions import Annotated
|
23
23
|
from datetime import datetime
|
24
24
|
|
25
|
-
from pydantic.v1 import Field, StrictStr, conint, conlist, constr, validator
|
25
|
+
from pydantic.v1 import Field, StrictBool, StrictStr, conint, conlist, constr, validator
|
26
26
|
|
27
27
|
from typing import Optional
|
28
28
|
|
@@ -588,26 +588,30 @@ class AllocationsApi:
|
|
588
588
|
_request_auth=_params.get('_request_auth'))
|
589
589
|
|
590
590
|
@overload
|
591
|
-
async def upsert_allocations(self, allocation_set_request : Annotated[
|
591
|
+
async def upsert_allocations(self, allocation_set_request : Annotated[AllocationSetRequest, Field(..., description="The collection of allocation requests.")], verification_as_at : Annotated[Optional[datetime], Field(description="An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.")] = None, retry_without_changed_entities : Annotated[Optional[StrictBool], Field(description="Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.")] = None, **kwargs) -> ResourceListOfAllocation: # noqa: E501
|
592
592
|
...
|
593
593
|
|
594
594
|
@overload
|
595
|
-
def upsert_allocations(self, allocation_set_request : Annotated[
|
595
|
+
def upsert_allocations(self, allocation_set_request : Annotated[AllocationSetRequest, Field(..., description="The collection of allocation requests.")], verification_as_at : Annotated[Optional[datetime], Field(description="An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.")] = None, retry_without_changed_entities : Annotated[Optional[StrictBool], Field(description="Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.")] = None, async_req: Optional[bool]=True, **kwargs) -> ResourceListOfAllocation: # noqa: E501
|
596
596
|
...
|
597
597
|
|
598
598
|
@validate_arguments
|
599
|
-
def upsert_allocations(self, allocation_set_request : Annotated[
|
599
|
+
def upsert_allocations(self, allocation_set_request : Annotated[AllocationSetRequest, Field(..., description="The collection of allocation requests.")], verification_as_at : Annotated[Optional[datetime], Field(description="An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.")] = None, retry_without_changed_entities : Annotated[Optional[StrictBool], Field(description="Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.")] = None, async_req: Optional[bool]=None, **kwargs) -> Union[ResourceListOfAllocation, Awaitable[ResourceListOfAllocation]]: # noqa: E501
|
600
600
|
"""UpsertAllocations: Upsert Allocations # noqa: E501
|
601
601
|
|
602
602
|
Upsert; update existing allocations with given ids, or create new allocations otherwise. # noqa: E501
|
603
603
|
This method makes a synchronous HTTP request by default. To make an
|
604
604
|
asynchronous HTTP request, please pass async_req=True
|
605
605
|
|
606
|
-
>>> thread = api.upsert_allocations(allocation_set_request, async_req=True)
|
606
|
+
>>> thread = api.upsert_allocations(allocation_set_request, verification_as_at, retry_without_changed_entities, async_req=True)
|
607
607
|
>>> result = thread.get()
|
608
608
|
|
609
|
-
:param allocation_set_request: The collection of allocation requests.
|
609
|
+
:param allocation_set_request: The collection of allocation requests. (required)
|
610
610
|
:type allocation_set_request: AllocationSetRequest
|
611
|
+
:param verification_as_at: An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.
|
612
|
+
:type verification_as_at: datetime
|
613
|
+
:param retry_without_changed_entities: Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.
|
614
|
+
:type retry_without_changed_entities: bool
|
611
615
|
:param async_req: Whether to execute the request asynchronously.
|
612
616
|
:type async_req: bool, optional
|
613
617
|
:param _request_timeout: Timeout setting. Do not use - use the opts parameter instead
|
@@ -624,21 +628,25 @@ class AllocationsApi:
|
|
624
628
|
raise ValueError(message)
|
625
629
|
if async_req is not None:
|
626
630
|
kwargs['async_req'] = async_req
|
627
|
-
return self.upsert_allocations_with_http_info(allocation_set_request, **kwargs) # noqa: E501
|
631
|
+
return self.upsert_allocations_with_http_info(allocation_set_request, verification_as_at, retry_without_changed_entities, **kwargs) # noqa: E501
|
628
632
|
|
629
633
|
@validate_arguments
|
630
|
-
def upsert_allocations_with_http_info(self, allocation_set_request : Annotated[
|
634
|
+
def upsert_allocations_with_http_info(self, allocation_set_request : Annotated[AllocationSetRequest, Field(..., description="The collection of allocation requests.")], verification_as_at : Annotated[Optional[datetime], Field(description="An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.")] = None, retry_without_changed_entities : Annotated[Optional[StrictBool], Field(description="Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
631
635
|
"""UpsertAllocations: Upsert Allocations # noqa: E501
|
632
636
|
|
633
637
|
Upsert; update existing allocations with given ids, or create new allocations otherwise. # noqa: E501
|
634
638
|
This method makes a synchronous HTTP request by default. To make an
|
635
639
|
asynchronous HTTP request, please pass async_req=True
|
636
640
|
|
637
|
-
>>> thread = api.upsert_allocations_with_http_info(allocation_set_request, async_req=True)
|
641
|
+
>>> thread = api.upsert_allocations_with_http_info(allocation_set_request, verification_as_at, retry_without_changed_entities, async_req=True)
|
638
642
|
>>> result = thread.get()
|
639
643
|
|
640
|
-
:param allocation_set_request: The collection of allocation requests.
|
644
|
+
:param allocation_set_request: The collection of allocation requests. (required)
|
641
645
|
:type allocation_set_request: AllocationSetRequest
|
646
|
+
:param verification_as_at: An optional verification asAt; individual upserts will fail if an existing entity has been updated between the verification asAt and time of upsert.
|
647
|
+
:type verification_as_at: datetime
|
648
|
+
:param retry_without_changed_entities: Optionally choose to keep retrying upsert for remaining entities if some are being updated concurrently. If set to true, any entities that have changed since the verificationAsAt will be dropped from the set of allocations to upsert and the upsert will be retried. The response will only contain the allocations in the original request that have been successfully upserted.
|
649
|
+
:type retry_without_changed_entities: bool
|
642
650
|
:param async_req: Whether to execute the request asynchronously.
|
643
651
|
:type async_req: bool, optional
|
644
652
|
:param _preload_content: if False, the ApiResponse.data will
|
@@ -666,7 +674,9 @@ class AllocationsApi:
|
|
666
674
|
_params = locals()
|
667
675
|
|
668
676
|
_all_params = [
|
669
|
-
'allocation_set_request'
|
677
|
+
'allocation_set_request',
|
678
|
+
'verification_as_at',
|
679
|
+
'retry_without_changed_entities'
|
670
680
|
]
|
671
681
|
_all_params.extend(
|
672
682
|
[
|
@@ -698,6 +708,15 @@ class AllocationsApi:
|
|
698
708
|
|
699
709
|
# process the query parameters
|
700
710
|
_query_params = []
|
711
|
+
if _params.get('verification_as_at') is not None: # noqa: E501
|
712
|
+
if isinstance(_params['verification_as_at'], datetime):
|
713
|
+
_query_params.append(('verificationAsAt', _params['verification_as_at'].strftime(self.api_client.configuration.datetime_format)))
|
714
|
+
else:
|
715
|
+
_query_params.append(('verificationAsAt', _params['verification_as_at']))
|
716
|
+
|
717
|
+
if _params.get('retry_without_changed_entities') is not None: # noqa: E501
|
718
|
+
_query_params.append(('retryWithoutChangedEntities', _params['retry_without_changed_entities']))
|
719
|
+
|
701
720
|
# process the header parameters
|
702
721
|
_header_params = dict(_params.get('_headers', {}))
|
703
722
|
# process the form parameters
|