moolabs 0.3.0__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.
Files changed (1417) hide show
  1. moolabs/__init__.py +1487 -0
  2. moolabs/_dx_attribution_context.py +213 -0
  3. moolabs/_dx_attribution_db_time.py +2126 -0
  4. moolabs/_dx_attribution_db_time_transport.py +173 -0
  5. moolabs/_dx_attribution_delta.py +142 -0
  6. moolabs/_dx_attribution_deposits.py +552 -0
  7. moolabs/_dx_attribution_instrument.py +416 -0
  8. moolabs/_dx_attribution_middleware.py +541 -0
  9. moolabs/_dx_attribution_propagate.py +509 -0
  10. moolabs/_dx_attribution_signal_transport.py +232 -0
  11. moolabs/_dx_attribution_signals.py +927 -0
  12. moolabs/_dx_buffer.py +429 -0
  13. moolabs/_dx_client.py +726 -0
  14. moolabs/_dx_exceptions.py +84 -0
  15. moolabs/_dx_namespaces.py +1780 -0
  16. moolabs/_dx_pagination.py +131 -0
  17. moolabs/_dx_routing.py +276 -0
  18. moolabs/_dx_urls.py +629 -0
  19. moolabs/_dx_webhooks.py +82 -0
  20. moolabs/api/__init__.py +121 -0
  21. moolabs/api/account_team_api.py +1444 -0
  22. moolabs/api/accounts_api.py +4950 -0
  23. moolabs/api/acute_analytics_api.py +5750 -0
  24. moolabs/api/acute_integrations_api.py +3449 -0
  25. moolabs/api/admin_api.py +3347 -0
  26. moolabs/api/alerts_api.py +1626 -0
  27. moolabs/api/allocation_rules_api.py +1720 -0
  28. moolabs/api/analytics_api.py +3204 -0
  29. moolabs/api/app_custom_invoicing_api.py +952 -0
  30. moolabs/api/app_stripe_api.py +958 -0
  31. moolabs/api/apps_api.py +3064 -0
  32. moolabs/api/arc_admin_api.py +8773 -0
  33. moolabs/api/arc_communications_api.py +1991 -0
  34. moolabs/api/arc_portal_api.py +1737 -0
  35. moolabs/api/arc_webhooks_api.py +2087 -0
  36. moolabs/api/attribution_allocation_api.py +2345 -0
  37. moolabs/api/attribution_api.py +1717 -0
  38. moolabs/api/attribution_customer_keys_api.py +600 -0
  39. moolabs/api/attribution_db_time_api.py +918 -0
  40. moolabs/api/attribution_opencost_api.py +1372 -0
  41. moolabs/api/attribution_readouts_api.py +393 -0
  42. moolabs/api/attribution_signals_api.py +315 -0
  43. moolabs/api/auto_topup_api.py +3095 -0
  44. moolabs/api/batch_api.py +6714 -0
  45. moolabs/api/billing_api.py +300 -0
  46. moolabs/api/bom_api.py +2769 -0
  47. moolabs/api/budgets_api.py +2112 -0
  48. moolabs/api/buyer_quotes_api.py +2007 -0
  49. moolabs/api/cases_api.py +5075 -0
  50. moolabs/api/cash_credits_api.py +1548 -0
  51. moolabs/api/chat_api.py +3101 -0
  52. moolabs/api/clause_packs_api.py +2785 -0
  53. moolabs/api/cloud_billing_api.py +1747 -0
  54. moolabs/api/contract_editor_api.py +3384 -0
  55. moolabs/api/cost_events_api.py +1732 -0
  56. moolabs/api/credit_memos_api.py +3478 -0
  57. moolabs/api/customers_api.py +3931 -0
  58. moolabs/api/dashboard_api.py +771 -0
  59. moolabs/api/debug_api.py +300 -0
  60. moolabs/api/default_api.py +526 -0
  61. moolabs/api/disputes_api.py +3586 -0
  62. moolabs/api/dunning_templates_api.py +8737 -0
  63. moolabs/api/email_provider_api.py +526 -0
  64. moolabs/api/entitlements_api.py +9846 -0
  65. moolabs/api/escalations_api.py +2541 -0
  66. moolabs/api/events_api.py +1125 -0
  67. moolabs/api/fx_rates_api.py +1452 -0
  68. moolabs/api/governance_api.py +4402 -0
  69. moolabs/api/grants_api.py +1370 -0
  70. moolabs/api/handoffs_api.py +2138 -0
  71. moolabs/api/health_api.py +281 -0
  72. moolabs/api/homepage_api.py +305 -0
  73. moolabs/api/integrations_api.py +3374 -0
  74. moolabs/api/internal_api.py +7145 -0
  75. moolabs/api/internal_credit_memos_api.py +914 -0
  76. moolabs/api/internal_grants_api.py +1000 -0
  77. moolabs/api/internal_period_settlements_api.py +657 -0
  78. moolabs/api/internal_plan_pricing_api.py +326 -0
  79. moolabs/api/internal_subscriptions_api.py +326 -0
  80. moolabs/api/ledger_api.py +1483 -0
  81. moolabs/api/lookup_information_api.py +587 -0
  82. moolabs/api/mapping_rules_api.py +1782 -0
  83. moolabs/api/mappings_api.py +632 -0
  84. moolabs/api/margin_simulation_api.py +595 -0
  85. moolabs/api/margins_api.py +2301 -0
  86. moolabs/api/meter_billing_api.py +7419 -0
  87. moolabs/api/meter_portal_api.py +1368 -0
  88. moolabs/api/meter_subscriptions_api.py +4358 -0
  89. moolabs/api/meters_api.py +3707 -0
  90. moolabs/api/monitoring_api.py +561 -0
  91. moolabs/api/moolabs_api.py +1182 -0
  92. moolabs/api/moometer_proxy_api.py +1357 -0
  93. moolabs/api/netsuite_sync_api.py +2180 -0
  94. moolabs/api/notes_api.py +1425 -0
  95. moolabs/api/notifications_api.py +4490 -0
  96. moolabs/api/ops_api.py +315 -0
  97. moolabs/api/outbox_api.py +653 -0
  98. moolabs/api/payments_api.py +2889 -0
  99. moolabs/api/performance_api.py +2471 -0
  100. moolabs/api/plan_pricing_api.py +3409 -0
  101. moolabs/api/plans_api.py +2197 -0
  102. moolabs/api/pools_api.py +2358 -0
  103. moolabs/api/portal_api.py +1103 -0
  104. moolabs/api/product_catalog_api.py +7644 -0
  105. moolabs/api/promises_api.py +2814 -0
  106. moolabs/api/quote_agents_api.py +2036 -0
  107. moolabs/api/quote_contract_webhooks_api.py +327 -0
  108. moolabs/api/quote_contracts_api.py +2551 -0
  109. moolabs/api/quote_sessions_api.py +881 -0
  110. moolabs/api/quotes_api.py +12880 -0
  111. moolabs/api/rate_cards_api.py +578 -0
  112. moolabs/api/rate_catalog_api.py +2120 -0
  113. moolabs/api/rate_schedules_api.py +1224 -0
  114. moolabs/api/rating_api.py +617 -0
  115. moolabs/api/reconstruction_api.py +1281 -0
  116. moolabs/api/remittances_api.py +1521 -0
  117. moolabs/api/reports_api.py +722 -0
  118. moolabs/api/rollover_api.py +313 -0
  119. moolabs/api/sdk_ingest_api.py +312 -0
  120. moolabs/api/snapshots_api.py +1218 -0
  121. moolabs/api/state_projection_api.py +961 -0
  122. moolabs/api/steering_api.py +1862 -0
  123. moolabs/api/subjects_api.py +1160 -0
  124. moolabs/api/subscription_overrides_api.py +579 -0
  125. moolabs/api/subscriptions_api.py +1200 -0
  126. moolabs/api/tasks_api.py +1509 -0
  127. moolabs/api/tenant_api.py +22395 -0
  128. moolabs/api/tenant_config_api.py +282 -0
  129. moolabs/api/topup_api.py +632 -0
  130. moolabs/api/unpriced_api.py +933 -0
  131. moolabs/api/usage_api.py +999 -0
  132. moolabs/api/variance_api.py +1327 -0
  133. moolabs/api/wallets_api.py +3787 -0
  134. moolabs/api/webhooks_api.py +281 -0
  135. moolabs/api/well_known_api.py +278 -0
  136. moolabs/api/word_addin_api.py +623 -0
  137. moolabs/api_client.py +797 -0
  138. moolabs/api_response.py +21 -0
  139. moolabs/configuration.py +620 -0
  140. moolabs/exceptions.py +199 -0
  141. moolabs/models/__init__.py +1286 -0
  142. moolabs/models/account_create.py +114 -0
  143. moolabs/models/account_filter_options_response.py +97 -0
  144. moolabs/models/account_invoice_list_response.py +95 -0
  145. moolabs/models/account_list_item_response.py +152 -0
  146. moolabs/models/account_list_item_response_subsidiaries_inner.py +152 -0
  147. moolabs/models/account_list_response.py +101 -0
  148. moolabs/models/account_overview_bucket_response.py +91 -0
  149. moolabs/models/account_overview_response.py +106 -0
  150. moolabs/models/account_response.py +132 -0
  151. moolabs/models/account_segment_row.py +91 -0
  152. moolabs/models/account_subsidiary_option.py +89 -0
  153. moolabs/models/account_summary.py +97 -0
  154. moolabs/models/account_team_member_in.py +97 -0
  155. moolabs/models/account_team_member_out.py +101 -0
  156. moolabs/models/account_team_member_patch.py +97 -0
  157. moolabs/models/account_team_role.py +39 -0
  158. moolabs/models/account_update.py +106 -0
  159. moolabs/models/action_kind.py +45 -0
  160. moolabs/models/acute_approve_request.py +87 -0
  161. moolabs/models/acute_demo_seed_lifecycle_request.py +103 -0
  162. moolabs/models/acute_http_validation_error.py +95 -0
  163. moolabs/models/acute_validation_error.py +99 -0
  164. moolabs/models/add_contract_participant_request.py +107 -0
  165. moolabs/models/addon.py +178 -0
  166. moolabs/models/addon1.py +115 -0
  167. moolabs/models/addon2.py +95 -0
  168. moolabs/models/addon_create.py +123 -0
  169. moolabs/models/addon_instance_type.py +37 -0
  170. moolabs/models/addon_order_by.py +40 -0
  171. moolabs/models/addon_paginated_response.py +101 -0
  172. moolabs/models/addon_replace_update.py +105 -0
  173. moolabs/models/addon_status.py +38 -0
  174. moolabs/models/address.py +110 -0
  175. moolabs/models/adjusted_total.py +152 -0
  176. moolabs/models/adjustment_amount.py +152 -0
  177. moolabs/models/aging_bucket_detail.py +93 -0
  178. moolabs/models/aging_report_response.py +106 -0
  179. moolabs/models/alb_bootstrap_response.py +89 -0
  180. moolabs/models/alb_connector_config.py +128 -0
  181. moolabs/models/alb_connector_health_response.py +112 -0
  182. moolabs/models/alb_connector_list_response.py +138 -0
  183. moolabs/models/alb_load_balancer_config.py +111 -0
  184. moolabs/models/alb_route_rule.py +107 -0
  185. moolabs/models/alb_source_config.py +123 -0
  186. moolabs/models/alb_source_health_response.py +93 -0
  187. moolabs/models/alb_status_patch_request.py +94 -0
  188. moolabs/models/alb_status_patch_response.py +94 -0
  189. moolabs/models/alb_target_group_config.py +103 -0
  190. moolabs/models/algorithm_breakdown_item.py +89 -0
  191. moolabs/models/algorithm_info.py +93 -0
  192. moolabs/models/alignment.py +87 -0
  193. moolabs/models/allocate_credits_request.py +95 -0
  194. moolabs/models/allocation_coverage_response.py +157 -0
  195. moolabs/models/allocation_fact_page_response.py +97 -0
  196. moolabs/models/allocation_fact_response.py +146 -0
  197. moolabs/models/allocation_key.py +91 -0
  198. moolabs/models/allocation_rule_create.py +114 -0
  199. moolabs/models/allocation_rule_response.py +113 -0
  200. moolabs/models/allocation_rule_update.py +111 -0
  201. moolabs/models/allocation_run_create_request.py +100 -0
  202. moolabs/models/allocation_run_create_response.py +142 -0
  203. moolabs/models/allocation_run_open_cost_snapshot_response.py +120 -0
  204. moolabs/models/allocation_run_readout_response.py +110 -0
  205. moolabs/models/allocation_run_response.py +133 -0
  206. moolabs/models/allocations_list_response.py +97 -0
  207. moolabs/models/amount.py +152 -0
  208. moolabs/models/amount1.py +152 -0
  209. moolabs/models/api_key_item.py +103 -0
  210. moolabs/models/app.py +164 -0
  211. moolabs/models/app_api_v1_auto_topup_router_trigger_response.py +108 -0
  212. moolabs/models/app_api_v1_fx_rates_router_fx_rate_response.py +104 -0
  213. moolabs/models/app_api_v1_integrations_netsuite_sync_router_trigger_response.py +89 -0
  214. moolabs/models/app_api_v1_internal_subscription_sync_schemas_subscription_sync_request.py +123 -0
  215. moolabs/models/app_api_v1_portal_router_create_portal_token_request.py +92 -0
  216. moolabs/models/app_api_v1_quotes_schemas_quote_settings_response.py +91 -0
  217. moolabs/models/app_api_v1_quotes_schemas_update_quote_settings_request.py +89 -0
  218. moolabs/models/app_api_v1_subscriptions_router_subscription_sync_request.py +125 -0
  219. moolabs/models/app_api_v1_tenant_access_router_create_portal_token_request.py +101 -0
  220. moolabs/models/app_api_v1_tenant_fx_rates_router_fx_rate_response.py +93 -0
  221. moolabs/models/app_api_v1_tenant_quote_settings_router_quote_settings_response.py +89 -0
  222. moolabs/models/app_api_v1_tenant_quote_settings_router_update_quote_settings_request.py +87 -0
  223. moolabs/models/app_capability.py +102 -0
  224. moolabs/models/app_capability_type.py +40 -0
  225. moolabs/models/app_paginated_response.py +101 -0
  226. moolabs/models/app_reference.py +95 -0
  227. moolabs/models/app_replace_update.py +164 -0
  228. moolabs/models/app_status.py +37 -0
  229. moolabs/models/app_type.py +38 -0
  230. moolabs/models/apply_credit_request.py +92 -0
  231. moolabs/models/approval_action_request.py +88 -0
  232. moolabs/models/approval_action_response.py +95 -0
  233. moolabs/models/approval_policy_response.py +91 -0
  234. moolabs/models/approve_request.py +88 -0
  235. moolabs/models/approve_response.py +91 -0
  236. moolabs/models/approver_in.py +95 -0
  237. moolabs/models/arc_demo_seed_lifecycle_request.py +103 -0
  238. moolabs/models/arc_dunning_permission_grant_request.py +96 -0
  239. moolabs/models/arc_dunning_permission_revoke_request.py +90 -0
  240. moolabs/models/arc_dunning_template_admin_grant_request.py +90 -0
  241. moolabs/models/arc_dunning_template_admin_grant_response.py +115 -0
  242. moolabs/models/arc_dunning_template_admin_revoke_request.py +88 -0
  243. moolabs/models/arc_dunning_template_admin_user_dto.py +107 -0
  244. moolabs/models/arc_dunning_template_admin_user_grant_dto.py +105 -0
  245. moolabs/models/arc_dunning_template_admin_users_response.py +110 -0
  246. moolabs/models/arc_http_validation_error.py +95 -0
  247. moolabs/models/arc_transaction_request.py +110 -0
  248. moolabs/models/arc_validation_error.py +99 -0
  249. moolabs/models/ask_customer_request.py +97 -0
  250. moolabs/models/ask_customer_response.py +91 -0
  251. moolabs/models/ask_moo_redline_request.py +98 -0
  252. moolabs/models/attribution_allocation_error_detail.py +94 -0
  253. moolabs/models/attribution_allocation_error_response.py +91 -0
  254. moolabs/models/attribution_completeness_response.py +97 -0
  255. moolabs/models/attribution_signal_conflict_detail.py +94 -0
  256. moolabs/models/attribution_signal_conflict_response.py +91 -0
  257. moolabs/models/attribution_signal_delta.py +98 -0
  258. moolabs/models/attribution_signal_request.py +123 -0
  259. moolabs/models/attribution_signal_response.py +96 -0
  260. moolabs/models/audit_request.py +91 -0
  261. moolabs/models/auto_topup_activity_item.py +104 -0
  262. moolabs/models/auto_topup_activity_response.py +97 -0
  263. moolabs/models/auto_topup_rule_response.py +114 -0
  264. moolabs/models/availability.py +43 -0
  265. moolabs/models/backfill_candidate.py +97 -0
  266. moolabs/models/backfill_malformed_disputes_request.py +87 -0
  267. moolabs/models/backfill_malformed_disputes_response.py +101 -0
  268. moolabs/models/balance_history_window.py +99 -0
  269. moolabs/models/basis.py +37 -0
  270. moolabs/models/batch_ingest_request.py +96 -0
  271. moolabs/models/batch_wallet_state_request.py +105 -0
  272. moolabs/models/batch_wallet_state_request_item.py +91 -0
  273. moolabs/models/batch_wallet_state_response.py +97 -0
  274. moolabs/models/batch_wallets_by_subjects_request.py +88 -0
  275. moolabs/models/billing_customer_profile.py +109 -0
  276. moolabs/models/billing_discount_percentage.py +100 -0
  277. moolabs/models/billing_discount_reason.py +164 -0
  278. moolabs/models/billing_discount_usage.py +107 -0
  279. moolabs/models/billing_discounts.py +97 -0
  280. moolabs/models/billing_import_request.py +105 -0
  281. moolabs/models/billing_import_response.py +104 -0
  282. moolabs/models/billing_invoice_customer_extended_details.py +116 -0
  283. moolabs/models/billing_party.py +110 -0
  284. moolabs/models/billing_party_replace_update.py +106 -0
  285. moolabs/models/billing_party_tax_identity.py +88 -0
  286. moolabs/models/billing_profile.py +140 -0
  287. moolabs/models/billing_profile_app_references.py +107 -0
  288. moolabs/models/billing_profile_apps.py +107 -0
  289. moolabs/models/billing_profile_apps_create.py +113 -0
  290. moolabs/models/billing_profile_apps_or_reference.py +148 -0
  291. moolabs/models/billing_profile_create.py +112 -0
  292. moolabs/models/billing_profile_customer_override.py +116 -0
  293. moolabs/models/billing_profile_customer_override_create.py +98 -0
  294. moolabs/models/billing_profile_customer_override_expand.py +37 -0
  295. moolabs/models/billing_profile_customer_override_order_by.py +40 -0
  296. moolabs/models/billing_profile_customer_override_with_details.py +113 -0
  297. moolabs/models/billing_profile_customer_override_with_details_paginated_response.py +101 -0
  298. moolabs/models/billing_profile_expand.py +36 -0
  299. moolabs/models/billing_profile_order_by.py +39 -0
  300. moolabs/models/billing_profile_paginated_response.py +101 -0
  301. moolabs/models/billing_profile_replace_update_with_workflow.py +106 -0
  302. moolabs/models/billing_tenant_settings_out.py +89 -0
  303. moolabs/models/billing_tenant_settings_update.py +88 -0
  304. moolabs/models/billing_workflow.py +109 -0
  305. moolabs/models/billing_workflow_collection_alignment.py +150 -0
  306. moolabs/models/billing_workflow_collection_alignment_anchored.py +100 -0
  307. moolabs/models/billing_workflow_collection_alignment_subscription.py +94 -0
  308. moolabs/models/billing_workflow_collection_settings.py +93 -0
  309. moolabs/models/billing_workflow_create.py +109 -0
  310. moolabs/models/billing_workflow_invoicing_settings.py +99 -0
  311. moolabs/models/billing_workflow_payment_settings.py +88 -0
  312. moolabs/models/billing_workflow_tax_settings.py +89 -0
  313. moolabs/models/bom_component_in.py +105 -0
  314. moolabs/models/bom_component_out.py +109 -0
  315. moolabs/models/bom_create_request.py +107 -0
  316. moolabs/models/bom_out.py +127 -0
  317. moolabs/models/bom_update_request.py +103 -0
  318. moolabs/models/bom_variance_out.py +115 -0
  319. moolabs/models/breakdown_response.py +124 -0
  320. moolabs/models/breakdown_row.py +121 -0
  321. moolabs/models/breakdown_row_kind.py +39 -0
  322. moolabs/models/budget_alert_response.py +107 -0
  323. moolabs/models/budget_amount.py +152 -0
  324. moolabs/models/budget_amount1.py +152 -0
  325. moolabs/models/budget_create.py +110 -0
  326. moolabs/models/budget_pace_status.py +38 -0
  327. moolabs/models/budget_response.py +113 -0
  328. moolabs/models/budget_status_item.py +105 -0
  329. moolabs/models/budget_update.py +107 -0
  330. moolabs/models/budget_with_utilization.py +119 -0
  331. moolabs/models/bulk_action_request.py +92 -0
  332. moolabs/models/bulk_replay_request.py +92 -0
  333. moolabs/models/buyer_accept_request.py +95 -0
  334. moolabs/models/buyer_otp_request_response.py +91 -0
  335. moolabs/models/buyer_otp_verify_request.py +95 -0
  336. moolabs/models/buyer_otp_verify_response.py +89 -0
  337. moolabs/models/buyer_quote_line_item.py +103 -0
  338. moolabs/models/buyer_quote_pricing.py +93 -0
  339. moolabs/models/buyer_quote_projection.py +133 -0
  340. moolabs/models/buyer_reject_request.py +88 -0
  341. moolabs/models/buyer_request_changes_request.py +94 -0
  342. moolabs/models/buyer_request_changes_response.py +93 -0
  343. moolabs/models/buyer_requested_changes.py +90 -0
  344. moolabs/models/cancel_subscription_request.py +91 -0
  345. moolabs/models/card_type.py +37 -0
  346. moolabs/models/case_create.py +112 -0
  347. moolabs/models/case_escalate_request.py +90 -0
  348. moolabs/models/case_invoice_create.py +127 -0
  349. moolabs/models/case_invoice_response.py +150 -0
  350. moolabs/models/case_list_item_response.py +171 -0
  351. moolabs/models/case_list_response.py +101 -0
  352. moolabs/models/case_pause_request.py +91 -0
  353. moolabs/models/case_response.py +169 -0
  354. moolabs/models/case_update.py +102 -0
  355. moolabs/models/case_write_off_request.py +90 -0
  356. moolabs/models/cash_app_config_update_request.py +96 -0
  357. moolabs/models/cei_response.py +102 -0
  358. moolabs/models/change_item.py +101 -0
  359. moolabs/models/channel_policy_schema.py +112 -0
  360. moolabs/models/channel_preference_create.py +99 -0
  361. moolabs/models/channel_preference_response.py +106 -0
  362. moolabs/models/channel_preference_update.py +95 -0
  363. moolabs/models/channel_preferences_response.py +95 -0
  364. moolabs/models/chat_feedback_in.py +91 -0
  365. moolabs/models/chat_message_in.py +89 -0
  366. moolabs/models/chat_request.py +101 -0
  367. moolabs/models/check_trigger_request.py +88 -0
  368. moolabs/models/checkout_session_custom_text_after_submit_params.py +109 -0
  369. moolabs/models/checkout_session_custom_text_after_submit_params_after_submit.py +88 -0
  370. moolabs/models/checkout_session_custom_text_after_submit_params_shipping_address.py +88 -0
  371. moolabs/models/checkout_session_custom_text_after_submit_params_submit.py +88 -0
  372. moolabs/models/checkout_session_custom_text_after_submit_params_terms_of_service_acceptance.py +88 -0
  373. moolabs/models/checkout_session_ui_mode.py +37 -0
  374. moolabs/models/clause_citations.py +91 -0
  375. moolabs/models/clause_family.py +129 -0
  376. moolabs/models/clause_finding.py +110 -0
  377. moolabs/models/clause_pack.py +118 -0
  378. moolabs/models/clause_position.py +91 -0
  379. moolabs/models/client_app_start_response.py +87 -0
  380. moolabs/models/cloud_cost_row_input.py +105 -0
  381. moolabs/models/cloud_provider.py +38 -0
  382. moolabs/models/cloud_provider_data_through.py +116 -0
  383. moolabs/models/cloud_provider_quality_axis.py +107 -0
  384. moolabs/models/cloud_temporal_coverage_summary.py +114 -0
  385. moolabs/models/collection_method.py +37 -0
  386. moolabs/models/commercial_basis.py +39 -0
  387. moolabs/models/commercial_overrides.py +113 -0
  388. moolabs/models/commercial_overrides_input.py +115 -0
  389. moolabs/models/commercial_overrides_payload.py +113 -0
  390. moolabs/models/communication_create.py +110 -0
  391. moolabs/models/communication_list_response.py +101 -0
  392. moolabs/models/communication_response.py +138 -0
  393. moolabs/models/comparison_mode.py +37 -0
  394. moolabs/models/completeness_response.py +105 -0
  395. moolabs/models/component_coverage_response.py +123 -0
  396. moolabs/models/compute_variance_request.py +96 -0
  397. moolabs/models/compute_variance_response.py +105 -0
  398. moolabs/models/config_upload_gap_out.py +89 -0
  399. moolabs/models/config_upload_response.py +109 -0
  400. moolabs/models/config_upload_summary_out.py +95 -0
  401. moolabs/models/connector_config_response.py +93 -0
  402. moolabs/models/connector_health_response.py +102 -0
  403. moolabs/models/connector_item.py +105 -0
  404. moolabs/models/contact_create.py +100 -0
  405. moolabs/models/contact_list_response.py +101 -0
  406. moolabs/models/contact_response.py +134 -0
  407. moolabs/models/contact_update.py +102 -0
  408. moolabs/models/contract_document_response.py +104 -0
  409. moolabs/models/contract_event_response.py +108 -0
  410. moolabs/models/contract_inbound_message_response.py +106 -0
  411. moolabs/models/contract_participant_response.py +131 -0
  412. moolabs/models/contract_segment_response.py +95 -0
  413. moolabs/models/contract_thread_response.py +115 -0
  414. moolabs/models/contract_thread_snapshot_response.py +121 -0
  415. moolabs/models/contract_upload_detail_response.py +103 -0
  416. moolabs/models/contract_version_response.py +128 -0
  417. moolabs/models/contributor_item.py +123 -0
  418. moolabs/models/contributor_kind.py +38 -0
  419. moolabs/models/contributor_query_request.py +146 -0
  420. moolabs/models/contributor_response.py +174 -0
  421. moolabs/models/cost.py +152 -0
  422. moolabs/models/cost_adjustment_create.py +131 -0
  423. moolabs/models/cost_adjustment_response.py +102 -0
  424. moolabs/models/cost_driver_rule_create_request.py +158 -0
  425. moolabs/models/cost_driver_rule_response.py +126 -0
  426. moolabs/models/cost_driver_rule_update_request.py +100 -0
  427. moolabs/models/cost_event_detail_response.py +132 -0
  428. moolabs/models/cost_event_ingest.py +177 -0
  429. moolabs/models/cost_event_response.py +122 -0
  430. moolabs/models/cost_event_summary_item.py +103 -0
  431. moolabs/models/cost_event_summary_request.py +88 -0
  432. moolabs/models/cost_event_summary_response.py +95 -0
  433. moolabs/models/cost_explorer_response.py +155 -0
  434. moolabs/models/cost_scope.py +37 -0
  435. moolabs/models/coverage_snapshot_response.py +114 -0
  436. moolabs/models/cpu_core_hours.py +152 -0
  437. moolabs/models/cpu_cost_weight.py +152 -0
  438. moolabs/models/create_allocation_run_api422_response.py +147 -0
  439. moolabs/models/create_api_key_request.py +89 -0
  440. moolabs/models/create_api_key_response.py +105 -0
  441. moolabs/models/create_auto_topup_rule_request.py +106 -0
  442. moolabs/models/create_checkout_session_tax_id_collection.py +90 -0
  443. moolabs/models/create_checkout_session_tax_id_collection_required.py +37 -0
  444. moolabs/models/create_contract_thread_request.py +87 -0
  445. moolabs/models/create_credit_request.py +97 -0
  446. moolabs/models/create_fx_rate_request.py +103 -0
  447. moolabs/models/create_grant_request.py +136 -0
  448. moolabs/models/create_mapping_request.py +91 -0
  449. moolabs/models/create_matrix_price_row_request.py +91 -0
  450. moolabs/models/create_matrix_price_row_response.py +89 -0
  451. moolabs/models/create_portal_token_response.py +91 -0
  452. moolabs/models/create_quote_redline_request.py +103 -0
  453. moolabs/models/create_quote_request.py +119 -0
  454. moolabs/models/create_quote_template_request.py +102 -0
  455. moolabs/models/create_rate_card_request.py +105 -0
  456. moolabs/models/create_reconstruction_run_request.py +101 -0
  457. moolabs/models/create_session_response.py +97 -0
  458. moolabs/models/create_snapshot_request.py +98 -0
  459. moolabs/models/create_stripe_checkout_session_billing_address_collection.py +37 -0
  460. moolabs/models/create_stripe_checkout_session_consent_collection.py +97 -0
  461. moolabs/models/create_stripe_checkout_session_consent_collection_payment_method_reuse_agreement.py +88 -0
  462. moolabs/models/create_stripe_checkout_session_consent_collection_payment_method_reuse_agreement_position.py +37 -0
  463. moolabs/models/create_stripe_checkout_session_consent_collection_promotions.py +37 -0
  464. moolabs/models/create_stripe_checkout_session_consent_collection_terms_of_service.py +37 -0
  465. moolabs/models/create_stripe_checkout_session_customer_update.py +92 -0
  466. moolabs/models/create_stripe_checkout_session_customer_update_behavior.py +37 -0
  467. moolabs/models/create_stripe_checkout_session_redirect_on_completion.py +38 -0
  468. moolabs/models/create_stripe_checkout_session_request.py +112 -0
  469. moolabs/models/create_stripe_checkout_session_request_customer.py +163 -0
  470. moolabs/models/create_stripe_checkout_session_request_options.py +147 -0
  471. moolabs/models/create_stripe_checkout_session_result.py +139 -0
  472. moolabs/models/create_stripe_customer_portal_session_params.py +91 -0
  473. moolabs/models/create_threshold_request.py +99 -0
  474. moolabs/models/create_value_recognition_request.py +100 -0
  475. moolabs/models/create_wallet_request.py +106 -0
  476. moolabs/models/credit_config.py +119 -0
  477. moolabs/models/credit_config_payload.py +135 -0
  478. moolabs/models/credit_cost_ratio_item.py +93 -0
  479. moolabs/models/credit_cost_ratio_response.py +101 -0
  480. moolabs/models/credit_memo_apply_request.py +90 -0
  481. moolabs/models/credit_memo_create.py +104 -0
  482. moolabs/models/credit_memo_create_internal.py +114 -0
  483. moolabs/models/credit_memo_create_public.py +108 -0
  484. moolabs/models/credit_memo_item.py +102 -0
  485. moolabs/models/credit_memo_line_in.py +90 -0
  486. moolabs/models/credit_memo_list_response.py +101 -0
  487. moolabs/models/credit_memo_out.py +138 -0
  488. moolabs/models/credit_memo_response.py +124 -0
  489. moolabs/models/credit_memo_update.py +94 -0
  490. moolabs/models/credit_note_original_invoice_ref.py +114 -0
  491. moolabs/models/credit_override.py +87 -0
  492. moolabs/models/credit_override_input.py +101 -0
  493. moolabs/models/credit_override_payload.py +100 -0
  494. moolabs/models/crm_quote_context_request.py +94 -0
  495. moolabs/models/crm_quote_context_response.py +101 -0
  496. moolabs/models/crm_quote_draft_request.py +98 -0
  497. moolabs/models/crm_quote_draft_response.py +107 -0
  498. moolabs/models/crm_quote_record_card_response.py +97 -0
  499. moolabs/models/crm_surface_response.py +97 -0
  500. moolabs/models/currency.py +101 -0
  501. moolabs/models/current.py +152 -0
  502. moolabs/models/custom_invoicing_app.py +142 -0
  503. moolabs/models/custom_invoicing_app_replace_update.py +105 -0
  504. moolabs/models/custom_invoicing_customer_app_data.py +117 -0
  505. moolabs/models/custom_invoicing_draft_synchronized_request.py +91 -0
  506. moolabs/models/custom_invoicing_finalized_invoicing_request.py +91 -0
  507. moolabs/models/custom_invoicing_finalized_payment_request.py +87 -0
  508. moolabs/models/custom_invoicing_finalized_request.py +97 -0
  509. moolabs/models/custom_invoicing_line_discount_external_id_mapping.py +97 -0
  510. moolabs/models/custom_invoicing_line_external_id_mapping.py +97 -0
  511. moolabs/models/custom_invoicing_payment_trigger.py +41 -0
  512. moolabs/models/custom_invoicing_sync_result.py +110 -0
  513. moolabs/models/custom_invoicing_tax_config.py +87 -0
  514. moolabs/models/custom_invoicing_update_payment_status_request.py +92 -0
  515. moolabs/models/custom_plan_input.py +136 -0
  516. moolabs/models/custom_subscription_change.py +119 -0
  517. moolabs/models/custom_subscription_create.py +153 -0
  518. moolabs/models/customer.py +172 -0
  519. moolabs/models/customer_access.py +102 -0
  520. moolabs/models/customer_app_data.py +164 -0
  521. moolabs/models/customer_app_data_create_or_update_item.py +164 -0
  522. moolabs/models/customer_app_data_paginated_response.py +101 -0
  523. moolabs/models/customer_cost_item.py +95 -0
  524. moolabs/models/customer_create.py +120 -0
  525. moolabs/models/customer_expand.py +36 -0
  526. moolabs/models/customer_id.py +95 -0
  527. moolabs/models/customer_item.py +114 -0
  528. moolabs/models/customer_key.py +87 -0
  529. moolabs/models/customer_key_page_response.py +101 -0
  530. moolabs/models/customer_key_put_request.py +103 -0
  531. moolabs/models/customer_key_response.py +94 -0
  532. moolabs/models/customer_margin_item.py +99 -0
  533. moolabs/models/customer_margin_response.py +101 -0
  534. moolabs/models/customer_order_by.py +38 -0
  535. moolabs/models/customer_paginated_response.py +101 -0
  536. moolabs/models/customer_replace_update.py +120 -0
  537. moolabs/models/customer_subscription_order_by.py +37 -0
  538. moolabs/models/customer_upsert_request.py +102 -0
  539. moolabs/models/customer_usage_attribution.py +88 -0
  540. moolabs/models/danger_request.py +89 -0
  541. moolabs/models/dashboard_meta.py +172 -0
  542. moolabs/models/dashboard_overview_response.py +115 -0
  543. moolabs/models/data_through.py +115 -0
  544. moolabs/models/db_time_coverage_response.py +154 -0
  545. moolabs/models/db_time_evidence_batch_readback_response.py +135 -0
  546. moolabs/models/db_time_evidence_batch_request.py +147 -0
  547. moolabs/models/db_time_evidence_batch_response.py +100 -0
  548. moolabs/models/db_time_evidence_conflict_detail.py +94 -0
  549. moolabs/models/db_time_evidence_conflict_response.py +91 -0
  550. moolabs/models/db_time_evidence_not_found_detail.py +94 -0
  551. moolabs/models/db_time_evidence_not_found_response.py +91 -0
  552. moolabs/models/db_time_observation_request.py +131 -0
  553. moolabs/models/db_time_readout_quality_response.py +103 -0
  554. moolabs/models/deal_context.py +97 -0
  555. moolabs/models/deal_context_rule.py +105 -0
  556. moolabs/models/decision_item.py +131 -0
  557. moolabs/models/decision_kind.py +46 -0
  558. moolabs/models/decision_overview_response.py +172 -0
  559. moolabs/models/decision_queue_response.py +115 -0
  560. moolabs/models/decision_reason_code.py +53 -0
  561. moolabs/models/delta.py +152 -0
  562. moolabs/models/delta_pct.py +152 -0
  563. moolabs/models/demo_seed_acute_history_baseline_request.py +106 -0
  564. moolabs/models/demo_seed_acute_tenant_registration_request.py +114 -0
  565. moolabs/models/demo_seed_agent_report_baseline_request.py +106 -0
  566. moolabs/models/demo_seed_arc_invoice_ref.py +107 -0
  567. moolabs/models/demo_seed_arc_portfolio_baseline_request.py +121 -0
  568. moolabs/models/demo_seed_catalog_baseline_request.py +108 -0
  569. moolabs/models/demo_seed_customer_portfolio_baseline_request.py +103 -0
  570. moolabs/models/demo_seed_integration_crm_baseline_request.py +106 -0
  571. moolabs/models/demo_seed_integration_finance_baseline_request.py +106 -0
  572. moolabs/models/demo_seed_integration_netsuite_baseline_request.py +106 -0
  573. moolabs/models/demo_seed_integration_webhook_baseline_request.py +106 -0
  574. moolabs/models/demo_seed_invoice_payment_baseline_request.py +106 -0
  575. moolabs/models/demo_seed_isolation_canary_baseline_request.py +106 -0
  576. moolabs/models/demo_seed_lifecycle_request.py +103 -0
  577. moolabs/models/demo_seed_quote_contract_baseline_request.py +106 -0
  578. moolabs/models/demo_seed_security_credentials_baseline_request.py +106 -0
  579. moolabs/models/demo_seed_settings_baseline_request.py +106 -0
  580. moolabs/models/demo_seed_subscription_baseline_request.py +106 -0
  581. moolabs/models/demo_seed_tenant_config_baseline_request.py +119 -0
  582. moolabs/models/demo_seed_usage_baseline_request.py +106 -0
  583. moolabs/models/derive_request.py +94 -0
  584. moolabs/models/dimension.py +39 -0
  585. moolabs/models/dimension_coverage_response.py +102 -0
  586. moolabs/models/disclosure_policy_response.py +93 -0
  587. moolabs/models/disclosure_policy_update_request.py +102 -0
  588. moolabs/models/discount_percentage.py +87 -0
  589. moolabs/models/discount_reason_maximum_spend.py +94 -0
  590. moolabs/models/discount_reason_ratecard_percentage.py +109 -0
  591. moolabs/models/discount_reason_ratecard_usage.py +116 -0
  592. moolabs/models/discount_usage.py +95 -0
  593. moolabs/models/discounts.py +97 -0
  594. moolabs/models/dismiss_refinement_request.py +87 -0
  595. moolabs/models/dispute_approval_request.py +88 -0
  596. moolabs/models/dispute_list_response.py +101 -0
  597. moolabs/models/dispute_resolve_request.py +92 -0
  598. moolabs/models/dispute_response.py +134 -0
  599. moolabs/models/dispute_summary_response.py +104 -0
  600. moolabs/models/dispute_update_request.py +102 -0
  601. moolabs/models/dns_record.py +119 -0
  602. moolabs/models/domain_response.py +95 -0
  603. moolabs/models/domain_update.py +87 -0
  604. moolabs/models/draft_lock_request.py +88 -0
  605. moolabs/models/draft_lock_response.py +97 -0
  606. moolabs/models/draft_save_request.py +114 -0
  607. moolabs/models/draft_unlock_request.py +90 -0
  608. moolabs/models/driver_item.py +122 -0
  609. moolabs/models/dry_run_request.py +89 -0
  610. moolabs/models/dry_run_response.py +97 -0
  611. moolabs/models/dso_response.py +100 -0
  612. moolabs/models/dynamic_price_with_commitments.py +131 -0
  613. moolabs/models/economics_summary.py +114 -0
  614. moolabs/models/edit_subscription_add_item.py +102 -0
  615. moolabs/models/edit_subscription_add_phase.py +100 -0
  616. moolabs/models/edit_subscription_remove_item.py +98 -0
  617. moolabs/models/edit_subscription_remove_phase.py +99 -0
  618. moolabs/models/edit_subscription_stretch_phase.py +98 -0
  619. moolabs/models/edit_subscription_unschedule_edit.py +94 -0
  620. moolabs/models/effective_permission_grant_dto.py +105 -0
  621. moolabs/models/effective_permissions_response.py +129 -0
  622. moolabs/models/email_config_out.py +188 -0
  623. moolabs/models/email_config_upsert.py +111 -0
  624. moolabs/models/email_context.py +44 -0
  625. moolabs/models/email_message_status.py +42 -0
  626. moolabs/models/email_provider.py +37 -0
  627. moolabs/models/email_provider_identity.py +157 -0
  628. moolabs/models/email_provider_identity_list.py +108 -0
  629. moolabs/models/email_provider_operator_upsert.py +131 -0
  630. moolabs/models/email_provider_route.py +128 -0
  631. moolabs/models/email_provider_route_list.py +108 -0
  632. moolabs/models/enable_tier3_response.py +93 -0
  633. moolabs/models/endpoints_response.py +89 -0
  634. moolabs/models/entitlement.py +164 -0
  635. moolabs/models/entitlement_boolean.py +168 -0
  636. moolabs/models/entitlement_boolean_create_inputs.py +127 -0
  637. moolabs/models/entitlement_boolean_v2.py +170 -0
  638. moolabs/models/entitlement_create_inputs.py +164 -0
  639. moolabs/models/entitlement_grant.py +148 -0
  640. moolabs/models/entitlement_grant_create_input.py +111 -0
  641. moolabs/models/entitlement_grant_create_input_v2.py +113 -0
  642. moolabs/models/entitlement_grant_v2.py +148 -0
  643. moolabs/models/entitlement_metered.py +190 -0
  644. moolabs/models/entitlement_metered_create_inputs.py +143 -0
  645. moolabs/models/entitlement_metered_v2.py +196 -0
  646. moolabs/models/entitlement_metered_v2_create_inputs.py +157 -0
  647. moolabs/models/entitlement_order_by.py +37 -0
  648. moolabs/models/entitlement_override.py +89 -0
  649. moolabs/models/entitlement_override_input.py +95 -0
  650. moolabs/models/entitlement_override_payload.py +93 -0
  651. moolabs/models/entitlement_paginated_response.py +101 -0
  652. moolabs/models/entitlement_payload.py +103 -0
  653. moolabs/models/entitlement_static.py +170 -0
  654. moolabs/models/entitlement_static_create_inputs.py +129 -0
  655. moolabs/models/entitlement_static_v2.py +172 -0
  656. moolabs/models/entitlement_type.py +38 -0
  657. moolabs/models/entitlement_v2.py +164 -0
  658. moolabs/models/entitlement_v2_create_inputs.py +164 -0
  659. moolabs/models/entitlement_v2_paginated_response.py +101 -0
  660. moolabs/models/entitlement_value.py +109 -0
  661. moolabs/models/error_extension.py +110 -0
  662. moolabs/models/escalate_request.py +90 -0
  663. moolabs/models/escalate_response.py +91 -0
  664. moolabs/models/escalation_action_request.py +90 -0
  665. moolabs/models/escalation_action_response.py +91 -0
  666. moolabs/models/escalation_create.py +97 -0
  667. moolabs/models/escalation_dismiss_request.py +90 -0
  668. moolabs/models/escalation_list_response.py +101 -0
  669. moolabs/models/escalation_resolve_request.py +87 -0
  670. moolabs/models/escalation_response.py +112 -0
  671. moolabs/models/escalation_update.py +93 -0
  672. moolabs/models/event.py +115 -0
  673. moolabs/models/event_delivery_attempt_response.py +101 -0
  674. moolabs/models/evidence_create_request.py +96 -0
  675. moolabs/models/evidence_kind.py +39 -0
  676. moolabs/models/evidence_list_response.py +97 -0
  677. moolabs/models/evidence_response.py +106 -0
  678. moolabs/models/evidence_review_request.py +90 -0
  679. moolabs/models/evidence_window.py +37 -0
  680. moolabs/models/exchange_rate.py +152 -0
  681. moolabs/models/expiration_duration.py +40 -0
  682. moolabs/models/expiration_period.py +91 -0
  683. moolabs/models/explorer_alias_hint.py +104 -0
  684. moolabs/models/explorer_alias_hint1.py +110 -0
  685. moolabs/models/explorer_alias_kind.py +39 -0
  686. moolabs/models/explorer_breakdown_page.py +166 -0
  687. moolabs/models/explorer_breakdown_row.py +200 -0
  688. moolabs/models/explorer_cloud_provider_quality_axis.py +107 -0
  689. moolabs/models/explorer_cloud_temporal_coverage_summary.py +115 -0
  690. moolabs/models/explorer_contributor_kind.py +40 -0
  691. moolabs/models/explorer_contributor_query_request.py +190 -0
  692. moolabs/models/explorer_contributor_response.py +201 -0
  693. moolabs/models/explorer_contributor_row.py +177 -0
  694. moolabs/models/explorer_cost_event_status.py +39 -0
  695. moolabs/models/explorer_dimension.py +40 -0
  696. moolabs/models/explorer_effective_sort.py +107 -0
  697. moolabs/models/explorer_effective_sort_field.py +41 -0
  698. moolabs/models/explorer_evidence_kind.py +41 -0
  699. moolabs/models/explorer_evidence_role.py +37 -0
  700. moolabs/models/explorer_excluded_event_count.py +104 -0
  701. moolabs/models/explorer_excluded_event_reason.py +38 -0
  702. moolabs/models/explorer_exposure_summary.py +124 -0
  703. moolabs/models/explorer_measure_source.py +40 -0
  704. moolabs/models/explorer_meta.py +196 -0
  705. moolabs/models/explorer_quality_axis.py +117 -0
  706. moolabs/models/explorer_quality_caveat_code.py +45 -0
  707. moolabs/models/explorer_quality_summary.py +151 -0
  708. moolabs/models/explorer_query_request.py +184 -0
  709. moolabs/models/explorer_request_detail_event.py +134 -0
  710. moolabs/models/explorer_request_detail_line.py +133 -0
  711. moolabs/models/explorer_request_detail_query_request.py +201 -0
  712. moolabs/models/explorer_request_detail_response.py +205 -0
  713. moolabs/models/explorer_request_detail_result_cap.py +125 -0
  714. moolabs/models/explorer_request_distribution.py +109 -0
  715. moolabs/models/explorer_request_query_request.py +190 -0
  716. moolabs/models/explorer_search.py +111 -0
  717. moolabs/models/explorer_selection_result.py +107 -0
  718. moolabs/models/explorer_selection_row.py +185 -0
  719. moolabs/models/explorer_selection_status.py +39 -0
  720. moolabs/models/explorer_sort.py +104 -0
  721. moolabs/models/explorer_sort1.py +116 -0
  722. moolabs/models/explorer_sort_fallback_reason.py +39 -0
  723. moolabs/models/explorer_sort_field.py +40 -0
  724. moolabs/models/explorer_source_scope.py +38 -0
  725. moolabs/models/explorer_summary.py +134 -0
  726. moolabs/models/explorer_trend_point.py +124 -0
  727. moolabs/models/explorer_usage_history_evidence.py +110 -0
  728. moolabs/models/explorer_usage_history_source.py +38 -0
  729. moolabs/models/feature.py +156 -0
  730. moolabs/models/feature_contributor_customer.py +91 -0
  731. moolabs/models/feature_contributor_model.py +93 -0
  732. moolabs/models/feature_contributor_request.py +91 -0
  733. moolabs/models/feature_contributors_response.py +121 -0
  734. moolabs/models/feature_cost_item.py +97 -0
  735. moolabs/models/feature_create_inputs.py +128 -0
  736. moolabs/models/feature_flag_item.py +97 -0
  737. moolabs/models/feature_flag_update.py +87 -0
  738. moolabs/models/feature_margin_item.py +101 -0
  739. moolabs/models/feature_margin_response.py +101 -0
  740. moolabs/models/feature_meta.py +97 -0
  741. moolabs/models/feature_order_by.py +40 -0
  742. moolabs/models/feature_override_request.py +93 -0
  743. moolabs/models/feature_paginated_response.py +101 -0
  744. moolabs/models/feature_pool.py +99 -0
  745. moolabs/models/feature_pool_payload.py +107 -0
  746. moolabs/models/feature_price_request.py +93 -0
  747. moolabs/models/feature_pricing_input.py +120 -0
  748. moolabs/models/filter_id_exact.py +88 -0
  749. moolabs/models/filter_string.py +129 -0
  750. moolabs/models/filter_time.py +114 -0
  751. moolabs/models/finance_summary.py +143 -0
  752. moolabs/models/first_pass_redline_request.py +88 -0
  753. moolabs/models/first_pass_redline_response.py +89 -0
  754. moolabs/models/flag_disputed_request.py +92 -0
  755. moolabs/models/flag_disputed_response.py +97 -0
  756. moolabs/models/flat_price.py +104 -0
  757. moolabs/models/flat_price_with_payment_term.py +107 -0
  758. moolabs/models/flatamount.py +152 -0
  759. moolabs/models/freshness_axis.py +121 -0
  760. moolabs/models/freshness_source.py +40 -0
  761. moolabs/models/fx_rate_to_reporting.py +153 -0
  762. moolabs/models/fx_rates_list_response.py +97 -0
  763. moolabs/models/gate_status_response.py +105 -0
  764. moolabs/models/get_fx_rate_request.py +92 -0
  765. moolabs/models/get_matrix_price_rows_response.py +107 -0
  766. moolabs/models/google_chat_quote_response.py +89 -0
  767. moolabs/models/grant_activation_request.py +122 -0
  768. moolabs/models/grant_burn_down_history_segment.py +125 -0
  769. moolabs/models/grant_order_by.py +38 -0
  770. moolabs/models/grant_paginated_response.py +101 -0
  771. moolabs/models/grant_plan_change_request.py +126 -0
  772. moolabs/models/grant_renewal_request.py +122 -0
  773. moolabs/models/grant_response.py +128 -0
  774. moolabs/models/grant_source_type.py +40 -0
  775. moolabs/models/grant_usage_record.py +97 -0
  776. moolabs/models/grant_v2_paginated_response.py +101 -0
  777. moolabs/models/grants_list_response.py +99 -0
  778. moolabs/models/handoff_create_request.py +92 -0
  779. moolabs/models/helicone_config_request.py +92 -0
  780. moolabs/models/homepage_response.py +107 -0
  781. moolabs/models/hosted_checkout_settlement_ptp_response.py +100 -0
  782. moolabs/models/hosted_checkout_settlement_request.py +109 -0
  783. moolabs/models/hosted_checkout_settlement_response.py +97 -0
  784. moolabs/models/http_validation_error.py +95 -0
  785. moolabs/models/hub_spot_connect_request.py +91 -0
  786. moolabs/models/id_resource.py +97 -0
  787. moolabs/models/identity_scope.py +39 -0
  788. moolabs/models/identity_scope_coverage_response.py +96 -0
  789. moolabs/models/import_batch_detail_response.py +105 -0
  790. moolabs/models/import_batch_detail_row.py +111 -0
  791. moolabs/models/import_batch_request.py +112 -0
  792. moolabs/models/import_batch_response.py +101 -0
  793. moolabs/models/import_batch_summary.py +111 -0
  794. moolabs/models/import_dispute_item.py +122 -0
  795. moolabs/models/import_disputes_request.py +96 -0
  796. moolabs/models/import_invoice_item.py +133 -0
  797. moolabs/models/import_invoices_request.py +96 -0
  798. moolabs/models/import_promise_item.py +155 -0
  799. moolabs/models/import_promises_request.py +96 -0
  800. moolabs/models/inbound_email_attachment.py +91 -0
  801. moolabs/models/inbound_email_payload.py +103 -0
  802. moolabs/models/inbound_email_process_response.py +97 -0
  803. moolabs/models/ingest_events_body.py +150 -0
  804. moolabs/models/ingest_health.py +97 -0
  805. moolabs/models/ingested_event.py +111 -0
  806. moolabs/models/ingested_event_cursor_paginated_response.py +98 -0
  807. moolabs/models/initialamount.py +152 -0
  808. moolabs/models/insight_card.py +111 -0
  809. moolabs/models/install_method.py +38 -0
  810. moolabs/models/integration_update.py +89 -0
  811. moolabs/models/invalidate_portal_token_request.py +89 -0
  812. moolabs/models/invalidate_portal_tokens_request.py +89 -0
  813. moolabs/models/invoice.py +249 -0
  814. moolabs/models/invoice_allocation_out.py +103 -0
  815. moolabs/models/invoice_app_external_ids.py +97 -0
  816. moolabs/models/invoice_available_action_details.py +89 -0
  817. moolabs/models/invoice_available_actions.py +132 -0
  818. moolabs/models/invoice_detailed_line.py +244 -0
  819. moolabs/models/invoice_detailed_line_cost_category.py +37 -0
  820. moolabs/models/invoice_detailed_line_rate_card.py +116 -0
  821. moolabs/models/invoice_document_ref_type.py +36 -0
  822. moolabs/models/invoice_expand.py +38 -0
  823. moolabs/models/invoice_generic_document_ref.py +98 -0
  824. moolabs/models/invoice_item.py +112 -0
  825. moolabs/models/invoice_line.py +296 -0
  826. moolabs/models/invoice_line_amount_discount.py +141 -0
  827. moolabs/models/invoice_line_app_external_ids.py +93 -0
  828. moolabs/models/invoice_line_discounts.py +105 -0
  829. moolabs/models/invoice_line_managed_by.py +38 -0
  830. moolabs/models/invoice_line_out.py +99 -0
  831. moolabs/models/invoice_line_replace_update.py +143 -0
  832. moolabs/models/invoice_line_status.py +38 -0
  833. moolabs/models/invoice_line_subscription_reference.py +115 -0
  834. moolabs/models/invoice_line_tax_behavior.py +37 -0
  835. moolabs/models/invoice_line_tax_item.py +117 -0
  836. moolabs/models/invoice_line_usage_discount.py +155 -0
  837. moolabs/models/invoice_order_by.py +41 -0
  838. moolabs/models/invoice_paginated_response.py +101 -0
  839. moolabs/models/invoice_payment_terms.py +91 -0
  840. moolabs/models/invoice_pending_line_create.py +131 -0
  841. moolabs/models/invoice_pending_line_create_input.py +105 -0
  842. moolabs/models/invoice_pending_line_create_response.py +107 -0
  843. moolabs/models/invoice_pending_lines_action_filters_input.py +88 -0
  844. moolabs/models/invoice_pending_lines_action_input.py +106 -0
  845. moolabs/models/invoice_reference.py +101 -0
  846. moolabs/models/invoice_replace_update.py +117 -0
  847. moolabs/models/invoice_simulation_input.py +107 -0
  848. moolabs/models/invoice_simulation_line.py +164 -0
  849. moolabs/models/invoice_status.py +44 -0
  850. moolabs/models/invoice_status_details.py +103 -0
  851. moolabs/models/invoice_totals.py +163 -0
  852. moolabs/models/invoice_type.py +37 -0
  853. moolabs/models/invoice_upsert_request.py +112 -0
  854. moolabs/models/invoice_usage_based_rate_card.py +116 -0
  855. moolabs/models/invoice_workflow_invoicing_settings_replace_update.py +97 -0
  856. moolabs/models/invoice_workflow_replace_update.py +91 -0
  857. moolabs/models/invoice_workflow_settings.py +111 -0
  858. moolabs/models/invoice_workflow_settings_replace_update.py +97 -0
  859. moolabs/models/issue_after_reset.py +90 -0
  860. moolabs/models/jurisdiction_profile_response.py +102 -0
  861. moolabs/models/jurisdiction_resolution_request.py +92 -0
  862. moolabs/models/kill_switch_request.py +87 -0
  863. moolabs/models/langfuse_config_request.py +92 -0
  864. moolabs/models/lesson_action_request.py +89 -0
  865. moolabs/models/level_in.py +91 -0
  866. moolabs/models/lifecycle_event_request.py +97 -0
  867. moolabs/models/line_item_create.py +118 -0
  868. moolabs/models/line_total.py +153 -0
  869. moolabs/models/link_net_suite_account_request.py +89 -0
  870. moolabs/models/list_auto_topup_rules_response.py +97 -0
  871. moolabs/models/list_connectors200_response_inner.py +148 -0
  872. moolabs/models/list_entitlements_result.py +151 -0
  873. moolabs/models/list_events_v2_filter_param.py +123 -0
  874. moolabs/models/list_features_result.py +151 -0
  875. moolabs/models/list_grants_get200_response.py +151 -0
  876. moolabs/models/mapping_response.py +97 -0
  877. moolabs/models/mapping_rule_create.py +105 -0
  878. moolabs/models/mapping_rule_response.py +118 -0
  879. moolabs/models/mapping_rule_update.py +103 -0
  880. moolabs/models/margin_snapshot_response.py +131 -0
  881. moolabs/models/marketplace_app_api_key_install_request.py +91 -0
  882. moolabs/models/marketplace_install_request_payload.py +89 -0
  883. moolabs/models/marketplace_install_response.py +94 -0
  884. moolabs/models/marketplace_listing.py +105 -0
  885. moolabs/models/marketplace_listing_paginated_response.py +101 -0
  886. moolabs/models/matrix_price_row.py +91 -0
  887. moolabs/models/measure.py +146 -0
  888. moolabs/models/measure_kind.py +41 -0
  889. moolabs/models/measure_usage_from.py +151 -0
  890. moolabs/models/measure_usage_from_preset.py +37 -0
  891. moolabs/models/merge_remittances_request.py +89 -0
  892. moolabs/models/meter.py +176 -0
  893. moolabs/models/meter_aggregation.py +42 -0
  894. moolabs/models/meter_create.py +113 -0
  895. moolabs/models/meter_mapping_item.py +95 -0
  896. moolabs/models/meter_order_by.py +40 -0
  897. moolabs/models/meter_query_request.py +121 -0
  898. moolabs/models/meter_query_result.py +103 -0
  899. moolabs/models/meter_query_row.py +98 -0
  900. moolabs/models/meter_test_event_request.py +87 -0
  901. moolabs/models/meter_test_event_response.py +93 -0
  902. moolabs/models/meter_update.py +94 -0
  903. moolabs/models/meter_usage_summary_item.py +103 -0
  904. moolabs/models/meter_usage_summary_response.py +95 -0
  905. moolabs/models/meter_validation_error.py +101 -0
  906. moolabs/models/migrate_subscription_request.py +105 -0
  907. moolabs/models/model_cost_item.py +95 -0
  908. moolabs/models/net_suite_connect_request.py +103 -0
  909. moolabs/models/net_suite_cutover_guard_request.py +87 -0
  910. moolabs/models/net_suite_m2_m_finalize_request.py +87 -0
  911. moolabs/models/net_suite_m2_m_setup_request.py +101 -0
  912. moolabs/models/net_suite_managed_portal_backfill_cancel_request.py +87 -0
  913. moolabs/models/net_suite_managed_portal_backfill_request.py +89 -0
  914. moolabs/models/net_suite_managed_portal_backfill_run_request.py +90 -0
  915. moolabs/models/net_suite_managed_portal_mapping_delete_request.py +91 -0
  916. moolabs/models/net_suite_managed_portal_mapping_request.py +97 -0
  917. moolabs/models/net_suite_managed_portal_protection_ack_request.py +89 -0
  918. moolabs/models/next_action_type.py +41 -0
  919. moolabs/models/note_create.py +94 -0
  920. moolabs/models/note_list_response.py +101 -0
  921. moolabs/models/note_response.py +104 -0
  922. moolabs/models/notification_channel_meta.py +100 -0
  923. moolabs/models/notification_channel_order_by.py +39 -0
  924. moolabs/models/notification_channel_paginated_response.py +101 -0
  925. moolabs/models/notification_channel_type.py +36 -0
  926. moolabs/models/notification_channel_webhook.py +145 -0
  927. moolabs/models/notification_channel_webhook_create_request.py +117 -0
  928. moolabs/models/notification_event.py +137 -0
  929. moolabs/models/notification_event_balance_threshold_payload.py +121 -0
  930. moolabs/models/notification_event_balance_threshold_payload_data.py +133 -0
  931. moolabs/models/notification_event_delivery_attempt.py +103 -0
  932. moolabs/models/notification_event_delivery_status.py +125 -0
  933. moolabs/models/notification_event_delivery_status_state.py +40 -0
  934. moolabs/models/notification_event_entitlement_value_payload_base.py +125 -0
  935. moolabs/models/notification_event_invoice_created_payload.py +121 -0
  936. moolabs/models/notification_event_invoice_updated_payload.py +121 -0
  937. moolabs/models/notification_event_order_by.py +37 -0
  938. moolabs/models/notification_event_paginated_response.py +101 -0
  939. moolabs/models/notification_event_payload.py +178 -0
  940. moolabs/models/notification_event_resend_request.py +88 -0
  941. moolabs/models/notification_event_reset_payload.py +121 -0
  942. moolabs/models/notification_event_type.py +39 -0
  943. moolabs/models/notification_rule.py +178 -0
  944. moolabs/models/notification_rule_balance_threshold.py +159 -0
  945. moolabs/models/notification_rule_balance_threshold_create_request.py +115 -0
  946. moolabs/models/notification_rule_balance_threshold_value.py +90 -0
  947. moolabs/models/notification_rule_balance_threshold_value_type.py +40 -0
  948. moolabs/models/notification_rule_create_request.py +178 -0
  949. moolabs/models/notification_rule_entitlement_reset.py +149 -0
  950. moolabs/models/notification_rule_entitlement_reset_create_request.py +105 -0
  951. moolabs/models/notification_rule_invoice_created.py +139 -0
  952. moolabs/models/notification_rule_invoice_created_create_request.py +103 -0
  953. moolabs/models/notification_rule_invoice_updated.py +139 -0
  954. moolabs/models/notification_rule_invoice_updated_create_request.py +103 -0
  955. moolabs/models/notification_rule_order_by.py +39 -0
  956. moolabs/models/notification_rule_paginated_response.py +101 -0
  957. moolabs/models/notify_channel.py +89 -0
  958. moolabs/models/o_auth2_authorization_code_grant_error_type.py +42 -0
  959. moolabs/models/observation_out.py +103 -0
  960. moolabs/models/observed_total_cost.py +153 -0
  961. moolabs/models/open_cost_cluster_binding.py +115 -0
  962. moolabs/models/open_cost_dedicated_namespace.py +104 -0
  963. moolabs/models/open_cost_installation_create_request.py +122 -0
  964. moolabs/models/open_cost_installation_create_response.py +116 -0
  965. moolabs/models/open_cost_installation_response.py +114 -0
  966. moolabs/models/open_cost_snapshot_request.py +139 -0
  967. moolabs/models/open_cost_snapshot_response.py +125 -0
  968. moolabs/models/open_cost_trust_policy.py +145 -0
  969. moolabs/models/open_cost_wire_row.py +140 -0
  970. moolabs/models/open_from_scope_request.py +98 -0
  971. moolabs/models/operations_summary.py +120 -0
  972. moolabs/models/opt_out_request.py +90 -0
  973. moolabs/models/opt_out_response.py +93 -0
  974. moolabs/models/org_role.py +152 -0
  975. moolabs/models/original_total.py +152 -0
  976. moolabs/models/otlp_ingest_response.py +91 -0
  977. moolabs/models/overall_freshness.py +116 -0
  978. moolabs/models/overdraft_settings.py +93 -0
  979. moolabs/models/overdraft_settings_payload.py +93 -0
  980. moolabs/models/override_first_ingress_request.py +94 -0
  981. moolabs/models/override_request.py +90 -0
  982. moolabs/models/override_response.py +91 -0
  983. moolabs/models/overview_response.py +109 -0
  984. moolabs/models/pack_provenance.py +101 -0
  985. moolabs/models/package_price_with_commitments.py +137 -0
  986. moolabs/models/paginated_credit_memos.py +97 -0
  987. moolabs/models/paginated_customers.py +99 -0
  988. moolabs/models/paginated_invoices.py +97 -0
  989. moolabs/models/paginated_payments.py +97 -0
  990. moolabs/models/paginated_sync_runs.py +97 -0
  991. moolabs/models/patch_quote_agent_policy_request.py +98 -0
  992. moolabs/models/patch_rows_request.py +95 -0
  993. moolabs/models/patch_session_request.py +107 -0
  994. moolabs/models/payment_allocation_response.py +104 -0
  995. moolabs/models/payment_create.py +109 -0
  996. moolabs/models/payment_due_date.py +124 -0
  997. moolabs/models/payment_failed_request.py +101 -0
  998. moolabs/models/payment_failed_response.py +93 -0
  999. moolabs/models/payment_instructions_response.py +95 -0
  1000. moolabs/models/payment_instructions_update_request.py +90 -0
  1001. moolabs/models/payment_item.py +104 -0
  1002. moolabs/models/payment_link_request.py +105 -0
  1003. moolabs/models/payment_link_response.py +89 -0
  1004. moolabs/models/payment_list_response.py +101 -0
  1005. moolabs/models/payment_match_request.py +90 -0
  1006. moolabs/models/payment_response.py +136 -0
  1007. moolabs/models/payment_reversal_request.py +90 -0
  1008. moolabs/models/payment_succeeded_request.py +103 -0
  1009. moolabs/models/payment_succeeded_response.py +97 -0
  1010. moolabs/models/payment_term_due_date.py +113 -0
  1011. moolabs/models/payment_term_instant.py +102 -0
  1012. moolabs/models/payment_terms.py +148 -0
  1013. moolabs/models/pending_provider_confirmation_reconcile_request.py +88 -0
  1014. moolabs/models/pending_sns_confirmation_out.py +102 -0
  1015. moolabs/models/period.py +90 -0
  1016. moolabs/models/period_settlement_out.py +143 -0
  1017. moolabs/models/period_window.py +103 -0
  1018. moolabs/models/persona.py +39 -0
  1019. moolabs/models/plan.py +191 -0
  1020. moolabs/models/plan_addon.py +126 -0
  1021. moolabs/models/plan_addon_create.py +101 -0
  1022. moolabs/models/plan_addon_order_by.py +40 -0
  1023. moolabs/models/plan_addon_paginated_response.py +101 -0
  1024. moolabs/models/plan_addon_replace_update.py +91 -0
  1025. moolabs/models/plan_amend_request.py +103 -0
  1026. moolabs/models/plan_cost_item.py +97 -0
  1027. moolabs/models/plan_create.py +140 -0
  1028. moolabs/models/plan_create_request.py +103 -0
  1029. moolabs/models/plan_order_by.py +40 -0
  1030. moolabs/models/plan_paginated_response.py +101 -0
  1031. moolabs/models/plan_phase.py +113 -0
  1032. moolabs/models/plan_pricing_input.py +103 -0
  1033. moolabs/models/plan_pricing_sync_request.py +105 -0
  1034. moolabs/models/plan_pricing_view.py +107 -0
  1035. moolabs/models/plan_ref_payload.py +91 -0
  1036. moolabs/models/plan_reference.py +106 -0
  1037. moolabs/models/plan_reference_input.py +97 -0
  1038. moolabs/models/plan_replace_update.py +122 -0
  1039. moolabs/models/plan_status.py +39 -0
  1040. moolabs/models/plan_subscription_change.py +153 -0
  1041. moolabs/models/plan_subscription_create.py +167 -0
  1042. moolabs/models/policy_update_request.py +94 -0
  1043. moolabs/models/pool_notification_config_request.py +87 -0
  1044. moolabs/models/pooloverrides_value.py +152 -0
  1045. moolabs/models/portal_case_response.py +108 -0
  1046. moolabs/models/portal_channel_preference_request.py +100 -0
  1047. moolabs/models/portal_dispute_request.py +94 -0
  1048. moolabs/models/portal_dispute_response.py +102 -0
  1049. moolabs/models/portal_invoice_response.py +124 -0
  1050. moolabs/models/portal_payment_intent_response.py +91 -0
  1051. moolabs/models/portal_payment_request.py +102 -0
  1052. moolabs/models/portal_preferences_request.py +113 -0
  1053. moolabs/models/portal_preferences_response.py +87 -0
  1054. moolabs/models/portal_promise_to_pay_response.py +106 -0
  1055. moolabs/models/portal_ptp_request.py +95 -0
  1056. moolabs/models/portal_token.py +121 -0
  1057. moolabs/models/portal_token_item.py +97 -0
  1058. moolabs/models/preview_resolution_request.py +89 -0
  1059. moolabs/models/preview_resolution_response.py +101 -0
  1060. moolabs/models/preview_template_request.py +102 -0
  1061. moolabs/models/preview_template_response.py +95 -0
  1062. moolabs/models/preview_trace_entry.py +97 -0
  1063. moolabs/models/previous.py +152 -0
  1064. moolabs/models/price_payment_term.py +37 -0
  1065. moolabs/models/price_session_response.py +109 -0
  1066. moolabs/models/price_tier.py +110 -0
  1067. moolabs/models/price_tier_payload.py +103 -0
  1068. moolabs/models/pricing_override_input.py +100 -0
  1069. moolabs/models/pricing_result.py +100 -0
  1070. moolabs/models/pricing_snapshot_response.py +109 -0
  1071. moolabs/models/pricing_tier_input.py +90 -0
  1072. moolabs/models/priority.py +38 -0
  1073. moolabs/models/pro_rating_config.py +90 -0
  1074. moolabs/models/pro_rating_mode.py +36 -0
  1075. moolabs/models/process_value_recognition_request.py +94 -0
  1076. moolabs/models/progress.py +94 -0
  1077. moolabs/models/projection_link_in.py +91 -0
  1078. moolabs/models/projection_links_request.py +98 -0
  1079. moolabs/models/projection_links_response.py +89 -0
  1080. moolabs/models/promise_response.py +112 -0
  1081. moolabs/models/promote_response.py +89 -0
  1082. moolabs/models/provider_billing_reference.py +146 -0
  1083. moolabs/models/provider_billing_reference_kind.py +37 -0
  1084. moolabs/models/provider_blocking_reason.py +115 -0
  1085. moolabs/models/provider_confirmation_repair_request.py +99 -0
  1086. moolabs/models/provider_connection_status.py +42 -0
  1087. moolabs/models/provider_identity_details.py +110 -0
  1088. moolabs/models/provider_identity_purpose.py +38 -0
  1089. moolabs/models/provider_kind.py +37 -0
  1090. moolabs/models/provider_readiness_response.py +97 -0
  1091. moolabs/models/provider_readiness_summary.py +123 -0
  1092. moolabs/models/provider_route_status.py +39 -0
  1093. moolabs/models/provider_safe_test_send_request.py +107 -0
  1094. moolabs/models/provider_safe_test_send_response.py +109 -0
  1095. moolabs/models/provider_summary.py +89 -0
  1096. moolabs/models/provider_warning.py +115 -0
  1097. moolabs/models/ptp_approval_request.py +88 -0
  1098. moolabs/models/ptp_create_request.py +103 -0
  1099. moolabs/models/ptp_fulfill_request.py +90 -0
  1100. moolabs/models/ptp_payment_link_response.py +89 -0
  1101. moolabs/models/ptp_summary_response.py +104 -0
  1102. moolabs/models/publish_plan_request.py +93 -0
  1103. moolabs/models/publish_plan_result.py +93 -0
  1104. moolabs/models/publish_template_request.py +96 -0
  1105. moolabs/models/put_account_segment_request.py +89 -0
  1106. moolabs/models/put_sku_eligibility_request.py +89 -0
  1107. moolabs/models/put_tenant_segments_request.py +89 -0
  1108. moolabs/models/quality_axis.py +116 -0
  1109. moolabs/models/quality_caveat_code.py +40 -0
  1110. moolabs/models/quality_status.py +40 -0
  1111. moolabs/models/quality_summary.py +135 -0
  1112. moolabs/models/quantity.py +153 -0
  1113. moolabs/models/quick_action.py +99 -0
  1114. moolabs/models/quick_books_connect_request.py +93 -0
  1115. moolabs/models/quick_redline_response.py +123 -0
  1116. moolabs/models/quote_agent_evaluation_response.py +106 -0
  1117. moolabs/models/quote_agent_policy_response.py +112 -0
  1118. moolabs/models/quote_agent_provenance_run_response.py +114 -0
  1119. moolabs/models/quote_agent_run_response.py +122 -0
  1120. moolabs/models/quote_approval_decision_request.py +88 -0
  1121. moolabs/models/quote_approval_response.py +107 -0
  1122. moolabs/models/quote_line_item_input.py +144 -0
  1123. moolabs/models/quote_list_response.py +101 -0
  1124. moolabs/models/quote_metrics_response.py +105 -0
  1125. moolabs/models/quote_redline_decision_request.py +88 -0
  1126. moolabs/models/quote_redline_response.py +125 -0
  1127. moolabs/models/quote_response.py +125 -0
  1128. moolabs/models/quote_template_list_response.py +95 -0
  1129. moolabs/models/quote_template_response.py +109 -0
  1130. moolabs/models/quote_version_response.py +129 -0
  1131. moolabs/models/ram_cost_weight.py +152 -0
  1132. moolabs/models/ram_gib_hours.py +152 -0
  1133. moolabs/models/rate_bulk_import_request.py +97 -0
  1134. moolabs/models/rate_bulk_import_response.py +91 -0
  1135. moolabs/models/rate_card.py +150 -0
  1136. moolabs/models/rate_card_boolean_entitlement.py +96 -0
  1137. moolabs/models/rate_card_cost_list_response.py +95 -0
  1138. moolabs/models/rate_card_cost_row.py +103 -0
  1139. moolabs/models/rate_card_discount.py +87 -0
  1140. moolabs/models/rate_card_discount_input.py +103 -0
  1141. moolabs/models/rate_card_discount_payload.py +87 -0
  1142. moolabs/models/rate_card_entitlement.py +164 -0
  1143. moolabs/models/rate_card_flat_fee.py +148 -0
  1144. moolabs/models/rate_card_metered_entitlement.py +107 -0
  1145. moolabs/models/rate_card_payload.py +103 -0
  1146. moolabs/models/rate_card_response.py +106 -0
  1147. moolabs/models/rate_card_static_entitlement.py +98 -0
  1148. moolabs/models/rate_card_usage_based.py +148 -0
  1149. moolabs/models/rate_card_usage_based_price.py +192 -0
  1150. moolabs/models/rate_catalog_create.py +117 -0
  1151. moolabs/models/rate_catalog_response.py +118 -0
  1152. moolabs/models/rate_catalog_update.py +107 -0
  1153. moolabs/models/rate_generation_list_view.py +97 -0
  1154. moolabs/models/rate_generation_view.py +98 -0
  1155. moolabs/models/rate_per_unit.py +153 -0
  1156. moolabs/models/rate_per_unit1.py +153 -0
  1157. moolabs/models/rate_schedule_list_response.py +95 -0
  1158. moolabs/models/rate_schedule_preview_response.py +105 -0
  1159. moolabs/models/rate_schedule_version_out.py +101 -0
  1160. moolabs/models/ratify_family_request.py +91 -0
  1161. moolabs/models/ratify_refinement_request.py +93 -0
  1162. moolabs/models/re_scope_request.py +89 -0
  1163. moolabs/models/readiness_summary.py +89 -0
  1164. moolabs/models/readout_page_response.py +119 -0
  1165. moolabs/models/readout_row_response.py +104 -0
  1166. moolabs/models/readout_snapshot_response.py +116 -0
  1167. moolabs/models/reallocate_request.py +90 -0
  1168. moolabs/models/reallocate_response.py +97 -0
  1169. moolabs/models/reattempt_request.py +88 -0
  1170. moolabs/models/reattempt_response.py +89 -0
  1171. moolabs/models/recall_request.py +87 -0
  1172. moolabs/models/reconcile_request.py +89 -0
  1173. moolabs/models/reconcile_response.py +95 -0
  1174. moolabs/models/reconciliation_basis.py +99 -0
  1175. moolabs/models/reconciliation_basis_out.py +95 -0
  1176. moolabs/models/reconstruction_run_response.py +95 -0
  1177. moolabs/models/record_usage_request.py +115 -0
  1178. moolabs/models/recurring_period.py +96 -0
  1179. moolabs/models/recurring_period_create_input.py +94 -0
  1180. moolabs/models/recurring_period_interval.py +151 -0
  1181. moolabs/models/recurring_period_interval_enum.py +39 -0
  1182. moolabs/models/recurring_period_v2.py +94 -0
  1183. moolabs/models/recurringamount.py +152 -0
  1184. moolabs/models/redline_summary.py +89 -0
  1185. moolabs/models/refund_credit_request.py +90 -0
  1186. moolabs/models/reject_rate_generation_request.py +87 -0
  1187. moolabs/models/remittance_create_request.py +103 -0
  1188. moolabs/models/remittance_list_response.py +101 -0
  1189. moolabs/models/remittance_response.py +120 -0
  1190. moolabs/models/remove_contract_participant_response.py +131 -0
  1191. moolabs/models/remove_phase_shifting.py +37 -0
  1192. moolabs/models/replace_levels_request.py +95 -0
  1193. moolabs/models/replay_dead_letter_request.py +89 -0
  1194. moolabs/models/report_create_request.py +105 -0
  1195. moolabs/models/report_create_response.py +139 -0
  1196. moolabs/models/reporting_line_total.py +153 -0
  1197. moolabs/models/reporting_total_cost.py +153 -0
  1198. moolabs/models/request_cost_distribution.py +127 -0
  1199. moolabs/models/request_evidence_response.py +197 -0
  1200. moolabs/models/request_evidence_row.py +154 -0
  1201. moolabs/models/request_pricing_state.py +40 -0
  1202. moolabs/models/reschedule_request.py +88 -0
  1203. moolabs/models/resend_identity_details.py +104 -0
  1204. moolabs/models/reset_entitlement_usage_input.py +92 -0
  1205. moolabs/models/resolve_unapplied_request.py +87 -0
  1206. moolabs/models/resource_map_create_request.py +103 -0
  1207. moolabs/models/resource_map_response.py +113 -0
  1208. moolabs/models/retry_unpriced_request.py +91 -0
  1209. moolabs/models/retry_unpriced_response.py +91 -0
  1210. moolabs/models/revenue_recognition_request.py +89 -0
  1211. moolabs/models/reversed_settlement_ref.py +93 -0
  1212. moolabs/models/review_quarantined_request.py +95 -0
  1213. moolabs/models/review_quarantined_response.py +95 -0
  1214. moolabs/models/revoke_api_key_request.py +87 -0
  1215. moolabs/models/revoke_portal_token_request.py +87 -0
  1216. moolabs/models/rollover_mode.py +38 -0
  1217. moolabs/models/rollover_request.py +95 -0
  1218. moolabs/models/rollover_response.py +98 -0
  1219. moolabs/models/rollovercapamount.py +152 -0
  1220. moolabs/models/rolloverpercent.py +152 -0
  1221. moolabs/models/rotate_key_request.py +88 -0
  1222. moolabs/models/rotate_key_response.py +92 -0
  1223. moolabs/models/route_update_request.py +110 -0
  1224. moolabs/models/salesforce_connect_request.py +93 -0
  1225. moolabs/models/sample_rate.py +153 -0
  1226. moolabs/models/sandbox_app.py +138 -0
  1227. moolabs/models/sandbox_app_replace_update.py +101 -0
  1228. moolabs/models/sandbox_customer_app_data.py +115 -0
  1229. moolabs/models/save_redline_edit_request.py +95 -0
  1230. moolabs/models/scenario_compare_response.py +97 -0
  1231. moolabs/models/scenario_item.py +117 -0
  1232. moolabs/models/scenario_request.py +96 -0
  1233. moolabs/models/scope_type.py +38 -0
  1234. moolabs/models/sdk_batch_ingest_request.py +96 -0
  1235. moolabs/models/sdk_batch_ingest_response.py +91 -0
  1236. moolabs/models/sdk_event.py +111 -0
  1237. moolabs/models/sdk_span.py +106 -0
  1238. moolabs/models/segment_out.py +95 -0
  1239. moolabs/models/sender_response.py +93 -0
  1240. moolabs/models/sender_update.py +93 -0
  1241. moolabs/models/ses_identity_details.py +127 -0
  1242. moolabs/models/ses_provider_scope_status.py +89 -0
  1243. moolabs/models/set_rate_card_cost_request.py +89 -0
  1244. moolabs/models/severity.py +38 -0
  1245. moolabs/models/shadow_mode_request.py +87 -0
  1246. moolabs/models/shadow_run_list_item.py +101 -0
  1247. moolabs/models/shadow_run_metrics.py +114 -0
  1248. moolabs/models/shadow_run_request.py +92 -0
  1249. moolabs/models/shadow_run_summary.py +95 -0
  1250. moolabs/models/simulate_margin_request.py +100 -0
  1251. moolabs/models/simulate_margin_response.py +115 -0
  1252. moolabs/models/simulate_out.py +103 -0
  1253. moolabs/models/sku_eligibility_list_response.py +95 -0
  1254. moolabs/models/sku_eligibility_row.py +91 -0
  1255. moolabs/models/slack_quote_command_response.py +93 -0
  1256. moolabs/models/snapshot_compute_request.py +104 -0
  1257. moolabs/models/snapshot_compute_response.py +99 -0
  1258. moolabs/models/snapshot_response.py +104 -0
  1259. moolabs/models/sns_confirmation_command_out.py +98 -0
  1260. moolabs/models/sns_confirmation_confirmed_out.py +94 -0
  1261. moolabs/models/sns_confirmation_confirmed_request.py +101 -0
  1262. moolabs/models/sns_confirmation_list_out.py +95 -0
  1263. moolabs/models/sort_direction.py +37 -0
  1264. moolabs/models/sort_order.py +37 -0
  1265. moolabs/models/spend_summary.py +114 -0
  1266. moolabs/models/stage_schema.py +117 -0
  1267. moolabs/models/strategy_create_request.py +130 -0
  1268. moolabs/models/strategy_preview_request.py +87 -0
  1269. moolabs/models/strategy_update_request.py +133 -0
  1270. moolabs/models/stripe_api_key_input.py +87 -0
  1271. moolabs/models/stripe_app.py +150 -0
  1272. moolabs/models/stripe_app_replace_update.py +103 -0
  1273. moolabs/models/stripe_checkout_session_mode.py +36 -0
  1274. moolabs/models/stripe_customer_app_data.py +119 -0
  1275. moolabs/models/stripe_customer_app_data_base.py +89 -0
  1276. moolabs/models/stripe_customer_app_data_create_or_update_item.py +111 -0
  1277. moolabs/models/stripe_customer_portal_session.py +102 -0
  1278. moolabs/models/stripe_tax_config.py +95 -0
  1279. moolabs/models/stripe_webhook_event.py +99 -0
  1280. moolabs/models/stripe_webhook_event_data.py +92 -0
  1281. moolabs/models/stripe_webhook_response.py +118 -0
  1282. moolabs/models/subject.py +122 -0
  1283. moolabs/models/subject_upsert.py +98 -0
  1284. moolabs/models/subscription.py +201 -0
  1285. moolabs/models/subscription_activate_request.py +101 -0
  1286. moolabs/models/subscription_addon.py +167 -0
  1287. moolabs/models/subscription_addon_create.py +106 -0
  1288. moolabs/models/subscription_addon_rate_card.py +94 -0
  1289. moolabs/models/subscription_addon_timeline_segment.py +95 -0
  1290. moolabs/models/subscription_addon_update.py +100 -0
  1291. moolabs/models/subscription_alignment.py +93 -0
  1292. moolabs/models/subscription_bad_request_error_response.py +102 -0
  1293. moolabs/models/subscription_change.py +147 -0
  1294. moolabs/models/subscription_change_response_body.py +97 -0
  1295. moolabs/models/subscription_conflict_error_response.py +102 -0
  1296. moolabs/models/subscription_create.py +147 -0
  1297. moolabs/models/subscription_edit.py +102 -0
  1298. moolabs/models/subscription_edit_operation.py +206 -0
  1299. moolabs/models/subscription_error_extensions.py +95 -0
  1300. moolabs/models/subscription_expanded.py +211 -0
  1301. moolabs/models/subscription_item.py +167 -0
  1302. moolabs/models/subscription_item_included.py +97 -0
  1303. moolabs/models/subscription_item_price_override.py +111 -0
  1304. moolabs/models/subscription_item_price_override_type.py +37 -0
  1305. moolabs/models/subscription_paginated_response.py +101 -0
  1306. moolabs/models/subscription_phase_create.py +109 -0
  1307. moolabs/models/subscription_phase_expanded.py +163 -0
  1308. moolabs/models/subscription_ramp_phase.py +91 -0
  1309. moolabs/models/subscription_status.py +39 -0
  1310. moolabs/models/subscription_timing.py +151 -0
  1311. moolabs/models/subscription_timing_enum.py +37 -0
  1312. moolabs/models/sync_config_request.py +109 -0
  1313. moolabs/models/sync_config_response.py +111 -0
  1314. moolabs/models/sync_invoices_request.py +87 -0
  1315. moolabs/models/sync_run_item.py +102 -0
  1316. moolabs/models/synthetic_request_evidence_row.py +118 -0
  1317. moolabs/models/task_complete_request.py +92 -0
  1318. moolabs/models/task_list_response.py +101 -0
  1319. moolabs/models/task_response.py +130 -0
  1320. moolabs/models/task_update.py +93 -0
  1321. moolabs/models/tax_behavior.py +37 -0
  1322. moolabs/models/tax_config.py +100 -0
  1323. moolabs/models/template_archive_request.py +88 -0
  1324. moolabs/models/template_card_action_request.py +99 -0
  1325. moolabs/models/template_item.py +97 -0
  1326. moolabs/models/template_key_create_request.py +92 -0
  1327. moolabs/models/template_key_list_response.py +116 -0
  1328. moolabs/models/template_key_response.py +126 -0
  1329. moolabs/models/template_meta_response.py +93 -0
  1330. moolabs/models/template_preview_request.py +87 -0
  1331. moolabs/models/template_preview_response.py +101 -0
  1332. moolabs/models/template_test_send_request.py +87 -0
  1333. moolabs/models/template_test_send_response.py +93 -0
  1334. moolabs/models/template_update.py +91 -0
  1335. moolabs/models/template_version_list_response.py +95 -0
  1336. moolabs/models/template_version_response.py +143 -0
  1337. moolabs/models/tenant_config_response.py +95 -0
  1338. moolabs/models/tenant_escalation_config_out.py +97 -0
  1339. moolabs/models/tenant_escalation_config_patch.py +92 -0
  1340. moolabs/models/tenant_provision_request.py +89 -0
  1341. moolabs/models/tenant_segment_entry.py +89 -0
  1342. moolabs/models/tenant_segments_response.py +97 -0
  1343. moolabs/models/tenant_unit_economics.py +97 -0
  1344. moolabs/models/territory_in.py +89 -0
  1345. moolabs/models/test_send_request.py +104 -0
  1346. moolabs/models/test_send_response.py +93 -0
  1347. moolabs/models/tiered_price_mode.py +37 -0
  1348. moolabs/models/tiered_price_with_commitments.py +132 -0
  1349. moolabs/models/tiered_pricing_payload.py +97 -0
  1350. moolabs/models/timestamp_window.py +103 -0
  1351. moolabs/models/top_consumer.py +93 -0
  1352. moolabs/models/topup_defaults_request.py +93 -0
  1353. moolabs/models/total_cost.py +153 -0
  1354. moolabs/models/traces_response.py +95 -0
  1355. moolabs/models/trend_data_point.py +91 -0
  1356. moolabs/models/trend_point.py +116 -0
  1357. moolabs/models/trigger_request.py +87 -0
  1358. moolabs/models/ulidor_external_key.py +153 -0
  1359. moolabs/models/unapplied_cash_response.py +106 -0
  1360. moolabs/models/unavailable_reason.py +66 -0
  1361. moolabs/models/unexpected_problem_response.py +111 -0
  1362. moolabs/models/unified_price_row_input.py +99 -0
  1363. moolabs/models/unified_price_row_out.py +109 -0
  1364. moolabs/models/unit_cost.py +153 -0
  1365. moolabs/models/unit_economics.py +97 -0
  1366. moolabs/models/unit_price.py +104 -0
  1367. moolabs/models/unit_price_with_commitments.py +128 -0
  1368. moolabs/models/unitamount.py +152 -0
  1369. moolabs/models/update_approval_policy_request.py +87 -0
  1370. moolabs/models/update_auto_topup_rule_request.py +102 -0
  1371. moolabs/models/update_credit_pool_request.py +98 -0
  1372. moolabs/models/update_quote_template_request.py +102 -0
  1373. moolabs/models/update_threshold_request.py +97 -0
  1374. moolabs/models/update_wallet_settings_request.py +95 -0
  1375. moolabs/models/update_wallet_thresholds_request.py +92 -0
  1376. moolabs/models/upsert_fx_rate_request.py +92 -0
  1377. moolabs/models/upsert_provider_identity_request.py +115 -0
  1378. moolabs/models/upto.py +152 -0
  1379. moolabs/models/usage_summary_window_size.py +37 -0
  1380. moolabs/models/validate_template_request.py +116 -0
  1381. moolabs/models/validate_template_response.py +89 -0
  1382. moolabs/models/validation_error.py +99 -0
  1383. moolabs/models/validation_error_loc_inner.py +152 -0
  1384. moolabs/models/validation_issue.py +135 -0
  1385. moolabs/models/validation_issue_severity.py +37 -0
  1386. moolabs/models/validation_response.py +105 -0
  1387. moolabs/models/value_recognition_response.py +93 -0
  1388. moolabs/models/variance_decomposition_out.py +117 -0
  1389. moolabs/models/variance_summary_response.py +101 -0
  1390. moolabs/models/verification_status.py +39 -0
  1391. moolabs/models/void_grant_request.py +88 -0
  1392. moolabs/models/void_invoice_action_create.py +93 -0
  1393. moolabs/models/void_invoice_action_create_item.py +93 -0
  1394. moolabs/models/void_invoice_action_input.py +103 -0
  1395. moolabs/models/void_invoice_action_line_override.py +101 -0
  1396. moolabs/models/void_invoice_line_action_create.py +150 -0
  1397. moolabs/models/void_invoice_line_action_create_item.py +150 -0
  1398. moolabs/models/void_invoice_line_discard_action.py +94 -0
  1399. moolabs/models/void_invoice_line_pending_action_create.py +97 -0
  1400. moolabs/models/void_invoice_line_pending_action_create_item.py +97 -0
  1401. moolabs/models/volume_summary.py +114 -0
  1402. moolabs/models/wallet_owner_type.py +43 -0
  1403. moolabs/models/wallet_policy.py +38 -0
  1404. moolabs/models/wallet_response.py +112 -0
  1405. moolabs/models/wallet_state_response.py +105 -0
  1406. moolabs/models/warning_item.py +93 -0
  1407. moolabs/models/webhook_response.py +95 -0
  1408. moolabs/models/webhook_update.py +95 -0
  1409. moolabs/models/window_size.py +39 -0
  1410. moolabs/models/windowed_balance_history.py +105 -0
  1411. moolabs/models/xero_connect_request.py +91 -0
  1412. moolabs/py.typed +0 -0
  1413. moolabs/rest.py +257 -0
  1414. moolabs-0.3.0.dist-info/METADATA +31 -0
  1415. moolabs-0.3.0.dist-info/RECORD +1417 -0
  1416. moolabs-0.3.0.dist-info/WHEEL +5 -0
  1417. moolabs-0.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4402 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Moolabs API
