ory-client 1.9.0__py3-none-any.whl → 1.11.7__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 (565) hide show
  1. ory_client/__init__.py +279 -10
  2. ory_client/api/__init__.py +16 -3
  3. ory_client/api/courier_api.py +576 -287
  4. ory_client/api/events_api.py +1147 -576
  5. ory_client/api/frontend_api.py +8736 -4145
  6. ory_client/api/identity_api.py +5219 -2605
  7. ory_client/api/jwk_api.py +1881 -939
  8. ory_client/api/metadata_api.py +245 -376
  9. ory_client/api/o_auth2_api.py +7763 -3858
  10. ory_client/api/oidc_api.py +2071 -1034
  11. ory_client/api/permission_api.py +1675 -776
  12. ory_client/api/project_api.py +5314 -2638
  13. ory_client/api/relationship_api.py +1844 -860
  14. ory_client/api/wellknown_api.py +250 -131
  15. ory_client/api_client.py +520 -658
  16. ory_client/api_response.py +21 -0
  17. ory_client/configuration.py +65 -75
  18. ory_client/exceptions.py +73 -32
  19. ory_client/models/__init__.py +266 -291
  20. ory_client/models/accept_o_auth2_consent_request.py +118 -0
  21. ory_client/models/accept_o_auth2_consent_request_session.py +113 -0
  22. ory_client/models/accept_o_auth2_login_request.py +117 -0
  23. ory_client/models/active_project_in_console.py +101 -0
  24. ory_client/models/attribute.py +103 -0
  25. ory_client/models/attribute_filter.py +115 -0
  26. ory_client/models/attributes_count_datapoint.py +103 -0
  27. ory_client/models/authenticator_assurance_level.py +40 -0
  28. ory_client/models/batch_patch_identities_response.py +109 -0
  29. ory_client/models/check_opl_syntax_result.py +109 -0
  30. ory_client/models/check_permission_result.py +101 -0
  31. ory_client/models/cloud_account.py +105 -0
  32. ory_client/models/consistency_request_parameters.py +111 -0
  33. ory_client/models/continue_with.py +214 -0
  34. ory_client/models/continue_with_recovery_ui.py +114 -0
  35. ory_client/models/continue_with_recovery_ui_flow.py +103 -0
  36. ory_client/models/continue_with_set_ory_session_token.py +110 -0
  37. ory_client/models/continue_with_settings_ui.py +114 -0
  38. ory_client/models/continue_with_settings_ui_flow.py +101 -0
  39. ory_client/models/continue_with_verification_ui.py +114 -0
  40. ory_client/models/continue_with_verification_ui_flow.py +105 -0
  41. ory_client/models/courier_message_status.py +40 -0
  42. ory_client/models/courier_message_type.py +38 -0
  43. ory_client/models/create_custom_domain_body.py +109 -0
  44. ory_client/models/create_event_stream_body.py +112 -0
  45. ory_client/models/create_identity_body.py +155 -0
  46. ory_client/models/create_invite_response.py +114 -0
  47. ory_client/models/create_json_web_key_set.py +105 -0
  48. ory_client/models/create_project_api_key_request.py +101 -0
  49. ory_client/models/create_project_body.py +112 -0
  50. ory_client/models/create_project_branding.py +115 -0
  51. ory_client/models/create_project_member_invite_body.py +101 -0
  52. ory_client/models/create_project_normalized_payload.py +685 -0
  53. ory_client/models/create_recovery_code_for_identity_body.py +114 -0
  54. ory_client/models/create_recovery_link_for_identity_body.py +114 -0
  55. ory_client/models/create_relationship_body.py +113 -0
  56. ory_client/models/create_subscription_body.py +126 -0
  57. ory_client/models/create_subscription_common.py +124 -0
  58. ory_client/models/create_verifiable_credential_request_body.py +109 -0
  59. ory_client/models/create_workspace_member_invite_body.py +101 -0
  60. ory_client/models/create_workspace_payload.py +101 -0
  61. ory_client/models/create_workspace_subscription_body.py +124 -0
  62. ory_client/models/credential_supported_draft00.py +107 -0
  63. ory_client/models/custom_domain.py +132 -0
  64. ory_client/models/delete_my_sessions_count.py +101 -0
  65. ory_client/models/email_template_data.py +107 -0
  66. ory_client/models/email_template_data_body.py +103 -0
  67. ory_client/models/error_authenticator_assurance_level_not_satisfied.py +107 -0
  68. ory_client/models/error_browser_location_change_required.py +107 -0
  69. ory_client/models/error_flow_replaced.py +107 -0
  70. ory_client/models/error_generic.py +105 -0
  71. ory_client/models/error_o_auth2.py +109 -0
  72. ory_client/models/event_stream.py +112 -0
  73. ory_client/models/expanded_permission_tree.py +125 -0
  74. ory_client/models/flow_error.py +108 -0
  75. ory_client/models/generic_error.py +126 -0
  76. ory_client/models/generic_error_content.py +109 -0
  77. ory_client/models/generic_usage.py +103 -0
  78. ory_client/models/get_attributes_count_response.py +111 -0
  79. ory_client/models/get_managed_identity_schema_location.py +101 -0
  80. ory_client/models/get_metrics_event_attributes_response.py +103 -0
  81. ory_client/models/get_metrics_event_types_response.py +103 -0
  82. ory_client/models/get_organization_response.py +105 -0
  83. ory_client/models/get_project_events_body.py +120 -0
  84. ory_client/models/get_project_events_response.py +115 -0
  85. ory_client/models/get_project_metrics_response.py +111 -0
  86. ory_client/models/get_session_activity_response.py +111 -0
  87. ory_client/models/get_version200_response.py +101 -0
  88. ory_client/models/health_not_ready_status.py +101 -0
  89. ory_client/models/health_status.py +101 -0
  90. ory_client/models/identity.py +187 -0
  91. ory_client/models/identity_credentials.py +122 -0
  92. ory_client/models/identity_credentials_code.py +109 -0
  93. ory_client/models/identity_credentials_oidc.py +109 -0
  94. ory_client/models/identity_credentials_oidc_provider.py +111 -0
  95. ory_client/models/identity_credentials_password.py +101 -0
  96. ory_client/models/identity_patch.py +107 -0
  97. ory_client/models/identity_patch_response.py +115 -0
  98. ory_client/models/identity_schema_container.py +103 -0
  99. ory_client/models/identity_schema_preset.py +103 -0
  100. ory_client/models/identity_with_credentials.py +111 -0
  101. ory_client/models/identity_with_credentials_oidc.py +105 -0
  102. ory_client/models/identity_with_credentials_oidc_config.py +115 -0
  103. ory_client/models/identity_with_credentials_oidc_config_provider.py +103 -0
  104. ory_client/models/identity_with_credentials_password.py +105 -0
  105. ory_client/models/identity_with_credentials_password_config.py +103 -0
  106. ory_client/models/internal_get_project_branding_body.py +101 -0
  107. ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +103 -0
  108. ory_client/models/internal_is_owner_for_project_by_slug_body.py +114 -0
  109. ory_client/models/internal_is_owner_for_project_by_slug_response.py +101 -0
  110. ory_client/models/introspected_o_auth2_token.py +127 -0
  111. ory_client/models/is_owner_for_project_by_slug.py +103 -0
  112. ory_client/models/json_patch.py +119 -0
  113. ory_client/models/json_web_key.py +133 -0
  114. ory_client/models/json_web_key_set.py +109 -0
  115. ory_client/models/keto_namespace.py +103 -0
  116. ory_client/models/list_event_streams.py +109 -0
  117. ory_client/models/list_my_workspaces_response.py +113 -0
  118. ory_client/models/list_organizations_response.py +109 -0
  119. ory_client/models/list_workspace_projects_response.py +113 -0
  120. ory_client/models/login_flow.py +165 -0
  121. ory_client/models/login_flow_state.py +39 -0
  122. ory_client/models/logout_flow.py +103 -0
  123. ory_client/models/managed_identity_schema.py +120 -0
  124. ory_client/models/managed_identity_schema_validation_result.py +103 -0
  125. ory_client/models/member_invite.py +148 -0
  126. ory_client/models/message.py +141 -0
  127. ory_client/models/message_dispatch.py +119 -0
  128. ory_client/models/metrics_datapoint.py +104 -0
  129. ory_client/models/migration_options.py +117 -0
  130. ory_client/models/namespace.py +101 -0
  131. ory_client/models/needs_privileged_session_error.py +107 -0
  132. ory_client/models/normalized_project.py +171 -0
  133. ory_client/models/normalized_project_revision.py +674 -0
  134. ory_client/models/normalized_project_revision_courier_channel.py +145 -0
  135. ory_client/models/normalized_project_revision_hook.py +140 -0
  136. ory_client/models/normalized_project_revision_identity_schema.py +133 -0
  137. ory_client/models/normalized_project_revision_third_party_provider.py +187 -0
  138. ory_client/models/normalized_project_revision_tokenizer_template.py +133 -0
  139. ory_client/models/o_auth2_client.py +352 -0
  140. ory_client/models/o_auth2_client_token_lifespans.py +270 -0
  141. ory_client/models/o_auth2_consent_request.py +133 -0
  142. ory_client/models/o_auth2_consent_request_open_id_connect_context.py +109 -0
  143. ory_client/models/o_auth2_consent_session.py +130 -0
  144. ory_client/models/o_auth2_consent_session_expires_at.py +110 -0
  145. ory_client/models/o_auth2_login_request.py +125 -0
  146. ory_client/models/o_auth2_logout_request.py +115 -0
  147. ory_client/models/o_auth2_redirect_to.py +101 -0
  148. ory_client/models/o_auth2_token_exchange.py +111 -0
  149. ory_client/models/oidc_configuration.py +169 -0
  150. ory_client/models/oidc_user_info.py +137 -0
  151. ory_client/models/organization.py +116 -0
  152. ory_client/models/organization_body.py +103 -0
  153. ory_client/models/pagination.py +104 -0
  154. ory_client/models/pagination_headers.py +103 -0
  155. ory_client/models/parse_error.py +112 -0
  156. ory_client/models/patch_identities_body.py +109 -0
  157. ory_client/models/perform_native_logout_body.py +101 -0
  158. ory_client/models/permissions_on_workpace_response.py +101 -0
  159. ory_client/models/plan.py +103 -0
  160. ory_client/models/plan_details.py +128 -0
  161. ory_client/models/post_check_permission_body.py +113 -0
  162. ory_client/models/post_check_permission_or_error_body.py +113 -0
  163. ory_client/models/project.py +148 -0
  164. ory_client/models/project_api_key.py +126 -0
  165. ory_client/models/project_branding.py +129 -0
  166. ory_client/models/project_branding_colors.py +157 -0
  167. ory_client/models/project_branding_theme.py +182 -0
  168. ory_client/models/project_cors.py +103 -0
  169. ory_client/models/project_events_datapoint.py +114 -0
  170. ory_client/models/project_host.py +107 -0
  171. ory_client/models/project_member.py +107 -0
  172. ory_client/models/project_metadata.py +161 -0
  173. ory_client/models/project_service_identity.py +101 -0
  174. ory_client/models/project_service_o_auth2.py +101 -0
  175. ory_client/models/project_service_permission.py +101 -0
  176. ory_client/models/project_services.py +117 -0
  177. ory_client/models/quota_usage.py +118 -0
  178. ory_client/models/recovery_code_for_identity.py +106 -0
  179. ory_client/models/recovery_flow.py +139 -0
  180. ory_client/models/recovery_flow_state.py +39 -0
  181. ory_client/models/recovery_identity_address.py +110 -0
  182. ory_client/models/recovery_link_for_identity.py +104 -0
  183. ory_client/models/registration_flow.py +156 -0
  184. ory_client/models/registration_flow_state.py +39 -0
  185. ory_client/models/reject_o_auth2_request.py +109 -0
  186. ory_client/models/relation_query.py +113 -0
  187. ory_client/models/relationship.py +113 -0
  188. ory_client/models/relationship_namespaces.py +109 -0
  189. ory_client/models/relationship_patch.py +117 -0
  190. ory_client/models/relationships.py +111 -0
  191. ory_client/models/rfc6749_error_json.py +109 -0
  192. ory_client/models/schema_patch.py +103 -0
  193. ory_client/models/self_service_flow_expired_error.py +112 -0
  194. ory_client/models/session.py +141 -0
  195. ory_client/models/session_activity_datapoint.py +105 -0
  196. ory_client/models/session_authentication_method.py +121 -0
  197. ory_client/models/session_device.py +107 -0
  198. ory_client/models/set_active_project_in_console_body.py +101 -0
  199. ory_client/models/set_custom_domain_body.py +109 -0
  200. ory_client/models/set_event_stream_body.py +112 -0
  201. ory_client/models/set_project.py +118 -0
  202. ory_client/models/set_project_branding_theme_body.py +115 -0
  203. ory_client/models/settings_flow.py +145 -0
  204. ory_client/models/settings_flow_state.py +38 -0
  205. ory_client/models/source_position.py +103 -0
  206. ory_client/models/subject_set.py +105 -0
  207. ory_client/models/subscription.py +179 -0
  208. ory_client/models/successful_code_exchange_response.py +107 -0
  209. ory_client/models/successful_native_login.py +117 -0
  210. ory_client/models/successful_native_registration.py +123 -0
  211. ory_client/models/successful_project_update.py +115 -0
  212. ory_client/models/token_pagination.py +104 -0
  213. ory_client/models/token_pagination_headers.py +103 -0
  214. ory_client/models/token_pagination_request_parameters.py +104 -0
  215. ory_client/models/token_pagination_response_headers.py +103 -0
  216. ory_client/models/trust_o_auth2_jwt_grant_issuer.py +116 -0
  217. ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +120 -0
  218. ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +103 -0
  219. ory_client/models/ui_container.py +123 -0
  220. ory_client/models/ui_node.py +139 -0
  221. ory_client/models/ui_node_anchor_attributes.py +118 -0
  222. ory_client/models/ui_node_attributes.py +238 -0
  223. ory_client/models/ui_node_image_attributes.py +116 -0
  224. ory_client/models/ui_node_input_attributes.py +154 -0
  225. ory_client/models/ui_node_meta.py +105 -0
  226. ory_client/models/ui_node_script_attributes.py +124 -0
  227. ory_client/models/ui_node_text_attributes.py +116 -0
  228. ory_client/models/ui_text.py +114 -0
  229. ory_client/models/update_identity_body.py +132 -0
  230. ory_client/models/update_login_flow_body.py +286 -0
  231. ory_client/models/update_login_flow_with_code_method.py +111 -0
  232. ory_client/models/update_login_flow_with_lookup_secret_method.py +105 -0
  233. ory_client/models/update_login_flow_with_oidc_method.py +115 -0
  234. ory_client/models/update_login_flow_with_passkey_method.py +105 -0
  235. ory_client/models/update_login_flow_with_password_method.py +111 -0
  236. ory_client/models/update_login_flow_with_totp_method.py +107 -0
  237. ory_client/models/update_login_flow_with_web_authn_method.py +109 -0
  238. ory_client/models/update_recovery_flow_body.py +166 -0
  239. ory_client/models/update_recovery_flow_with_code_method.py +116 -0
  240. ory_client/models/update_recovery_flow_with_link_method.py +114 -0
  241. ory_client/models/update_registration_flow_body.py +238 -0
  242. ory_client/models/update_registration_flow_with_code_method.py +111 -0
  243. ory_client/models/update_registration_flow_with_oidc_method.py +115 -0
  244. ory_client/models/update_registration_flow_with_passkey_method.py +109 -0
  245. ory_client/models/update_registration_flow_with_password_method.py +109 -0
  246. ory_client/models/update_registration_flow_with_profile_method.py +109 -0
  247. ory_client/models/update_registration_flow_with_web_authn_method.py +111 -0
  248. ory_client/models/update_settings_flow_body.py +286 -0
  249. ory_client/models/update_settings_flow_with_lookup_method.py +113 -0
  250. ory_client/models/update_settings_flow_with_oidc_method.py +113 -0
  251. ory_client/models/update_settings_flow_with_passkey_method.py +107 -0
  252. ory_client/models/update_settings_flow_with_password_method.py +107 -0
  253. ory_client/models/update_settings_flow_with_profile_method.py +107 -0
  254. ory_client/models/update_settings_flow_with_totp_method.py +109 -0
  255. ory_client/models/update_settings_flow_with_web_authn_method.py +111 -0
  256. ory_client/models/update_subscription_body.py +112 -0
  257. ory_client/models/update_verification_flow_body.py +166 -0
  258. ory_client/models/update_verification_flow_with_code_method.py +116 -0
  259. ory_client/models/update_verification_flow_with_link_method.py +114 -0
  260. ory_client/models/update_workspace_payload.py +101 -0
  261. ory_client/models/usage.py +105 -0
  262. ory_client/models/verifiable_credential_priming_response.py +115 -0
  263. ory_client/models/verifiable_credential_proof.py +103 -0
  264. ory_client/models/verifiable_credential_response.py +103 -0
  265. ory_client/models/verifiable_identity_address.py +123 -0
  266. ory_client/models/verification_flow.py +129 -0
  267. ory_client/models/verification_flow_state.py +39 -0
  268. ory_client/models/version.py +101 -0
  269. ory_client/models/warning.py +103 -0
  270. ory_client/models/workspace.py +115 -0
  271. ory_client/models/workspace_meta.py +122 -0
  272. ory_client/py.typed +0 -0
  273. ory_client/rest.py +139 -236
  274. {ory_client-1.9.0.dist-info → ory_client-1.11.7.dist-info}/METADATA +6 -4
  275. ory_client-1.11.7.dist-info/RECORD +278 -0
  276. ory_client/apis/__init__.py +0 -28
  277. ory_client/model/__init__.py +0 -5
  278. ory_client/model/accept_o_auth2_consent_request.py +0 -296
  279. ory_client/model/accept_o_auth2_consent_request_session.py +0 -268
  280. ory_client/model/accept_o_auth2_login_request.py +0 -308
  281. ory_client/model/active_project_in_console.py +0 -264
  282. ory_client/model/attribute.py +0 -268
  283. ory_client/model/attribute_filter.py +0 -282
  284. ory_client/model/attributes_count_datapoint.py +0 -276
  285. ory_client/model/authenticator_assurance_level.py +0 -293
  286. ory_client/model/batch_patch_identities_response.py +0 -270
  287. ory_client/model/check_opl_syntax_result.py +0 -270
  288. ory_client/model/check_permission_result.py +0 -270
  289. ory_client/model/cloud_account.py +0 -282
  290. ory_client/model/consistency_request_parameters.py +0 -269
  291. ory_client/model/continue_with.py +0 -356
  292. ory_client/model/continue_with_recovery_ui.py +0 -287
  293. ory_client/model/continue_with_recovery_ui_flow.py +0 -274
  294. ory_client/model/continue_with_set_ory_session_token.py +0 -281
  295. ory_client/model/continue_with_settings_ui.py +0 -287
  296. ory_client/model/continue_with_settings_ui_flow.py +0 -270
  297. ory_client/model/continue_with_verification_ui.py +0 -287
  298. ory_client/model/continue_with_verification_ui_flow.py +0 -280
  299. ory_client/model/courier_message_status.py +0 -293
  300. ory_client/model/courier_message_type.py +0 -291
  301. ory_client/model/create_custom_domain_body.py +0 -280
  302. ory_client/model/create_event_stream_body.py +0 -287
  303. ory_client/model/create_identity_body.py +0 -314
  304. ory_client/model/create_invite_response.py +0 -282
  305. ory_client/model/create_json_web_key_set.py +0 -282
  306. ory_client/model/create_member_invite_response.py +0 -287
  307. ory_client/model/create_project_api_key_request.py +0 -270
  308. ory_client/model/create_project_body.py +0 -284
  309. ory_client/model/create_project_branding.py +0 -290
  310. ory_client/model/create_project_member_invite_body.py +0 -264
  311. ory_client/model/create_project_normalized_payload.py +0 -1119
  312. ory_client/model/create_recovery_code_for_identity_body.py +0 -279
  313. ory_client/model/create_recovery_link_for_identity_body.py +0 -279
  314. ory_client/model/create_relationship_body.py +0 -286
  315. ory_client/model/create_subscription_body.py +0 -298
  316. ory_client/model/create_subscription_common.py +0 -292
  317. ory_client/model/create_verifiable_credential_request_body.py +0 -278
  318. ory_client/model/create_workspace_member_invite_body.py +0 -264
  319. ory_client/model/create_workspace_payload.py +0 -270
  320. ory_client/model/create_workspace_subscription_body.py +0 -292
  321. ory_client/model/credential_supported_draft00.py +0 -276
  322. ory_client/model/custom_domain.py +0 -334
  323. ory_client/model/delete_my_sessions_count.py +0 -264
  324. ory_client/model/email_template_data.py +0 -282
  325. ory_client/model/email_template_data_body.py +0 -276
  326. ory_client/model/error_authenticator_assurance_level_not_satisfied.py +0 -274
  327. ory_client/model/error_browser_location_change_required.py +0 -274
  328. ory_client/model/error_flow_replaced.py +0 -274
  329. ory_client/model/error_generic.py +0 -276
  330. ory_client/model/error_o_auth2.py +0 -280
  331. ory_client/model/event_stream.py +0 -284
  332. ory_client/model/expanded_permission_tree.py +0 -294
  333. ory_client/model/flow_error.py +0 -282
  334. ory_client/model/generic_error.py +0 -308
  335. ory_client/model/generic_error_content.py +0 -280
  336. ory_client/model/generic_usage.py +0 -276
  337. ory_client/model/get_attributes_count_response.py +0 -273
  338. ory_client/model/get_managed_identity_schema_location.py +0 -264
  339. ory_client/model/get_metrics_event_attributes_response.py +0 -267
  340. ory_client/model/get_metrics_event_types_response.py +0 -267
  341. ory_client/model/get_organization_response.py +0 -276
  342. ory_client/model/get_project_events_body.py +0 -298
  343. ory_client/model/get_project_events_response.py +0 -278
  344. ory_client/model/get_project_metrics_response.py +0 -273
  345. ory_client/model/get_session_activity_response.py +0 -273
  346. ory_client/model/get_version200_response.py +0 -270
  347. ory_client/model/health_not_ready_status.py +0 -264
  348. ory_client/model/health_status.py +0 -264
  349. ory_client/model/identity.py +0 -342
  350. ory_client/model/identity_credentials.py +0 -294
  351. ory_client/model/identity_credentials_code.py +0 -268
  352. ory_client/model/identity_credentials_oidc.py +0 -270
  353. ory_client/model/identity_credentials_oidc_provider.py +0 -284
  354. ory_client/model/identity_credentials_password.py +0 -264
  355. ory_client/model/identity_patch.py +0 -274
  356. ory_client/model/identity_patch_response.py +0 -275
  357. ory_client/model/identity_schema_container.py +0 -268
  358. ory_client/model/identity_schema_preset.py +0 -276
  359. ory_client/model/identity_schema_presets.py +0 -292
  360. ory_client/model/identity_schemas.py +0 -292
  361. ory_client/model/identity_with_credentials.py +0 -276
  362. ory_client/model/identity_with_credentials_oidc.py +0 -270
  363. ory_client/model/identity_with_credentials_oidc_config.py +0 -276
  364. ory_client/model/identity_with_credentials_oidc_config_provider.py +0 -276
  365. ory_client/model/identity_with_credentials_password.py +0 -270
  366. ory_client/model/identity_with_credentials_password_config.py +0 -268
  367. ory_client/model/internal_get_project_branding_body.py +0 -264
  368. ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +0 -276
  369. ory_client/model/internal_is_owner_for_project_by_slug_body.py +0 -290
  370. ory_client/model/internal_is_owner_for_project_by_slug_response.py +0 -270
  371. ory_client/model/introspected_o_auth2_token.py +0 -322
  372. ory_client/model/is_owner_for_project_by_slug.py +0 -276
  373. ory_client/model/is_ready200_response.py +0 -270
  374. ory_client/model/is_ready503_response.py +0 -270
  375. ory_client/model/json_patch.py +0 -292
  376. ory_client/model/json_patch_document.py +0 -292
  377. ory_client/model/json_web_key.py +0 -340
  378. ory_client/model/json_web_key_set.py +0 -270
  379. ory_client/model/keto_namespace.py +0 -268
  380. ory_client/model/keto_namespaces.py +0 -292
  381. ory_client/model/list_custom_domains.py +0 -292
  382. ory_client/model/list_event_streams.py +0 -270
  383. ory_client/model/list_my_workspaces_response.py +0 -288
  384. ory_client/model/list_organizations_response.py +0 -276
  385. ory_client/model/list_workspace_projects_response.py +0 -288
  386. ory_client/model/login_flow.py +0 -370
  387. ory_client/model/login_flow_state.py +0 -292
  388. ory_client/model/logout_flow.py +0 -276
  389. ory_client/model/managed_identity_schema.py +0 -300
  390. ory_client/model/managed_identity_schema_validation_result.py +0 -268
  391. ory_client/model/managed_identity_schemas.py +0 -292
  392. ory_client/model/member_invite.py +0 -321
  393. ory_client/model/member_invites.py +0 -292
  394. ory_client/model/message.py +0 -355
  395. ory_client/model/message_dispatch.py +0 -302
  396. ory_client/model/metrics_datapoint.py +0 -276
  397. ory_client/model/migration_options.py +0 -284
  398. ory_client/model/namespace.py +0 -264
  399. ory_client/model/needs_privileged_session_error.py +0 -280
  400. ory_client/model/normalized_project.py +0 -337
  401. ory_client/model/normalized_project_revision.py +0 -1105
  402. ory_client/model/normalized_project_revision_courier_channel.py +0 -328
  403. ory_client/model/normalized_project_revision_hook.py +0 -342
  404. ory_client/model/normalized_project_revision_identity_schema.py +0 -308
  405. ory_client/model/normalized_project_revision_identity_schemas.py +0 -292
  406. ory_client/model/normalized_project_revision_third_party_provider.py +0 -368
  407. ory_client/model/normalized_project_revision_tokenizer_template.py +0 -300
  408. ory_client/model/normalized_project_revision_tokenizer_templates.py +0 -292
  409. ory_client/model/normalized_projects.py +0 -292
  410. ory_client/model/null_duration.py +0 -292
  411. ory_client/model/o_auth2_client.py +0 -460
  412. ory_client/model/o_auth2_client_token_lifespans.py +0 -306
  413. ory_client/model/o_auth2_consent_request.py +0 -328
  414. ory_client/model/o_auth2_consent_request_open_id_connect_context.py +0 -280
  415. ory_client/model/o_auth2_consent_session.py +0 -308
  416. ory_client/model/o_auth2_consent_session_expires_at.py +0 -280
  417. ory_client/model/o_auth2_consent_sessions.py +0 -292
  418. ory_client/model/o_auth2_login_request.py +0 -320
  419. ory_client/model/o_auth2_logout_request.py +0 -290
  420. ory_client/model/o_auth2_redirect_to.py +0 -270
  421. ory_client/model/o_auth2_token_exchange.py +0 -284
  422. ory_client/model/oidc_configuration.py +0 -412
  423. ory_client/model/oidc_user_info.py +0 -336
  424. ory_client/model/organization.py +0 -302
  425. ory_client/model/organization_body.py +0 -268
  426. ory_client/model/pagination.py +0 -274
  427. ory_client/model/pagination_headers.py +0 -268
  428. ory_client/model/parse_error.py +0 -278
  429. ory_client/model/patch_identities_body.py +0 -270
  430. ory_client/model/perform_native_logout_body.py +0 -270
  431. ory_client/model/permissions_on_project.py +0 -260
  432. ory_client/model/permissions_on_workpace_response.py +0 -264
  433. ory_client/model/plan.py +0 -276
  434. ory_client/model/plan_details.py +0 -316
  435. ory_client/model/plan_features.py +0 -266
  436. ory_client/model/plans.py +0 -287
  437. ory_client/model/post_check_permission_body.py +0 -286
  438. ory_client/model/post_check_permission_or_error_body.py +0 -286
  439. ory_client/model/pricing.py +0 -292
  440. ory_client/model/project.py +0 -319
  441. ory_client/model/project_api_key.py +0 -298
  442. ory_client/model/project_api_keys.py +0 -292
  443. ory_client/model/project_branding.py +0 -303
  444. ory_client/model/project_branding_colors.py +0 -376
  445. ory_client/model/project_branding_theme.py +0 -421
  446. ory_client/model/project_branding_themes.py +0 -292
  447. ory_client/model/project_cors.py +0 -268
  448. ory_client/model/project_events_datapoint.py +0 -288
  449. ory_client/model/project_host.py +0 -281
  450. ory_client/model/project_member.py +0 -288
  451. ory_client/model/project_members.py +0 -292
  452. ory_client/model/project_metadata.py +0 -337
  453. ory_client/model/project_metadata_list.py +0 -292
  454. ory_client/model/project_revision_hooks.py +0 -292
  455. ory_client/model/project_revision_identity_schemas.py +0 -292
  456. ory_client/model/project_revision_third_party_login_providers.py +0 -292
  457. ory_client/model/project_revisions.py +0 -292
  458. ory_client/model/project_service_identity.py +0 -270
  459. ory_client/model/project_service_o_auth2.py +0 -270
  460. ory_client/model/project_service_permission.py +0 -270
  461. ory_client/model/project_services.py +0 -282
  462. ory_client/model/projects.py +0 -292
  463. ory_client/model/quota_usage.py +0 -328
  464. ory_client/model/recovery_code_for_identity.py +0 -280
  465. ory_client/model/recovery_flow.py +0 -330
  466. ory_client/model/recovery_flow_state.py +0 -292
  467. ory_client/model/recovery_identity_address.py +0 -290
  468. ory_client/model/recovery_link_for_identity.py +0 -274
  469. ory_client/model/registration_flow.py +0 -352
  470. ory_client/model/registration_flow_state.py +0 -292
  471. ory_client/model/reject_o_auth2_request.py +0 -280
  472. ory_client/model/relation_query.py +0 -286
  473. ory_client/model/relationship.py +0 -296
  474. ory_client/model/relationship_namespaces.py +0 -270
  475. ory_client/model/relationship_patch.py +0 -278
  476. ory_client/model/relationships.py +0 -274
  477. ory_client/model/revision_courier_channels.py +0 -292
  478. ory_client/model/rfc6749_error_json.py +0 -280
  479. ory_client/model/schema_patch.py +0 -276
  480. ory_client/model/self_service_flow_expired_error.py +0 -282
  481. ory_client/model/session.py +0 -318
  482. ory_client/model/session_activity_datapoint.py +0 -282
  483. ory_client/model/session_authentication_method.py +0 -297
  484. ory_client/model/session_authentication_methods.py +0 -292
  485. ory_client/model/session_device.py +0 -282
  486. ory_client/model/set_active_project_in_console_body.py +0 -270
  487. ory_client/model/set_custom_domain_body.py +0 -280
  488. ory_client/model/set_event_stream_body.py +0 -287
  489. ory_client/model/set_project.py +0 -296
  490. ory_client/model/set_project_branding_theme_body.py +0 -290
  491. ory_client/model/settings_flow.py +0 -338
  492. ory_client/model/settings_flow_state.py +0 -291
  493. ory_client/model/source_position.py +0 -268
  494. ory_client/model/string_slice_json_format.py +0 -287
  495. ory_client/model/subject_set.py +0 -282
  496. ory_client/model/subscription.py +0 -350
  497. ory_client/model/successful_code_exchange_response.py +0 -280
  498. ory_client/model/successful_native_login.py +0 -280
  499. ory_client/model/successful_native_registration.py +0 -292
  500. ory_client/model/successful_project_update.py +0 -284
  501. ory_client/model/token_pagination.py +0 -274
  502. ory_client/model/token_pagination_headers.py +0 -268
  503. ory_client/model/token_pagination_request_parameters.py +0 -274
  504. ory_client/model/token_pagination_response_headers.py +0 -268
  505. ory_client/model/trust_o_auth2_jwt_grant_issuer.py +0 -302
  506. ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +0 -298
  507. ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +0 -292
  508. ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +0 -268
  509. ory_client/model/ui_container.py +0 -294
  510. ory_client/model/ui_node.py +0 -322
  511. ory_client/model/ui_node_anchor_attributes.py +0 -294
  512. ory_client/model/ui_node_attributes.py +0 -440
  513. ory_client/model/ui_node_image_attributes.py +0 -294
  514. ory_client/model/ui_node_input_attributes.py +0 -340
  515. ory_client/model/ui_node_meta.py +0 -270
  516. ory_client/model/ui_node_script_attributes.py +0 -318
  517. ory_client/model/ui_node_text_attributes.py +0 -288
  518. ory_client/model/ui_nodes.py +0 -292
  519. ory_client/model/ui_text.py +0 -291
  520. ory_client/model/ui_texts.py +0 -292
  521. ory_client/model/update_identity_body.py +0 -304
  522. ory_client/model/update_login_flow_body.py +0 -411
  523. ory_client/model/update_login_flow_with_code_method.py +0 -292
  524. ory_client/model/update_login_flow_with_lookup_secret_method.py +0 -280
  525. ory_client/model/update_login_flow_with_oidc_method.py +0 -300
  526. ory_client/model/update_login_flow_with_password_method.py +0 -294
  527. ory_client/model/update_login_flow_with_totp_method.py +0 -284
  528. ory_client/model/update_login_flow_with_web_authn_method.py +0 -288
  529. ory_client/model/update_recovery_flow_body.py +0 -351
  530. ory_client/model/update_recovery_flow_with_code_method.py +0 -290
  531. ory_client/model/update_recovery_flow_with_link_method.py +0 -288
  532. ory_client/model/update_registration_flow_body.py +0 -389
  533. ory_client/model/update_registration_flow_with_code_method.py +0 -292
  534. ory_client/model/update_registration_flow_with_oidc_method.py +0 -300
  535. ory_client/model/update_registration_flow_with_password_method.py +0 -290
  536. ory_client/model/update_registration_flow_with_web_authn_method.py +0 -292
  537. ory_client/model/update_settings_flow_body.py +0 -419
  538. ory_client/model/update_settings_flow_with_lookup_method.py +0 -294
  539. ory_client/model/update_settings_flow_with_oidc_method.py +0 -294
  540. ory_client/model/update_settings_flow_with_password_method.py +0 -284
  541. ory_client/model/update_settings_flow_with_profile_method.py +0 -284
  542. ory_client/model/update_settings_flow_with_totp_method.py +0 -286
  543. ory_client/model/update_settings_flow_with_web_authn_method.py +0 -290
  544. ory_client/model/update_subscription_body.py +0 -284
  545. ory_client/model/update_verification_flow_body.py +0 -351
  546. ory_client/model/update_verification_flow_with_code_method.py +0 -290
  547. ory_client/model/update_verification_flow_with_link_method.py +0 -288
  548. ory_client/model/update_workspace_payload.py +0 -270
  549. ory_client/model/usage.py +0 -270
  550. ory_client/model/verifiable_credential_priming_response.py +0 -292
  551. ory_client/model/verifiable_credential_proof.py +0 -268
  552. ory_client/model/verifiable_credential_response.py +0 -268
  553. ory_client/model/verifiable_identity_address.py +0 -308
  554. ory_client/model/verification_flow.py +0 -318
  555. ory_client/model/verification_flow_state.py +0 -292
  556. ory_client/model/version.py +0 -264
  557. ory_client/model/warning.py +0 -268
  558. ory_client/model/workspace.py +0 -292
  559. ory_client/model/workspace_meta.py +0 -296
  560. ory_client/model/workspaces.py +0 -292
  561. ory_client/model_utils.py +0 -2059
  562. ory_client-1.9.0.dist-info/RECORD +0 -310
  563. {ory_client-1.9.0.dist-info → ory_client-1.11.7.dist-info}/LICENSE +0 -0
  564. {ory_client-1.9.0.dist-info → ory_client-1.11.7.dist-info}/WHEEL +0 -0
  565. {ory_client-1.9.0.dist-info → ory_client-1.11.7.dist-info}/top_level.txt +0 -0
@@ -1,614 +1,1185 @@
1
+ # coding: utf-8
2
+
1
3
  """
2
4
  Ory APIs
3
5
 
4
- Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
6
+ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
7
 
6
- The version of the OpenAPI document: v1.9.0
8
+ The version of the OpenAPI document: v1.11.7
7
9
  Contact: support@ory.sh
8
- Generated by: https://openapi-generator.tech
9
- """
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
10
14
 
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
11
19
 
12
- import re # noqa: F401
13
- import sys # noqa: F401
20
+ from pydantic import Field, StrictStr
21
+ from typing import Optional
22
+ from typing_extensions import Annotated
23
+ from ory_client.models.create_event_stream_body import CreateEventStreamBody
24
+ from ory_client.models.event_stream import EventStream
25
+ from ory_client.models.list_event_streams import ListEventStreams
26
+ from ory_client.models.set_event_stream_body import SetEventStreamBody
14
27
 
15
- from ory_client.api_client import ApiClient, Endpoint as _Endpoint
16
- from ory_client.model_utils import ( # noqa: F401
17
- check_allowed_values,
18
- check_validations,
19
- date,
20
- datetime,
21
- file_type,
22
- none_type,
23
- validate_and_convert_types
24
- )
25
- from ory_client.model.create_event_stream_body import CreateEventStreamBody
26
- from ory_client.model.error_generic import ErrorGeneric
27
- from ory_client.model.event_stream import EventStream
28
- from ory_client.model.list_event_streams import ListEventStreams
29
- from ory_client.model.set_event_stream_body import SetEventStreamBody
28
+ from ory_client.api_client import ApiClient, RequestSerialized
29
+ from ory_client.api_response import ApiResponse
30
+ from ory_client.rest import RESTResponseType
30
31
 