5
+
6
+ Unified Moolabs SDK. Capability-based public surface stitched from internal service specs: bff, meter, arc, acute. Customers see capability namespaces (usage, billing, collections, etc.); the SDK routes per-operation internally.
7
+
8
+ The version of the OpenAPI document: 0.3.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import StrictStr
20
+ from typing import Any, Optional
21
+ from moolabs.models.cash_app_config_update_request import CashAppConfigUpdateRequest
22
+ from moolabs.models.kill_switch_request import KillSwitchRequest
23
+ from moolabs.models.policy_update_request import PolicyUpdateRequest
24
+ from moolabs.models.shadow_mode_request import ShadowModeRequest
25
+ from moolabs.models.strategy_create_request import StrategyCreateRequest
26
+ from moolabs.models.strategy_preview_request import StrategyPreviewRequest
27
+ from moolabs.models.strategy_update_request import StrategyUpdateRequest
28
+
29
+ from moolabs.api_client import ApiClient, RequestSerialized
30
+ from moolabs.api_response import ApiResponse
31
+ from moolabs.rest import RESTResponseType
32
+
33
+
34
+ class GovernanceApi:
35
+ """NOTE: This class is auto generated by OpenAPI Generator
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+ """
40
+
41
+ def __init__(self, api_client=None) -> None:
42
+ if api_client is None:
43
+ api_client = ApiClient.get_default()
44
+ self.api_client = api_client
45
+
46
+
47
+ @validate_call
48
+ def create_strategy_endpoint(
49
+ self,
50
+ strategy_create_request: StrategyCreateRequest,
51
+ x_api_key: Optional[StrictStr] = None,
52
+ x_tenant_id: Optional[StrictStr] = None,
53
+ x_org_id: Optional[StrictStr] = None,
54
+ authorization: Optional[StrictStr] = None,
55
+ _request_timeout: Union[
56
+ None,
57
+ Annotated[StrictFloat, Field(gt=0)],
58
+ Tuple[
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Annotated[StrictFloat, Field(gt=0)]
61
+ ]
62
+ ] = None,
63
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
64
+ _content_type: Optional[StrictStr] = None,
65
+ _headers: Optional[Dict[StrictStr, Any]] = None,
66
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
67
+ ) -> object:
68
+ """Create Strategy Endpoint
69
+
70
+ POST /governance/strategies — Create a new dunning strategy.
71
+
72
+ :param strategy_create_request: (required)
73
+ :type strategy_create_request: StrategyCreateRequest
74
+ :param x_api_key:
75
+ :type x_api_key: str
76
+ :param x_tenant_id:
77
+ :type x_tenant_id: str
78
+ :param x_org_id:
79
+ :type x_org_id: str
80
+ :param authorization:
81
+ :type authorization: str
82
+ :param _request_timeout: timeout setting for this request. If one
83
+ number provided, it will be total request
84
+ timeout. It can also be a pair (tuple) of
85
+ (connection, read) timeouts.
86
+ :type _request_timeout: int, tuple(int, int), optional
87
+ :param _request_auth: set to override the auth_settings for an a single
88
+ request; this effectively ignores the
89
+ authentication in the spec for a single request.
90
+ :type _request_auth: dict, optional
91
+ :param _content_type: force content-type for the request.
92
+ :type _content_type: str, Optional
93
+ :param _headers: set to override the headers for a single
94
+ request; this effectively ignores the headers
95
+ in the spec for a single request.
96
+ :type _headers: dict, optional
97
+ :param _host_index: set to override the host_index for a single
98
+ request; this effectively ignores the host_index
99
+ in the spec for a single request.
100
+ :type _host_index: int, optional
101
+ :return: Returns the result object.
102
+ """ # noqa: E501
103
+
104
+ _param = self._create_strategy_endpoint_serialize(
105
+ strategy_create_request=strategy_create_request,
106
+ x_api_key=x_api_key,
107
+ x_tenant_id=x_tenant_id,
108
+ x_org_id=x_org_id,
109
+ authorization=authorization,
110
+ _request_auth=_request_auth,
111
+ _content_type=_content_type,
112
+ _headers=_headers,
113
+ _host_index=_host_index
114
+ )
115
+
116
+ _response_types_map: Dict[str, Optional[str]] = {
117
+ '201': "object",
118
+ '422': "ArcHTTPValidationError",
119
+ }
120
+ response_data = self.api_client.call_api(
121
+ *_param,
122
+ _request_timeout=_request_timeout
123
+ )
124
+ response_data.read()
125
+ return self.api_client.response_deserialize(
126
+ response_data=response_data,
127
+ response_types_map=_response_types_map,
128
+ ).data
129
+
130
+
131
+ @validate_call
132
+ def create_strategy_endpoint_with_http_info(
133
+ self,
134
+ strategy_create_request: StrategyCreateRequest,
135
+ x_api_key: Optional[StrictStr] = None,
136
+ x_tenant_id: Optional[StrictStr] = None,
137
+ x_org_id: Optional[StrictStr] = None,
138
+ authorization: Optional[StrictStr] = None,
139
+ _request_timeout: Union[
140
+ None,
141
+ Annotated[StrictFloat, Field(gt=0)],
142
+ Tuple[
143
+ Annotated[StrictFloat, Field(gt=0)],
144
+ Annotated[StrictFloat, Field(gt=0)]
145
+ ]
146
+ ] = None,
147
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
148
+ _content_type: Optional[StrictStr] = None,
149
+ _headers: Optional[Dict[StrictStr, Any]] = None,
150
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
151
+ ) -> ApiResponse[object]:
152
+ """Create Strategy Endpoint
153
+
154
+ POST /governance/strategies — Create a new dunning strategy.
155
+
156
+ :param strategy_create_request: (required)
157
+ :type strategy_create_request: StrategyCreateRequest
158
+ :param x_api_key:
159
+ :type x_api_key: str
160
+ :param x_tenant_id:
161
+ :type x_tenant_id: str
162
+ :param x_org_id:
163
+ :type x_org_id: str
164
+ :param authorization:
165
+ :type authorization: str
166
+ :param _request_timeout: timeout setting for this request. If one
167
+ number provided, it will be total request
168
+ timeout. It can also be a pair (tuple) of
169
+ (connection, read) timeouts.
170
+ :type _request_timeout: int, tuple(int, int), optional
171
+ :param _request_auth: set to override the auth_settings for an a single
172
+ request; this effectively ignores the
173
+ authentication in the spec for a single request.
174
+ :type _request_auth: dict, optional
175
+ :param _content_type: force content-type for the request.
176
+ :type _content_type: str, Optional
177
+ :param _headers: set to override the headers for a single
178
+ request; this effectively ignores the headers
179
+ in the spec for a single request.
180
+ :type _headers: dict, optional
181
+ :param _host_index: set to override the host_index for a single
182
+ request; this effectively ignores the host_index
183
+ in the spec for a single request.
184
+ :type _host_index: int, optional
185
+ :return: Returns the result object.
186
+ """ # noqa: E501
187
+
188
+ _param = self._create_strategy_endpoint_serialize(
189
+ strategy_create_request=strategy_create_request,
190
+ x_api_key=x_api_key,
191
+ x_tenant_id=x_tenant_id,
192
+ x_org_id=x_org_id,
193
+ authorization=authorization,
194
+ _request_auth=_request_auth,
195
+ _content_type=_content_type,
196
+ _headers=_headers,
197
+ _host_index=_host_index
198
+ )
199
+
200
+ _response_types_map: Dict[str, Optional[str]] = {
201
+ '201': "object",
202
+ '422': "ArcHTTPValidationError",
203
+ }
204
+ response_data = self.api_client.call_api(
205
+ *_param,
206
+ _request_timeout=_request_timeout
207
+ )
208
+ response_data.read()
209
+ return self.api_client.response_deserialize(
210
+ response_data=response_data,
211
+ response_types_map=_response_types_map,
212
+ )
213
+
214
+
215
+ @validate_call
216
+ def create_strategy_endpoint_without_preload_content(
217
+ self,
218
+ strategy_create_request: StrategyCreateRequest,
219
+ x_api_key: Optional[StrictStr] = None,
220
+ x_tenant_id: Optional[StrictStr] = None,
221
+ x_org_id: Optional[StrictStr] = None,
222
+ authorization: Optional[StrictStr] = None,
223
+ _request_timeout: Union[
224
+ None,
225
+ Annotated[StrictFloat, Field(gt=0)],
226
+ Tuple[
227
+ Annotated[StrictFloat, Field(gt=0)],
228
+ Annotated[StrictFloat, Field(gt=0)]
229
+ ]
230
+ ] = None,
231
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
232
+ _content_type: Optional[StrictStr] = None,
233
+ _headers: Optional[Dict[StrictStr, Any]] = None,
234
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
235
+ ) -> RESTResponseType:
236
+ """Create Strategy Endpoint
237
+
238
+ POST /governance/strategies — Create a new dunning strategy.
239
+
240
+ :param strategy_create_request: (required)
241
+ :type strategy_create_request: StrategyCreateRequest
242
+ :param x_api_key:
243
+ :type x_api_key: str
244
+ :param x_tenant_id:
245
+ :type x_tenant_id: str
246
+ :param x_org_id:
247
+ :type x_org_id: str
248
+ :param authorization:
249
+ :type authorization: str
250
+ :param _request_timeout: timeout setting for this request. If one
251
+ number provided, it will be total request
252
+ timeout. It can also be a pair (tuple) of
253
+ (connection, read) timeouts.
254
+ :type _request_timeout: int, tuple(int, int), optional
255
+ :param _request_auth: set to override the auth_settings for an a single
256
+ request; this effectively ignores the
257
+ authentication in the spec for a single request.
258
+ :type _request_auth: dict, optional
259
+ :param _content_type: force content-type for the request.
260
+ :type _content_type: str, Optional
261
+ :param _headers: set to override the headers for a single
262
+ request; this effectively ignores the headers
263
+ in the spec for a single request.
264
+ :type _headers: dict, optional
265
+ :param _host_index: set to override the host_index for a single
266
+ request; this effectively ignores the host_index
267
+ in the spec for a single request.
268
+ :type _host_index: int, optional
269
+ :return: Returns the result object.
270
+ """ # noqa: E501
271
+
272
+ _param = self._create_strategy_endpoint_serialize(
273
+ strategy_create_request=strategy_create_request,
274
+ x_api_key=x_api_key,
275
+ x_tenant_id=x_tenant_id,
276
+ x_org_id=x_org_id,
277
+ authorization=authorization,
278
+ _request_auth=_request_auth,
279
+ _content_type=_content_type,
280
+ _headers=_headers,
281
+ _host_index=_host_index
282
+ )
283
+
284
+ _response_types_map: Dict[str, Optional[str]] = {
285
+ '201': "object",
286
+ '422': "ArcHTTPValidationError",
287
+ }
288
+ response_data = self.api_client.call_api(
289
+ *_param,
290
+ _request_timeout=_request_timeout
291
+ )
292
+ return response_data.response
293
+
294
+
295
+ def _create_strategy_endpoint_serialize(
296
+ self,
297
+ strategy_create_request,
298
+ x_api_key,
299
+ x_tenant_id,
300
+ x_org_id,
301
+ authorization,
302
+ _request_auth,
303
+ _content_type,
304
+ _headers,
305
+ _host_index,
306
+ ) -> RequestSerialized:
307
+
308
+ _host = None
309
+
310
+ _collection_formats: Dict[str, str] = {
311
+ }
312
+
313
+ _path_params: Dict[str, str] = {}
314
+ _query_params: List[Tuple[str, str]] = []
315
+ _header_params: Dict[str, Optional[str]] = _headers or {}
316
+ _form_params: List[Tuple[str, str]] = []
317
+ _files: Dict[
318
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
319
+ ] = {}
320
+ _body_params: Optional[bytes] = None
321
+
322
+ # process the path parameters
323
+ # process the query parameters
324
+ # process the header parameters
325
+ if x_api_key is not None:
326
+ _header_params['X-API-Key'] = x_api_key
327
+ if x_tenant_id is not None:
328
+ _header_params['X-Tenant-Id'] = x_tenant_id
329
+ if x_org_id is not None:
330
+ _header_params['X-Org-Id'] = x_org_id
331
+ if authorization is not None:
332
+ _header_params['Authorization'] = authorization
333
+ # process the form parameters
334
+ # process the body parameter
335
+ if strategy_create_request is not None:
336
+ _body_params = strategy_create_request
337
+
338
+
339
+ # set the HTTP header `Accept`
340
+ if 'Accept' not in _header_params:
341
+ _header_params['Accept'] = self.api_client.select_header_accept(
342
+ [
343
+ 'application/json'
344
+ ]
345
+ )
346
+
347
+ # set the HTTP header `Content-Type`
348
+ if _content_type:
349
+ _header_params['Content-Type'] = _content_type
350
+ else:
351
+ _default_content_type = (
352
+ self.api_client.select_header_content_type(
353
+ [
354
+ 'application/json'
355
+ ]
356
+ )
357
+ )
358
+ if _default_content_type is not None:
359
+ _header_params['Content-Type'] = _default_content_type
360
+
361
+ # authentication setting
362
+ _auth_settings: List[str] = [
363
+ ]
364
+
365
+ return self.api_client.param_serialize(
366
+ method='POST',
367
+ resource_path='/v1/arc/governance/strategies',
368
+ path_params=_path_params,
369
+ query_params=_query_params,
370
+ header_params=_header_params,
371
+ body=_body_params,
372
+ post_params=_form_params,
373
+ files=_files,
374
+ auth_settings=_auth_settings,
375
+ collection_formats=_collection_formats,
376
+ _host=_host,
377
+ _request_auth=_request_auth
378
+ )
379
+
380
+
381
+
382
+
383
+ @validate_call
384
+ def delete_strategy_endpoint(
385
+ self,
386
+ strategy_id: StrictStr,
387
+ x_api_key: Optional[StrictStr] = None,
388
+ x_tenant_id: Optional[StrictStr] = None,
389
+ x_org_id: Optional[StrictStr] = None,
390
+ authorization: Optional[StrictStr] = None,
391
+ _request_timeout: Union[
392
+ None,
393
+ Annotated[StrictFloat, Field(gt=0)],
394
+ Tuple[
395
+ Annotated[StrictFloat, Field(gt=0)],
396
+ Annotated[StrictFloat, Field(gt=0)]
397
+ ]
398
+ ] = None,
399
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
400
+ _content_type: Optional[StrictStr] = None,
401
+ _headers: Optional[Dict[StrictStr, Any]] = None,
402
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
403
+ ) -> object:
404
+ """Delete Strategy Endpoint
405
+
406
+ DELETE /governance/strategies/{id} — Delete a dunning strategy.
407
+
408
+ :param strategy_id: (required)
409
+ :type strategy_id: str
410
+ :param x_api_key:
411
+ :type x_api_key: str
412
+ :param x_tenant_id:
413
+ :type x_tenant_id: str
414
+ :param x_org_id:
415
+ :type x_org_id: str
416
+ :param authorization:
417
+ :type authorization: str
418
+ :param _request_timeout: timeout setting for this request. If one
419
+ number provided, it will be total request
420
+ timeout. It can also be a pair (tuple) of
421
+ (connection, read) timeouts.
422
+ :type _request_timeout: int, tuple(int, int), optional
423
+ :param _request_auth: set to override the auth_settings for an a single
424
+ request; this effectively ignores the
425
+ authentication in the spec for a single request.
426
+ :type _request_auth: dict, optional
427
+ :param _content_type: force content-type for the request.
428
+ :type _content_type: str, Optional
429
+ :param _headers: set to override the headers for a single
430
+ request; this effectively ignores the headers
431
+ in the spec for a single request.
432
+ :type _headers: dict, optional
433
+ :param _host_index: set to override the host_index for a single
434
+ request; this effectively ignores the host_index
435
+ in the spec for a single request.
436
+ :type _host_index: int, optional
437
+ :return: Returns the result object.
438
+ """ # noqa: E501
439
+
440
+ _param = self._delete_strategy_endpoint_serialize(
441
+ strategy_id=strategy_id,
442
+ x_api_key=x_api_key,
443
+ x_tenant_id=x_tenant_id,
444
+ x_org_id=x_org_id,
445
+ authorization=authorization,
446
+ _request_auth=_request_auth,
447
+ _content_type=_content_type,
448
+ _headers=_headers,
449
+ _host_index=_host_index
450
+ )
451
+
452
+ _response_types_map: Dict[str, Optional[str]] = {
453
+ '200': "object",
454
+ '422': "ArcHTTPValidationError",
455
+ }
456
+ response_data = self.api_client.call_api(
457
+ *_param,
458
+ _request_timeout=_request_timeout
459
+ )
460
+ response_data.read()
461
+ return self.api_client.response_deserialize(
462
+ response_data=response_data,
463
+ response_types_map=_response_types_map,
464
+ ).data
465
+
466
+
467
+ @validate_call
468
+ def delete_strategy_endpoint_with_http_info(
469
+ self,
470
+ strategy_id: StrictStr,
471
+ x_api_key: Optional[StrictStr] = None,
472
+ x_tenant_id: Optional[StrictStr] = None,
473
+ x_org_id: Optional[StrictStr] = None,
474
+ authorization: Optional[StrictStr] = None,
475
+ _request_timeout: Union[
476
+ None,
477
+ Annotated[StrictFloat, Field(gt=0)],
478
+ Tuple[
479
+ Annotated[StrictFloat, Field(gt=0)],
480
+ Annotated[StrictFloat, Field(gt=0)]
481
+ ]
482
+ ] = None,
483
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
484
+ _content_type: Optional[StrictStr] = None,
485
+ _headers: Optional[Dict[StrictStr, Any]] = None,
486
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
487
+ ) -> ApiResponse[object]:
488
+ """Delete Strategy Endpoint
489
+
490
+ DELETE /governance/strategies/{id} — Delete a dunning strategy.
491
+
492
+ :param strategy_id: (required)
493
+ :type strategy_id: str
494
+ :param x_api_key:
495
+ :type x_api_key: str
496
+ :param x_tenant_id:
497
+ :type x_tenant_id: str
498
+ :param x_org_id:
499
+ :type x_org_id: str
500
+ :param authorization:
501
+ :type authorization: str
502
+ :param _request_timeout: timeout setting for this request. If one
503
+ number provided, it will be total request
504
+ timeout. It can also be a pair (tuple) of
505
+ (connection, read) timeouts.
506
+ :type _request_timeout: int, tuple(int, int), optional
507
+ :param _request_auth: set to override the auth_settings for an a single
508
+ request; this effectively ignores the
509
+ authentication in the spec for a single request.
510
+ :type _request_auth: dict, optional
511
+ :param _content_type: force content-type for the request.
512
+ :type _content_type: str, Optional
513
+ :param _headers: set to override the headers for a single
514
+ request; this effectively ignores the headers
515
+ in the spec for a single request.
516
+ :type _headers: dict, optional
517
+ :param _host_index: set to override the host_index for a single
518
+ request; this effectively ignores the host_index
519
+ in the spec for a single request.
520
+ :type _host_index: int, optional
521
+ :return: Returns the result object.
522
+ """ # noqa: E501
523
+
524
+ _param = self._delete_strategy_endpoint_serialize(
525
+ strategy_id=strategy_id,
526
+ x_api_key=x_api_key,
527
+ x_tenant_id=x_tenant_id,
528
+ x_org_id=x_org_id,
529
+ authorization=authorization,
530
+ _request_auth=_request_auth,
531
+ _content_type=_content_type,
532
+ _headers=_headers,
533
+ _host_index=_host_index
534
+ )
535
+
536
+ _response_types_map: Dict[str, Optional[str]] = {
537
+ '200': "object",
538
+ '422': "ArcHTTPValidationError",
539
+ }
540
+ response_data = self.api_client.call_api(
541
+ *_param,
542
+ _request_timeout=_request_timeout
543
+ )
544
+ response_data.read()
545
+ return self.api_client.response_deserialize(
546
+ response_data=response_data,
547
+ response_types_map=_response_types_map,
548
+ )
549
+
550
+
551
+ @validate_call
552
+ def delete_strategy_endpoint_without_preload_content(
553
+ self,
554
+ strategy_id: StrictStr,
555
+ x_api_key: Optional[StrictStr] = None,
556
+ x_tenant_id: Optional[StrictStr] = None,
557
+ x_org_id: Optional[StrictStr] = None,
558
+ authorization: Optional[StrictStr] = None,
559
+ _request_timeout: Union[
560
+ None,
561
+ Annotated[StrictFloat, Field(gt=0)],
562
+ Tuple[
563
+ Annotated[StrictFloat, Field(gt=0)],
564
+ Annotated[StrictFloat, Field(gt=0)]
565
+ ]
566
+ ] = None,
567
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
568
+ _content_type: Optional[StrictStr] = None,
569
+ _headers: Optional[Dict[StrictStr, Any]] = None,
570
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
571
+ ) -> RESTResponseType:
572
+ """Delete Strategy Endpoint
573
+
574
+ DELETE /governance/strategies/{id} — Delete a dunning strategy.
575
+
576
+ :param strategy_id: (required)
577
+ :type strategy_id: str
578
+ :param x_api_key:
579
+ :type x_api_key: str
580
+ :param x_tenant_id:
581
+ :type x_tenant_id: str
582
+ :param x_org_id:
583
+ :type x_org_id: str
584
+ :param authorization:
585
+ :type authorization: str
586
+ :param _request_timeout: timeout setting for this request. If one
587
+ number provided, it will be total request
588
+ timeout. It can also be a pair (tuple) of
589
+ (connection, read) timeouts.
590
+ :type _request_timeout: int, tuple(int, int), optional
591
+ :param _request_auth: set to override the auth_settings for an a single
592
+ request; this effectively ignores the
593
+ authentication in the spec for a single request.
594
+ :type _request_auth: dict, optional
595
+ :param _content_type: force content-type for the request.
596
+ :type _content_type: str, Optional
597
+ :param _headers: set to override the headers for a single
598
+ request; this effectively ignores the headers
599
+ in the spec for a single request.
600
+ :type _headers: dict, optional
601
+ :param _host_index: set to override the host_index for a single
602
+ request; this effectively ignores the host_index
603
+ in the spec for a single request.
604
+ :type _host_index: int, optional
605
+ :return: Returns the result object.
606
+ """ # noqa: E501
607
+
608
+ _param = self._delete_strategy_endpoint_serialize(
609
+ strategy_id=strategy_id,
610
+ x_api_key=x_api_key,
611
+ x_tenant_id=x_tenant_id,
612
+ x_org_id=x_org_id,
613
+ authorization=authorization,
614
+ _request_auth=_request_auth,
615
+ _content_type=_content_type,
616
+ _headers=_headers,
617
+ _host_index=_host_index
618
+ )
619
+
620
+ _response_types_map: Dict[str, Optional[str]] = {
621
+ '200': "object",
622
+ '422': "ArcHTTPValidationError",
623
+ }
624
+ response_data = self.api_client.call_api(
625
+ *_param,
626
+ _request_timeout=_request_timeout
627
+ )
628
+ return response_data.response
629
+
630
+
631
+ def _delete_strategy_endpoint_serialize(
632
+ self,
633
+ strategy_id,
634
+ x_api_key,
635
+ x_tenant_id,
636
+ x_org_id,
637
+ authorization,
638
+ _request_auth,
639
+ _content_type,
640
+ _headers,
641
+ _host_index,
642
+ ) -> RequestSerialized:
643
+
644
+ _host = None
645
+
646
+ _collection_formats: Dict[str, str] = {
647
+ }
648
+
649
+ _path_params: Dict[str, str] = {}
650
+ _query_params: List[Tuple[str, str]] = []
651
+ _header_params: Dict[str, Optional[str]] = _headers or {}
652
+ _form_params: List[Tuple[str, str]] = []
653
+ _files: Dict[
654
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
655
+ ] = {}
656
+ _body_params: Optional[bytes] = None
657
+
658
+ # process the path parameters
659
+ if strategy_id is not None:
660
+ _path_params['strategy_id'] = strategy_id
661
+ # process the query parameters
662
+ # process the header parameters
663
+ if x_api_key is not None:
664
+ _header_params['X-API-Key'] = x_api_key
665
+ if x_tenant_id is not None:
666
+ _header_params['X-Tenant-Id'] = x_tenant_id
667
+ if x_org_id is not None:
668
+ _header_params['X-Org-Id'] = x_org_id
669
+ if authorization is not None:
670
+ _header_params['Authorization'] = authorization
671
+ # process the form parameters
672
+ # process the body parameter
673
+
674
+
675
+ # set the HTTP header `Accept`
676
+ if 'Accept' not in _header_params:
677
+ _header_params['Accept'] = self.api_client.select_header_accept(
678
+ [
679
+ 'application/json'
680
+ ]
681
+ )
682
+
683
+
684
+ # authentication setting
685
+ _auth_settings: List[str] = [
686
+ ]
687
+
688
+ return self.api_client.param_serialize(
689
+ method='DELETE',
690
+ resource_path='/v1/arc/governance/strategies/{strategy_id}',
691
+ path_params=_path_params,
692
+ query_params=_query_params,
693
+ header_params=_header_params,
694
+ body=_body_params,
695
+ post_params=_form_params,
696
+ files=_files,
697
+ auth_settings=_auth_settings,
698
+ collection_formats=_collection_formats,
699
+ _host=_host,
700
+ _request_auth=_request_auth
701
+ )
702
+
703
+
704
+
705
+
706
+ @validate_call
707
+ def get_cash_app_config_endpoint_v1_arc(
708
+ self,
709
+ x_api_key: Optional[StrictStr] = None,
710
+ x_tenant_id: Optional[StrictStr] = None,
711
+ x_org_id: Optional[StrictStr] = None,
712
+ authorization: Optional[StrictStr] = None,
713
+ _request_timeout: Union[
714
+ None,
715
+ Annotated[StrictFloat, Field(gt=0)],
716
+ Tuple[
717
+ Annotated[StrictFloat, Field(gt=0)],
718
+ Annotated[StrictFloat, Field(gt=0)]
719
+ ]
720
+ ] = None,
721
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
722
+ _content_type: Optional[StrictStr] = None,
723
+ _headers: Optional[Dict[StrictStr, Any]] = None,
724
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
725
+ ) -> object:
726
+ """Get Cash App Config Endpoint
727
+
728
+ GET /governance/cash-app-config — Read cash application configuration.
729
+
730
+ :param x_api_key:
731
+ :type x_api_key: str
732
+ :param x_tenant_id:
733
+ :type x_tenant_id: str
734
+ :param x_org_id:
735
+ :type x_org_id: str
736
+ :param authorization:
737
+ :type authorization: str
738
+ :param _request_timeout: timeout setting for this request. If one
739
+ number provided, it will be total request
740
+ timeout. It can also be a pair (tuple) of
741
+ (connection, read) timeouts.
742
+ :type _request_timeout: int, tuple(int, int), optional
743
+ :param _request_auth: set to override the auth_settings for an a single
744
+ request; this effectively ignores the
745
+ authentication in the spec for a single request.
746
+ :type _request_auth: dict, optional
747
+ :param _content_type: force content-type for the request.
748
+ :type _content_type: str, Optional
749
+ :param _headers: set to override the headers for a single
750
+ request; this effectively ignores the headers
751
+ in the spec for a single request.
752
+ :type _headers: dict, optional
753
+ :param _host_index: set to override the host_index for a single
754
+ request; this effectively ignores the host_index
755
+ in the spec for a single request.
756
+ :type _host_index: int, optional
757
+ :return: Returns the result object.
758
+ """ # noqa: E501
759
+
760
+ _param = self._get_cash_app_config_endpoint_v1_arc_serialize(
761
+ x_api_key=x_api_key,
762
+ x_tenant_id=x_tenant_id,
763
+ x_org_id=x_org_id,
764
+ authorization=authorization,
765
+ _request_auth=_request_auth,
766
+ _content_type=_content_type,
767
+ _headers=_headers,
768
+ _host_index=_host_index
769
+ )
770
+
771
+ _response_types_map: Dict[str, Optional[str]] = {
772
+ '200': "object",
773
+ '422': "ArcHTTPValidationError",
774
+ }
775
+ response_data = self.api_client.call_api(
776
+ *_param,
777
+ _request_timeout=_request_timeout
778
+ )
779
+ response_data.read()
780
+ return self.api_client.response_deserialize(
781
+ response_data=response_data,
782
+ response_types_map=_response_types_map,
783
+ ).data
784
+
785
+
786
+ @validate_call
787
+ def get_cash_app_config_endpoint_v1_arc_with_http_info(
788
+ self,
789
+ x_api_key: Optional[StrictStr] = None,
790
+ x_tenant_id: Optional[StrictStr] = None,
791
+ x_org_id: Optional[StrictStr] = None,
792
+ authorization: Optional[StrictStr] = None,
793
+ _request_timeout: Union[
794
+ None,
795
+ Annotated[StrictFloat, Field(gt=0)],
796
+ Tuple[
797
+ Annotated[StrictFloat, Field(gt=0)],
798
+ Annotated[StrictFloat, Field(gt=0)]
799
+ ]
800
+ ] = None,
801
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
802
+ _content_type: Optional[StrictStr] = None,
803
+ _headers: Optional[Dict[StrictStr, Any]] = None,
804
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
805
+ ) -> ApiResponse[object]:
806
+ """Get Cash App Config Endpoint
807
+
808
+ GET /governance/cash-app-config — Read cash application configuration.
809
+
810
+ :param x_api_key:
811
+ :type x_api_key: str
812
+ :param x_tenant_id:
813
+ :type x_tenant_id: str
814
+ :param x_org_id:
815
+ :type x_org_id: str
816
+ :param authorization:
817
+ :type authorization: str
818
+ :param _request_timeout: timeout setting for this request. If one
819
+ number provided, it will be total request
820
+ timeout. It can also be a pair (tuple) of
821
+ (connection, read) timeouts.
822
+ :type _request_timeout: int, tuple(int, int), optional
823
+ :param _request_auth: set to override the auth_settings for an a single
824
+ request; this effectively ignores the
825
+ authentication in the spec for a single request.
826
+ :type _request_auth: dict, optional
827
+ :param _content_type: force content-type for the request.
828
+ :type _content_type: str, Optional
829
+ :param _headers: set to override the headers for a single
830
+ request; this effectively ignores the headers
831
+ in the spec for a single request.
832
+ :type _headers: dict, optional
833
+ :param _host_index: set to override the host_index for a single
834
+ request; this effectively ignores the host_index
835
+ in the spec for a single request.
836
+ :type _host_index: int, optional
837
+ :return: Returns the result object.
838
+ """ # noqa: E501
839
+
840
+ _param = self._get_cash_app_config_endpoint_v1_arc_serialize(
841
+ x_api_key=x_api_key,
842
+ x_tenant_id=x_tenant_id,
843
+ x_org_id=x_org_id,
844
+ authorization=authorization,
845
+ _request_auth=_request_auth,
846
+ _content_type=_content_type,
847
+ _headers=_headers,
848
+ _host_index=_host_index
849
+ )
850
+
851
+ _response_types_map: Dict[str, Optional[str]] = {
852
+ '200': "object",
853
+ '422': "ArcHTTPValidationError",
854
+ }
855
+ response_data = self.api_client.call_api(
856
+ *_param,
857
+ _request_timeout=_request_timeout
858
+ )
859
+ response_data.read()
860
+ return self.api_client.response_deserialize(
861
+ response_data=response_data,
862
+ response_types_map=_response_types_map,
863
+ )
864
+
865
+
866
+ @validate_call
867
+ def get_cash_app_config_endpoint_v1_arc_without_preload_content(
868
+ self,
869
+ x_api_key: Optional[StrictStr] = None,
870
+ x_tenant_id: Optional[StrictStr] = None,
871
+ x_org_id: Optional[StrictStr] = None,
872
+ authorization: Optional[StrictStr] = None,
873
+ _request_timeout: Union[
874
+ None,
875
+ Annotated[StrictFloat, Field(gt=0)],
876
+ Tuple[
877
+ Annotated[StrictFloat, Field(gt=0)],
878
+ Annotated[StrictFloat, Field(gt=0)]
879
+ ]
880
+ ] = None,
881
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
882
+ _content_type: Optional[StrictStr] = None,
883
+ _headers: Optional[Dict[StrictStr, Any]] = None,
884
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
885
+ ) -> RESTResponseType:
886
+ """Get Cash App Config Endpoint
887
+
888
+ GET /governance/cash-app-config — Read cash application configuration.
889
+
890
+ :param x_api_key:
891
+ :type x_api_key: str
892
+ :param x_tenant_id:
893
+ :type x_tenant_id: str
894
+ :param x_org_id:
895
+ :type x_org_id: str
896
+ :param authorization:
897
+ :type authorization: str
898
+ :param _request_timeout: timeout setting for this request. If one
899
+ number provided, it will be total request
900
+ timeout. It can also be a pair (tuple) of
901
+ (connection, read) timeouts.
902
+ :type _request_timeout: int, tuple(int, int), optional
903
+ :param _request_auth: set to override the auth_settings for an a single
904
+ request; this effectively ignores the
905
+ authentication in the spec for a single request.
906
+ :type _request_auth: dict, optional
907
+ :param _content_type: force content-type for the request.
908
+ :type _content_type: str, Optional
909
+ :param _headers: set to override the headers for a single
910
+ request; this effectively ignores the headers
911
+ in the spec for a single request.
912
+ :type _headers: dict, optional
913
+ :param _host_index: set to override the host_index for a single
914
+ request; this effectively ignores the host_index
915
+ in the spec for a single request.
916
+ :type _host_index: int, optional
917
+ :return: Returns the result object.
918
+ """ # noqa: E501
919
+
920
+ _param = self._get_cash_app_config_endpoint_v1_arc_serialize(
921
+ x_api_key=x_api_key,
922
+ x_tenant_id=x_tenant_id,
923
+ x_org_id=x_org_id,
924
+ authorization=authorization,
925
+ _request_auth=_request_auth,
926
+ _content_type=_content_type,
927
+ _headers=_headers,
928
+ _host_index=_host_index
929
+ )
930
+
931
+ _response_types_map: Dict[str, Optional[str]] = {
932
+ '200': "object",
933
+ '422': "ArcHTTPValidationError",
934
+ }
935
+ response_data = self.api_client.call_api(
936
+ *_param,
937
+ _request_timeout=_request_timeout
938
+ )
939
+ return response_data.response
940
+
941
+
942
+ def _get_cash_app_config_endpoint_v1_arc_serialize(
943
+ self,
944
+ x_api_key,
945
+ x_tenant_id,
946
+ x_org_id,
947
+ authorization,
948
+ _request_auth,
949
+ _content_type,
950
+ _headers,
951
+ _host_index,
952
+ ) -> RequestSerialized:
953
+
954
+ _host = None
955
+
956
+ _collection_formats: Dict[str, str] = {
957
+ }
958
+
959
+ _path_params: Dict[str, str] = {}
960
+ _query_params: List[Tuple[str, str]] = []
961
+ _header_params: Dict[str, Optional[str]] = _headers or {}
962
+ _form_params: List[Tuple[str, str]] = []
963
+ _files: Dict[
964
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
965
+ ] = {}
966
+ _body_params: Optional[bytes] = None
967
+
968
+ # process the path parameters
969
+ # process the query parameters
970
+ # process the header parameters
971
+ if x_api_key is not None:
972
+ _header_params['X-API-Key'] = x_api_key
973
+ if x_tenant_id is not None:
974
+ _header_params['X-Tenant-Id'] = x_tenant_id
975
+ if x_org_id is not None:
976
+ _header_params['X-Org-Id'] = x_org_id
977
+ if authorization is not None:
978
+ _header_params['Authorization'] = authorization
979
+ # process the form parameters
980
+ # process the body parameter
981
+
982
+
983
+ # set the HTTP header `Accept`
984
+ if 'Accept' not in _header_params:
985
+ _header_params['Accept'] = self.api_client.select_header_accept(
986
+ [
987
+ 'application/json'
988
+ ]
989
+ )
990
+
991
+
992
+ # authentication setting
993
+ _auth_settings: List[str] = [
994
+ ]
995
+
996
+ return self.api_client.param_serialize(
997
+ method='GET',
998
+ resource_path='/v1/arc/governance/cash-app-config',
999
+ path_params=_path_params,
1000
+ query_params=_query_params,
1001
+ header_params=_header_params,
1002
+ body=_body_params,
1003
+ post_params=_form_params,
1004
+ files=_files,
1005
+ auth_settings=_auth_settings,
1006
+ collection_formats=_collection_formats,
1007
+ _host=_host,
1008
+ _request_auth=_request_auth
1009
+ )
1010
+
1011
+
1012
+
1013
+
1014
+ @validate_call
1015
+ def get_strategy_endpoint(
1016
+ self,
1017
+ strategy_id: StrictStr,
1018
+ x_api_key: Optional[StrictStr] = None,
1019
+ x_tenant_id: Optional[StrictStr] = None,
1020
+ x_org_id: Optional[StrictStr] = None,
1021
+ authorization: Optional[StrictStr] = None,
1022
+ _request_timeout: Union[
1023
+ None,
1024
+ Annotated[StrictFloat, Field(gt=0)],
1025
+ Tuple[
1026
+ Annotated[StrictFloat, Field(gt=0)],
1027
+ Annotated[StrictFloat, Field(gt=0)]
1028
+ ]
1029
+ ] = None,
1030
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1031
+ _content_type: Optional[StrictStr] = None,
1032
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1033
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1034
+ ) -> object:
1035
+ """Get Strategy Endpoint
1036
+
1037
+ GET /governance/strategies/{id} — Get a single strategy.
1038
+
1039
+ :param strategy_id: (required)
1040
+ :type strategy_id: str
1041
+ :param x_api_key:
1042
+ :type x_api_key: str
1043
+ :param x_tenant_id:
1044
+ :type x_tenant_id: str
1045
+ :param x_org_id:
1046
+ :type x_org_id: str
1047
+ :param authorization:
1048
+ :type authorization: str
1049
+ :param _request_timeout: timeout setting for this request. If one
1050
+ number provided, it will be total request
1051
+ timeout. It can also be a pair (tuple) of
1052
+ (connection, read) timeouts.
1053
+ :type _request_timeout: int, tuple(int, int), optional
1054
+ :param _request_auth: set to override the auth_settings for an a single
1055
+ request; this effectively ignores the
1056
+ authentication in the spec for a single request.
1057
+ :type _request_auth: dict, optional
1058
+ :param _content_type: force content-type for the request.
1059
+ :type _content_type: str, Optional
1060
+ :param _headers: set to override the headers for a single
1061
+ request; this effectively ignores the headers
1062
+ in the spec for a single request.
1063
+ :type _headers: dict, optional
1064
+ :param _host_index: set to override the host_index for a single
1065
+ request; this effectively ignores the host_index
1066
+ in the spec for a single request.
1067
+ :type _host_index: int, optional
1068
+ :return: Returns the result object.
1069
+ """ # noqa: E501
1070
+
1071
+ _param = self._get_strategy_endpoint_serialize(
1072
+ strategy_id=strategy_id,
1073
+ x_api_key=x_api_key,
1074
+ x_tenant_id=x_tenant_id,
1075
+ x_org_id=x_org_id,
1076
+ authorization=authorization,
1077
+ _request_auth=_request_auth,
1078
+ _content_type=_content_type,
1079
+ _headers=_headers,
1080
+ _host_index=_host_index
1081
+ )
1082
+
1083
+ _response_types_map: Dict[str, Optional[str]] = {
1084
+ '200': "object",
1085
+ '422': "ArcHTTPValidationError",
1086
+ }
1087
+ response_data = self.api_client.call_api(
1088
+ *_param,
1089
+ _request_timeout=_request_timeout
1090
+ )
1091
+ response_data.read()
1092
+ return self.api_client.response_deserialize(
1093
+ response_data=response_data,
1094
+ response_types_map=_response_types_map,
1095
+ ).data
1096
+
1097
+
1098
+ @validate_call
1099
+ def get_strategy_endpoint_with_http_info(
1100
+ self,
1101
+ strategy_id: StrictStr,
1102
+ x_api_key: Optional[StrictStr] = None,
1103
+ x_tenant_id: Optional[StrictStr] = None,
1104
+ x_org_id: Optional[StrictStr] = None,
1105
+ authorization: Optional[StrictStr] = None,
1106
+ _request_timeout: Union[
1107
+ None,
1108
+ Annotated[StrictFloat, Field(gt=0)],
1109
+ Tuple[
1110
+ Annotated[StrictFloat, Field(gt=0)],
1111
+ Annotated[StrictFloat, Field(gt=0)]
1112
+ ]
1113
+ ] = None,
1114
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1115
+ _content_type: Optional[StrictStr] = None,
1116
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1117
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1118
+ ) -> ApiResponse[object]:
1119
+ """Get Strategy Endpoint
1120
+
1121
+ GET /governance/strategies/{id} — Get a single strategy.
1122
+
1123
+ :param strategy_id: (required)
1124
+ :type strategy_id: str
1125
+ :param x_api_key:
1126
+ :type x_api_key: str
1127
+ :param x_tenant_id:
1128
+ :type x_tenant_id: str
1129
+ :param x_org_id:
1130
+ :type x_org_id: str
1131
+ :param authorization:
1132
+ :type authorization: str
1133
+ :param _request_timeout: timeout setting for this request. If one
1134
+ number provided, it will be total request
1135
+ timeout. It can also be a pair (tuple) of
1136
+ (connection, read) timeouts.
1137
+ :type _request_timeout: int, tuple(int, int), optional
1138
+ :param _request_auth: set to override the auth_settings for an a single
1139
+ request; this effectively ignores the
1140
+ authentication in the spec for a single request.
1141
+ :type _request_auth: dict, optional
1142
+ :param _content_type: force content-type for the request.
1143
+ :type _content_type: str, Optional
1144
+ :param _headers: set to override the headers for a single
1145
+ request; this effectively ignores the headers
1146
+ in the spec for a single request.
1147
+ :type _headers: dict, optional
1148
+ :param _host_index: set to override the host_index for a single
1149
+ request; this effectively ignores the host_index
1150
+ in the spec for a single request.
1151
+ :type _host_index: int, optional
1152
+ :return: Returns the result object.
1153
+ """ # noqa: E501
1154
+
1155
+ _param = self._get_strategy_endpoint_serialize(
1156
+ strategy_id=strategy_id,
1157
+ x_api_key=x_api_key,
1158
+ x_tenant_id=x_tenant_id,
1159
+ x_org_id=x_org_id,
1160
+ authorization=authorization,
1161
+ _request_auth=_request_auth,
1162
+ _content_type=_content_type,
1163
+ _headers=_headers,
1164
+ _host_index=_host_index
1165
+ )
1166
+
1167
+ _response_types_map: Dict[str, Optional[str]] = {
1168
+ '200': "object",
1169
+ '422': "ArcHTTPValidationError",
1170
+ }
1171
+ response_data = self.api_client.call_api(
1172
+ *_param,
1173
+ _request_timeout=_request_timeout
1174
+ )
1175
+ response_data.read()
1176
+ return self.api_client.response_deserialize(
1177
+ response_data=response_data,
1178
+ response_types_map=_response_types_map,
1179
+ )
1180
+
1181
+
1182
+ @validate_call
1183
+ def get_strategy_endpoint_without_preload_content(
1184
+ self,
1185
+ strategy_id: StrictStr,
1186
+ x_api_key: Optional[StrictStr] = None,
1187
+ x_tenant_id: Optional[StrictStr] = None,
1188
+ x_org_id: Optional[StrictStr] = None,
1189
+ authorization: Optional[StrictStr] = None,
1190
+ _request_timeout: Union[
1191
+ None,
1192
+ Annotated[StrictFloat, Field(gt=0)],
1193
+ Tuple[
1194
+ Annotated[StrictFloat, Field(gt=0)],
1195
+ Annotated[StrictFloat, Field(gt=0)]
1196
+ ]
1197
+ ] = None,
1198
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1199
+ _content_type: Optional[StrictStr] = None,
1200
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1201
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1202
+ ) -> RESTResponseType:
1203
+ """Get Strategy Endpoint
1204
+
1205
+ GET /governance/strategies/{id} — Get a single strategy.
1206
+
1207
+ :param strategy_id: (required)
1208
+ :type strategy_id: str
1209
+ :param x_api_key:
1210
+ :type x_api_key: str
1211
+ :param x_tenant_id:
1212
+ :type x_tenant_id: str
1213
+ :param x_org_id:
1214
+ :type x_org_id: str
1215
+ :param authorization:
1216
+ :type authorization: str
1217
+ :param _request_timeout: timeout setting for this request. If one
1218
+ number provided, it will be total request
1219
+ timeout. It can also be a pair (tuple) of
1220
+ (connection, read) timeouts.
1221
+ :type _request_timeout: int, tuple(int, int), optional
1222
+ :param _request_auth: set to override the auth_settings for an a single
1223
+ request; this effectively ignores the
1224
+ authentication in the spec for a single request.
1225
+ :type _request_auth: dict, optional
1226
+ :param _content_type: force content-type for the request.
1227
+ :type _content_type: str, Optional
1228
+ :param _headers: set to override the headers for a single
1229
+ request; this effectively ignores the headers
1230
+ in the spec for a single request.
1231
+ :type _headers: dict, optional
1232
+ :param _host_index: set to override the host_index for a single
1233
+ request; this effectively ignores the host_index
1234
+ in the spec for a single request.
1235
+ :type _host_index: int, optional
1236
+ :return: Returns the result object.
1237
+ """ # noqa: E501
1238
+
1239
+ _param = self._get_strategy_endpoint_serialize(
1240
+ strategy_id=strategy_id,
1241
+ x_api_key=x_api_key,
1242
+ x_tenant_id=x_tenant_id,
1243
+ x_org_id=x_org_id,
1244
+ authorization=authorization,
1245
+ _request_auth=_request_auth,
1246
+ _content_type=_content_type,
1247
+ _headers=_headers,
1248
+ _host_index=_host_index
1249
+ )
1250
+
1251
+ _response_types_map: Dict[str, Optional[str]] = {
1252
+ '200': "object",
1253
+ '422': "ArcHTTPValidationError",
1254
+ }
1255
+ response_data = self.api_client.call_api(
1256
+ *_param,
1257
+ _request_timeout=_request_timeout
1258
+ )
1259
+ return response_data.response
1260
+
1261
+
1262
+ def _get_strategy_endpoint_serialize(
1263
+ self,
1264
+ strategy_id,
1265
+ x_api_key,
1266
+ x_tenant_id,
1267
+ x_org_id,
1268
+ authorization,
1269
+ _request_auth,
1270
+ _content_type,
1271
+ _headers,
1272
+ _host_index,
1273
+ ) -> RequestSerialized:
1274
+
1275
+ _host = None
1276
+
1277
+ _collection_formats: Dict[str, str] = {
1278
+ }
1279
+
1280
+ _path_params: Dict[str, str] = {}
1281
+ _query_params: List[Tuple[str, str]] = []
1282
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1283
+ _form_params: List[Tuple[str, str]] = []
1284
+ _files: Dict[
1285
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1286
+ ] = {}
1287
+ _body_params: Optional[bytes] = None
1288
+
1289
+ # process the path parameters
1290
+ if strategy_id is not None:
1291
+ _path_params['strategy_id'] = strategy_id
1292
+ # process the query parameters
1293
+ # process the header parameters
1294
+ if x_api_key is not None:
1295
+ _header_params['X-API-Key'] = x_api_key
1296
+ if x_tenant_id is not None:
1297
+ _header_params['X-Tenant-Id'] = x_tenant_id
1298
+ if x_org_id is not None:
1299
+ _header_params['X-Org-Id'] = x_org_id
1300
+ if authorization is not None:
1301
+ _header_params['Authorization'] = authorization
1302
+ # process the form parameters
1303
+ # process the body parameter
1304
+
1305
+
1306
+ # set the HTTP header `Accept`
1307
+ if 'Accept' not in _header_params:
1308
+ _header_params['Accept'] = self.api_client.select_header_accept(
1309
+ [
1310
+ 'application/json'
1311
+ ]
1312
+ )
1313
+
1314
+
1315
+ # authentication setting
1316
+ _auth_settings: List[str] = [
1317
+ ]
1318
+
1319
+ return self.api_client.param_serialize(
1320
+ method='GET',
1321
+ resource_path='/v1/arc/governance/strategies/{strategy_id}',
1322
+ path_params=_path_params,
1323
+ query_params=_query_params,
1324
+ header_params=_header_params,
1325
+ body=_body_params,
1326
+ post_params=_form_params,
1327
+ files=_files,
1328
+ auth_settings=_auth_settings,
1329
+ collection_formats=_collection_formats,
1330
+ _host=_host,
1331
+ _request_auth=_request_auth
1332
+ )
1333
+
1334
+
1335
+
1336
+
1337
+ @validate_call
1338
+ def kill_switch_endpoint_v1_arc(
1339
+ self,
1340
+ agent_type: StrictStr,
1341
+ kill_switch_request: KillSwitchRequest,
1342
+ x_api_key: Optional[StrictStr] = None,
1343
+ x_tenant_id: Optional[StrictStr] = None,
1344
+ x_org_id: Optional[StrictStr] = None,
1345
+ authorization: Optional[StrictStr] = None,
1346
+ _request_timeout: Union[
1347
+ None,
1348
+ Annotated[StrictFloat, Field(gt=0)],
1349
+ Tuple[
1350
+ Annotated[StrictFloat, Field(gt=0)],
1351
+ Annotated[StrictFloat, Field(gt=0)]
1352
+ ]
1353
+ ] = None,
1354
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1355
+ _content_type: Optional[StrictStr] = None,
1356
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1357
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1358
+ ) -> object:
1359
+ """Kill Switch Endpoint
1360
+
1361
+ POST /governance/agent-policies/{agent_type}/kill-switch — Toggle kill switch.
1362
+
1363
+ :param agent_type: (required)
1364
+ :type agent_type: str
1365
+ :param kill_switch_request: (required)
1366
+ :type kill_switch_request: KillSwitchRequest
1367
+ :param x_api_key:
1368
+ :type x_api_key: str
1369
+ :param x_tenant_id:
1370
+ :type x_tenant_id: str
1371
+ :param x_org_id:
1372
+ :type x_org_id: str
1373
+ :param authorization:
1374
+ :type authorization: str
1375
+ :param _request_timeout: timeout setting for this request. If one
1376
+ number provided, it will be total request
1377
+ timeout. It can also be a pair (tuple) of
1378
+ (connection, read) timeouts.
1379
+ :type _request_timeout: int, tuple(int, int), optional
1380
+ :param _request_auth: set to override the auth_settings for an a single
1381
+ request; this effectively ignores the
1382
+ authentication in the spec for a single request.
1383
+ :type _request_auth: dict, optional
1384
+ :param _content_type: force content-type for the request.
1385
+ :type _content_type: str, Optional
1386
+ :param _headers: set to override the headers for a single
1387
+ request; this effectively ignores the headers
1388
+ in the spec for a single request.
1389
+ :type _headers: dict, optional
1390
+ :param _host_index: set to override the host_index for a single
1391
+ request; this effectively ignores the host_index
1392
+ in the spec for a single request.
1393
+ :type _host_index: int, optional
1394
+ :return: Returns the result object.
1395
+ """ # noqa: E501
1396
+
1397
+ _param = self._kill_switch_endpoint_v1_arc_serialize(
1398
+ agent_type=agent_type,
1399
+ kill_switch_request=kill_switch_request,
1400
+ x_api_key=x_api_key,
1401
+ x_tenant_id=x_tenant_id,
1402
+ x_org_id=x_org_id,
1403
+ authorization=authorization,
1404
+ _request_auth=_request_auth,
1405
+ _content_type=_content_type,
1406
+ _headers=_headers,
1407
+ _host_index=_host_index
1408
+ )
1409
+
1410
+ _response_types_map: Dict[str, Optional[str]] = {
1411
+ '200': "object",
1412
+ '422': "ArcHTTPValidationError",
1413
+ }
1414
+ response_data = self.api_client.call_api(
1415
+ *_param,
1416
+ _request_timeout=_request_timeout
1417
+ )
1418
+ response_data.read()
1419
+ return self.api_client.response_deserialize(
1420
+ response_data=response_data,
1421
+ response_types_map=_response_types_map,
1422
+ ).data
1423
+
1424
+
1425
+ @validate_call
1426
+ def kill_switch_endpoint_v1_arc_with_http_info(
1427
+ self,
1428
+ agent_type: StrictStr,
1429
+ kill_switch_request: KillSwitchRequest,
1430
+ x_api_key: Optional[StrictStr] = None,
1431
+ x_tenant_id: Optional[StrictStr] = None,
1432
+ x_org_id: Optional[StrictStr] = None,
1433
+ authorization: Optional[StrictStr] = None,
1434
+ _request_timeout: Union[
1435
+ None,
1436
+ Annotated[StrictFloat, Field(gt=0)],
1437
+ Tuple[
1438
+ Annotated[StrictFloat, Field(gt=0)],
1439
+ Annotated[StrictFloat, Field(gt=0)]
1440
+ ]
1441
+ ] = None,
1442
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1443
+ _content_type: Optional[StrictStr] = None,
1444
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1445
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1446
+ ) -> ApiResponse[object]:
1447
+ """Kill Switch Endpoint
1448
+
1449
+ POST /governance/agent-policies/{agent_type}/kill-switch — Toggle kill switch.
1450
+
1451
+ :param agent_type: (required)
1452
+ :type agent_type: str
1453
+ :param kill_switch_request: (required)
1454
+ :type kill_switch_request: KillSwitchRequest
1455
+ :param x_api_key:
1456
+ :type x_api_key: str
1457
+ :param x_tenant_id:
1458
+ :type x_tenant_id: str
1459
+ :param x_org_id:
1460
+ :type x_org_id: str
1461
+ :param authorization:
1462
+ :type authorization: str
1463
+ :param _request_timeout: timeout setting for this request. If one
1464
+ number provided, it will be total request
1465
+ timeout. It can also be a pair (tuple) of
1466
+ (connection, read) timeouts.
1467
+ :type _request_timeout: int, tuple(int, int), optional
1468
+ :param _request_auth: set to override the auth_settings for an a single
1469
+ request; this effectively ignores the
1470
+ authentication in the spec for a single request.
1471
+ :type _request_auth: dict, optional
1472
+ :param _content_type: force content-type for the request.
1473
+ :type _content_type: str, Optional
1474
+ :param _headers: set to override the headers for a single
1475
+ request; this effectively ignores the headers
1476
+ in the spec for a single request.
1477
+ :type _headers: dict, optional
1478
+ :param _host_index: set to override the host_index for a single
1479
+ request; this effectively ignores the host_index
1480
+ in the spec for a single request.
1481
+ :type _host_index: int, optional
1482
+ :return: Returns the result object.
1483
+ """ # noqa: E501
1484
+
1485
+ _param = self._kill_switch_endpoint_v1_arc_serialize(
1486
+ agent_type=agent_type,
1487
+ kill_switch_request=kill_switch_request,
1488
+ x_api_key=x_api_key,
1489
+ x_tenant_id=x_tenant_id,
1490
+ x_org_id=x_org_id,
1491
+ authorization=authorization,
1492
+ _request_auth=_request_auth,
1493
+ _content_type=_content_type,
1494
+ _headers=_headers,
1495
+ _host_index=_host_index
1496
+ )
1497
+
1498
+ _response_types_map: Dict[str, Optional[str]] = {
1499
+ '200': "object",
1500
+ '422': "ArcHTTPValidationError",
1501
+ }
1502
+ response_data = self.api_client.call_api(
1503
+ *_param,
1504
+ _request_timeout=_request_timeout
1505
+ )
1506
+ response_data.read()
1507
+ return self.api_client.response_deserialize(
1508
+ response_data=response_data,
1509
+ response_types_map=_response_types_map,
1510
+ )
1511
+
1512
+
1513
+ @validate_call
1514
+ def kill_switch_endpoint_v1_arc_without_preload_content(
1515
+ self,
1516
+ agent_type: StrictStr,
1517
+ kill_switch_request: KillSwitchRequest,
1518
+ x_api_key: Optional[StrictStr] = None,
1519
+ x_tenant_id: Optional[StrictStr] = None,
1520
+ x_org_id: Optional[StrictStr] = None,
1521
+ authorization: Optional[StrictStr] = None,
1522
+ _request_timeout: Union[
1523
+ None,
1524
+ Annotated[StrictFloat, Field(gt=0)],
1525
+ Tuple[
1526
+ Annotated[StrictFloat, Field(gt=0)],
1527
+ Annotated[StrictFloat, Field(gt=0)]
1528
+ ]
1529
+ ] = None,
1530
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1531
+ _content_type: Optional[StrictStr] = None,
1532
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1533
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1534
+ ) -> RESTResponseType:
1535
+ """Kill Switch Endpoint
1536
+
1537
+ POST /governance/agent-policies/{agent_type}/kill-switch — Toggle kill switch.
1538
+
1539
+ :param agent_type: (required)
1540
+ :type agent_type: str
1541
+ :param kill_switch_request: (required)
1542
+ :type kill_switch_request: KillSwitchRequest
1543
+ :param x_api_key:
1544
+ :type x_api_key: str
1545
+ :param x_tenant_id:
1546
+ :type x_tenant_id: str
1547
+ :param x_org_id:
1548
+ :type x_org_id: str
1549
+ :param authorization:
1550
+ :type authorization: str
1551
+ :param _request_timeout: timeout setting for this request. If one
1552
+ number provided, it will be total request
1553
+ timeout. It can also be a pair (tuple) of
1554
+ (connection, read) timeouts.
1555
+ :type _request_timeout: int, tuple(int, int), optional
1556
+ :param _request_auth: set to override the auth_settings for an a single
1557
+ request; this effectively ignores the
1558
+ authentication in the spec for a single request.
1559
+ :type _request_auth: dict, optional
1560
+ :param _content_type: force content-type for the request.
1561
+ :type _content_type: str, Optional
1562
+ :param _headers: set to override the headers for a single
1563
+ request; this effectively ignores the headers
1564
+ in the spec for a single request.
1565
+ :type _headers: dict, optional
1566
+ :param _host_index: set to override the host_index for a single
1567
+ request; this effectively ignores the host_index
1568
+ in the spec for a single request.
1569
+ :type _host_index: int, optional
1570
+ :return: Returns the result object.
1571
+ """ # noqa: E501
1572
+
1573
+ _param = self._kill_switch_endpoint_v1_arc_serialize(
1574
+ agent_type=agent_type,
1575
+ kill_switch_request=kill_switch_request,
1576
+ x_api_key=x_api_key,
1577
+ x_tenant_id=x_tenant_id,
1578
+ x_org_id=x_org_id,
1579
+ authorization=authorization,
1580
+ _request_auth=_request_auth,
1581
+ _content_type=_content_type,
1582
+ _headers=_headers,
1583
+ _host_index=_host_index
1584
+ )
1585
+
1586
+ _response_types_map: Dict[str, Optional[str]] = {
1587
+ '200': "object",
1588
+ '422': "ArcHTTPValidationError",
1589
+ }
1590
+ response_data = self.api_client.call_api(
1591
+ *_param,
1592
+ _request_timeout=_request_timeout
1593
+ )
1594
+ return response_data.response
1595
+
1596
+
1597
+ def _kill_switch_endpoint_v1_arc_serialize(
1598
+ self,
1599
+ agent_type,
1600
+ kill_switch_request,
1601
+ x_api_key,
1602
+ x_tenant_id,
1603
+ x_org_id,
1604
+ authorization,
1605
+ _request_auth,
1606
+ _content_type,
1607
+ _headers,
1608
+ _host_index,
1609
+ ) -> RequestSerialized:
1610
+
1611
+ _host = None
1612
+
1613
+ _collection_formats: Dict[str, str] = {
1614
+ }
1615
+
1616
+ _path_params: Dict[str, str] = {}
1617
+ _query_params: List[Tuple[str, str]] = []
1618
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1619
+ _form_params: List[Tuple[str, str]] = []
1620
+ _files: Dict[
1621
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1622
+ ] = {}
1623
+ _body_params: Optional[bytes] = None
1624
+
1625
+ # process the path parameters
1626
+ if agent_type is not None:
1627
+ _path_params['agent_type'] = agent_type
1628
+ # process the query parameters
1629
+ # process the header parameters
1630
+ if x_api_key is not None:
1631
+ _header_params['X-API-Key'] = x_api_key
1632
+ if x_tenant_id is not None:
1633
+ _header_params['X-Tenant-Id'] = x_tenant_id
1634
+ if x_org_id is not None:
1635
+ _header_params['X-Org-Id'] = x_org_id
1636
+ if authorization is not None:
1637
+ _header_params['Authorization'] = authorization
1638
+ # process the form parameters
1639
+ # process the body parameter
1640
+ if kill_switch_request is not None:
1641
+ _body_params = kill_switch_request
1642
+
1643
+
1644
+ # set the HTTP header `Accept`
1645
+ if 'Accept' not in _header_params:
1646
+ _header_params['Accept'] = self.api_client.select_header_accept(
1647
+ [
1648
+ 'application/json'
1649
+ ]
1650
+ )
1651
+
1652
+ # set the HTTP header `Content-Type`
1653
+ if _content_type:
1654
+ _header_params['Content-Type'] = _content_type
1655
+ else:
1656
+ _default_content_type = (
1657
+ self.api_client.select_header_content_type(
1658
+ [
1659
+ 'application/json'
1660
+ ]
1661
+ )
1662
+ )
1663
+ if _default_content_type is not None:
1664
+ _header_params['Content-Type'] = _default_content_type
1665
+
1666
+ # authentication setting
1667
+ _auth_settings: List[str] = [
1668
+ ]
1669
+
1670
+ return self.api_client.param_serialize(
1671
+ method='POST',
1672
+ resource_path='/v1/arc/governance/agent-policies/{agent_type}/kill-switch',
1673
+ path_params=_path_params,
1674
+ query_params=_query_params,
1675
+ header_params=_header_params,
1676
+ body=_body_params,
1677
+ post_params=_form_params,
1678
+ files=_files,
1679
+ auth_settings=_auth_settings,
1680
+ collection_formats=_collection_formats,
1681
+ _host=_host,
1682
+ _request_auth=_request_auth
1683
+ )
1684
+
1685
+
1686
+
1687
+
1688
+ @validate_call
1689
+ def list_evaluations_endpoint(
1690
+ self,
1691
+ agent_type: Optional[StrictStr] = None,
1692
+ evaluation_type: Optional[StrictStr] = None,
1693
+ x_api_key: Optional[StrictStr] = None,
1694
+ x_tenant_id: Optional[StrictStr] = None,
1695
+ x_org_id: Optional[StrictStr] = None,
1696
+ authorization: Optional[StrictStr] = None,
1697
+ _request_timeout: Union[
1698
+ None,
1699
+ Annotated[StrictFloat, Field(gt=0)],
1700
+ Tuple[
1701
+ Annotated[StrictFloat, Field(gt=0)],
1702
+ Annotated[StrictFloat, Field(gt=0)]
1703
+ ]
1704
+ ] = None,
1705
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1706
+ _content_type: Optional[StrictStr] = None,
1707
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1708
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1709
+ ) -> object:
1710
+ """List Evaluations Endpoint
1711
+
1712
+ GET /governance/evaluations — List agent evaluations.
1713
+
1714
+ :param agent_type:
1715
+ :type agent_type: str
1716
+ :param evaluation_type:
1717
+ :type evaluation_type: str
1718
+ :param x_api_key:
1719
+ :type x_api_key: str
1720
+ :param x_tenant_id:
1721
+ :type x_tenant_id: str
1722
+ :param x_org_id:
1723
+ :type x_org_id: str
1724
+ :param authorization:
1725
+ :type authorization: str
1726
+ :param _request_timeout: timeout setting for this request. If one
1727
+ number provided, it will be total request
1728
+ timeout. It can also be a pair (tuple) of
1729
+ (connection, read) timeouts.
1730
+ :type _request_timeout: int, tuple(int, int), optional
1731
+ :param _request_auth: set to override the auth_settings for an a single
1732
+ request; this effectively ignores the
1733
+ authentication in the spec for a single request.
1734
+ :type _request_auth: dict, optional
1735
+ :param _content_type: force content-type for the request.
1736
+ :type _content_type: str, Optional
1737
+ :param _headers: set to override the headers for a single
1738
+ request; this effectively ignores the headers
1739
+ in the spec for a single request.
1740
+ :type _headers: dict, optional
1741
+ :param _host_index: set to override the host_index for a single
1742
+ request; this effectively ignores the host_index
1743
+ in the spec for a single request.
1744
+ :type _host_index: int, optional
1745
+ :return: Returns the result object.
1746
+ """ # noqa: E501
1747
+
1748
+ _param = self._list_evaluations_endpoint_serialize(
1749
+ agent_type=agent_type,
1750
+ evaluation_type=evaluation_type,
1751
+ x_api_key=x_api_key,
1752
+ x_tenant_id=x_tenant_id,
1753
+ x_org_id=x_org_id,
1754
+ authorization=authorization,
1755
+ _request_auth=_request_auth,
1756
+ _content_type=_content_type,
1757
+ _headers=_headers,
1758
+ _host_index=_host_index
1759
+ )
1760
+
1761
+ _response_types_map: Dict[str, Optional[str]] = {
1762
+ '200': "object",
1763
+ '422': "ArcHTTPValidationError",
1764
+ }
1765
+ response_data = self.api_client.call_api(
1766
+ *_param,
1767
+ _request_timeout=_request_timeout
1768
+ )
1769
+ response_data.read()
1770
+ return self.api_client.response_deserialize(
1771
+ response_data=response_data,
1772
+ response_types_map=_response_types_map,
1773
+ ).data
1774
+
1775
+
1776
+ @validate_call
1777
+ def list_evaluations_endpoint_with_http_info(
1778
+ self,
1779
+ agent_type: Optional[StrictStr] = None,
1780
+ evaluation_type: Optional[StrictStr] = None,
1781
+ x_api_key: Optional[StrictStr] = None,
1782
+ x_tenant_id: Optional[StrictStr] = None,
1783
+ x_org_id: Optional[StrictStr] = None,
1784
+ authorization: Optional[StrictStr] = None,
1785
+ _request_timeout: Union[
1786
+ None,
1787
+ Annotated[StrictFloat, Field(gt=0)],
1788
+ Tuple[
1789
+ Annotated[StrictFloat, Field(gt=0)],
1790
+ Annotated[StrictFloat, Field(gt=0)]
1791
+ ]
1792
+ ] = None,
1793
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1794
+ _content_type: Optional[StrictStr] = None,
1795
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1796
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1797
+ ) -> ApiResponse[object]:
1798
+ """List Evaluations Endpoint
1799
+
1800
+ GET /governance/evaluations — List agent evaluations.
1801
+
1802
+ :param agent_type:
1803
+ :type agent_type: str
1804
+ :param evaluation_type:
1805
+ :type evaluation_type: str
1806
+ :param x_api_key:
1807
+ :type x_api_key: str
1808
+ :param x_tenant_id:
1809
+ :type x_tenant_id: str
1810
+ :param x_org_id:
1811
+ :type x_org_id: str
1812
+ :param authorization:
1813
+ :type authorization: str
1814
+ :param _request_timeout: timeout setting for this request. If one
1815
+ number provided, it will be total request
1816
+ timeout. It can also be a pair (tuple) of
1817
+ (connection, read) timeouts.
1818
+ :type _request_timeout: int, tuple(int, int), optional
1819
+ :param _request_auth: set to override the auth_settings for an a single
1820
+ request; this effectively ignores the
1821
+ authentication in the spec for a single request.
1822
+ :type _request_auth: dict, optional
1823
+ :param _content_type: force content-type for the request.
1824
+ :type _content_type: str, Optional
1825
+ :param _headers: set to override the headers for a single
1826
+ request; this effectively ignores the headers
1827
+ in the spec for a single request.
1828
+ :type _headers: dict, optional
1829
+ :param _host_index: set to override the host_index for a single
1830
+ request; this effectively ignores the host_index
1831
+ in the spec for a single request.
1832
+ :type _host_index: int, optional
1833
+ :return: Returns the result object.
1834
+ """ # noqa: E501
1835
+
1836
+ _param = self._list_evaluations_endpoint_serialize(
1837
+ agent_type=agent_type,
1838
+ evaluation_type=evaluation_type,
1839
+ x_api_key=x_api_key,
1840
+ x_tenant_id=x_tenant_id,
1841
+ x_org_id=x_org_id,
1842
+ authorization=authorization,
1843
+ _request_auth=_request_auth,
1844
+ _content_type=_content_type,
1845
+ _headers=_headers,
1846
+ _host_index=_host_index
1847
+ )
1848
+
1849
+ _response_types_map: Dict[str, Optional[str]] = {
1850
+ '200': "object",
1851
+ '422': "ArcHTTPValidationError",
1852
+ }
1853
+ response_data = self.api_client.call_api(
1854
+ *_param,
1855
+ _request_timeout=_request_timeout
1856
+ )
1857
+ response_data.read()
1858
+ return self.api_client.response_deserialize(
1859
+ response_data=response_data,
1860
+ response_types_map=_response_types_map,
1861
+ )
1862
+
1863
+
1864
+ @validate_call
1865
+ def list_evaluations_endpoint_without_preload_content(
1866
+ self,
1867
+ agent_type: Optional[StrictStr] = None,
1868
+ evaluation_type: Optional[StrictStr] = None,
1869
+ x_api_key: Optional[StrictStr] = None,
1870
+ x_tenant_id: Optional[StrictStr] = None,
1871
+ x_org_id: Optional[StrictStr] = None,
1872
+ authorization: Optional[StrictStr] = None,
1873
+ _request_timeout: Union[
1874
+ None,
1875
+ Annotated[StrictFloat, Field(gt=0)],
1876
+ Tuple[
1877
+ Annotated[StrictFloat, Field(gt=0)],
1878
+ Annotated[StrictFloat, Field(gt=0)]
1879
+ ]
1880
+ ] = None,
1881
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1882
+ _content_type: Optional[StrictStr] = None,
1883
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1884
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1885
+ ) -> RESTResponseType:
1886
+ """List Evaluations Endpoint
1887
+
1888
+ GET /governance/evaluations — List agent evaluations.
1889
+
1890
+ :param agent_type:
1891
+ :type agent_type: str
1892
+ :param evaluation_type:
1893
+ :type evaluation_type: str
1894
+ :param x_api_key:
1895
+ :type x_api_key: str
1896
+ :param x_tenant_id:
1897
+ :type x_tenant_id: str
1898
+ :param x_org_id:
1899
+ :type x_org_id: str
1900
+ :param authorization:
1901
+ :type authorization: str
1902
+ :param _request_timeout: timeout setting for this request. If one
1903
+ number provided, it will be total request
1904
+ timeout. It can also be a pair (tuple) of
1905
+ (connection, read) timeouts.
1906
+ :type _request_timeout: int, tuple(int, int), optional
1907
+ :param _request_auth: set to override the auth_settings for an a single
1908
+ request; this effectively ignores the
1909
+ authentication in the spec for a single request.
1910
+ :type _request_auth: dict, optional
1911
+ :param _content_type: force content-type for the request.
1912
+ :type _content_type: str, Optional
1913
+ :param _headers: set to override the headers for a single
1914
+ request; this effectively ignores the headers
1915
+ in the spec for a single request.
1916
+ :type _headers: dict, optional
1917
+ :param _host_index: set to override the host_index for a single
1918
+ request; this effectively ignores the host_index
1919
+ in the spec for a single request.
1920
+ :type _host_index: int, optional
1921
+ :return: Returns the result object.
1922
+ """ # noqa: E501
1923
+
1924
+ _param = self._list_evaluations_endpoint_serialize(
1925
+ agent_type=agent_type,
1926
+ evaluation_type=evaluation_type,
1927
+ x_api_key=x_api_key,
1928
+ x_tenant_id=x_tenant_id,
1929
+ x_org_id=x_org_id,
1930
+ authorization=authorization,
1931
+ _request_auth=_request_auth,
1932
+ _content_type=_content_type,
1933
+ _headers=_headers,
1934
+ _host_index=_host_index
1935
+ )
1936
+
1937
+ _response_types_map: Dict[str, Optional[str]] = {
1938
+ '200': "object",
1939
+ '422': "ArcHTTPValidationError",
1940
+ }
1941
+ response_data = self.api_client.call_api(
1942
+ *_param,
1943
+ _request_timeout=_request_timeout
1944
+ )
1945
+ return response_data.response
1946
+
1947
+
1948
+ def _list_evaluations_endpoint_serialize(
1949
+ self,
1950
+ agent_type,
1951
+ evaluation_type,
1952
+ x_api_key,
1953
+ x_tenant_id,
1954
+ x_org_id,
1955
+ authorization,
1956
+ _request_auth,
1957
+ _content_type,
1958
+ _headers,
1959
+ _host_index,
1960
+ ) -> RequestSerialized:
1961
+
1962
+ _host = None
1963
+
1964
+ _collection_formats: Dict[str, str] = {
1965
+ }
1966
+
1967
+ _path_params: Dict[str, str] = {}
1968
+ _query_params: List[Tuple[str, str]] = []
1969
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1970
+ _form_params: List[Tuple[str, str]] = []
1971
+ _files: Dict[
1972
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1973
+ ] = {}
1974
+ _body_params: Optional[bytes] = None
1975
+
1976
+ # process the path parameters
1977
+ # process the query parameters
1978
+ if agent_type is not None:
1979
+
1980
+ _query_params.append(('agent_type', agent_type))
1981
+
1982
+ if evaluation_type is not None:
1983
+
1984
+ _query_params.append(('evaluation_type', evaluation_type))
1985
+
1986
+ # process the header parameters
1987
+ if x_api_key is not None:
1988
+ _header_params['X-API-Key'] = x_api_key
1989
+ if x_tenant_id is not None:
1990
+ _header_params['X-Tenant-Id'] = x_tenant_id
1991
+ if x_org_id is not None:
1992
+ _header_params['X-Org-Id'] = x_org_id
1993
+ if authorization is not None:
1994
+ _header_params['Authorization'] = authorization
1995
+ # process the form parameters
1996
+ # process the body parameter
1997
+
1998
+
1999
+ # set the HTTP header `Accept`
2000
+ if 'Accept' not in _header_params:
2001
+ _header_params['Accept'] = self.api_client.select_header_accept(
2002
+ [
2003
+ 'application/json'
2004
+ ]
2005
+ )
2006
+
2007
+
2008
+ # authentication setting
2009
+ _auth_settings: List[str] = [
2010
+ ]
2011
+
2012
+ return self.api_client.param_serialize(
2013
+ method='GET',
2014
+ resource_path='/v1/arc/governance/evaluations',
2015
+ path_params=_path_params,
2016
+ query_params=_query_params,
2017
+ header_params=_header_params,
2018
+ body=_body_params,
2019
+ post_params=_form_params,
2020
+ files=_files,
2021
+ auth_settings=_auth_settings,
2022
+ collection_formats=_collection_formats,
2023
+ _host=_host,
2024
+ _request_auth=_request_auth
2025
+ )
2026
+
2027
+
2028
+
2029
+
2030
+ @validate_call
2031
+ def list_policies_endpoint_v1(
2032
+ self,
2033
+ agent_type: Optional[StrictStr] = None,
2034
+ x_api_key: Optional[StrictStr] = None,
2035
+ x_tenant_id: Optional[StrictStr] = None,
2036
+ x_org_id: Optional[StrictStr] = None,
2037
+ authorization: Optional[StrictStr] = None,
2038
+ _request_timeout: Union[
2039
+ None,
2040
+ Annotated[StrictFloat, Field(gt=0)],
2041
+ Tuple[
2042
+ Annotated[StrictFloat, Field(gt=0)],
2043
+ Annotated[StrictFloat, Field(gt=0)]
2044
+ ]
2045
+ ] = None,
2046
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2047
+ _content_type: Optional[StrictStr] = None,
2048
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2049
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2050
+ ) -> object:
2051
+ """List Policies Endpoint
2052
+
2053
+ GET /governance/agent-policies — List agent policies.
2054
+
2055
+ :param agent_type:
2056
+ :type agent_type: str
2057
+ :param x_api_key:
2058
+ :type x_api_key: str
2059
+ :param x_tenant_id:
2060
+ :type x_tenant_id: str
2061
+ :param x_org_id:
2062
+ :type x_org_id: str
2063
+ :param authorization:
2064
+ :type authorization: str
2065
+ :param _request_timeout: timeout setting for this request. If one
2066
+ number provided, it will be total request
2067
+ timeout. It can also be a pair (tuple) of
2068
+ (connection, read) timeouts.
2069
+ :type _request_timeout: int, tuple(int, int), optional
2070
+ :param _request_auth: set to override the auth_settings for an a single
2071
+ request; this effectively ignores the
2072
+ authentication in the spec for a single request.
2073
+ :type _request_auth: dict, optional
2074
+ :param _content_type: force content-type for the request.
2075
+ :type _content_type: str, Optional
2076
+ :param _headers: set to override the headers for a single
2077
+ request; this effectively ignores the headers
2078
+ in the spec for a single request.
2079
+ :type _headers: dict, optional
2080
+ :param _host_index: set to override the host_index for a single
2081
+ request; this effectively ignores the host_index
2082
+ in the spec for a single request.
2083
+ :type _host_index: int, optional
2084
+ :return: Returns the result object.
2085
+ """ # noqa: E501
2086
+
2087
+ _param = self._list_policies_endpoint_v1_serialize(
2088
+ agent_type=agent_type,
2089
+ x_api_key=x_api_key,
2090
+ x_tenant_id=x_tenant_id,
2091
+ x_org_id=x_org_id,
2092
+ authorization=authorization,
2093
+ _request_auth=_request_auth,
2094
+ _content_type=_content_type,
2095
+ _headers=_headers,
2096
+ _host_index=_host_index
2097
+ )
2098
+
2099
+ _response_types_map: Dict[str, Optional[str]] = {
2100
+ '200': "object",
2101
+ '422': "ArcHTTPValidationError",
2102
+ }
2103
+ response_data = self.api_client.call_api(
2104
+ *_param,
2105
+ _request_timeout=_request_timeout
2106
+ )
2107
+ response_data.read()
2108
+ return self.api_client.response_deserialize(
2109
+ response_data=response_data,
2110
+ response_types_map=_response_types_map,
2111
+ ).data
2112
+
2113
+
2114
+ @validate_call
2115
+ def list_policies_endpoint_v1_with_http_info(
2116
+ self,
2117
+ agent_type: Optional[StrictStr] = None,
2118
+ x_api_key: Optional[StrictStr] = None,
2119
+ x_tenant_id: Optional[StrictStr] = None,
2120
+ x_org_id: Optional[StrictStr] = None,
2121
+ authorization: Optional[StrictStr] = None,
2122
+ _request_timeout: Union[
2123
+ None,
2124
+ Annotated[StrictFloat, Field(gt=0)],
2125
+ Tuple[
2126
+ Annotated[StrictFloat, Field(gt=0)],
2127
+ Annotated[StrictFloat, Field(gt=0)]
2128
+ ]
2129
+ ] = None,
2130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2131
+ _content_type: Optional[StrictStr] = None,
2132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2134
+ ) -> ApiResponse[object]:
2135
+ """List Policies Endpoint
2136
+
2137
+ GET /governance/agent-policies — List agent policies.
2138
+
2139
+ :param agent_type:
2140
+ :type agent_type: str
2141
+ :param x_api_key:
2142
+ :type x_api_key: str
2143
+ :param x_tenant_id:
2144
+ :type x_tenant_id: str
2145
+ :param x_org_id:
2146
+ :type x_org_id: str
2147
+ :param authorization:
2148
+ :type authorization: str
2149
+ :param _request_timeout: timeout setting for this request. If one
2150
+ number provided, it will be total request
2151
+ timeout. It can also be a pair (tuple) of
2152
+ (connection, read) timeouts.
2153
+ :type _request_timeout: int, tuple(int, int), optional
2154
+ :param _request_auth: set to override the auth_settings for an a single
2155
+ request; this effectively ignores the
2156
+ authentication in the spec for a single request.
2157
+ :type _request_auth: dict, optional
2158
+ :param _content_type: force content-type for the request.
2159
+ :type _content_type: str, Optional
2160
+ :param _headers: set to override the headers for a single
2161
+ request; this effectively ignores the headers
2162
+ in the spec for a single request.
2163
+ :type _headers: dict, optional
2164
+ :param _host_index: set to override the host_index for a single
2165
+ request; this effectively ignores the host_index
2166
+ in the spec for a single request.
2167
+ :type _host_index: int, optional
2168
+ :return: Returns the result object.
2169
+ """ # noqa: E501
2170
+
2171
+ _param = self._list_policies_endpoint_v1_serialize(
2172
+ agent_type=agent_type,
2173
+ x_api_key=x_api_key,
2174
+ x_tenant_id=x_tenant_id,
2175
+ x_org_id=x_org_id,
2176
+ authorization=authorization,
2177
+ _request_auth=_request_auth,
2178
+ _content_type=_content_type,
2179
+ _headers=_headers,
2180
+ _host_index=_host_index
2181
+ )
2182
+
2183
+ _response_types_map: Dict[str, Optional[str]] = {
2184
+ '200': "object",
2185
+ '422': "ArcHTTPValidationError",
2186
+ }
2187
+ response_data = self.api_client.call_api(
2188
+ *_param,
2189
+ _request_timeout=_request_timeout
2190
+ )
2191
+ response_data.read()
2192
+ return self.api_client.response_deserialize(
2193
+ response_data=response_data,
2194
+ response_types_map=_response_types_map,
2195
+ )
2196
+
2197
+
2198
+ @validate_call
2199
+ def list_policies_endpoint_v1_without_preload_content(
2200
+ self,
2201
+ agent_type: Optional[StrictStr] = None,
2202
+ x_api_key: Optional[StrictStr] = None,
2203
+ x_tenant_id: Optional[StrictStr] = None,
2204
+ x_org_id: Optional[StrictStr] = None,
2205
+ authorization: Optional[StrictStr] = None,
2206
+ _request_timeout: Union[
2207
+ None,
2208
+ Annotated[StrictFloat, Field(gt=0)],
2209
+ Tuple[
2210
+ Annotated[StrictFloat, Field(gt=0)],
2211
+ Annotated[StrictFloat, Field(gt=0)]
2212
+ ]
2213
+ ] = None,
2214
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2215
+ _content_type: Optional[StrictStr] = None,
2216
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2217
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2218
+ ) -> RESTResponseType:
2219
+ """List Policies Endpoint
2220
+
2221
+ GET /governance/agent-policies — List agent policies.
2222
+
2223
+ :param agent_type:
2224
+ :type agent_type: str
2225
+ :param x_api_key:
2226
+ :type x_api_key: str
2227
+ :param x_tenant_id:
2228
+ :type x_tenant_id: str
2229
+ :param x_org_id:
2230
+ :type x_org_id: str
2231
+ :param authorization:
2232
+ :type authorization: str
2233
+ :param _request_timeout: timeout setting for this request. If one
2234
+ number provided, it will be total request
2235
+ timeout. It can also be a pair (tuple) of
2236
+ (connection, read) timeouts.
2237
+ :type _request_timeout: int, tuple(int, int), optional
2238
+ :param _request_auth: set to override the auth_settings for an a single
2239
+ request; this effectively ignores the
2240
+ authentication in the spec for a single request.
2241
+ :type _request_auth: dict, optional
2242
+ :param _content_type: force content-type for the request.
2243
+ :type _content_type: str, Optional
2244
+ :param _headers: set to override the headers for a single
2245
+ request; this effectively ignores the headers
2246
+ in the spec for a single request.
2247
+ :type _headers: dict, optional
2248
+ :param _host_index: set to override the host_index for a single
2249
+ request; this effectively ignores the host_index
2250
+ in the spec for a single request.
2251
+ :type _host_index: int, optional
2252
+ :return: Returns the result object.
2253
+ """ # noqa: E501
2254
+
2255
+ _param = self._list_policies_endpoint_v1_serialize(
2256
+ agent_type=agent_type,
2257
+ x_api_key=x_api_key,
2258
+ x_tenant_id=x_tenant_id,
2259
+ x_org_id=x_org_id,
2260
+ authorization=authorization,
2261
+ _request_auth=_request_auth,
2262
+ _content_type=_content_type,
2263
+ _headers=_headers,
2264
+ _host_index=_host_index
2265
+ )
2266
+
2267
+ _response_types_map: Dict[str, Optional[str]] = {
2268
+ '200': "object",
2269
+ '422': "ArcHTTPValidationError",
2270
+ }
2271
+ response_data = self.api_client.call_api(
2272
+ *_param,
2273
+ _request_timeout=_request_timeout
2274
+ )
2275
+ return response_data.response
2276
+
2277
+
2278
+ def _list_policies_endpoint_v1_serialize(
2279
+ self,
2280
+ agent_type,
2281
+ x_api_key,
2282
+ x_tenant_id,
2283
+ x_org_id,
2284
+ authorization,
2285
+ _request_auth,
2286
+ _content_type,
2287
+ _headers,
2288
+ _host_index,
2289
+ ) -> RequestSerialized:
2290
+
2291
+ _host = None
2292
+
2293
+ _collection_formats: Dict[str, str] = {
2294
+ }
2295
+
2296
+ _path_params: Dict[str, str] = {}
2297
+ _query_params: List[Tuple[str, str]] = []
2298
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2299
+ _form_params: List[Tuple[str, str]] = []
2300
+ _files: Dict[
2301
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2302
+ ] = {}
2303
+ _body_params: Optional[bytes] = None
2304
+
2305
+ # process the path parameters
2306
+ # process the query parameters
2307
+ if agent_type is not None:
2308
+
2309
+ _query_params.append(('agent_type', agent_type))
2310
+
2311
+ # process the header parameters
2312
+ if x_api_key is not None:
2313
+ _header_params['X-API-Key'] = x_api_key
2314
+ if x_tenant_id is not None:
2315
+ _header_params['X-Tenant-Id'] = x_tenant_id
2316
+ if x_org_id is not None:
2317
+ _header_params['X-Org-Id'] = x_org_id
2318
+ if authorization is not None:
2319
+ _header_params['Authorization'] = authorization
2320
+ # process the form parameters
2321
+ # process the body parameter
2322
+
2323
+
2324
+ # set the HTTP header `Accept`
2325
+ if 'Accept' not in _header_params:
2326
+ _header_params['Accept'] = self.api_client.select_header_accept(
2327
+ [
2328
+ 'application/json'
2329
+ ]
2330
+ )
2331
+
2332
+
2333
+ # authentication setting
2334
+ _auth_settings: List[str] = [
2335
+ ]
2336
+
2337
+ return self.api_client.param_serialize(
2338
+ method='GET',
2339
+ resource_path='/v1/arc/governance/agent-policies',
2340
+ path_params=_path_params,
2341
+ query_params=_query_params,
2342
+ header_params=_header_params,
2343
+ body=_body_params,
2344
+ post_params=_form_params,
2345
+ files=_files,
2346
+ auth_settings=_auth_settings,
2347
+ collection_formats=_collection_formats,
2348
+ _host=_host,
2349
+ _request_auth=_request_auth
2350
+ )
2351
+
2352
+
2353
+
2354
+
2355
+ @validate_call
2356
+ def list_strategies_endpoint(
2357
+ self,
2358
+ risk_tier: Optional[StrictStr] = None,
2359
+ x_api_key: Optional[StrictStr] = None,
2360
+ x_tenant_id: Optional[StrictStr] = None,
2361
+ x_org_id: Optional[StrictStr] = None,
2362
+ authorization: Optional[StrictStr] = None,
2363
+ _request_timeout: Union[
2364
+ None,
2365
+ Annotated[StrictFloat, Field(gt=0)],
2366
+ Tuple[
2367
+ Annotated[StrictFloat, Field(gt=0)],
2368
+ Annotated[StrictFloat, Field(gt=0)]
2369
+ ]
2370
+ ] = None,
2371
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2372
+ _content_type: Optional[StrictStr] = None,
2373
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2374
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2375
+ ) -> object:
2376
+ """List Strategies Endpoint
2377
+
2378
+ GET /governance/strategies — List dunning strategies.
2379
+
2380
+ :param risk_tier:
2381
+ :type risk_tier: str
2382
+ :param x_api_key:
2383
+ :type x_api_key: str
2384
+ :param x_tenant_id:
2385
+ :type x_tenant_id: str
2386
+ :param x_org_id:
2387
+ :type x_org_id: str
2388
+ :param authorization:
2389
+ :type authorization: str
2390
+ :param _request_timeout: timeout setting for this request. If one
2391
+ number provided, it will be total request
2392
+ timeout. It can also be a pair (tuple) of
2393
+ (connection, read) timeouts.
2394
+ :type _request_timeout: int, tuple(int, int), optional
2395
+ :param _request_auth: set to override the auth_settings for an a single
2396
+ request; this effectively ignores the
2397
+ authentication in the spec for a single request.
2398
+ :type _request_auth: dict, optional
2399
+ :param _content_type: force content-type for the request.
2400
+ :type _content_type: str, Optional
2401
+ :param _headers: set to override the headers for a single
2402
+ request; this effectively ignores the headers
2403
+ in the spec for a single request.
2404
+ :type _headers: dict, optional
2405
+ :param _host_index: set to override the host_index for a single
2406
+ request; this effectively ignores the host_index
2407
+ in the spec for a single request.
2408
+ :type _host_index: int, optional
2409
+ :return: Returns the result object.
2410
+ """ # noqa: E501
2411
+
2412
+ _param = self._list_strategies_endpoint_serialize(
2413
+ risk_tier=risk_tier,
2414
+ x_api_key=x_api_key,
2415
+ x_tenant_id=x_tenant_id,
2416
+ x_org_id=x_org_id,
2417
+ authorization=authorization,
2418
+ _request_auth=_request_auth,
2419
+ _content_type=_content_type,
2420
+ _headers=_headers,
2421
+ _host_index=_host_index
2422
+ )
2423
+
2424
+ _response_types_map: Dict[str, Optional[str]] = {
2425
+ '200': "object",
2426
+ '422': "ArcHTTPValidationError",
2427
+ }
2428
+ response_data = self.api_client.call_api(
2429
+ *_param,
2430
+ _request_timeout=_request_timeout
2431
+ )
2432
+ response_data.read()
2433
+ return self.api_client.response_deserialize(
2434
+ response_data=response_data,
2435
+ response_types_map=_response_types_map,
2436
+ ).data
2437
+
2438
+
2439
+ @validate_call
2440
+ def list_strategies_endpoint_with_http_info(
2441
+ self,
2442
+ risk_tier: Optional[StrictStr] = None,
2443
+ x_api_key: Optional[StrictStr] = None,
2444
+ x_tenant_id: Optional[StrictStr] = None,
2445
+ x_org_id: Optional[StrictStr] = None,
2446
+ authorization: Optional[StrictStr] = None,
2447
+ _request_timeout: Union[
2448
+ None,
2449
+ Annotated[StrictFloat, Field(gt=0)],
2450
+ Tuple[
2451
+ Annotated[StrictFloat, Field(gt=0)],
2452
+ Annotated[StrictFloat, Field(gt=0)]
2453
+ ]
2454
+ ] = None,
2455
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2456
+ _content_type: Optional[StrictStr] = None,
2457
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2458
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2459
+ ) -> ApiResponse[object]:
2460
+ """List Strategies Endpoint
2461
+
2462
+ GET /governance/strategies — List dunning strategies.
2463
+
2464
+ :param risk_tier:
2465
+ :type risk_tier: str
2466
+ :param x_api_key:
2467
+ :type x_api_key: str
2468
+ :param x_tenant_id:
2469
+ :type x_tenant_id: str
2470
+ :param x_org_id:
2471
+ :type x_org_id: str
2472
+ :param authorization:
2473
+ :type authorization: str
2474
+ :param _request_timeout: timeout setting for this request. If one
2475
+ number provided, it will be total request
2476
+ timeout. It can also be a pair (tuple) of
2477
+ (connection, read) timeouts.
2478
+ :type _request_timeout: int, tuple(int, int), optional
2479
+ :param _request_auth: set to override the auth_settings for an a single
2480
+ request; this effectively ignores the
2481
+ authentication in the spec for a single request.
2482
+ :type _request_auth: dict, optional
2483
+ :param _content_type: force content-type for the request.
2484
+ :type _content_type: str, Optional
2485
+ :param _headers: set to override the headers for a single
2486
+ request; this effectively ignores the headers
2487
+ in the spec for a single request.
2488
+ :type _headers: dict, optional
2489
+ :param _host_index: set to override the host_index for a single
2490
+ request; this effectively ignores the host_index
2491
+ in the spec for a single request.
2492
+ :type _host_index: int, optional
2493
+ :return: Returns the result object.
2494
+ """ # noqa: E501
2495
+
2496
+ _param = self._list_strategies_endpoint_serialize(
2497
+ risk_tier=risk_tier,
2498
+ x_api_key=x_api_key,
2499
+ x_tenant_id=x_tenant_id,
2500
+ x_org_id=x_org_id,
2501
+ authorization=authorization,
2502
+ _request_auth=_request_auth,
2503
+ _content_type=_content_type,
2504
+ _headers=_headers,
2505
+ _host_index=_host_index
2506
+ )
2507
+
2508
+ _response_types_map: Dict[str, Optional[str]] = {
2509
+ '200': "object",
2510
+ '422': "ArcHTTPValidationError",
2511
+ }
2512
+ response_data = self.api_client.call_api(
2513
+ *_param,
2514
+ _request_timeout=_request_timeout
2515
+ )
2516
+ response_data.read()
2517
+ return self.api_client.response_deserialize(
2518
+ response_data=response_data,
2519
+ response_types_map=_response_types_map,
2520
+ )
2521
+
2522
+
2523
+ @validate_call
2524
+ def list_strategies_endpoint_without_preload_content(
2525
+ self,
2526
+ risk_tier: Optional[StrictStr] = None,
2527
+ x_api_key: Optional[StrictStr] = None,
2528
+ x_tenant_id: Optional[StrictStr] = None,
2529
+ x_org_id: Optional[StrictStr] = None,
2530
+ authorization: Optional[StrictStr] = None,
2531
+ _request_timeout: Union[
2532
+ None,
2533
+ Annotated[StrictFloat, Field(gt=0)],
2534
+ Tuple[
2535
+ Annotated[StrictFloat, Field(gt=0)],
2536
+ Annotated[StrictFloat, Field(gt=0)]
2537
+ ]
2538
+ ] = None,
2539
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2540
+ _content_type: Optional[StrictStr] = None,
2541
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2542
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2543
+ ) -> RESTResponseType:
2544
+ """List Strategies Endpoint
2545
+
2546
+ GET /governance/strategies — List dunning strategies.
2547
+
2548
+ :param risk_tier:
2549
+ :type risk_tier: str
2550
+ :param x_api_key:
2551
+ :type x_api_key: str
2552
+ :param x_tenant_id:
2553
+ :type x_tenant_id: str
2554
+ :param x_org_id:
2555
+ :type x_org_id: str
2556
+ :param authorization:
2557
+ :type authorization: str
2558
+ :param _request_timeout: timeout setting for this request. If one
2559
+ number provided, it will be total request
2560
+ timeout. It can also be a pair (tuple) of
2561
+ (connection, read) timeouts.
2562
+ :type _request_timeout: int, tuple(int, int), optional
2563
+ :param _request_auth: set to override the auth_settings for an a single
2564
+ request; this effectively ignores the
2565
+ authentication in the spec for a single request.
2566
+ :type _request_auth: dict, optional
2567
+ :param _content_type: force content-type for the request.
2568
+ :type _content_type: str, Optional
2569
+ :param _headers: set to override the headers for a single
2570
+ request; this effectively ignores the headers
2571
+ in the spec for a single request.
2572
+ :type _headers: dict, optional
2573
+ :param _host_index: set to override the host_index for a single
2574
+ request; this effectively ignores the host_index
2575
+ in the spec for a single request.
2576
+ :type _host_index: int, optional
2577
+ :return: Returns the result object.
2578
+ """ # noqa: E501
2579
+
2580
+ _param = self._list_strategies_endpoint_serialize(
2581
+ risk_tier=risk_tier,
2582
+ x_api_key=x_api_key,
2583
+ x_tenant_id=x_tenant_id,
2584
+ x_org_id=x_org_id,
2585
+ authorization=authorization,
2586
+ _request_auth=_request_auth,
2587
+ _content_type=_content_type,
2588
+ _headers=_headers,
2589
+ _host_index=_host_index
2590
+ )
2591
+
2592
+ _response_types_map: Dict[str, Optional[str]] = {
2593
+ '200': "object",
2594
+ '422': "ArcHTTPValidationError",
2595
+ }
2596
+ response_data = self.api_client.call_api(
2597
+ *_param,
2598
+ _request_timeout=_request_timeout
2599
+ )
2600
+ return response_data.response
2601
+
2602
+
2603
+ def _list_strategies_endpoint_serialize(
2604
+ self,
2605
+ risk_tier,
2606
+ x_api_key,
2607
+ x_tenant_id,
2608
+ x_org_id,
2609
+ authorization,
2610
+ _request_auth,
2611
+ _content_type,
2612
+ _headers,
2613
+ _host_index,
2614
+ ) -> RequestSerialized:
2615
+
2616
+ _host = None
2617
+
2618
+ _collection_formats: Dict[str, str] = {
2619
+ }
2620
+
2621
+ _path_params: Dict[str, str] = {}
2622
+ _query_params: List[Tuple[str, str]] = []
2623
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2624
+ _form_params: List[Tuple[str, str]] = []
2625
+ _files: Dict[
2626
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2627
+ ] = {}
2628
+ _body_params: Optional[bytes] = None
2629
+
2630
+ # process the path parameters
2631
+ # process the query parameters
2632
+ if risk_tier is not None:
2633
+
2634
+ _query_params.append(('risk_tier', risk_tier))
2635
+
2636
+ # process the header parameters
2637
+ if x_api_key is not None:
2638
+ _header_params['X-API-Key'] = x_api_key
2639
+ if x_tenant_id is not None:
2640
+ _header_params['X-Tenant-Id'] = x_tenant_id
2641
+ if x_org_id is not None:
2642
+ _header_params['X-Org-Id'] = x_org_id
2643
+ if authorization is not None:
2644
+ _header_params['Authorization'] = authorization
2645
+ # process the form parameters
2646
+ # process the body parameter
2647
+
2648
+
2649
+ # set the HTTP header `Accept`
2650
+ if 'Accept' not in _header_params:
2651
+ _header_params['Accept'] = self.api_client.select_header_accept(
2652
+ [
2653
+ 'application/json'
2654
+ ]
2655
+ )
2656
+
2657
+
2658
+ # authentication setting
2659
+ _auth_settings: List[str] = [
2660
+ ]
2661
+
2662
+ return self.api_client.param_serialize(
2663
+ method='GET',
2664
+ resource_path='/v1/arc/governance/strategies',
2665
+ path_params=_path_params,
2666
+ query_params=_query_params,
2667
+ header_params=_header_params,
2668
+ body=_body_params,
2669
+ post_params=_form_params,
2670
+ files=_files,
2671
+ auth_settings=_auth_settings,
2672
+ collection_formats=_collection_formats,
2673
+ _host=_host,
2674
+ _request_auth=_request_auth
2675
+ )
2676
+
2677
+
2678
+
2679
+
2680
+ @validate_call
2681
+ def shadow_mode_endpoint_v1_arc(
2682
+ self,
2683
+ agent_type: StrictStr,
2684
+ shadow_mode_request: ShadowModeRequest,
2685
+ x_api_key: Optional[StrictStr] = None,
2686
+ x_tenant_id: Optional[StrictStr] = None,
2687
+ x_org_id: Optional[StrictStr] = None,
2688
+ authorization: Optional[StrictStr] = None,
2689
+ _request_timeout: Union[
2690
+ None,
2691
+ Annotated[StrictFloat, Field(gt=0)],
2692
+ Tuple[
2693
+ Annotated[StrictFloat, Field(gt=0)],
2694
+ Annotated[StrictFloat, Field(gt=0)]
2695
+ ]
2696
+ ] = None,
2697
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2698
+ _content_type: Optional[StrictStr] = None,
2699
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2700
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2701
+ ) -> object:
2702
+ """Shadow Mode Endpoint
2703
+
2704
+ POST /governance/agent-policies/{agent_type}/shadow-mode — Toggle shadow mode.
2705
+
2706
+ :param agent_type: (required)
2707
+ :type agent_type: str
2708
+ :param shadow_mode_request: (required)
2709
+ :type shadow_mode_request: ShadowModeRequest
2710
+ :param x_api_key:
2711
+ :type x_api_key: str
2712
+ :param x_tenant_id:
2713
+ :type x_tenant_id: str
2714
+ :param x_org_id:
2715
+ :type x_org_id: str
2716
+ :param authorization:
2717
+ :type authorization: str
2718
+ :param _request_timeout: timeout setting for this request. If one
2719
+ number provided, it will be total request
2720
+ timeout. It can also be a pair (tuple) of
2721
+ (connection, read) timeouts.
2722
+ :type _request_timeout: int, tuple(int, int), optional
2723
+ :param _request_auth: set to override the auth_settings for an a single
2724
+ request; this effectively ignores the
2725
+ authentication in the spec for a single request.
2726
+ :type _request_auth: dict, optional
2727
+ :param _content_type: force content-type for the request.
2728
+ :type _content_type: str, Optional
2729
+ :param _headers: set to override the headers for a single
2730
+ request; this effectively ignores the headers
2731
+ in the spec for a single request.
2732
+ :type _headers: dict, optional
2733
+ :param _host_index: set to override the host_index for a single
2734
+ request; this effectively ignores the host_index
2735
+ in the spec for a single request.
2736
+ :type _host_index: int, optional
2737
+ :return: Returns the result object.
2738
+ """ # noqa: E501
2739
+
2740
+ _param = self._shadow_mode_endpoint_v1_arc_serialize(
2741
+ agent_type=agent_type,
2742
+ shadow_mode_request=shadow_mode_request,
2743
+ x_api_key=x_api_key,
2744
+ x_tenant_id=x_tenant_id,
2745
+ x_org_id=x_org_id,
2746
+ authorization=authorization,
2747
+ _request_auth=_request_auth,
2748
+ _content_type=_content_type,
2749
+ _headers=_headers,
2750
+ _host_index=_host_index
2751
+ )
2752
+
2753
+ _response_types_map: Dict[str, Optional[str]] = {
2754
+ '200': "object",
2755
+ '422': "ArcHTTPValidationError",
2756
+ }
2757
+ response_data = self.api_client.call_api(
2758
+ *_param,
2759
+ _request_timeout=_request_timeout
2760
+ )
2761
+ response_data.read()
2762
+ return self.api_client.response_deserialize(
2763
+ response_data=response_data,
2764
+ response_types_map=_response_types_map,
2765
+ ).data
2766
+
2767
+
2768
+ @validate_call
2769
+ def shadow_mode_endpoint_v1_arc_with_http_info(
2770
+ self,
2771
+ agent_type: StrictStr,
2772
+ shadow_mode_request: ShadowModeRequest,
2773
+ x_api_key: Optional[StrictStr] = None,
2774
+ x_tenant_id: Optional[StrictStr] = None,
2775
+ x_org_id: Optional[StrictStr] = None,
2776
+ authorization: Optional[StrictStr] = None,
2777
+ _request_timeout: Union[
2778
+ None,
2779
+ Annotated[StrictFloat, Field(gt=0)],
2780
+ Tuple[
2781
+ Annotated[StrictFloat, Field(gt=0)],
2782
+ Annotated[StrictFloat, Field(gt=0)]
2783
+ ]
2784
+ ] = None,
2785
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2786
+ _content_type: Optional[StrictStr] = None,
2787
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2788
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2789
+ ) -> ApiResponse[object]:
2790
+ """Shadow Mode Endpoint
2791
+
2792
+ POST /governance/agent-policies/{agent_type}/shadow-mode — Toggle shadow mode.
2793
+
2794
+ :param agent_type: (required)
2795
+ :type agent_type: str
2796
+ :param shadow_mode_request: (required)
2797
+ :type shadow_mode_request: ShadowModeRequest
2798
+ :param x_api_key:
2799
+ :type x_api_key: str
2800
+ :param x_tenant_id:
2801
+ :type x_tenant_id: str
2802
+ :param x_org_id:
2803
+ :type x_org_id: str
2804
+ :param authorization:
2805
+ :type authorization: str
2806
+ :param _request_timeout: timeout setting for this request. If one
2807
+ number provided, it will be total request
2808
+ timeout. It can also be a pair (tuple) of
2809
+ (connection, read) timeouts.
2810
+ :type _request_timeout: int, tuple(int, int), optional
2811
+ :param _request_auth: set to override the auth_settings for an a single
2812
+ request; this effectively ignores the
2813
+ authentication in the spec for a single request.
2814
+ :type _request_auth: dict, optional
2815
+ :param _content_type: force content-type for the request.
2816
+ :type _content_type: str, Optional
2817
+ :param _headers: set to override the headers for a single
2818
+ request; this effectively ignores the headers
2819
+ in the spec for a single request.
2820
+ :type _headers: dict, optional
2821
+ :param _host_index: set to override the host_index for a single
2822
+ request; this effectively ignores the host_index
2823
+ in the spec for a single request.
2824
+ :type _host_index: int, optional
2825
+ :return: Returns the result object.
2826
+ """ # noqa: E501
2827
+
2828
+ _param = self._shadow_mode_endpoint_v1_arc_serialize(
2829
+ agent_type=agent_type,
2830
+ shadow_mode_request=shadow_mode_request,
2831
+ x_api_key=x_api_key,
2832
+ x_tenant_id=x_tenant_id,
2833
+ x_org_id=x_org_id,
2834
+ authorization=authorization,
2835
+ _request_auth=_request_auth,
2836
+ _content_type=_content_type,
2837
+ _headers=_headers,
2838
+ _host_index=_host_index
2839
+ )
2840
+
2841
+ _response_types_map: Dict[str, Optional[str]] = {
2842
+ '200': "object",
2843
+ '422': "ArcHTTPValidationError",
2844
+ }
2845
+ response_data = self.api_client.call_api(
2846
+ *_param,
2847
+ _request_timeout=_request_timeout
2848
+ )
2849
+ response_data.read()
2850
+ return self.api_client.response_deserialize(
2851
+ response_data=response_data,
2852
+ response_types_map=_response_types_map,
2853
+ )
2854
+
2855
+
2856
+ @validate_call
2857
+ def shadow_mode_endpoint_v1_arc_without_preload_content(
2858
+ self,
2859
+ agent_type: StrictStr,
2860
+ shadow_mode_request: ShadowModeRequest,
2861
+ x_api_key: Optional[StrictStr] = None,
2862
+ x_tenant_id: Optional[StrictStr] = None,
2863
+ x_org_id: Optional[StrictStr] = None,
2864
+ authorization: Optional[StrictStr] = None,
2865
+ _request_timeout: Union[
2866
+ None,
2867
+ Annotated[StrictFloat, Field(gt=0)],
2868
+ Tuple[
2869
+ Annotated[StrictFloat, Field(gt=0)],
2870
+ Annotated[StrictFloat, Field(gt=0)]
2871
+ ]
2872
+ ] = None,
2873
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2874
+ _content_type: Optional[StrictStr] = None,
2875
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2876
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2877
+ ) -> RESTResponseType:
2878
+ """Shadow Mode Endpoint
2879
+
2880
+ POST /governance/agent-policies/{agent_type}/shadow-mode — Toggle shadow mode.
2881
+
2882
+ :param agent_type: (required)
2883
+ :type agent_type: str
2884
+ :param shadow_mode_request: (required)
2885
+ :type shadow_mode_request: ShadowModeRequest
2886
+ :param x_api_key:
2887
+ :type x_api_key: str
2888
+ :param x_tenant_id:
2889
+ :type x_tenant_id: str
2890
+ :param x_org_id:
2891
+ :type x_org_id: str
2892
+ :param authorization:
2893
+ :type authorization: str
2894
+ :param _request_timeout: timeout setting for this request. If one
2895
+ number provided, it will be total request
2896
+ timeout. It can also be a pair (tuple) of
2897
+ (connection, read) timeouts.
2898
+ :type _request_timeout: int, tuple(int, int), optional
2899
+ :param _request_auth: set to override the auth_settings for an a single
2900
+ request; this effectively ignores the
2901
+ authentication in the spec for a single request.
2902
+ :type _request_auth: dict, optional
2903
+ :param _content_type: force content-type for the request.
2904
+ :type _content_type: str, Optional
2905
+ :param _headers: set to override the headers for a single
2906
+ request; this effectively ignores the headers
2907
+ in the spec for a single request.
2908
+ :type _headers: dict, optional
2909
+ :param _host_index: set to override the host_index for a single
2910
+ request; this effectively ignores the host_index
2911
+ in the spec for a single request.
2912
+ :type _host_index: int, optional
2913
+ :return: Returns the result object.
2914
+ """ # noqa: E501
2915
+
2916
+ _param = self._shadow_mode_endpoint_v1_arc_serialize(
2917
+ agent_type=agent_type,
2918
+ shadow_mode_request=shadow_mode_request,
2919
+ x_api_key=x_api_key,
2920
+ x_tenant_id=x_tenant_id,
2921
+ x_org_id=x_org_id,
2922
+ authorization=authorization,
2923
+ _request_auth=_request_auth,
2924
+ _content_type=_content_type,
2925
+ _headers=_headers,
2926
+ _host_index=_host_index
2927
+ )
2928
+
2929
+ _response_types_map: Dict[str, Optional[str]] = {
2930
+ '200': "object",
2931
+ '422': "ArcHTTPValidationError",
2932
+ }
2933
+ response_data = self.api_client.call_api(
2934
+ *_param,
2935
+ _request_timeout=_request_timeout
2936
+ )
2937
+ return response_data.response
2938
+
2939
+
2940
+ def _shadow_mode_endpoint_v1_arc_serialize(
2941
+ self,
2942
+ agent_type,
2943
+ shadow_mode_request,
2944
+ x_api_key,
2945
+ x_tenant_id,
2946
+ x_org_id,
2947
+ authorization,
2948
+ _request_auth,
2949
+ _content_type,
2950
+ _headers,
2951
+ _host_index,
2952
+ ) -> RequestSerialized:
2953
+
2954
+ _host = None
2955
+
2956
+ _collection_formats: Dict[str, str] = {
2957
+ }
2958
+
2959
+ _path_params: Dict[str, str] = {}
2960
+ _query_params: List[Tuple[str, str]] = []
2961
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2962
+ _form_params: List[Tuple[str, str]] = []
2963
+ _files: Dict[
2964
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2965
+ ] = {}
2966
+ _body_params: Optional[bytes] = None
2967
+
2968
+ # process the path parameters
2969
+ if agent_type is not None:
2970
+ _path_params['agent_type'] = agent_type
2971
+ # process the query parameters
2972
+ # process the header parameters
2973
+ if x_api_key is not None:
2974
+ _header_params['X-API-Key'] = x_api_key
2975
+ if x_tenant_id is not None:
2976
+ _header_params['X-Tenant-Id'] = x_tenant_id
2977
+ if x_org_id is not None:
2978
+ _header_params['X-Org-Id'] = x_org_id
2979
+ if authorization is not None:
2980
+ _header_params['Authorization'] = authorization
2981
+ # process the form parameters
2982
+ # process the body parameter
2983
+ if shadow_mode_request is not None:
2984
+ _body_params = shadow_mode_request
2985
+
2986
+
2987
+ # set the HTTP header `Accept`
2988
+ if 'Accept' not in _header_params:
2989
+ _header_params['Accept'] = self.api_client.select_header_accept(
2990
+ [
2991
+ 'application/json'
2992
+ ]
2993
+ )
2994
+
2995
+ # set the HTTP header `Content-Type`
2996
+ if _content_type:
2997
+ _header_params['Content-Type'] = _content_type
2998
+ else:
2999
+ _default_content_type = (
3000
+ self.api_client.select_header_content_type(
3001
+ [
3002
+ 'application/json'
3003
+ ]
3004
+ )
3005
+ )
3006
+ if _default_content_type is not None:
3007
+ _header_params['Content-Type'] = _default_content_type
3008
+
3009
+ # authentication setting
3010
+ _auth_settings: List[str] = [
3011
+ ]
3012
+
3013
+ return self.api_client.param_serialize(
3014
+ method='POST',
3015
+ resource_path='/v1/arc/governance/agent-policies/{agent_type}/shadow-mode',
3016
+ path_params=_path_params,
3017
+ query_params=_query_params,
3018
+ header_params=_header_params,
3019
+ body=_body_params,
3020
+ post_params=_form_params,
3021
+ files=_files,
3022
+ auth_settings=_auth_settings,
3023
+ collection_formats=_collection_formats,
3024
+ _host=_host,
3025
+ _request_auth=_request_auth
3026
+ )
3027
+
3028
+
3029
+
3030
+
3031
+ @validate_call
3032
+ def strategy_preview_endpoint_v1(
3033
+ self,
3034
+ strategy_preview_request: StrategyPreviewRequest,
3035
+ x_api_key: Optional[StrictStr] = None,
3036
+ x_tenant_id: Optional[StrictStr] = None,
3037
+ x_org_id: Optional[StrictStr] = None,
3038
+ authorization: Optional[StrictStr] = None,
3039
+ _request_timeout: Union[
3040
+ None,
3041
+ Annotated[StrictFloat, Field(gt=0)],
3042
+ Tuple[
3043
+ Annotated[StrictFloat, Field(gt=0)],
3044
+ Annotated[StrictFloat, Field(gt=0)]
3045
+ ]
3046
+ ] = None,
3047
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3048
+ _content_type: Optional[StrictStr] = None,
3049
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3050
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3051
+ ) -> object:
3052
+ """Strategy Preview Endpoint
3053
+
3054
+ POST /governance/strategy-preview — Dry-run strategy preview.
3055
+
3056
+ :param strategy_preview_request: (required)
3057
+ :type strategy_preview_request: StrategyPreviewRequest
3058
+ :param x_api_key:
3059
+ :type x_api_key: str
3060
+ :param x_tenant_id:
3061
+ :type x_tenant_id: str
3062
+ :param x_org_id:
3063
+ :type x_org_id: str
3064
+ :param authorization:
3065
+ :type authorization: str
3066
+ :param _request_timeout: timeout setting for this request. If one
3067
+ number provided, it will be total request
3068
+ timeout. It can also be a pair (tuple) of
3069
+ (connection, read) timeouts.
3070
+ :type _request_timeout: int, tuple(int, int), optional
3071
+ :param _request_auth: set to override the auth_settings for an a single
3072
+ request; this effectively ignores the
3073
+ authentication in the spec for a single request.
3074
+ :type _request_auth: dict, optional
3075
+ :param _content_type: force content-type for the request.
3076
+ :type _content_type: str, Optional
3077
+ :param _headers: set to override the headers for a single
3078
+ request; this effectively ignores the headers
3079
+ in the spec for a single request.
3080
+ :type _headers: dict, optional
3081
+ :param _host_index: set to override the host_index for a single
3082
+ request; this effectively ignores the host_index
3083
+ in the spec for a single request.
3084
+ :type _host_index: int, optional
3085
+ :return: Returns the result object.
3086
+ """ # noqa: E501
3087
+
3088
+ _param = self._strategy_preview_endpoint_v1_serialize(
3089
+ strategy_preview_request=strategy_preview_request,
3090
+ x_api_key=x_api_key,
3091
+ x_tenant_id=x_tenant_id,
3092
+ x_org_id=x_org_id,
3093
+ authorization=authorization,
3094
+ _request_auth=_request_auth,
3095
+ _content_type=_content_type,
3096
+ _headers=_headers,
3097
+ _host_index=_host_index
3098
+ )
3099
+
3100
+ _response_types_map: Dict[str, Optional[str]] = {
3101
+ '200': "object",
3102
+ '422': "ArcHTTPValidationError",
3103
+ }
3104
+ response_data = self.api_client.call_api(
3105
+ *_param,
3106
+ _request_timeout=_request_timeout
3107
+ )
3108
+ response_data.read()
3109
+ return self.api_client.response_deserialize(
3110
+ response_data=response_data,
3111
+ response_types_map=_response_types_map,
3112
+ ).data
3113
+
3114
+
3115
+ @validate_call
3116
+ def strategy_preview_endpoint_v1_with_http_info(
3117
+ self,
3118
+ strategy_preview_request: StrategyPreviewRequest,
3119
+ x_api_key: Optional[StrictStr] = None,
3120
+ x_tenant_id: Optional[StrictStr] = None,
3121
+ x_org_id: Optional[StrictStr] = None,
3122
+ authorization: Optional[StrictStr] = None,
3123
+ _request_timeout: Union[
3124
+ None,
3125
+ Annotated[StrictFloat, Field(gt=0)],
3126
+ Tuple[
3127
+ Annotated[StrictFloat, Field(gt=0)],
3128
+ Annotated[StrictFloat, Field(gt=0)]
3129
+ ]
3130
+ ] = None,
3131
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3132
+ _content_type: Optional[StrictStr] = None,
3133
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3134
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3135
+ ) -> ApiResponse[object]:
3136
+ """Strategy Preview Endpoint
3137
+
3138
+ POST /governance/strategy-preview — Dry-run strategy preview.
3139
+
3140
+ :param strategy_preview_request: (required)
3141
+ :type strategy_preview_request: StrategyPreviewRequest
3142
+ :param x_api_key:
3143
+ :type x_api_key: str
3144
+ :param x_tenant_id:
3145
+ :type x_tenant_id: str
3146
+ :param x_org_id:
3147
+ :type x_org_id: str
3148
+ :param authorization:
3149
+ :type authorization: str
3150
+ :param _request_timeout: timeout setting for this request. If one
3151
+ number provided, it will be total request
3152
+ timeout. It can also be a pair (tuple) of
3153
+ (connection, read) timeouts.
3154
+ :type _request_timeout: int, tuple(int, int), optional
3155
+ :param _request_auth: set to override the auth_settings for an a single
3156
+ request; this effectively ignores the
3157
+ authentication in the spec for a single request.
3158
+ :type _request_auth: dict, optional
3159
+ :param _content_type: force content-type for the request.
3160
+ :type _content_type: str, Optional
3161
+ :param _headers: set to override the headers for a single
3162
+ request; this effectively ignores the headers
3163
+ in the spec for a single request.
3164
+ :type _headers: dict, optional
3165
+ :param _host_index: set to override the host_index for a single
3166
+ request; this effectively ignores the host_index
3167
+ in the spec for a single request.
3168
+ :type _host_index: int, optional
3169
+ :return: Returns the result object.
3170
+ """ # noqa: E501
3171
+
3172
+ _param = self._strategy_preview_endpoint_v1_serialize(
3173
+ strategy_preview_request=strategy_preview_request,
3174
+ x_api_key=x_api_key,
3175
+ x_tenant_id=x_tenant_id,
3176
+ x_org_id=x_org_id,
3177
+ authorization=authorization,
3178
+ _request_auth=_request_auth,
3179
+ _content_type=_content_type,
3180
+ _headers=_headers,
3181
+ _host_index=_host_index
3182
+ )
3183
+
3184
+ _response_types_map: Dict[str, Optional[str]] = {
3185
+ '200': "object",
3186
+ '422': "ArcHTTPValidationError",
3187
+ }
3188
+ response_data = self.api_client.call_api(
3189
+ *_param,
3190
+ _request_timeout=_request_timeout
3191
+ )
3192
+ response_data.read()
3193
+ return self.api_client.response_deserialize(
3194
+ response_data=response_data,
3195
+ response_types_map=_response_types_map,
3196
+ )
3197
+
3198
+
3199
+ @validate_call
3200
+ def strategy_preview_endpoint_v1_without_preload_content(
3201
+ self,
3202
+ strategy_preview_request: StrategyPreviewRequest,
3203
+ x_api_key: Optional[StrictStr] = None,
3204
+ x_tenant_id: Optional[StrictStr] = None,
3205
+ x_org_id: Optional[StrictStr] = None,
3206
+ authorization: Optional[StrictStr] = None,
3207
+ _request_timeout: Union[
3208
+ None,
3209
+ Annotated[StrictFloat, Field(gt=0)],
3210
+ Tuple[
3211
+ Annotated[StrictFloat, Field(gt=0)],
3212
+ Annotated[StrictFloat, Field(gt=0)]
3213
+ ]
3214
+ ] = None,
3215
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3216
+ _content_type: Optional[StrictStr] = None,
3217
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3218
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3219
+ ) -> RESTResponseType:
3220
+ """Strategy Preview Endpoint
3221
+
3222
+ POST /governance/strategy-preview — Dry-run strategy preview.
3223
+
3224
+ :param strategy_preview_request: (required)
3225
+ :type strategy_preview_request: StrategyPreviewRequest
3226
+ :param x_api_key:
3227
+ :type x_api_key: str
3228
+ :param x_tenant_id:
3229
+ :type x_tenant_id: str
3230
+ :param x_org_id:
3231
+ :type x_org_id: str
3232
+ :param authorization:
3233
+ :type authorization: str
3234
+ :param _request_timeout: timeout setting for this request. If one
3235
+ number provided, it will be total request
3236
+ timeout. It can also be a pair (tuple) of
3237
+ (connection, read) timeouts.
3238
+ :type _request_timeout: int, tuple(int, int), optional
3239
+ :param _request_auth: set to override the auth_settings for an a single
3240
+ request; this effectively ignores the
3241
+ authentication in the spec for a single request.
3242
+ :type _request_auth: dict, optional
3243
+ :param _content_type: force content-type for the request.
3244
+ :type _content_type: str, Optional
3245
+ :param _headers: set to override the headers for a single
3246
+ request; this effectively ignores the headers
3247
+ in the spec for a single request.
3248
+ :type _headers: dict, optional
3249
+ :param _host_index: set to override the host_index for a single
3250
+ request; this effectively ignores the host_index
3251
+ in the spec for a single request.
3252
+ :type _host_index: int, optional
3253
+ :return: Returns the result object.
3254
+ """ # noqa: E501
3255
+
3256
+ _param = self._strategy_preview_endpoint_v1_serialize(
3257
+ strategy_preview_request=strategy_preview_request,
3258
+ x_api_key=x_api_key,
3259
+ x_tenant_id=x_tenant_id,
3260
+ x_org_id=x_org_id,
3261
+ authorization=authorization,
3262
+ _request_auth=_request_auth,
3263
+ _content_type=_content_type,
3264
+ _headers=_headers,
3265
+ _host_index=_host_index
3266
+ )
3267
+
3268
+ _response_types_map: Dict[str, Optional[str]] = {
3269
+ '200': "object",
3270
+ '422': "ArcHTTPValidationError",
3271
+ }
3272
+ response_data = self.api_client.call_api(
3273
+ *_param,
3274
+ _request_timeout=_request_timeout
3275
+ )
3276
+ return response_data.response
3277
+
3278
+
3279
+ def _strategy_preview_endpoint_v1_serialize(
3280
+ self,
3281
+ strategy_preview_request,
3282
+ x_api_key,
3283
+ x_tenant_id,
3284
+ x_org_id,
3285
+ authorization,
3286
+ _request_auth,
3287
+ _content_type,
3288
+ _headers,
3289
+ _host_index,
3290
+ ) -> RequestSerialized:
3291
+
3292
+ _host = None
3293
+
3294
+ _collection_formats: Dict[str, str] = {
3295
+ }
3296
+
3297
+ _path_params: Dict[str, str] = {}
3298
+ _query_params: List[Tuple[str, str]] = []
3299
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3300
+ _form_params: List[Tuple[str, str]] = []
3301
+ _files: Dict[
3302
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3303
+ ] = {}
3304
+ _body_params: Optional[bytes] = None
3305
+
3306
+ # process the path parameters
3307
+ # process the query parameters
3308
+ # process the header parameters
3309
+ if x_api_key is not None:
3310
+ _header_params['X-API-Key'] = x_api_key
3311
+ if x_tenant_id is not None:
3312
+ _header_params['X-Tenant-Id'] = x_tenant_id
3313
+ if x_org_id is not None:
3314
+ _header_params['X-Org-Id'] = x_org_id
3315
+ if authorization is not None:
3316
+ _header_params['Authorization'] = authorization
3317
+ # process the form parameters
3318
+ # process the body parameter
3319
+ if strategy_preview_request is not None:
3320
+ _body_params = strategy_preview_request
3321
+
3322
+
3323
+ # set the HTTP header `Accept`
3324
+ if 'Accept' not in _header_params:
3325
+ _header_params['Accept'] = self.api_client.select_header_accept(
3326
+ [
3327
+ 'application/json'
3328
+ ]
3329
+ )
3330
+
3331
+ # set the HTTP header `Content-Type`
3332
+ if _content_type:
3333
+ _header_params['Content-Type'] = _content_type
3334
+ else:
3335
+ _default_content_type = (
3336
+ self.api_client.select_header_content_type(
3337
+ [
3338
+ 'application/json'
3339
+ ]
3340
+ )
3341
+ )
3342
+ if _default_content_type is not None:
3343
+ _header_params['Content-Type'] = _default_content_type
3344
+
3345
+ # authentication setting
3346
+ _auth_settings: List[str] = [
3347
+ ]
3348
+
3349
+ return self.api_client.param_serialize(
3350
+ method='POST',
3351
+ resource_path='/v1/arc/governance/strategy-preview',
3352
+ path_params=_path_params,
3353
+ query_params=_query_params,
3354
+ header_params=_header_params,
3355
+ body=_body_params,
3356
+ post_params=_form_params,
3357
+ files=_files,
3358
+ auth_settings=_auth_settings,
3359
+ collection_formats=_collection_formats,
3360
+ _host=_host,
3361
+ _request_auth=_request_auth
3362
+ )
3363
+
3364
+
3365
+
3366
+
3367
+ @validate_call
3368
+ def update_cash_app_config_endpoint_v1_arc(
3369
+ self,
3370
+ cash_app_config_update_request: CashAppConfigUpdateRequest,
3371
+ x_api_key: Optional[StrictStr] = None,
3372
+ x_tenant_id: Optional[StrictStr] = None,
3373
+ x_org_id: Optional[StrictStr] = None,
3374
+ authorization: Optional[StrictStr] = None,
3375
+ _request_timeout: Union[
3376
+ None,
3377
+ Annotated[StrictFloat, Field(gt=0)],
3378
+ Tuple[
3379
+ Annotated[StrictFloat, Field(gt=0)],
3380
+ Annotated[StrictFloat, Field(gt=0)]
3381
+ ]
3382
+ ] = None,
3383
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3384
+ _content_type: Optional[StrictStr] = None,
3385
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3386
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3387
+ ) -> object:
3388
+ """Update Cash App Config Endpoint
3389
+
3390
+ PUT /governance/cash-app-config — Update cash application configuration.
3391
+
3392
+ :param cash_app_config_update_request: (required)
3393
+ :type cash_app_config_update_request: CashAppConfigUpdateRequest
3394
+ :param x_api_key:
3395
+ :type x_api_key: str
3396
+ :param x_tenant_id:
3397
+ :type x_tenant_id: str
3398
+ :param x_org_id:
3399
+ :type x_org_id: str
3400
+ :param authorization:
3401
+ :type authorization: str
3402
+ :param _request_timeout: timeout setting for this request. If one
3403
+ number provided, it will be total request
3404
+ timeout. It can also be a pair (tuple) of
3405
+ (connection, read) timeouts.
3406
+ :type _request_timeout: int, tuple(int, int), optional
3407
+ :param _request_auth: set to override the auth_settings for an a single
3408
+ request; this effectively ignores the
3409
+ authentication in the spec for a single request.
3410
+ :type _request_auth: dict, optional
3411
+ :param _content_type: force content-type for the request.
3412
+ :type _content_type: str, Optional
3413
+ :param _headers: set to override the headers for a single
3414
+ request; this effectively ignores the headers
3415
+ in the spec for a single request.
3416
+ :type _headers: dict, optional
3417
+ :param _host_index: set to override the host_index for a single
3418
+ request; this effectively ignores the host_index
3419
+ in the spec for a single request.
3420
+ :type _host_index: int, optional
3421
+ :return: Returns the result object.
3422
+ """ # noqa: E501
3423
+
3424
+ _param = self._update_cash_app_config_endpoint_v1_arc_serialize(
3425
+ cash_app_config_update_request=cash_app_config_update_request,
3426
+ x_api_key=x_api_key,
3427
+ x_tenant_id=x_tenant_id,
3428
+ x_org_id=x_org_id,
3429
+ authorization=authorization,
3430
+ _request_auth=_request_auth,
3431
+ _content_type=_content_type,
3432
+ _headers=_headers,
3433
+ _host_index=_host_index
3434
+ )
3435
+
3436
+ _response_types_map: Dict[str, Optional[str]] = {
3437
+ '200': "object",
3438
+ '422': "ArcHTTPValidationError",
3439
+ }
3440
+ response_data = self.api_client.call_api(
3441
+ *_param,
3442
+ _request_timeout=_request_timeout
3443
+ )
3444
+ response_data.read()
3445
+ return self.api_client.response_deserialize(
3446
+ response_data=response_data,
3447
+ response_types_map=_response_types_map,
3448
+ ).data
3449
+
3450
+
3451
+ @validate_call
3452
+ def update_cash_app_config_endpoint_v1_arc_with_http_info(
3453
+ self,
3454
+ cash_app_config_update_request: CashAppConfigUpdateRequest,
3455
+ x_api_key: Optional[StrictStr] = None,
3456
+ x_tenant_id: Optional[StrictStr] = None,
3457
+ x_org_id: Optional[StrictStr] = None,
3458
+ authorization: Optional[StrictStr] = None,
3459
+ _request_timeout: Union[
3460
+ None,
3461
+ Annotated[StrictFloat, Field(gt=0)],
3462
+ Tuple[
3463
+ Annotated[StrictFloat, Field(gt=0)],
3464
+ Annotated[StrictFloat, Field(gt=0)]
3465
+ ]
3466
+ ] = None,
3467
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3468
+ _content_type: Optional[StrictStr] = None,
3469
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3470
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3471
+ ) -> ApiResponse[object]:
3472
+ """Update Cash App Config Endpoint
3473
+
3474
+ PUT /governance/cash-app-config — Update cash application configuration.
3475
+
3476
+ :param cash_app_config_update_request: (required)
3477
+ :type cash_app_config_update_request: CashAppConfigUpdateRequest
3478
+ :param x_api_key:
3479
+ :type x_api_key: str
3480
+ :param x_tenant_id:
3481
+ :type x_tenant_id: str
3482
+ :param x_org_id:
3483
+ :type x_org_id: str
3484
+ :param authorization:
3485
+ :type authorization: str
3486
+ :param _request_timeout: timeout setting for this request. If one
3487
+ number provided, it will be total request
3488
+ timeout. It can also be a pair (tuple) of
3489
+ (connection, read) timeouts.
3490
+ :type _request_timeout: int, tuple(int, int), optional
3491
+ :param _request_auth: set to override the auth_settings for an a single
3492
+ request; this effectively ignores the
3493
+ authentication in the spec for a single request.
3494
+ :type _request_auth: dict, optional
3495
+ :param _content_type: force content-type for the request.
3496
+ :type _content_type: str, Optional
3497
+ :param _headers: set to override the headers for a single
3498
+ request; this effectively ignores the headers
3499
+ in the spec for a single request.
3500
+ :type _headers: dict, optional
3501
+ :param _host_index: set to override the host_index for a single
3502
+ request; this effectively ignores the host_index
3503
+ in the spec for a single request.
3504
+ :type _host_index: int, optional
3505
+ :return: Returns the result object.
3506
+ """ # noqa: E501
3507
+
3508
+ _param = self._update_cash_app_config_endpoint_v1_arc_serialize(
3509
+ cash_app_config_update_request=cash_app_config_update_request,
3510
+ x_api_key=x_api_key,
3511
+ x_tenant_id=x_tenant_id,
3512
+ x_org_id=x_org_id,
3513
+ authorization=authorization,
3514
+ _request_auth=_request_auth,
3515
+ _content_type=_content_type,
3516
+ _headers=_headers,
3517
+ _host_index=_host_index
3518
+ )
3519
+
3520
+ _response_types_map: Dict[str, Optional[str]] = {
3521
+ '200': "object",
3522
+ '422': "ArcHTTPValidationError",
3523
+ }
3524
+ response_data = self.api_client.call_api(
3525
+ *_param,
3526
+ _request_timeout=_request_timeout
3527
+ )
3528
+ response_data.read()
3529
+ return self.api_client.response_deserialize(
3530
+ response_data=response_data,
3531
+ response_types_map=_response_types_map,
3532
+ )
3533
+
3534
+
3535
+ @validate_call
3536
+ def update_cash_app_config_endpoint_v1_arc_without_preload_content(
3537
+ self,
3538
+ cash_app_config_update_request: CashAppConfigUpdateRequest,
3539
+ x_api_key: Optional[StrictStr] = None,
3540
+ x_tenant_id: Optional[StrictStr] = None,
3541
+ x_org_id: Optional[StrictStr] = None,
3542
+ authorization: Optional[StrictStr] = None,
3543
+ _request_timeout: Union[
3544
+ None,
3545
+ Annotated[StrictFloat, Field(gt=0)],
3546
+ Tuple[
3547
+ Annotated[StrictFloat, Field(gt=0)],
3548
+ Annotated[StrictFloat, Field(gt=0)]
3549
+ ]
3550
+ ] = None,
3551
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3552
+ _content_type: Optional[StrictStr] = None,
3553
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3554
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3555
+ ) -> RESTResponseType:
3556
+ """Update Cash App Config Endpoint
3557
+
3558
+ PUT /governance/cash-app-config — Update cash application configuration.
3559
+
3560
+ :param cash_app_config_update_request: (required)
3561
+ :type cash_app_config_update_request: CashAppConfigUpdateRequest
3562
+ :param x_api_key:
3563
+ :type x_api_key: str
3564
+ :param x_tenant_id:
3565
+ :type x_tenant_id: str
3566
+ :param x_org_id:
3567
+ :type x_org_id: str
3568
+ :param authorization:
3569
+ :type authorization: str
3570
+ :param _request_timeout: timeout setting for this request. If one
3571
+ number provided, it will be total request
3572
+ timeout. It can also be a pair (tuple) of
3573
+ (connection, read) timeouts.
3574
+ :type _request_timeout: int, tuple(int, int), optional
3575
+ :param _request_auth: set to override the auth_settings for an a single
3576
+ request; this effectively ignores the
3577
+ authentication in the spec for a single request.
3578
+ :type _request_auth: dict, optional
3579
+ :param _content_type: force content-type for the request.
3580
+ :type _content_type: str, Optional
3581
+ :param _headers: set to override the headers for a single
3582
+ request; this effectively ignores the headers
3583
+ in the spec for a single request.
3584
+ :type _headers: dict, optional
3585
+ :param _host_index: set to override the host_index for a single
3586
+ request; this effectively ignores the host_index
3587
+ in the spec for a single request.
3588
+ :type _host_index: int, optional
3589
+ :return: Returns the result object.
3590
+ """ # noqa: E501
3591
+
3592
+ _param = self._update_cash_app_config_endpoint_v1_arc_serialize(
3593
+ cash_app_config_update_request=cash_app_config_update_request,
3594
+ x_api_key=x_api_key,
3595
+ x_tenant_id=x_tenant_id,
3596
+ x_org_id=x_org_id,
3597
+ authorization=authorization,
3598
+ _request_auth=_request_auth,
3599
+ _content_type=_content_type,
3600
+ _headers=_headers,
3601
+ _host_index=_host_index
3602
+ )
3603
+
3604
+ _response_types_map: Dict[str, Optional[str]] = {
3605
+ '200': "object",
3606
+ '422': "ArcHTTPValidationError",
3607
+ }
3608
+ response_data = self.api_client.call_api(
3609
+ *_param,
3610
+ _request_timeout=_request_timeout
3611
+ )
3612
+ return response_data.response
3613
+
3614
+
3615
+ def _update_cash_app_config_endpoint_v1_arc_serialize(
3616
+ self,
3617
+ cash_app_config_update_request,
3618
+ x_api_key,
3619
+ x_tenant_id,
3620
+ x_org_id,
3621
+ authorization,
3622
+ _request_auth,
3623
+ _content_type,
3624
+ _headers,
3625
+ _host_index,
3626
+ ) -> RequestSerialized:
3627
+
3628
+ _host = None
3629
+
3630
+ _collection_formats: Dict[str, str] = {
3631
+ }
3632
+
3633
+ _path_params: Dict[str, str] = {}
3634
+ _query_params: List[Tuple[str, str]] = []
3635
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3636
+ _form_params: List[Tuple[str, str]] = []
3637
+ _files: Dict[
3638
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3639
+ ] = {}
3640
+ _body_params: Optional[bytes] = None
3641
+
3642
+ # process the path parameters
3643
+ # process the query parameters
3644
+ # process the header parameters
3645
+ if x_api_key is not None:
3646
+ _header_params['X-API-Key'] = x_api_key
3647
+ if x_tenant_id is not None:
3648
+ _header_params['X-Tenant-Id'] = x_tenant_id
3649
+ if x_org_id is not None:
3650
+ _header_params['X-Org-Id'] = x_org_id
3651
+ if authorization is not None:
3652
+ _header_params['Authorization'] = authorization
3653
+ # process the form parameters
3654
+ # process the body parameter
3655
+ if cash_app_config_update_request is not None:
3656
+ _body_params = cash_app_config_update_request
3657
+
3658
+
3659
+ # set the HTTP header `Accept`
3660
+ if 'Accept' not in _header_params:
3661
+ _header_params['Accept'] = self.api_client.select_header_accept(
3662
+ [
3663
+ 'application/json'
3664
+ ]
3665
+ )
3666
+
3667
+ # set the HTTP header `Content-Type`
3668
+ if _content_type:
3669
+ _header_params['Content-Type'] = _content_type
3670
+ else:
3671
+ _default_content_type = (
3672
+ self.api_client.select_header_content_type(
3673
+ [
3674
+ 'application/json'
3675
+ ]
3676
+ )
3677
+ )
3678
+ if _default_content_type is not None:
3679
+ _header_params['Content-Type'] = _default_content_type
3680
+
3681
+ # authentication setting
3682
+ _auth_settings: List[str] = [
3683
+ ]
3684
+
3685
+ return self.api_client.param_serialize(
3686
+ method='PUT',
3687
+ resource_path='/v1/arc/governance/cash-app-config',
3688
+ path_params=_path_params,
3689
+ query_params=_query_params,
3690
+ header_params=_header_params,
3691
+ body=_body_params,
3692
+ post_params=_form_params,
3693
+ files=_files,
3694
+ auth_settings=_auth_settings,
3695
+ collection_formats=_collection_formats,
3696
+ _host=_host,
3697
+ _request_auth=_request_auth
3698
+ )
3699
+
3700
+
3701
+
3702
+
3703
+ @validate_call
3704
+ def update_policy_endpoint_v1(
3705
+ self,
3706
+ policy_id: StrictStr,
3707
+ policy_update_request: PolicyUpdateRequest,
3708
+ x_api_key: Optional[StrictStr] = None,
3709
+ x_tenant_id: Optional[StrictStr] = None,
3710
+ x_org_id: Optional[StrictStr] = None,
3711
+ authorization: Optional[StrictStr] = None,
3712
+ _request_timeout: Union[
3713
+ None,
3714
+ Annotated[StrictFloat, Field(gt=0)],
3715
+ Tuple[
3716
+ Annotated[StrictFloat, Field(gt=0)],
3717
+ Annotated[StrictFloat, Field(gt=0)]
3718
+ ]
3719
+ ] = None,
3720
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3721
+ _content_type: Optional[StrictStr] = None,
3722
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3723
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3724
+ ) -> object:
3725
+ """Update Policy Endpoint
3726
+
3727
+ PUT /governance/agent-policies/{id} — Update an agent policy.
3728
+
3729
+ :param policy_id: (required)
3730
+ :type policy_id: str
3731
+ :param policy_update_request: (required)
3732
+ :type policy_update_request: PolicyUpdateRequest
3733
+ :param x_api_key:
3734
+ :type x_api_key: str
3735
+ :param x_tenant_id:
3736
+ :type x_tenant_id: str
3737
+ :param x_org_id:
3738
+ :type x_org_id: str
3739
+ :param authorization:
3740
+ :type authorization: str
3741
+ :param _request_timeout: timeout setting for this request. If one
3742
+ number provided, it will be total request
3743
+ timeout. It can also be a pair (tuple) of
3744
+ (connection, read) timeouts.
3745
+ :type _request_timeout: int, tuple(int, int), optional
3746
+ :param _request_auth: set to override the auth_settings for an a single
3747
+ request; this effectively ignores the
3748
+ authentication in the spec for a single request.
3749
+ :type _request_auth: dict, optional
3750
+ :param _content_type: force content-type for the request.
3751
+ :type _content_type: str, Optional
3752
+ :param _headers: set to override the headers for a single
3753
+ request; this effectively ignores the headers
3754
+ in the spec for a single request.
3755
+ :type _headers: dict, optional
3756
+ :param _host_index: set to override the host_index for a single
3757
+ request; this effectively ignores the host_index
3758
+ in the spec for a single request.
3759
+ :type _host_index: int, optional
3760
+ :return: Returns the result object.
3761
+ """ # noqa: E501
3762
+
3763
+ _param = self._update_policy_endpoint_v1_serialize(
3764
+ policy_id=policy_id,
3765
+ policy_update_request=policy_update_request,
3766
+ x_api_key=x_api_key,
3767
+ x_tenant_id=x_tenant_id,
3768
+ x_org_id=x_org_id,
3769
+ authorization=authorization,
3770
+ _request_auth=_request_auth,
3771
+ _content_type=_content_type,
3772
+ _headers=_headers,
3773
+ _host_index=_host_index
3774
+ )
3775
+
3776
+ _response_types_map: Dict[str, Optional[str]] = {
3777
+ '200': "object",
3778
+ '422': "ArcHTTPValidationError",
3779
+ }
3780
+ response_data = self.api_client.call_api(
3781
+ *_param,
3782
+ _request_timeout=_request_timeout
3783
+ )
3784
+ response_data.read()
3785
+ return self.api_client.response_deserialize(
3786
+ response_data=response_data,
3787
+ response_types_map=_response_types_map,
3788
+ ).data
3789
+
3790
+
3791
+ @validate_call
3792
+ def update_policy_endpoint_v1_with_http_info(
3793
+ self,
3794
+ policy_id: StrictStr,
3795
+ policy_update_request: PolicyUpdateRequest,
3796
+ x_api_key: Optional[StrictStr] = None,
3797
+ x_tenant_id: Optional[StrictStr] = None,
3798
+ x_org_id: Optional[StrictStr] = None,
3799
+ authorization: Optional[StrictStr] = None,
3800
+ _request_timeout: Union[
3801
+ None,
3802
+ Annotated[StrictFloat, Field(gt=0)],
3803
+ Tuple[
3804
+ Annotated[StrictFloat, Field(gt=0)],
3805
+ Annotated[StrictFloat, Field(gt=0)]
3806
+ ]
3807
+ ] = None,
3808
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3809
+ _content_type: Optional[StrictStr] = None,
3810
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3811
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3812
+ ) -> ApiResponse[object]:
3813
+ """Update Policy Endpoint
3814
+
3815
+ PUT /governance/agent-policies/{id} — Update an agent policy.
3816
+
3817
+ :param policy_id: (required)
3818
+ :type policy_id: str
3819
+ :param policy_update_request: (required)
3820
+ :type policy_update_request: PolicyUpdateRequest
3821
+ :param x_api_key:
3822
+ :type x_api_key: str
3823
+ :param x_tenant_id:
3824
+ :type x_tenant_id: str
3825
+ :param x_org_id:
3826
+ :type x_org_id: str
3827
+ :param authorization:
3828
+ :type authorization: str
3829
+ :param _request_timeout: timeout setting for this request. If one
3830
+ number provided, it will be total request
3831
+ timeout. It can also be a pair (tuple) of
3832
+ (connection, read) timeouts.
3833
+ :type _request_timeout: int, tuple(int, int), optional
3834
+ :param _request_auth: set to override the auth_settings for an a single
3835
+ request; this effectively ignores the
3836
+ authentication in the spec for a single request.
3837
+ :type _request_auth: dict, optional
3838
+ :param _content_type: force content-type for the request.
3839
+ :type _content_type: str, Optional
3840
+ :param _headers: set to override the headers for a single
3841
+ request; this effectively ignores the headers
3842
+ in the spec for a single request.
3843
+ :type _headers: dict, optional
3844
+ :param _host_index: set to override the host_index for a single
3845
+ request; this effectively ignores the host_index
3846
+ in the spec for a single request.
3847
+ :type _host_index: int, optional
3848
+ :return: Returns the result object.
3849
+ """ # noqa: E501
3850
+
3851
+ _param = self._update_policy_endpoint_v1_serialize(
3852
+ policy_id=policy_id,
3853
+ policy_update_request=policy_update_request,
3854
+ x_api_key=x_api_key,
3855
+ x_tenant_id=x_tenant_id,
3856
+ x_org_id=x_org_id,
3857
+ authorization=authorization,
3858
+ _request_auth=_request_auth,
3859
+ _content_type=_content_type,
3860
+ _headers=_headers,
3861
+ _host_index=_host_index
3862
+ )
3863
+
3864
+ _response_types_map: Dict[str, Optional[str]] = {
3865
+ '200': "object",
3866
+ '422': "ArcHTTPValidationError",
3867
+ }
3868
+ response_data = self.api_client.call_api(
3869
+ *_param,
3870
+ _request_timeout=_request_timeout
3871
+ )
3872
+ response_data.read()
3873
+ return self.api_client.response_deserialize(
3874
+ response_data=response_data,
3875
+ response_types_map=_response_types_map,
3876
+ )
3877
+
3878
+
3879
+ @validate_call
3880
+ def update_policy_endpoint_v1_without_preload_content(
3881
+ self,
3882
+ policy_id: StrictStr,
3883
+ policy_update_request: PolicyUpdateRequest,
3884
+ x_api_key: Optional[StrictStr] = None,
3885
+ x_tenant_id: Optional[StrictStr] = None,
3886
+ x_org_id: Optional[StrictStr] = None,
3887
+ authorization: Optional[StrictStr] = None,
3888
+ _request_timeout: Union[
3889
+ None,
3890
+ Annotated[StrictFloat, Field(gt=0)],
3891
+ Tuple[
3892
+ Annotated[StrictFloat, Field(gt=0)],
3893
+ Annotated[StrictFloat, Field(gt=0)]
3894
+ ]
3895
+ ] = None,
3896
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
3897
+ _content_type: Optional[StrictStr] = None,
3898
+ _headers: Optional[Dict[StrictStr, Any]] = None,
3899
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3900
+ ) -> RESTResponseType:
3901
+ """Update Policy Endpoint
3902
+
3903
+ PUT /governance/agent-policies/{id} — Update an agent policy.
3904
+
3905
+ :param policy_id: (required)
3906
+ :type policy_id: str
3907
+ :param policy_update_request: (required)
3908
+ :type policy_update_request: PolicyUpdateRequest
3909
+ :param x_api_key:
3910
+ :type x_api_key: str
3911
+ :param x_tenant_id:
3912
+ :type x_tenant_id: str
3913
+ :param x_org_id:
3914
+ :type x_org_id: str
3915
+ :param authorization:
3916
+ :type authorization: str
3917
+ :param _request_timeout: timeout setting for this request. If one
3918
+ number provided, it will be total request
3919
+ timeout. It can also be a pair (tuple) of
3920
+ (connection, read) timeouts.
3921
+ :type _request_timeout: int, tuple(int, int), optional
3922
+ :param _request_auth: set to override the auth_settings for an a single
3923
+ request; this effectively ignores the
3924
+ authentication in the spec for a single request.
3925
+ :type _request_auth: dict, optional
3926
+ :param _content_type: force content-type for the request.
3927
+ :type _content_type: str, Optional
3928
+ :param _headers: set to override the headers for a single
3929
+ request; this effectively ignores the headers
3930
+ in the spec for a single request.
3931
+ :type _headers: dict, optional
3932
+ :param _host_index: set to override the host_index for a single
3933
+ request; this effectively ignores the host_index
3934
+ in the spec for a single request.
3935
+ :type _host_index: int, optional
3936
+ :return: Returns the result object.
3937
+ """ # noqa: E501
3938
+
3939
+ _param = self._update_policy_endpoint_v1_serialize(
3940
+ policy_id=policy_id,
3941
+ policy_update_request=policy_update_request,
3942
+ x_api_key=x_api_key,
3943
+ x_tenant_id=x_tenant_id,
3944
+ x_org_id=x_org_id,
3945
+ authorization=authorization,
3946
+ _request_auth=_request_auth,
3947
+ _content_type=_content_type,
3948
+ _headers=_headers,
3949
+ _host_index=_host_index
3950
+ )
3951
+
3952
+ _response_types_map: Dict[str, Optional[str]] = {
3953
+ '200': "object",
3954
+ '422': "ArcHTTPValidationError",
3955
+ }
3956
+ response_data = self.api_client.call_api(
3957
+ *_param,
3958
+ _request_timeout=_request_timeout
3959
+ )
3960
+ return response_data.response
3961
+
3962
+
3963
+ def _update_policy_endpoint_v1_serialize(
3964
+ self,
3965
+ policy_id,
3966
+ policy_update_request,
3967
+ x_api_key,
3968
+ x_tenant_id,
3969
+ x_org_id,
3970
+ authorization,
3971
+ _request_auth,
3972
+ _content_type,
3973
+ _headers,
3974
+ _host_index,
3975
+ ) -> RequestSerialized:
3976
+
3977
+ _host = None
3978
+
3979
+ _collection_formats: Dict[str, str] = {
3980
+ }
3981
+
3982
+ _path_params: Dict[str, str] = {}
3983
+ _query_params: List[Tuple[str, str]] = []
3984
+ _header_params: Dict[str, Optional[str]] = _headers or {}
3985
+ _form_params: List[Tuple[str, str]] = []
3986
+ _files: Dict[
3987
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
3988
+ ] = {}
3989
+ _body_params: Optional[bytes] = None
3990
+
3991
+ # process the path parameters
3992
+ if policy_id is not None:
3993
+ _path_params['policy_id'] = policy_id
3994
+ # process the query parameters
3995
+ # process the header parameters
3996
+ if x_api_key is not None:
3997
+ _header_params['X-API-Key'] = x_api_key
3998
+ if x_tenant_id is not None:
3999
+ _header_params['X-Tenant-Id'] = x_tenant_id
4000
+ if x_org_id is not None:
4001
+ _header_params['X-Org-Id'] = x_org_id
4002
+ if authorization is not None:
4003
+ _header_params['Authorization'] = authorization
4004
+ # process the form parameters
4005
+ # process the body parameter
4006
+ if policy_update_request is not None:
4007
+ _body_params = policy_update_request
4008
+
4009
+
4010
+ # set the HTTP header `Accept`
4011
+ if 'Accept' not in _header_params:
4012
+ _header_params['Accept'] = self.api_client.select_header_accept(
4013
+ [
4014
+ 'application/json'
4015
+ ]
4016
+ )
4017
+
4018
+ # set the HTTP header `Content-Type`
4019
+ if _content_type:
4020
+ _header_params['Content-Type'] = _content_type
4021
+ else:
4022
+ _default_content_type = (
4023
+ self.api_client.select_header_content_type(
4024
+ [
4025
+ 'application/json'
4026
+ ]
4027
+ )
4028
+ )
4029
+ if _default_content_type is not None:
4030
+ _header_params['Content-Type'] = _default_content_type
4031
+
4032
+ # authentication setting
4033
+ _auth_settings: List[str] = [
4034
+ ]
4035
+
4036
+ return self.api_client.param_serialize(
4037
+ method='PUT',
4038
+ resource_path='/v1/arc/governance/agent-policies/{policy_id}',
4039
+ path_params=_path_params,
4040
+ query_params=_query_params,
4041
+ header_params=_header_params,
4042
+ body=_body_params,
4043
+ post_params=_form_params,
4044
+ files=_files,
4045
+ auth_settings=_auth_settings,
4046
+ collection_formats=_collection_formats,
4047
+ _host=_host,
4048
+ _request_auth=_request_auth
4049
+ )
4050
+
4051
+
4052
+
4053
+
4054
+ @validate_call
4055
+ def update_strategy_endpoint(
4056
+ self,
4057
+ strategy_id: StrictStr,
4058
+ strategy_update_request: StrategyUpdateRequest,
4059
+ x_api_key: Optional[StrictStr] = None,
4060
+ x_tenant_id: Optional[StrictStr] = None,
4061
+ x_org_id: Optional[StrictStr] = None,
4062
+ authorization: Optional[StrictStr] = None,
4063
+ _request_timeout: Union[
4064
+ None,
4065
+ Annotated[StrictFloat, Field(gt=0)],
4066
+ Tuple[
4067
+ Annotated[StrictFloat, Field(gt=0)],
4068
+ Annotated[StrictFloat, Field(gt=0)]
4069
+ ]
4070
+ ] = None,
4071
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4072
+ _content_type: Optional[StrictStr] = None,
4073
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4074
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4075
+ ) -> object:
4076
+ """Update Strategy Endpoint
4077
+
4078
+ PUT /governance/strategies/{id} — Update a dunning strategy.
4079
+
4080
+ :param strategy_id: (required)
4081
+ :type strategy_id: str
4082
+ :param strategy_update_request: (required)
4083
+ :type strategy_update_request: StrategyUpdateRequest
4084
+ :param x_api_key:
4085
+ :type x_api_key: str
4086
+ :param x_tenant_id:
4087
+ :type x_tenant_id: str
4088
+ :param x_org_id:
4089
+ :type x_org_id: str
4090
+ :param authorization:
4091
+ :type authorization: str
4092
+ :param _request_timeout: timeout setting for this request. If one
4093
+ number provided, it will be total request
4094
+ timeout. It can also be a pair (tuple) of
4095
+ (connection, read) timeouts.
4096
+ :type _request_timeout: int, tuple(int, int), optional
4097
+ :param _request_auth: set to override the auth_settings for an a single
4098
+ request; this effectively ignores the
4099
+ authentication in the spec for a single request.
4100
+ :type _request_auth: dict, optional
4101
+ :param _content_type: force content-type for the request.
4102
+ :type _content_type: str, Optional
4103
+ :param _headers: set to override the headers for a single
4104
+ request; this effectively ignores the headers
4105
+ in the spec for a single request.
4106
+ :type _headers: dict, optional
4107
+ :param _host_index: set to override the host_index for a single
4108
+ request; this effectively ignores the host_index
4109
+ in the spec for a single request.
4110
+ :type _host_index: int, optional
4111
+ :return: Returns the result object.
4112
+ """ # noqa: E501
4113
+
4114
+ _param = self._update_strategy_endpoint_serialize(
4115
+ strategy_id=strategy_id,
4116
+ strategy_update_request=strategy_update_request,
4117
+ x_api_key=x_api_key,
4118
+ x_tenant_id=x_tenant_id,
4119
+ x_org_id=x_org_id,
4120
+ authorization=authorization,
4121
+ _request_auth=_request_auth,
4122
+ _content_type=_content_type,
4123
+ _headers=_headers,
4124
+ _host_index=_host_index
4125
+ )
4126
+
4127
+ _response_types_map: Dict[str, Optional[str]] = {
4128
+ '200': "object",
4129
+ '422': "ArcHTTPValidationError",
4130
+ }
4131
+ response_data = self.api_client.call_api(
4132
+ *_param,
4133
+ _request_timeout=_request_timeout
4134
+ )
4135
+ response_data.read()
4136
+ return self.api_client.response_deserialize(
4137
+ response_data=response_data,
4138
+ response_types_map=_response_types_map,
4139
+ ).data
4140
+
4141
+
4142
+ @validate_call
4143
+ def update_strategy_endpoint_with_http_info(
4144
+ self,
4145
+ strategy_id: StrictStr,
4146
+ strategy_update_request: StrategyUpdateRequest,
4147
+ x_api_key: Optional[StrictStr] = None,
4148
+ x_tenant_id: Optional[StrictStr] = None,
4149
+ x_org_id: Optional[StrictStr] = None,
4150
+ authorization: Optional[StrictStr] = None,
4151
+ _request_timeout: Union[
4152
+ None,
4153
+ Annotated[StrictFloat, Field(gt=0)],
4154
+ Tuple[
4155
+ Annotated[StrictFloat, Field(gt=0)],
4156
+ Annotated[StrictFloat, Field(gt=0)]
4157
+ ]
4158
+ ] = None,
4159
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4160
+ _content_type: Optional[StrictStr] = None,
4161
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4162
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4163
+ ) -> ApiResponse[object]:
4164
+ """Update Strategy Endpoint
4165
+
4166
+ PUT /governance/strategies/{id} — Update a dunning strategy.
4167
+
4168
+ :param strategy_id: (required)
4169
+ :type strategy_id: str
4170
+ :param strategy_update_request: (required)
4171
+ :type strategy_update_request: StrategyUpdateRequest
4172
+ :param x_api_key:
4173
+ :type x_api_key: str
4174
+ :param x_tenant_id:
4175
+ :type x_tenant_id: str
4176
+ :param x_org_id:
4177
+ :type x_org_id: str
4178
+ :param authorization:
4179
+ :type authorization: str
4180
+ :param _request_timeout: timeout setting for this request. If one
4181
+ number provided, it will be total request
4182
+ timeout. It can also be a pair (tuple) of
4183
+ (connection, read) timeouts.
4184
+ :type _request_timeout: int, tuple(int, int), optional
4185
+ :param _request_auth: set to override the auth_settings for an a single
4186
+ request; this effectively ignores the
4187
+ authentication in the spec for a single request.
4188
+ :type _request_auth: dict, optional
4189
+ :param _content_type: force content-type for the request.
4190
+ :type _content_type: str, Optional
4191
+ :param _headers: set to override the headers for a single
4192
+ request; this effectively ignores the headers
4193
+ in the spec for a single request.
4194
+ :type _headers: dict, optional
4195
+ :param _host_index: set to override the host_index for a single
4196
+ request; this effectively ignores the host_index
4197
+ in the spec for a single request.
4198
+ :type _host_index: int, optional
4199
+ :return: Returns the result object.
4200
+ """ # noqa: E501
4201
+
4202
+ _param = self._update_strategy_endpoint_serialize(
4203
+ strategy_id=strategy_id,
4204
+ strategy_update_request=strategy_update_request,
4205
+ x_api_key=x_api_key,
4206
+ x_tenant_id=x_tenant_id,
4207
+ x_org_id=x_org_id,
4208
+ authorization=authorization,
4209
+ _request_auth=_request_auth,
4210
+ _content_type=_content_type,
4211
+ _headers=_headers,
4212
+ _host_index=_host_index
4213
+ )
4214
+
4215
+ _response_types_map: Dict[str, Optional[str]] = {
4216
+ '200': "object",
4217
+ '422': "ArcHTTPValidationError",
4218
+ }
4219
+ response_data = self.api_client.call_api(
4220
+ *_param,
4221
+ _request_timeout=_request_timeout
4222
+ )
4223
+ response_data.read()
4224
+ return self.api_client.response_deserialize(
4225
+ response_data=response_data,
4226
+ response_types_map=_response_types_map,
4227
+ )
4228
+
4229
+
4230
+ @validate_call
4231
+ def update_strategy_endpoint_without_preload_content(
4232
+ self,
4233
+ strategy_id: StrictStr,
4234
+ strategy_update_request: StrategyUpdateRequest,
4235
+ x_api_key: Optional[StrictStr] = None,
4236
+ x_tenant_id: Optional[StrictStr] = None,
4237
+ x_org_id: Optional[StrictStr] = None,
4238
+ authorization: Optional[StrictStr] = None,
4239
+ _request_timeout: Union[
4240
+ None,
4241
+ Annotated[StrictFloat, Field(gt=0)],
4242
+ Tuple[
4243
+ Annotated[StrictFloat, Field(gt=0)],
4244
+ Annotated[StrictFloat, Field(gt=0)]
4245
+ ]
4246
+ ] = None,
4247
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
4248
+ _content_type: Optional[StrictStr] = None,
4249
+ _headers: Optional[Dict[StrictStr, Any]] = None,
4250
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
4251
+ ) -> RESTResponseType:
4252
+ """Update Strategy Endpoint
4253
+
4254
+ PUT /governance/strategies/{id} — Update a dunning strategy.
4255
+
4256
+ :param strategy_id: (required)
4257
+ :type strategy_id: str
4258
+ :param strategy_update_request: (required)
4259
+ :type strategy_update_request: StrategyUpdateRequest
4260
+ :param x_api_key:
4261
+ :type x_api_key: str
4262
+ :param x_tenant_id:
4263
+ :type x_tenant_id: str
4264
+ :param x_org_id:
4265
+ :type x_org_id: str
4266
+ :param authorization:
4267
+ :type authorization: str
4268
+ :param _request_timeout: timeout setting for this request. If one
4269
+ number provided, it will be total request
4270
+ timeout. It can also be a pair (tuple) of
4271
+ (connection, read) timeouts.
4272
+ :type _request_timeout: int, tuple(int, int), optional
4273
+ :param _request_auth: set to override the auth_settings for an a single
4274
+ request; this effectively ignores the
4275
+ authentication in the spec for a single request.
4276
+ :type _request_auth: dict, optional
4277
+ :param _content_type: force content-type for the request.
4278
+ :type _content_type: str, Optional
4279
+ :param _headers: set to override the headers for a single
4280
+ request; this effectively ignores the headers
4281
+ in the spec for a single request.
4282
+ :type _headers: dict, optional
4283
+ :param _host_index: set to override the host_index for a single
4284
+ request; this effectively ignores the host_index
4285
+ in the spec for a single request.
4286
+ :type _host_index: int, optional
4287
+ :return: Returns the result object.
4288
+ """ # noqa: E501
4289
+
4290
+ _param = self._update_strategy_endpoint_serialize(
4291
+ strategy_id=strategy_id,
4292
+ strategy_update_request=strategy_update_request,
4293
+ x_api_key=x_api_key,
4294
+ x_tenant_id=x_tenant_id,
4295
+ x_org_id=x_org_id,
4296
+ authorization=authorization,
4297
+ _request_auth=_request_auth,
4298
+ _content_type=_content_type,
4299
+ _headers=_headers,
4300
+ _host_index=_host_index
4301
+ )
4302
+
4303
+ _response_types_map: Dict[str, Optional[str]] = {
4304
+ '200': "object",
4305
+ '422': "ArcHTTPValidationError",
4306
+ }
4307
+ response_data = self.api_client.call_api(
4308
+ *_param,
4309
+ _request_timeout=_request_timeout
4310
+ )
4311
+ return response_data.response
4312
+
4313
+
4314
+ def _update_strategy_endpoint_serialize(
4315
+ self,
4316
+ strategy_id,
4317
+ strategy_update_request,
4318
+ x_api_key,
4319
+ x_tenant_id,
4320
+ x_org_id,
4321
+ authorization,
4322
+ _request_auth,
4323
+ _content_type,
4324
+ _headers,
4325
+ _host_index,
4326
+ ) -> RequestSerialized:
4327
+
4328
+ _host = None
4329
+
4330
+ _collection_formats: Dict[str, str] = {
4331
+ }
4332
+
4333
+ _path_params: Dict[str, str] = {}
4334
+ _query_params: List[Tuple[str, str]] = []
4335
+ _header_params: Dict[str, Optional[str]] = _headers or {}
4336
+ _form_params: List[Tuple[str, str]] = []
4337
+ _files: Dict[
4338
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
4339
+ ] = {}
4340
+ _body_params: Optional[bytes] = None
4341
+
4342
+ # process the path parameters
4343
+ if strategy_id is not None:
4344
+ _path_params['strategy_id'] = strategy_id
4345
+ # process the query parameters
4346
+ # process the header parameters
4347
+ if x_api_key is not None:
4348
+ _header_params['X-API-Key'] = x_api_key
4349
+ if x_tenant_id is not None:
4350
+ _header_params['X-Tenant-Id'] = x_tenant_id
4351
+ if x_org_id is not None:
4352
+ _header_params['X-Org-Id'] = x_org_id
4353
+ if authorization is not None:
4354
+ _header_params['Authorization'] = authorization
4355
+ # process the form parameters
4356
+ # process the body parameter
4357
+ if strategy_update_request is not None:
4358
+ _body_params = strategy_update_request
4359
+
4360
+
4361
+ # set the HTTP header `Accept`
4362
+ if 'Accept' not in _header_params:
4363
+ _header_params['Accept'] = self.api_client.select_header_accept(
4364
+ [
4365
+ 'application/json'
4366
+ ]
4367
+ )
4368
+
4369
+ # set the HTTP header `Content-Type`
4370
+ if _content_type:
4371
+ _header_params['Content-Type'] = _content_type
4372
+ else:
4373
+ _default_content_type = (
4374
+ self.api_client.select_header_content_type(
4375
+ [
4376
+ 'application/json'
4377
+ ]
4378
+ )
4379
+ )
4380
+ if _default_content_type is not None:
4381
+ _header_params['Content-Type'] = _default_content_type
4382
+
4383
+ # authentication setting
4384
+ _auth_settings: List[str] = [
4385
+ ]
4386
+
4387
+ return self.api_client.param_serialize(
4388
+ method='PUT',
4389
+ resource_path='/v1/arc/governance/strategies/{strategy_id}',
4390
+ path_params=_path_params,
4391
+ query_params=_query_params,
4392
+ header_params=_header_params,
4393
+ body=_body_params,
4394
+ post_params=_form_params,
4395
+ files=_files,
4396
+ auth_settings=_auth_settings,
4397
+ collection_formats=_collection_formats,
4398
+ _host=_host,
4399
+ _request_auth=_request_auth
4400
+ )
4401
+
4402
+