31
32
 
32
- class EventsApi(object):
33
+ class EventsApi:
33
34
  """NOTE: This class is auto generated by OpenAPI Generator
34
35
  Ref: https://openapi-generator.tech
35
36
 
36
37
  Do not edit the class manually.
37
38
  """
38
39
 
39
- def __init__(self, api_client=None):
40
+ def __init__(self, api_client=None) -> None:
40
41
  if api_client is None:
41
- api_client = ApiClient()
42
+ api_client = ApiClient.get_default()
42
43
  self.api_client = api_client
43
- self.create_event_stream_endpoint = _Endpoint(
44
- settings={
45
- 'response_type': (EventStream,),
46
- 'auth': [
47
- 'oryAccessToken'
48
- ],
49
- 'endpoint_path': '/projects/{project_id}/eventstreams',
50
- 'operation_id': 'create_event_stream',
51
- 'http_method': 'POST',
52
- 'servers': None,
53
- },
54
- params_map={
55
- 'all': [
56
- 'project_id',
57
- 'create_event_stream_body',
58
- ],
59
- 'required': [
60
- 'project_id',
61
- 'create_event_stream_body',
62
- ],
63
- 'nullable': [
64
- ],
65
- 'enum': [
66
- ],
67
- 'validation': [
68
- ]
69
- },
70
- root_map={
71
- 'validations': {
72
- },
73
- 'allowed_values': {
74
- },
75
- 'openapi_types': {
76
- 'project_id':
77
- (str,),
78
- 'create_event_stream_body':
79
- (CreateEventStreamBody,),
80
- },
81
- 'attribute_map': {
82
- 'project_id': 'project_id',
83
- },
84
- 'location_map': {
85
- 'project_id': 'path',
86
- 'create_event_stream_body': 'body',
87
- },
88
- 'collection_format_map': {
89
- }
90
- },
91
- headers_map={
92
- 'accept': [
93
- 'application/json'
94
- ],
95
- 'content_type': [
96
- 'application/json'
97
- ]
98
- },
99
- api_client=api_client
100
- )
101
- self.delete_event_stream_endpoint = _Endpoint(
102
- settings={
103
- 'response_type': None,
104
- 'auth': [
105
- 'oryAccessToken'
106
- ],
107
- 'endpoint_path': '/projects/{project_id}/eventstreams/{event_stream_id}',
108
- 'operation_id': 'delete_event_stream',
109
- 'http_method': 'DELETE',
110
- 'servers': None,
111
- },
112
- params_map={
113
- 'all': [
114
- 'project_id',
115
- 'event_stream_id',
116
- ],
117
- 'required': [
118
- 'project_id',
119
- 'event_stream_id',
120
- ],
121
- 'nullable': [
122
- ],
123
- 'enum': [
124
- ],
125
- 'validation': [
126
- ]
127
- },
128
- root_map={
129
- 'validations': {
130
- },
131
- 'allowed_values': {
132
- },
133
- 'openapi_types': {
134
- 'project_id':
135
- (str,),
136
- 'event_stream_id':
137
- (str,),
138
- },
139
- 'attribute_map': {
140
- 'project_id': 'project_id',
141
- 'event_stream_id': 'event_stream_id',
142
- },
143
- 'location_map': {
144
- 'project_id': 'path',
145
- 'event_stream_id': 'path',
146
- },
147
- 'collection_format_map': {
148
- }
149
- },
150
- headers_map={
151
- 'accept': [
152
- 'application/json'
153
- ],
154
- 'content_type': [],
155
- },
156
- api_client=api_client
157
- )
158
- self.list_event_streams_endpoint = _Endpoint(
159
- settings={
160
- 'response_type': (ListEventStreams,),
161
- 'auth': [
162
- 'oryAccessToken'
163
- ],
164
- 'endpoint_path': '/projects/{project_id}/eventstreams',
165
- 'operation_id': 'list_event_streams',
166
- 'http_method': 'GET',
167
- 'servers': None,
168
- },
169
- params_map={
170
- 'all': [
171
- 'project_id',
172
- ],
173
- 'required': [
174
- 'project_id',
175
- ],
176
- 'nullable': [
177
- ],
178
- 'enum': [
179
- ],
180
- 'validation': [
181
- ]
182
- },
183
- root_map={
184
- 'validations': {
185
- },
186
- 'allowed_values': {
187
- },
188
- 'openapi_types': {
189
- 'project_id':
190
- (str,),
191
- },
192
- 'attribute_map': {
193
- 'project_id': 'project_id',
194
- },
195
- 'location_map': {
196
- 'project_id': 'path',
197
- },
198
- 'collection_format_map': {
199
- }
200
- },
201
- headers_map={
202
- 'accept': [
203
- 'application/json'
204
- ],
205
- 'content_type': [],
206
- },
207
- api_client=api_client
208
- )
209
- self.set_event_stream_endpoint = _Endpoint(
210
- settings={
211
- 'response_type': (EventStream,),
212
- 'auth': [
213
- 'oryAccessToken'
214
- ],
215
- 'endpoint_path': '/projects/{project_id}/eventstreams/{event_stream_id}',
216
- 'operation_id': 'set_event_stream',
217
- 'http_method': 'PUT',
218
- 'servers': None,
219
- },
220
- params_map={
221
- 'all': [
222
- 'project_id',
223
- 'event_stream_id',
224
- 'set_event_stream_body',
225
- ],
226
- 'required': [
227
- 'project_id',
228
- 'event_stream_id',
229
- ],
230
- 'nullable': [
231
- ],
232
- 'enum': [
233
- ],
234
- 'validation': [
235
- ]
236
- },
237
- root_map={
238
- 'validations': {
239
- },
240
- 'allowed_values': {
241
- },
242
- 'openapi_types': {
243
- 'project_id':
244
- (str,),
245
- 'event_stream_id':
246
- (str,),
247
- 'set_event_stream_body':
248
- (SetEventStreamBody,),
249
- },
250
- 'attribute_map': {
251
- 'project_id': 'project_id',
252
- 'event_stream_id': 'event_stream_id',
253
- },
254
- 'location_map': {
255
- 'project_id': 'path',
256
- 'event_stream_id': 'path',
257
- 'set_event_stream_body': 'body',
258
- },
259
- 'collection_format_map': {
260
- }
261
- },
262
- headers_map={
263
- 'accept': [
264
- 'application/json'
265
- ],
266
- 'content_type': [
267
- 'application/json'
268
- ]
269
- },
270
- api_client=api_client
271
- )
272
44
 
45
+
46
+ @validate_call
273
47
  def create_event_stream(
48
+ self,
49
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
50
+ create_event_stream_body: CreateEventStreamBody,
51
+ _request_timeout: Union[
52
+ None,
53
+ Annotated[StrictFloat, Field(gt=0)],
54
+ Tuple[
55
+ Annotated[StrictFloat, Field(gt=0)],
56
+ Annotated[StrictFloat, Field(gt=0)]
57
+ ]
58
+ ] = None,
59
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
60
+ _content_type: Optional[StrictStr] = None,
61
+ _headers: Optional[Dict[StrictStr, Any]] = None,
62
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
63
+ ) -> EventStream:
64
+ """Create an event stream for your project.
65
+
66
+
67
+ :param project_id: Project ID The project's ID. (required)
68
+ :type project_id: str
69
+ :param create_event_stream_body: (required)
70
+ :type create_event_stream_body: CreateEventStreamBody
71
+ :param _request_timeout: timeout setting for this request. If one
72
+ number provided, it will be total request
73
+ timeout. It can also be a pair (tuple) of
74
+ (connection, read) timeouts.
75
+ :type _request_timeout: int, tuple(int, int), optional
76
+ :param _request_auth: set to override the auth_settings for an a single
77
+ request; this effectively ignores the
78
+ authentication in the spec for a single request.
79
+ :type _request_auth: dict, optional
80
+ :param _content_type: force content-type for the request.
81
+ :type _content_type: str, Optional
82
+ :param _headers: set to override the headers for a single
83
+ request; this effectively ignores the headers
84
+ in the spec for a single request.
85
+ :type _headers: dict, optional
86
+ :param _host_index: set to override the host_index for a single
87
+ request; this effectively ignores the host_index
88
+ in the spec for a single request.
89
+ :type _host_index: int, optional
90
+ :return: Returns the result object.
91
+ """ # noqa: E501
92
+
93
+ _param = self._create_event_stream_serialize(
94
+ project_id=project_id,
95
+ create_event_stream_body=create_event_stream_body,
96
+ _request_auth=_request_auth,
97
+ _content_type=_content_type,
98
+ _headers=_headers,
99
+ _host_index=_host_index
100
+ )
101
+
102
+ _response_types_map: Dict[str, Optional[str]] = {
103
+ '201': "EventStream",
104
+ '400': "ErrorGeneric",
105
+ '403': "ErrorGeneric",
106
+ '409': "ErrorGeneric",
107
+ }
108
+ response_data = self.api_client.call_api(
109
+ *_param,
110
+ _request_timeout=_request_timeout
111
+ )
112
+ response_data.read()
113
+ return self.api_client.response_deserialize(
114
+ response_data=response_data,
115
+ response_types_map=_response_types_map,
116
+ ).data
117
+
118
+
119
+ @validate_call
120
+ def create_event_stream_with_http_info(
121
+ self,
122
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
123
+ create_event_stream_body: CreateEventStreamBody,
124
+ _request_timeout: Union[
125
+ None,
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Tuple[
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Annotated[StrictFloat, Field(gt=0)]
130
+ ]
131
+ ] = None,
132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
+ _content_type: Optional[StrictStr] = None,
134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
+ ) -> ApiResponse[EventStream]:
137
+ """Create an event stream for your project.
138
+
139
+
140
+ :param project_id: Project ID The project's ID. (required)
141
+ :type project_id: str
142
+ :param create_event_stream_body: (required)
143
+ :type create_event_stream_body: CreateEventStreamBody
144
+ :param _request_timeout: timeout setting for this request. If one
145
+ number provided, it will be total request
146
+ timeout. It can also be a pair (tuple) of
147
+ (connection, read) timeouts.
148
+ :type _request_timeout: int, tuple(int, int), optional
149
+ :param _request_auth: set to override the auth_settings for an a single
150
+ request; this effectively ignores the
151
+ authentication in the spec for a single request.
152
+ :type _request_auth: dict, optional
153
+ :param _content_type: force content-type for the request.
154
+ :type _content_type: str, Optional
155
+ :param _headers: set to override the headers for a single
156
+ request; this effectively ignores the headers
157
+ in the spec for a single request.
158
+ :type _headers: dict, optional
159
+ :param _host_index: set to override the host_index for a single
160
+ request; this effectively ignores the host_index
161
+ in the spec for a single request.
162
+ :type _host_index: int, optional
163
+ :return: Returns the result object.
164
+ """ # noqa: E501
165
+
166
+ _param = self._create_event_stream_serialize(
167
+ project_id=project_id,
168
+ create_event_stream_body=create_event_stream_body,
169
+ _request_auth=_request_auth,
170
+ _content_type=_content_type,
171
+ _headers=_headers,
172
+ _host_index=_host_index
173
+ )
174
+
175
+ _response_types_map: Dict[str, Optional[str]] = {
176
+ '201': "EventStream",
177
+ '400': "ErrorGeneric",
178
+ '403': "ErrorGeneric",
179
+ '409': "ErrorGeneric",
180
+ }
181
+ response_data = self.api_client.call_api(
182
+ *_param,
183
+ _request_timeout=_request_timeout
184
+ )
185
+ response_data.read()
186
+ return self.api_client.response_deserialize(
187
+ response_data=response_data,
188
+ response_types_map=_response_types_map,
189
+ )
190
+
191
+
192
+ @validate_call
193
+ def create_event_stream_without_preload_content(
194
+ self,
195
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
196
+ create_event_stream_body: CreateEventStreamBody,
197
+ _request_timeout: Union[
198
+ None,
199
+ Annotated[StrictFloat, Field(gt=0)],
200
+ Tuple[
201
+ Annotated[StrictFloat, Field(gt=0)],
202
+ Annotated[StrictFloat, Field(gt=0)]
203
+ ]
204
+ ] = None,
205
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
206
+ _content_type: Optional[StrictStr] = None,
207
+ _headers: Optional[Dict[StrictStr, Any]] = None,
208
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
209
+ ) -> RESTResponseType:
210
+ """Create an event stream for your project.
211
+
212
+
213
+ :param project_id: Project ID The project's ID. (required)
214
+ :type project_id: str
215
+ :param create_event_stream_body: (required)
216
+ :type create_event_stream_body: CreateEventStreamBody
217
+ :param _request_timeout: timeout setting for this request. If one
218
+ number provided, it will be total request
219
+ timeout. It can also be a pair (tuple) of
220
+ (connection, read) timeouts.
221
+ :type _request_timeout: int, tuple(int, int), optional
222
+ :param _request_auth: set to override the auth_settings for an a single
223
+ request; this effectively ignores the
224
+ authentication in the spec for a single request.
225
+ :type _request_auth: dict, optional
226
+ :param _content_type: force content-type for the request.
227
+ :type _content_type: str, Optional
228
+ :param _headers: set to override the headers for a single
229
+ request; this effectively ignores the headers
230
+ in the spec for a single request.
231
+ :type _headers: dict, optional
232
+ :param _host_index: set to override the host_index for a single
233
+ request; this effectively ignores the host_index
234
+ in the spec for a single request.
235
+ :type _host_index: int, optional
236
+ :return: Returns the result object.
237
+ """ # noqa: E501
238
+
239
+ _param = self._create_event_stream_serialize(
240
+ project_id=project_id,
241
+ create_event_stream_body=create_event_stream_body,
242
+ _request_auth=_request_auth,
243
+ _content_type=_content_type,
244
+ _headers=_headers,
245
+ _host_index=_host_index
246
+ )
247
+
248
+ _response_types_map: Dict[str, Optional[str]] = {
249
+ '201': "EventStream",
250
+ '400': "ErrorGeneric",
251
+ '403': "ErrorGeneric",
252
+ '409': "ErrorGeneric",
253
+ }
254
+ response_data = self.api_client.call_api(
255
+ *_param,
256
+ _request_timeout=_request_timeout
257
+ )
258
+ return response_data.response
259
+
260
+
261
+ def _create_event_stream_serialize(
274
262
  self,
275
263
  project_id,
276
264
  create_event_stream_body,
277
- **kwargs
278
- ):
279
- """Create an event stream for your project. # noqa: E501
280
-
281
- This method makes a synchronous HTTP request by default. To make an
282
- asynchronous HTTP request, please pass async_req=True
283
-
284
- >>> thread = api.create_event_stream(project_id, create_event_stream_body, async_req=True)
285
- >>> result = thread.get()
286
-
287
- Args:
288
- project_id (str): Project ID The project's ID.
289
- create_event_stream_body (CreateEventStreamBody):
290
-
291
- Keyword Args:
292
- _return_http_data_only (bool): response data without head status
293
- code and headers. Default is True.
294
- _preload_content (bool): if False, the urllib3.HTTPResponse object
295
- will be returned without reading/decoding response data.
296
- Default is True.
297
- _request_timeout (int/float/tuple): timeout setting for this request. If
298
- one number provided, it will be total request timeout. It can also
299
- be a pair (tuple) of (connection, read) timeouts.
300
- Default is None.
301
- _check_input_type (bool): specifies if type checking
302
- should be done one the data sent to the server.
303
- Default is True.
304
- _check_return_type (bool): specifies if type checking
305
- should be done one the data received from the server.
306
- Default is True.
307
- _spec_property_naming (bool): True if the variable names in the input data
308
- are serialized names, as specified in the OpenAPI document.
309
- False if the variable names in the input data
310
- are pythonic names, e.g. snake case (default)
311
- _content_type (str/None): force body content-type.
312
- Default is None and content-type will be predicted by allowed
313
- content-types and body.
314
- _host_index (int/None): specifies the index of the server
315
- that we want to use.
316
- Default is read from the configuration.
317
- _request_auths (list): set to override the auth_settings for an a single
318
- request; this effectively ignores the authentication
319
- in the spec for a single request.
320
- Default is None
321
- async_req (bool): execute request asynchronously
322
-
323
- Returns:
324
- EventStream
325
- If the method is called asynchronously, returns the request
326
- thread.
327
- """
328
- kwargs['async_req'] = kwargs.get(
329
- 'async_req', False
330
- )
331
- kwargs['_return_http_data_only'] = kwargs.get(
332
- '_return_http_data_only', True
333
- )
334
- kwargs['_preload_content'] = kwargs.get(
335
- '_preload_content', True
336
- )
337
- kwargs['_request_timeout'] = kwargs.get(
338
- '_request_timeout', None
339
- )
340
- kwargs['_check_input_type'] = kwargs.get(
341
- '_check_input_type', True
342
- )
343
- kwargs['_check_return_type'] = kwargs.get(
344
- '_check_return_type', True
345
- )
346
- kwargs['_spec_property_naming'] = kwargs.get(
347
- '_spec_property_naming', False
348
- )
349
- kwargs['_content_type'] = kwargs.get(
350
- '_content_type')
351
- kwargs['_host_index'] = kwargs.get('_host_index')
352
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
353
- kwargs['project_id'] = \
354
- project_id
355
- kwargs['create_event_stream_body'] = \
356
- create_event_stream_body
357
- return self.create_event_stream_endpoint.call_with_http_info(**kwargs)
265
+ _request_auth,
266
+ _content_type,
267
+ _headers,
268
+ _host_index,
269
+ ) -> RequestSerialized:
270
+
271
+ _host = None
272
+
273
+ _collection_formats: Dict[str, str] = {
274
+ }
275
+
276
+ _path_params: Dict[str, str] = {}
277
+ _query_params: List[Tuple[str, str]] = []
278
+ _header_params: Dict[str, Optional[str]] = _headers or {}
279
+ _form_params: List[Tuple[str, str]] = []
280
+ _files: Dict[str, str] = {}
281
+ _body_params: Optional[bytes] = None
282
+
283
+ # process the path parameters
284
+ if project_id is not None:
285
+ _path_params['project_id'] = project_id
286
+ # process the query parameters
287
+ # process the header parameters
288
+ # process the form parameters
289
+ # process the body parameter
290
+ if create_event_stream_body is not None:
291
+ _body_params = create_event_stream_body
292
+
293
+
294
+ # set the HTTP header `Accept`
295
+ _header_params['Accept'] = self.api_client.select_header_accept(
296
+ [
297
+ 'application/json'
298
+ ]
299
+ )
300
+
301
+ # set the HTTP header `Content-Type`
302
+ if _content_type:
303
+ _header_params['Content-Type'] = _content_type
304
+ else:
305
+ _default_content_type = (
306
+ self.api_client.select_header_content_type(
307
+ [
308
+ 'application/json'
309
+ ]
310
+ )
311
+ )
312
+ if _default_content_type is not None:
313
+ _header_params['Content-Type'] = _default_content_type
314
+
315
+ # authentication setting
316
+ _auth_settings: List[str] = [
317
+ 'oryAccessToken'
318
+ ]
358
319
 
320
+ return self.api_client.param_serialize(
321
+ method='POST',
322
+ resource_path='/projects/{project_id}/eventstreams',
323
+ path_params=_path_params,
324
+ query_params=_query_params,
325
+ header_params=_header_params,
326
+ body=_body_params,
327
+ post_params=_form_params,
328
+ files=_files,
329
+ auth_settings=_auth_settings,
330
+ collection_formats=_collection_formats,
331
+ _host=_host,
332
+ _request_auth=_request_auth
333
+ )
334
+
335
+
336
+
337
+
338
+ @validate_call
359
339
  def delete_event_stream(
340
+ self,
341
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
342
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The ID of the event stream to be deleted, as returned when created.")],
343
+ _request_timeout: Union[
344
+ None,
345
+ Annotated[StrictFloat, Field(gt=0)],
346
+ Tuple[
347
+ Annotated[StrictFloat, Field(gt=0)],
348
+ Annotated[StrictFloat, Field(gt=0)]
349
+ ]
350
+ ] = None,
351
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
352
+ _content_type: Optional[StrictStr] = None,
353
+ _headers: Optional[Dict[StrictStr, Any]] = None,
354
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
355
+ ) -> None:
356
+ """Remove an event stream from a project
357
+
358
+ Remove an event stream from a project.
359
+
360
+ :param project_id: Project ID The project's ID. (required)
361
+ :type project_id: str
362
+ :param event_stream_id: Event Stream ID The ID of the event stream to be deleted, as returned when created. (required)
363
+ :type event_stream_id: str
364
+ :param _request_timeout: timeout setting for this request. If one
365
+ number provided, it will be total request
366
+ timeout. It can also be a pair (tuple) of
367
+ (connection, read) timeouts.
368
+ :type _request_timeout: int, tuple(int, int), optional
369
+ :param _request_auth: set to override the auth_settings for an a single
370
+ request; this effectively ignores the
371
+ authentication in the spec for a single request.
372
+ :type _request_auth: dict, optional
373
+ :param _content_type: force content-type for the request.
374
+ :type _content_type: str, Optional
375
+ :param _headers: set to override the headers for a single
376
+ request; this effectively ignores the headers
377
+ in the spec for a single request.
378
+ :type _headers: dict, optional
379
+ :param _host_index: set to override the host_index for a single
380
+ request; this effectively ignores the host_index
381
+ in the spec for a single request.
382
+ :type _host_index: int, optional
383
+ :return: Returns the result object.
384
+ """ # noqa: E501
385
+
386
+ _param = self._delete_event_stream_serialize(
387
+ project_id=project_id,
388
+ event_stream_id=event_stream_id,
389
+ _request_auth=_request_auth,
390
+ _content_type=_content_type,
391
+ _headers=_headers,
392
+ _host_index=_host_index
393
+ )
394
+
395
+ _response_types_map: Dict[str, Optional[str]] = {
396
+ '204': None,
397
+ '400': "ErrorGeneric",
398
+ '403': "ErrorGeneric",
399
+ '409': "ErrorGeneric",
400
+ }
401
+ response_data = self.api_client.call_api(
402
+ *_param,
403
+ _request_timeout=_request_timeout
404
+ )
405
+ response_data.read()
406
+ return self.api_client.response_deserialize(
407
+ response_data=response_data,
408
+ response_types_map=_response_types_map,
409
+ ).data
410
+
411
+
412
+ @validate_call
413
+ def delete_event_stream_with_http_info(
414
+ self,
415
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
416
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The ID of the event stream to be deleted, as returned when created.")],
417
+ _request_timeout: Union[
418
+ None,
419
+ Annotated[StrictFloat, Field(gt=0)],
420
+ Tuple[
421
+ Annotated[StrictFloat, Field(gt=0)],
422
+ Annotated[StrictFloat, Field(gt=0)]
423
+ ]
424
+ ] = None,
425
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
426
+ _content_type: Optional[StrictStr] = None,
427
+ _headers: Optional[Dict[StrictStr, Any]] = None,
428
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
429
+ ) -> ApiResponse[None]:
430
+ """Remove an event stream from a project
431
+
432
+ Remove an event stream from a project.
433
+
434
+ :param project_id: Project ID The project's ID. (required)
435
+ :type project_id: str
436
+ :param event_stream_id: Event Stream ID The ID of the event stream to be deleted, as returned when created. (required)
437
+ :type event_stream_id: str
438
+ :param _request_timeout: timeout setting for this request. If one
439
+ number provided, it will be total request
440
+ timeout. It can also be a pair (tuple) of
441
+ (connection, read) timeouts.
442
+ :type _request_timeout: int, tuple(int, int), optional
443
+ :param _request_auth: set to override the auth_settings for an a single
444
+ request; this effectively ignores the
445
+ authentication in the spec for a single request.
446
+ :type _request_auth: dict, optional
447
+ :param _content_type: force content-type for the request.
448
+ :type _content_type: str, Optional
449
+ :param _headers: set to override the headers for a single
450
+ request; this effectively ignores the headers
451
+ in the spec for a single request.
452
+ :type _headers: dict, optional
453
+ :param _host_index: set to override the host_index for a single
454
+ request; this effectively ignores the host_index
455
+ in the spec for a single request.
456
+ :type _host_index: int, optional
457
+ :return: Returns the result object.
458
+ """ # noqa: E501
459
+
460
+ _param = self._delete_event_stream_serialize(
461
+ project_id=project_id,
462
+ event_stream_id=event_stream_id,
463
+ _request_auth=_request_auth,
464
+ _content_type=_content_type,
465
+ _headers=_headers,
466
+ _host_index=_host_index
467
+ )
468
+
469
+ _response_types_map: Dict[str, Optional[str]] = {
470
+ '204': None,
471
+ '400': "ErrorGeneric",
472
+ '403': "ErrorGeneric",
473
+ '409': "ErrorGeneric",
474
+ }
475
+ response_data = self.api_client.call_api(
476
+ *_param,
477
+ _request_timeout=_request_timeout
478
+ )
479
+ response_data.read()
480
+ return self.api_client.response_deserialize(
481
+ response_data=response_data,
482
+ response_types_map=_response_types_map,
483
+ )
484
+
485
+
486
+ @validate_call
487
+ def delete_event_stream_without_preload_content(
488
+ self,
489
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
490
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The ID of the event stream to be deleted, as returned when created.")],
491
+ _request_timeout: Union[
492
+ None,
493
+ Annotated[StrictFloat, Field(gt=0)],
494
+ Tuple[
495
+ Annotated[StrictFloat, Field(gt=0)],
496
+ Annotated[StrictFloat, Field(gt=0)]
497
+ ]
498
+ ] = None,
499
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
500
+ _content_type: Optional[StrictStr] = None,
501
+ _headers: Optional[Dict[StrictStr, Any]] = None,
502
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
503
+ ) -> RESTResponseType:
504
+ """Remove an event stream from a project
505
+
506
+ Remove an event stream from a project.
507
+
508
+ :param project_id: Project ID The project's ID. (required)
509
+ :type project_id: str
510
+ :param event_stream_id: Event Stream ID The ID of the event stream to be deleted, as returned when created. (required)
511
+ :type event_stream_id: str
512
+ :param _request_timeout: timeout setting for this request. If one
513
+ number provided, it will be total request
514
+ timeout. It can also be a pair (tuple) of
515
+ (connection, read) timeouts.
516
+ :type _request_timeout: int, tuple(int, int), optional
517
+ :param _request_auth: set to override the auth_settings for an a single
518
+ request; this effectively ignores the
519
+ authentication in the spec for a single request.
520
+ :type _request_auth: dict, optional
521
+ :param _content_type: force content-type for the request.
522
+ :type _content_type: str, Optional
523
+ :param _headers: set to override the headers for a single
524
+ request; this effectively ignores the headers
525
+ in the spec for a single request.
526
+ :type _headers: dict, optional
527
+ :param _host_index: set to override the host_index for a single
528
+ request; this effectively ignores the host_index
529
+ in the spec for a single request.
530
+ :type _host_index: int, optional
531
+ :return: Returns the result object.
532
+ """ # noqa: E501
533
+
534
+ _param = self._delete_event_stream_serialize(
535
+ project_id=project_id,
536
+ event_stream_id=event_stream_id,
537
+ _request_auth=_request_auth,
538
+ _content_type=_content_type,
539
+ _headers=_headers,
540
+ _host_index=_host_index
541
+ )
542
+
543
+ _response_types_map: Dict[str, Optional[str]] = {
544
+ '204': None,
545
+ '400': "ErrorGeneric",
546
+ '403': "ErrorGeneric",
547
+ '409': "ErrorGeneric",
548
+ }
549
+ response_data = self.api_client.call_api(
550
+ *_param,
551
+ _request_timeout=_request_timeout
552
+ )
553
+ return response_data.response
554
+
555
+
556
+ def _delete_event_stream_serialize(
360
557
  self,
361
558
  project_id,
362
559
  event_stream_id,
363
- **kwargs
364
- ):
365
- """Remove an event stream from a project # noqa: E501
366
-
367
- Remove an event stream from a project. # noqa: E501
368
- This method makes a synchronous HTTP request by default. To make an
369
- asynchronous HTTP request, please pass async_req=True
370
-
371
- >>> thread = api.delete_event_stream(project_id, event_stream_id, async_req=True)
372
- >>> result = thread.get()
373
-
374
- Args:
375
- project_id (str): Project ID The project's ID.
376
- event_stream_id (str): Event Stream ID The ID of the event stream to be deleted, as returned when created.
377
-
378
- Keyword Args:
379
- _return_http_data_only (bool): response data without head status
380
- code and headers. Default is True.
381
- _preload_content (bool): if False, the urllib3.HTTPResponse object
382
- will be returned without reading/decoding response data.
383
- Default is True.
384
- _request_timeout (int/float/tuple): timeout setting for this request. If
385
- one number provided, it will be total request timeout. It can also
386
- be a pair (tuple) of (connection, read) timeouts.
387
- Default is None.
388
- _check_input_type (bool): specifies if type checking
389
- should be done one the data sent to the server.
390
- Default is True.
391
- _check_return_type (bool): specifies if type checking
392
- should be done one the data received from the server.
393
- Default is True.
394
- _spec_property_naming (bool): True if the variable names in the input data
395
- are serialized names, as specified in the OpenAPI document.
396
- False if the variable names in the input data
397
- are pythonic names, e.g. snake case (default)
398
- _content_type (str/None): force body content-type.
399
- Default is None and content-type will be predicted by allowed
400
- content-types and body.
401
- _host_index (int/None): specifies the index of the server
402
- that we want to use.
403
- Default is read from the configuration.
404
- _request_auths (list): set to override the auth_settings for an a single
405
- request; this effectively ignores the authentication
406
- in the spec for a single request.
407
- Default is None
408
- async_req (bool): execute request asynchronously
409
-
410
- Returns:
411
- None
412
- If the method is called asynchronously, returns the request
413
- thread.
414
- """
415
- kwargs['async_req'] = kwargs.get(
416
- 'async_req', False
417
- )
418
- kwargs['_return_http_data_only'] = kwargs.get(
419
- '_return_http_data_only', True
420
- )
421
- kwargs['_preload_content'] = kwargs.get(
422
- '_preload_content', True
423
- )
424
- kwargs['_request_timeout'] = kwargs.get(
425
- '_request_timeout', None
426
- )
427
- kwargs['_check_input_type'] = kwargs.get(
428
- '_check_input_type', True
429
- )
430
- kwargs['_check_return_type'] = kwargs.get(
431
- '_check_return_type', True
432
- )
433
- kwargs['_spec_property_naming'] = kwargs.get(
434
- '_spec_property_naming', False
435
- )
436
- kwargs['_content_type'] = kwargs.get(
437
- '_content_type')
438
- kwargs['_host_index'] = kwargs.get('_host_index')
439
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
440
- kwargs['project_id'] = \
441
- project_id
442
- kwargs['event_stream_id'] = \
443
- event_stream_id
444
- return self.delete_event_stream_endpoint.call_with_http_info(**kwargs)
560
+ _request_auth,
561
+ _content_type,
562
+ _headers,
563
+ _host_index,
564
+ ) -> RequestSerialized:
565
+
566
+ _host = None
567
+
568
+ _collection_formats: Dict[str, str] = {
569
+ }
570
+
571
+ _path_params: Dict[str, str] = {}
572
+ _query_params: List[Tuple[str, str]] = []
573
+ _header_params: Dict[str, Optional[str]] = _headers or {}
574
+ _form_params: List[Tuple[str, str]] = []
575
+ _files: Dict[str, str] = {}
576
+ _body_params: Optional[bytes] = None
577
+
578
+ # process the path parameters
579
+ if project_id is not None:
580
+ _path_params['project_id'] = project_id
581
+ if event_stream_id is not None:
582
+ _path_params['event_stream_id'] = event_stream_id
583
+ # process the query parameters
584
+ # process the header parameters
585
+ # process the form parameters
586
+ # process the body parameter
587
+
588
+
589
+ # set the HTTP header `Accept`
590
+ _header_params['Accept'] = self.api_client.select_header_accept(
591
+ [
592
+ 'application/json'
593
+ ]
594
+ )
595
+
596
+
597
+ # authentication setting
598
+ _auth_settings: List[str] = [
599
+ 'oryAccessToken'
600
+ ]
601
+
602
+ return self.api_client.param_serialize(
603
+ method='DELETE',
604
+ resource_path='/projects/{project_id}/eventstreams/{event_stream_id}',
605
+ path_params=_path_params,
606
+ query_params=_query_params,
607
+ header_params=_header_params,
608
+ body=_body_params,
609
+ post_params=_form_params,
610
+ files=_files,
611
+ auth_settings=_auth_settings,
612
+ collection_formats=_collection_formats,
613
+ _host=_host,
614
+ _request_auth=_request_auth
615
+ )
616
+
617
+
445
618
 
619
+
620
+ @validate_call
446
621
  def list_event_streams(
622
+ self,
623
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
624
+ _request_timeout: Union[
625
+ None,
626
+ Annotated[StrictFloat, Field(gt=0)],
627
+ Tuple[
628
+ Annotated[StrictFloat, Field(gt=0)],
629
+ Annotated[StrictFloat, Field(gt=0)]
630
+ ]
631
+ ] = None,
632
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
633
+ _content_type: Optional[StrictStr] = None,
634
+ _headers: Optional[Dict[StrictStr, Any]] = None,
635
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
636
+ ) -> ListEventStreams:
637
+ """List all event streams for the project. This endpoint is not paginated.
638
+
639
+
640
+ :param project_id: Project ID The project's ID. (required)
641
+ :type project_id: str
642
+ :param _request_timeout: timeout setting for this request. If one
643
+ number provided, it will be total request
644
+ timeout. It can also be a pair (tuple) of
645
+ (connection, read) timeouts.
646
+ :type _request_timeout: int, tuple(int, int), optional
647
+ :param _request_auth: set to override the auth_settings for an a single
648
+ request; this effectively ignores the
649
+ authentication in the spec for a single request.
650
+ :type _request_auth: dict, optional
651
+ :param _content_type: force content-type for the request.
652
+ :type _content_type: str, Optional
653
+ :param _headers: set to override the headers for a single
654
+ request; this effectively ignores the headers
655
+ in the spec for a single request.
656
+ :type _headers: dict, optional
657
+ :param _host_index: set to override the host_index for a single
658
+ request; this effectively ignores the host_index
659
+ in the spec for a single request.
660
+ :type _host_index: int, optional
661
+ :return: Returns the result object.
662
+ """ # noqa: E501
663
+
664
+ _param = self._list_event_streams_serialize(
665
+ project_id=project_id,
666
+ _request_auth=_request_auth,
667
+ _content_type=_content_type,
668
+ _headers=_headers,
669
+ _host_index=_host_index
670
+ )
671
+
672
+ _response_types_map: Dict[str, Optional[str]] = {
673
+ '200': "ListEventStreams",
674
+ '400': "ErrorGeneric",
675
+ '403': "ErrorGeneric",
676
+ }
677
+ response_data = self.api_client.call_api(
678
+ *_param,
679
+ _request_timeout=_request_timeout
680
+ )
681
+ response_data.read()
682
+ return self.api_client.response_deserialize(
683
+ response_data=response_data,
684
+ response_types_map=_response_types_map,
685
+ ).data
686
+
687
+
688
+ @validate_call
689
+ def list_event_streams_with_http_info(
690
+ self,
691
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
692
+ _request_timeout: Union[
693
+ None,
694
+ Annotated[StrictFloat, Field(gt=0)],
695
+ Tuple[
696
+ Annotated[StrictFloat, Field(gt=0)],
697
+ Annotated[StrictFloat, Field(gt=0)]
698
+ ]
699
+ ] = None,
700
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
701
+ _content_type: Optional[StrictStr] = None,
702
+ _headers: Optional[Dict[StrictStr, Any]] = None,
703
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
704
+ ) -> ApiResponse[ListEventStreams]:
705
+ """List all event streams for the project. This endpoint is not paginated.
706
+
707
+
708
+ :param project_id: Project ID The project's ID. (required)
709
+ :type project_id: str
710
+ :param _request_timeout: timeout setting for this request. If one
711
+ number provided, it will be total request
712
+ timeout. It can also be a pair (tuple) of
713
+ (connection, read) timeouts.
714
+ :type _request_timeout: int, tuple(int, int), optional
715
+ :param _request_auth: set to override the auth_settings for an a single
716
+ request; this effectively ignores the
717
+ authentication in the spec for a single request.
718
+ :type _request_auth: dict, optional
719
+ :param _content_type: force content-type for the request.
720
+ :type _content_type: str, Optional
721
+ :param _headers: set to override the headers for a single
722
+ request; this effectively ignores the headers
723
+ in the spec for a single request.
724
+ :type _headers: dict, optional
725
+ :param _host_index: set to override the host_index for a single
726
+ request; this effectively ignores the host_index
727
+ in the spec for a single request.
728
+ :type _host_index: int, optional
729
+ :return: Returns the result object.
730
+ """ # noqa: E501
731
+
732
+ _param = self._list_event_streams_serialize(
733
+ project_id=project_id,
734
+ _request_auth=_request_auth,
735
+ _content_type=_content_type,
736
+ _headers=_headers,
737
+ _host_index=_host_index
738
+ )
739
+
740
+ _response_types_map: Dict[str, Optional[str]] = {
741
+ '200': "ListEventStreams",
742
+ '400': "ErrorGeneric",
743
+ '403': "ErrorGeneric",
744
+ }
745
+ response_data = self.api_client.call_api(
746
+ *_param,
747
+ _request_timeout=_request_timeout
748
+ )
749
+ response_data.read()
750
+ return self.api_client.response_deserialize(
751
+ response_data=response_data,
752
+ response_types_map=_response_types_map,
753
+ )
754
+
755
+
756
+ @validate_call
757
+ def list_event_streams_without_preload_content(
758
+ self,
759
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
760
+ _request_timeout: Union[
761
+ None,
762
+ Annotated[StrictFloat, Field(gt=0)],
763
+ Tuple[
764
+ Annotated[StrictFloat, Field(gt=0)],
765
+ Annotated[StrictFloat, Field(gt=0)]
766
+ ]
767
+ ] = None,
768
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
769
+ _content_type: Optional[StrictStr] = None,
770
+ _headers: Optional[Dict[StrictStr, Any]] = None,
771
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
772
+ ) -> RESTResponseType:
773
+ """List all event streams for the project. This endpoint is not paginated.
774
+
775
+
776
+ :param project_id: Project ID The project's ID. (required)
777
+ :type project_id: str
778
+ :param _request_timeout: timeout setting for this request. If one
779
+ number provided, it will be total request
780
+ timeout. It can also be a pair (tuple) of
781
+ (connection, read) timeouts.
782
+ :type _request_timeout: int, tuple(int, int), optional
783
+ :param _request_auth: set to override the auth_settings for an a single
784
+ request; this effectively ignores the
785
+ authentication in the spec for a single request.
786
+ :type _request_auth: dict, optional
787
+ :param _content_type: force content-type for the request.
788
+ :type _content_type: str, Optional
789
+ :param _headers: set to override the headers for a single
790
+ request; this effectively ignores the headers
791
+ in the spec for a single request.
792
+ :type _headers: dict, optional
793
+ :param _host_index: set to override the host_index for a single
794
+ request; this effectively ignores the host_index
795
+ in the spec for a single request.
796
+ :type _host_index: int, optional
797
+ :return: Returns the result object.
798
+ """ # noqa: E501
799
+
800
+ _param = self._list_event_streams_serialize(
801
+ project_id=project_id,
802
+ _request_auth=_request_auth,
803
+ _content_type=_content_type,
804
+ _headers=_headers,
805
+ _host_index=_host_index
806
+ )
807
+
808
+ _response_types_map: Dict[str, Optional[str]] = {
809
+ '200': "ListEventStreams",
810
+ '400': "ErrorGeneric",
811
+ '403': "ErrorGeneric",
812
+ }
813
+ response_data = self.api_client.call_api(
814
+ *_param,
815
+ _request_timeout=_request_timeout
816
+ )
817
+ return response_data.response
818
+
819
+
820
+ def _list_event_streams_serialize(
447
821
  self,
448
822
  project_id,
449
- **kwargs
450
- ):
451
- """List all event streams for the project. This endpoint is not paginated. # noqa: E501
452
-
453
- This method makes a synchronous HTTP request by default. To make an
454
- asynchronous HTTP request, please pass async_req=True
455
-
456
- >>> thread = api.list_event_streams(project_id, async_req=True)
457
- >>> result = thread.get()
458
-
459
- Args:
460
- project_id (str): Project ID The project's ID.
461
-
462
- Keyword Args:
463
- _return_http_data_only (bool): response data without head status
464
- code and headers. Default is True.
465
- _preload_content (bool): if False, the urllib3.HTTPResponse object
466
- will be returned without reading/decoding response data.
467
- Default is True.
468
- _request_timeout (int/float/tuple): timeout setting for this request. If
469
- one number provided, it will be total request timeout. It can also
470
- be a pair (tuple) of (connection, read) timeouts.
471
- Default is None.
472
- _check_input_type (bool): specifies if type checking
473
- should be done one the data sent to the server.
474
- Default is True.
475
- _check_return_type (bool): specifies if type checking
476
- should be done one the data received from the server.
477
- Default is True.
478
- _spec_property_naming (bool): True if the variable names in the input data
479
- are serialized names, as specified in the OpenAPI document.
480
- False if the variable names in the input data
481
- are pythonic names, e.g. snake case (default)
482
- _content_type (str/None): force body content-type.
483
- Default is None and content-type will be predicted by allowed
484
- content-types and body.
485
- _host_index (int/None): specifies the index of the server
486
- that we want to use.
487
- Default is read from the configuration.
488
- _request_auths (list): set to override the auth_settings for an a single
489
- request; this effectively ignores the authentication
490
- in the spec for a single request.
491
- Default is None
492
- async_req (bool): execute request asynchronously
493
-
494
- Returns:
495
- ListEventStreams
496
- If the method is called asynchronously, returns the request
497
- thread.
498
- """
499
- kwargs['async_req'] = kwargs.get(
500
- 'async_req', False
501
- )
502
- kwargs['_return_http_data_only'] = kwargs.get(
503
- '_return_http_data_only', True
504
- )
505
- kwargs['_preload_content'] = kwargs.get(
506
- '_preload_content', True
507
- )
508
- kwargs['_request_timeout'] = kwargs.get(
509
- '_request_timeout', None
510
- )
511
- kwargs['_check_input_type'] = kwargs.get(
512
- '_check_input_type', True
513
- )
514
- kwargs['_check_return_type'] = kwargs.get(
515
- '_check_return_type', True
516
- )
517
- kwargs['_spec_property_naming'] = kwargs.get(
518
- '_spec_property_naming', False
519
- )
520
- kwargs['_content_type'] = kwargs.get(
521
- '_content_type')
522
- kwargs['_host_index'] = kwargs.get('_host_index')
523
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
524
- kwargs['project_id'] = \
525
- project_id
526
- return self.list_event_streams_endpoint.call_with_http_info(**kwargs)
823
+ _request_auth,
824
+ _content_type,
825
+ _headers,
826
+ _host_index,
827
+ ) -> RequestSerialized:
828
+
829
+ _host = None
830
+
831
+ _collection_formats: Dict[str, str] = {
832
+ }
833
+
834
+ _path_params: Dict[str, str] = {}
835
+ _query_params: List[Tuple[str, str]] = []
836
+ _header_params: Dict[str, Optional[str]] = _headers or {}
837
+ _form_params: List[Tuple[str, str]] = []
838
+ _files: Dict[str, str] = {}
839
+ _body_params: Optional[bytes] = None
840
+
841
+ # process the path parameters
842
+ if project_id is not None:
843
+ _path_params['project_id'] = project_id
844
+ # process the query parameters
845
+ # process the header parameters
846
+ # process the form parameters
847
+ # process the body parameter
848
+
849
+
850
+ # set the HTTP header `Accept`
851
+ _header_params['Accept'] = self.api_client.select_header_accept(
852
+ [
853
+ 'application/json'
854
+ ]
855
+ )
856
+
857
+
858
+ # authentication setting
859
+ _auth_settings: List[str] = [
860
+ 'oryAccessToken'
861
+ ]
862
+
863
+ return self.api_client.param_serialize(
864
+ method='GET',
865
+ resource_path='/projects/{project_id}/eventstreams',
866
+ path_params=_path_params,
867
+ query_params=_query_params,
868
+ header_params=_header_params,
869
+ body=_body_params,
870
+ post_params=_form_params,
871
+ files=_files,
872
+ auth_settings=_auth_settings,
873
+ collection_formats=_collection_formats,
874
+ _host=_host,
875
+ _request_auth=_request_auth
876
+ )
527
877
 
878
+
879
+
880
+
881
+ @validate_call
528
882
  def set_event_stream(
883
+ self,
884
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
885
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The event stream's ID.")],
886
+ set_event_stream_body: Optional[SetEventStreamBody] = None,
887
+ _request_timeout: Union[
888
+ None,
889
+ Annotated[StrictFloat, Field(gt=0)],
890
+ Tuple[
891
+ Annotated[StrictFloat, Field(gt=0)],
892
+ Annotated[StrictFloat, Field(gt=0)]
893
+ ]
894
+ ] = None,
895
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
896
+ _content_type: Optional[StrictStr] = None,
897
+ _headers: Optional[Dict[StrictStr, Any]] = None,
898
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
899
+ ) -> EventStream:
900
+ """Update an event stream for a project.
901
+
902
+
903
+ :param project_id: Project ID The project's ID. (required)
904
+ :type project_id: str
905
+ :param event_stream_id: Event Stream ID The event stream's ID. (required)
906
+ :type event_stream_id: str
907
+ :param set_event_stream_body:
908
+ :type set_event_stream_body: SetEventStreamBody
909
+ :param _request_timeout: timeout setting for this request. If one
910
+ number provided, it will be total request
911
+ timeout. It can also be a pair (tuple) of
912
+ (connection, read) timeouts.
913
+ :type _request_timeout: int, tuple(int, int), optional
914
+ :param _request_auth: set to override the auth_settings for an a single
915
+ request; this effectively ignores the
916
+ authentication in the spec for a single request.
917
+ :type _request_auth: dict, optional
918
+ :param _content_type: force content-type for the request.
919
+ :type _content_type: str, Optional
920
+ :param _headers: set to override the headers for a single
921
+ request; this effectively ignores the headers
922
+ in the spec for a single request.
923
+ :type _headers: dict, optional
924
+ :param _host_index: set to override the host_index for a single
925
+ request; this effectively ignores the host_index
926
+ in the spec for a single request.
927
+ :type _host_index: int, optional
928
+ :return: Returns the result object.
929
+ """ # noqa: E501
930
+
931
+ _param = self._set_event_stream_serialize(
932
+ project_id=project_id,
933
+ event_stream_id=event_stream_id,
934
+ set_event_stream_body=set_event_stream_body,
935
+ _request_auth=_request_auth,
936
+ _content_type=_content_type,
937
+ _headers=_headers,
938
+ _host_index=_host_index
939
+ )
940
+
941
+ _response_types_map: Dict[str, Optional[str]] = {
942
+ '200': "EventStream",
943
+ '400': "ErrorGeneric",
944
+ '403': "ErrorGeneric",
945
+ '409': "ErrorGeneric",
946
+ }
947
+ response_data = self.api_client.call_api(
948
+ *_param,
949
+ _request_timeout=_request_timeout
950
+ )
951
+ response_data.read()
952
+ return self.api_client.response_deserialize(
953
+ response_data=response_data,
954
+ response_types_map=_response_types_map,
955
+ ).data
956
+
957
+
958
+ @validate_call
959
+ def set_event_stream_with_http_info(
960
+ self,
961
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
962
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The event stream's ID.")],
963
+ set_event_stream_body: Optional[SetEventStreamBody] = None,
964
+ _request_timeout: Union[
965
+ None,
966
+ Annotated[StrictFloat, Field(gt=0)],
967
+ Tuple[
968
+ Annotated[StrictFloat, Field(gt=0)],
969
+ Annotated[StrictFloat, Field(gt=0)]
970
+ ]
971
+ ] = None,
972
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
973
+ _content_type: Optional[StrictStr] = None,
974
+ _headers: Optional[Dict[StrictStr, Any]] = None,
975
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
976
+ ) -> ApiResponse[EventStream]:
977
+ """Update an event stream for a project.
978
+
979
+
980
+ :param project_id: Project ID The project's ID. (required)
981
+ :type project_id: str
982
+ :param event_stream_id: Event Stream ID The event stream's ID. (required)
983
+ :type event_stream_id: str
984
+ :param set_event_stream_body:
985
+ :type set_event_stream_body: SetEventStreamBody
986
+ :param _request_timeout: timeout setting for this request. If one
987
+ number provided, it will be total request
988
+ timeout. It can also be a pair (tuple) of
989
+ (connection, read) timeouts.
990
+ :type _request_timeout: int, tuple(int, int), optional
991
+ :param _request_auth: set to override the auth_settings for an a single
992
+ request; this effectively ignores the
993
+ authentication in the spec for a single request.
994
+ :type _request_auth: dict, optional
995
+ :param _content_type: force content-type for the request.
996
+ :type _content_type: str, Optional
997
+ :param _headers: set to override the headers for a single
998
+ request; this effectively ignores the headers
999
+ in the spec for a single request.
1000
+ :type _headers: dict, optional
1001
+ :param _host_index: set to override the host_index for a single
1002
+ request; this effectively ignores the host_index
1003
+ in the spec for a single request.
1004
+ :type _host_index: int, optional
1005
+ :return: Returns the result object.
1006
+ """ # noqa: E501
1007
+
1008
+ _param = self._set_event_stream_serialize(
1009
+ project_id=project_id,
1010
+ event_stream_id=event_stream_id,
1011
+ set_event_stream_body=set_event_stream_body,
1012
+ _request_auth=_request_auth,
1013
+ _content_type=_content_type,
1014
+ _headers=_headers,
1015
+ _host_index=_host_index
1016
+ )
1017
+
1018
+ _response_types_map: Dict[str, Optional[str]] = {
1019
+ '200': "EventStream",
1020
+ '400': "ErrorGeneric",
1021
+ '403': "ErrorGeneric",
1022
+ '409': "ErrorGeneric",
1023
+ }
1024
+ response_data = self.api_client.call_api(
1025
+ *_param,
1026
+ _request_timeout=_request_timeout
1027
+ )
1028
+ response_data.read()
1029
+ return self.api_client.response_deserialize(
1030
+ response_data=response_data,
1031
+ response_types_map=_response_types_map,
1032
+ )
1033
+
1034
+
1035
+ @validate_call
1036
+ def set_event_stream_without_preload_content(
1037
+ self,
1038
+ project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
1039
+ event_stream_id: Annotated[StrictStr, Field(description="Event Stream ID The event stream's ID.")],
1040
+ set_event_stream_body: Optional[SetEventStreamBody] = None,
1041
+ _request_timeout: Union[
1042
+ None,
1043
+ Annotated[StrictFloat, Field(gt=0)],
1044
+ Tuple[
1045
+ Annotated[StrictFloat, Field(gt=0)],
1046
+ Annotated[StrictFloat, Field(gt=0)]
1047
+ ]
1048
+ ] = None,
1049
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1050
+ _content_type: Optional[StrictStr] = None,
1051
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1052
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1053
+ ) -> RESTResponseType:
1054
+ """Update an event stream for a project.
1055
+
1056
+
1057
+ :param project_id: Project ID The project's ID. (required)
1058
+ :type project_id: str
1059
+ :param event_stream_id: Event Stream ID The event stream's ID. (required)
1060
+ :type event_stream_id: str
1061
+ :param set_event_stream_body:
1062
+ :type set_event_stream_body: SetEventStreamBody
1063
+ :param _request_timeout: timeout setting for this request. If one
1064
+ number provided, it will be total request
1065
+ timeout. It can also be a pair (tuple) of
1066
+ (connection, read) timeouts.
1067
+ :type _request_timeout: int, tuple(int, int), optional
1068
+ :param _request_auth: set to override the auth_settings for an a single
1069
+ request; this effectively ignores the
1070
+ authentication in the spec for a single request.
1071
+ :type _request_auth: dict, optional
1072
+ :param _content_type: force content-type for the request.
1073
+ :type _content_type: str, Optional
1074
+ :param _headers: set to override the headers for a single
1075
+ request; this effectively ignores the headers
1076
+ in the spec for a single request.
1077
+ :type _headers: dict, optional
1078
+ :param _host_index: set to override the host_index for a single
1079
+ request; this effectively ignores the host_index
1080
+ in the spec for a single request.
1081
+ :type _host_index: int, optional
1082
+ :return: Returns the result object.
1083
+ """ # noqa: E501
1084
+
1085
+ _param = self._set_event_stream_serialize(
1086
+ project_id=project_id,
1087
+ event_stream_id=event_stream_id,
1088
+ set_event_stream_body=set_event_stream_body,
1089
+ _request_auth=_request_auth,
1090
+ _content_type=_content_type,
1091
+ _headers=_headers,
1092
+ _host_index=_host_index
1093
+ )
1094
+
1095
+ _response_types_map: Dict[str, Optional[str]] = {
1096
+ '200': "EventStream",
1097
+ '400': "ErrorGeneric",
1098
+ '403': "ErrorGeneric",
1099
+ '409': "ErrorGeneric",
1100
+ }
1101
+ response_data = self.api_client.call_api(
1102
+ *_param,
1103
+ _request_timeout=_request_timeout
1104
+ )
1105
+ return response_data.response
1106
+
1107
+
1108
+ def _set_event_stream_serialize(
529
1109
  self,
530
1110
  project_id,
531
1111
  event_stream_id,
532
- **kwargs
533
- ):
534
- """Update an event stream for a project. # noqa: E501
535
-
536
- This method makes a synchronous HTTP request by default. To make an
537
- asynchronous HTTP request, please pass async_req=True
538
-
539
- >>> thread = api.set_event_stream(project_id, event_stream_id, async_req=True)
540
- >>> result = thread.get()
541
-
542
- Args:
543
- project_id (str): Project ID The project's ID.
544
- event_stream_id (str): Event Stream ID The event stream's ID.
545
-
546
- Keyword Args:
547
- set_event_stream_body (SetEventStreamBody): [optional]
548
- _return_http_data_only (bool): response data without head status
549
- code and headers. Default is True.
550
- _preload_content (bool): if False, the urllib3.HTTPResponse object
551
- will be returned without reading/decoding response data.
552
- Default is True.
553
- _request_timeout (int/float/tuple): timeout setting for this request. If
554
- one number provided, it will be total request timeout. It can also
555
- be a pair (tuple) of (connection, read) timeouts.
556
- Default is None.
557
- _check_input_type (bool): specifies if type checking
558
- should be done one the data sent to the server.
559
- Default is True.
560
- _check_return_type (bool): specifies if type checking
561
- should be done one the data received from the server.
562
- Default is True.
563
- _spec_property_naming (bool): True if the variable names in the input data
564
- are serialized names, as specified in the OpenAPI document.
565
- False if the variable names in the input data
566
- are pythonic names, e.g. snake case (default)
567
- _content_type (str/None): force body content-type.
568
- Default is None and content-type will be predicted by allowed
569
- content-types and body.
570
- _host_index (int/None): specifies the index of the server
571
- that we want to use.
572
- Default is read from the configuration.
573
- _request_auths (list): set to override the auth_settings for an a single
574
- request; this effectively ignores the authentication
575
- in the spec for a single request.
576
- Default is None
577
- async_req (bool): execute request asynchronously
578
-
579
- Returns:
580
- EventStream
581
- If the method is called asynchronously, returns the request
582
- thread.
583
- """
584
- kwargs['async_req'] = kwargs.get(
585
- 'async_req', False
586
- )
587
- kwargs['_return_http_data_only'] = kwargs.get(
588
- '_return_http_data_only', True
589
- )
590
- kwargs['_preload_content'] = kwargs.get(
591
- '_preload_content', True
592
- )
593
- kwargs['_request_timeout'] = kwargs.get(
594
- '_request_timeout', None
595
- )
596
- kwargs['_check_input_type'] = kwargs.get(
597
- '_check_input_type', True
598
- )
599
- kwargs['_check_return_type'] = kwargs.get(
600
- '_check_return_type', True
601
- )
602
- kwargs['_spec_property_naming'] = kwargs.get(
603
- '_spec_property_naming', False
604
- )
605
- kwargs['_content_type'] = kwargs.get(
606
- '_content_type')
607
- kwargs['_host_index'] = kwargs.get('_host_index')
608
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
609
- kwargs['project_id'] = \
610
- project_id
611
- kwargs['event_stream_id'] = \
612
- event_stream_id
613
- return self.set_event_stream_endpoint.call_with_http_info(**kwargs)
1112
+ set_event_stream_body,
1113
+ _request_auth,
1114
+ _content_type,
1115
+ _headers,
1116
+ _host_index,
1117
+ ) -> RequestSerialized:
1118
+
1119
+ _host = None
1120
+
1121
+ _collection_formats: Dict[str, str] = {
1122
+ }
1123
+
1124
+ _path_params: Dict[str, str] = {}
1125
+ _query_params: List[Tuple[str, str]] = []
1126
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1127
+ _form_params: List[Tuple[str, str]] = []
1128
+ _files: Dict[str, str] = {}
1129
+ _body_params: Optional[bytes] = None
1130
+
1131
+ # process the path parameters
1132
+ if project_id is not None:
1133
+ _path_params['project_id'] = project_id
1134
+ if event_stream_id is not None:
1135
+ _path_params['event_stream_id'] = event_stream_id
1136
+ # process the query parameters
1137
+ # process the header parameters
1138
+ # process the form parameters
1139
+ # process the body parameter
1140
+ if set_event_stream_body is not None:
1141
+ _body_params = set_event_stream_body
1142
+
1143
+
1144
+ # set the HTTP header `Accept`
1145
+ _header_params['Accept'] = self.api_client.select_header_accept(
1146
+ [
1147
+ 'application/json'
1148
+ ]
1149
+ )
1150
+
1151
+ # set the HTTP header `Content-Type`
1152
+ if _content_type:
1153
+ _header_params['Content-Type'] = _content_type
1154
+ else:
1155
+ _default_content_type = (
1156
+ self.api_client.select_header_content_type(
1157
+ [
1158
+ 'application/json'
1159
+ ]
1160
+ )
1161
+ )
1162
+ if _default_content_type is not None:
1163
+ _header_params['Content-Type'] = _default_content_type
1164
+
1165
+ # authentication setting
1166
+ _auth_settings: List[str] = [
1167
+ 'oryAccessToken'
1168
+ ]
1169
+
1170
+ return self.api_client.param_serialize(
1171
+ method='PUT',
1172
+ resource_path='/projects/{project_id}/eventstreams/{event_stream_id}',
1173
+ path_params=_path_params,
1174
+ query_params=_query_params,
1175
+ header_params=_header_params,
1176
+ body=_body_params,
1177
+ post_params=_form_params,
1178
+ files=_files,
1179
+ auth_settings=_auth_settings,
1180
+ collection_formats=_collection_formats,
1181
+ _host=_host,
1182
+ _request_auth=_request_auth
1183
+ )
1184
+
614
1185