ory-client 1.8.1__py3-none-any.whl → 1.11.6__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.
- ory_client/__init__.py +279 -10
- ory_client/api/__init__.py +16 -3
- ory_client/api/courier_api.py +576 -287
- ory_client/api/events_api.py +1147 -576
- ory_client/api/frontend_api.py +8736 -4145
- ory_client/api/identity_api.py +5219 -2605
- ory_client/api/jwk_api.py +1881 -939
- ory_client/api/metadata_api.py +245 -376
- ory_client/api/o_auth2_api.py +7763 -3858
- ory_client/api/oidc_api.py +2071 -1034
- ory_client/api/permission_api.py +1675 -776
- ory_client/api/project_api.py +5314 -2638
- ory_client/api/relationship_api.py +1844 -860
- ory_client/api/wellknown_api.py +250 -131
- ory_client/api_client.py +520 -658
- ory_client/api_response.py +21 -0
- ory_client/configuration.py +65 -75
- ory_client/exceptions.py +73 -32
- ory_client/models/__init__.py +266 -291
- ory_client/models/accept_o_auth2_consent_request.py +118 -0
- ory_client/models/accept_o_auth2_consent_request_session.py +113 -0
- ory_client/models/accept_o_auth2_login_request.py +117 -0
- ory_client/models/active_project_in_console.py +101 -0
- ory_client/models/attribute.py +103 -0
- ory_client/models/attribute_filter.py +115 -0
- ory_client/models/attributes_count_datapoint.py +103 -0
- ory_client/models/authenticator_assurance_level.py +40 -0
- ory_client/models/batch_patch_identities_response.py +109 -0
- ory_client/models/check_opl_syntax_result.py +109 -0
- ory_client/models/check_permission_result.py +101 -0
- ory_client/models/cloud_account.py +105 -0
- ory_client/models/consistency_request_parameters.py +111 -0
- ory_client/models/continue_with.py +214 -0
- ory_client/models/continue_with_recovery_ui.py +114 -0
- ory_client/models/continue_with_recovery_ui_flow.py +103 -0
- ory_client/models/continue_with_set_ory_session_token.py +110 -0
- ory_client/models/continue_with_settings_ui.py +114 -0
- ory_client/models/continue_with_settings_ui_flow.py +101 -0
- ory_client/models/continue_with_verification_ui.py +114 -0
- ory_client/models/continue_with_verification_ui_flow.py +105 -0
- ory_client/models/courier_message_status.py +40 -0
- ory_client/models/courier_message_type.py +38 -0
- ory_client/models/create_custom_domain_body.py +109 -0
- ory_client/models/create_event_stream_body.py +112 -0
- ory_client/models/create_identity_body.py +155 -0
- ory_client/models/create_invite_response.py +114 -0
- ory_client/models/create_json_web_key_set.py +105 -0
- ory_client/models/create_project_api_key_request.py +101 -0
- ory_client/models/create_project_body.py +112 -0
- ory_client/models/create_project_branding.py +115 -0
- ory_client/models/create_project_member_invite_body.py +101 -0
- ory_client/models/create_project_normalized_payload.py +685 -0
- ory_client/models/create_recovery_code_for_identity_body.py +114 -0
- ory_client/models/create_recovery_link_for_identity_body.py +114 -0
- ory_client/models/create_relationship_body.py +113 -0
- ory_client/models/create_subscription_body.py +126 -0
- ory_client/models/create_subscription_common.py +124 -0
- ory_client/models/create_verifiable_credential_request_body.py +109 -0
- ory_client/models/create_workspace_member_invite_body.py +101 -0
- ory_client/models/create_workspace_payload.py +101 -0
- ory_client/models/create_workspace_subscription_body.py +124 -0
- ory_client/models/credential_supported_draft00.py +107 -0
- ory_client/models/custom_domain.py +132 -0
- ory_client/models/delete_my_sessions_count.py +101 -0
- ory_client/models/email_template_data.py +107 -0
- ory_client/models/email_template_data_body.py +103 -0
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +107 -0
- ory_client/models/error_browser_location_change_required.py +107 -0
- ory_client/models/error_flow_replaced.py +107 -0
- ory_client/models/error_generic.py +105 -0
- ory_client/models/error_o_auth2.py +109 -0
- ory_client/models/event_stream.py +112 -0
- ory_client/models/expanded_permission_tree.py +125 -0
- ory_client/models/flow_error.py +108 -0
- ory_client/models/generic_error.py +126 -0
- ory_client/models/generic_error_content.py +109 -0
- ory_client/models/generic_usage.py +103 -0
- ory_client/models/get_attributes_count_response.py +111 -0
- ory_client/models/get_managed_identity_schema_location.py +101 -0
- ory_client/models/get_metrics_event_attributes_response.py +103 -0
- ory_client/models/get_metrics_event_types_response.py +103 -0
- ory_client/models/get_organization_response.py +105 -0
- ory_client/models/get_project_events_body.py +120 -0
- ory_client/models/get_project_events_response.py +115 -0
- ory_client/models/get_project_metrics_response.py +111 -0
- ory_client/models/get_session_activity_response.py +111 -0
- ory_client/models/get_version200_response.py +101 -0
- ory_client/models/health_not_ready_status.py +101 -0
- ory_client/models/health_status.py +101 -0
- ory_client/models/identity.py +187 -0
- ory_client/models/identity_credentials.py +122 -0
- ory_client/models/identity_credentials_code.py +109 -0
- ory_client/models/identity_credentials_oidc.py +109 -0
- ory_client/models/identity_credentials_oidc_provider.py +111 -0
- ory_client/models/identity_credentials_password.py +101 -0
- ory_client/models/identity_patch.py +107 -0
- ory_client/models/identity_patch_response.py +115 -0
- ory_client/models/identity_schema_container.py +103 -0
- ory_client/models/identity_schema_preset.py +103 -0
- ory_client/models/identity_with_credentials.py +111 -0
- ory_client/models/identity_with_credentials_oidc.py +105 -0
- ory_client/models/identity_with_credentials_oidc_config.py +115 -0
- ory_client/models/identity_with_credentials_oidc_config_provider.py +103 -0
- ory_client/models/identity_with_credentials_password.py +105 -0
- ory_client/models/identity_with_credentials_password_config.py +103 -0
- ory_client/models/internal_get_project_branding_body.py +101 -0
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +103 -0
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +114 -0
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +101 -0
- ory_client/models/introspected_o_auth2_token.py +127 -0
- ory_client/models/is_owner_for_project_by_slug.py +103 -0
- ory_client/models/json_patch.py +119 -0
- ory_client/models/json_web_key.py +133 -0
- ory_client/models/json_web_key_set.py +109 -0
- ory_client/models/keto_namespace.py +103 -0
- ory_client/models/list_event_streams.py +109 -0
- ory_client/models/list_my_workspaces_response.py +113 -0
- ory_client/models/list_organizations_response.py +109 -0
- ory_client/models/list_workspace_projects_response.py +113 -0
- ory_client/models/login_flow.py +165 -0
- ory_client/models/login_flow_state.py +39 -0
- ory_client/models/logout_flow.py +103 -0
- ory_client/models/managed_identity_schema.py +120 -0
- ory_client/models/managed_identity_schema_validation_result.py +103 -0
- ory_client/models/member_invite.py +148 -0
- ory_client/models/message.py +141 -0
- ory_client/models/message_dispatch.py +119 -0
- ory_client/models/metrics_datapoint.py +104 -0
- ory_client/models/migration_options.py +117 -0
- ory_client/models/namespace.py +101 -0
- ory_client/models/needs_privileged_session_error.py +107 -0
- ory_client/models/normalized_project.py +171 -0
- ory_client/models/normalized_project_revision.py +674 -0
- ory_client/models/normalized_project_revision_courier_channel.py +145 -0
- ory_client/models/normalized_project_revision_hook.py +140 -0
- ory_client/models/normalized_project_revision_identity_schema.py +133 -0
- ory_client/models/normalized_project_revision_third_party_provider.py +187 -0
- ory_client/models/normalized_project_revision_tokenizer_template.py +133 -0
- ory_client/models/o_auth2_client.py +352 -0
- ory_client/models/o_auth2_client_token_lifespans.py +270 -0
- ory_client/models/o_auth2_consent_request.py +133 -0
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +109 -0
- ory_client/models/o_auth2_consent_session.py +130 -0
- ory_client/models/o_auth2_consent_session_expires_at.py +110 -0
- ory_client/models/o_auth2_login_request.py +125 -0
- ory_client/models/o_auth2_logout_request.py +115 -0
- ory_client/models/o_auth2_redirect_to.py +101 -0
- ory_client/models/o_auth2_token_exchange.py +111 -0
- ory_client/models/oidc_configuration.py +169 -0
- ory_client/models/oidc_user_info.py +137 -0
- ory_client/models/organization.py +116 -0
- ory_client/models/organization_body.py +103 -0
- ory_client/models/pagination.py +104 -0
- ory_client/models/pagination_headers.py +103 -0
- ory_client/models/parse_error.py +112 -0
- ory_client/models/patch_identities_body.py +109 -0
- ory_client/models/perform_native_logout_body.py +101 -0
- ory_client/models/permissions_on_workpace_response.py +101 -0
- ory_client/models/plan.py +103 -0
- ory_client/models/plan_details.py +128 -0
- ory_client/models/post_check_permission_body.py +113 -0
- ory_client/models/post_check_permission_or_error_body.py +113 -0
- ory_client/models/project.py +148 -0
- ory_client/models/project_api_key.py +126 -0
- ory_client/models/project_branding.py +129 -0
- ory_client/models/project_branding_colors.py +157 -0
- ory_client/models/project_branding_theme.py +182 -0
- ory_client/models/project_cors.py +103 -0
- ory_client/models/project_events_datapoint.py +114 -0
- ory_client/models/project_host.py +107 -0
- ory_client/models/project_member.py +107 -0
- ory_client/models/project_metadata.py +161 -0
- ory_client/models/project_service_identity.py +101 -0
- ory_client/models/project_service_o_auth2.py +101 -0
- ory_client/models/project_service_permission.py +101 -0
- ory_client/models/project_services.py +117 -0
- ory_client/models/quota_usage.py +118 -0
- ory_client/models/recovery_code_for_identity.py +106 -0
- ory_client/models/recovery_flow.py +139 -0
- ory_client/models/recovery_flow_state.py +39 -0
- ory_client/models/recovery_identity_address.py +110 -0
- ory_client/models/recovery_link_for_identity.py +104 -0
- ory_client/models/registration_flow.py +156 -0
- ory_client/models/registration_flow_state.py +39 -0
- ory_client/models/reject_o_auth2_request.py +109 -0
- ory_client/models/relation_query.py +113 -0
- ory_client/models/relationship.py +113 -0
- ory_client/models/relationship_namespaces.py +109 -0
- ory_client/models/relationship_patch.py +117 -0
- ory_client/models/relationships.py +111 -0
- ory_client/models/rfc6749_error_json.py +109 -0
- ory_client/models/schema_patch.py +103 -0
- ory_client/models/self_service_flow_expired_error.py +112 -0
- ory_client/models/session.py +141 -0
- ory_client/models/session_activity_datapoint.py +105 -0
- ory_client/models/session_authentication_method.py +121 -0
- ory_client/models/session_device.py +107 -0
- ory_client/models/set_active_project_in_console_body.py +101 -0
- ory_client/models/set_custom_domain_body.py +109 -0
- ory_client/models/set_event_stream_body.py +112 -0
- ory_client/models/set_project.py +118 -0
- ory_client/models/set_project_branding_theme_body.py +115 -0
- ory_client/models/settings_flow.py +145 -0
- ory_client/models/settings_flow_state.py +38 -0
- ory_client/models/source_position.py +103 -0
- ory_client/models/subject_set.py +105 -0
- ory_client/models/subscription.py +179 -0
- ory_client/models/successful_code_exchange_response.py +107 -0
- ory_client/models/successful_native_login.py +117 -0
- ory_client/models/successful_native_registration.py +123 -0
- ory_client/models/successful_project_update.py +115 -0
- ory_client/models/token_pagination.py +104 -0
- ory_client/models/token_pagination_headers.py +103 -0
- ory_client/models/token_pagination_request_parameters.py +104 -0
- ory_client/models/token_pagination_response_headers.py +103 -0
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +116 -0
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +120 -0
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +103 -0
- ory_client/models/ui_container.py +123 -0
- ory_client/models/ui_node.py +139 -0
- ory_client/models/ui_node_anchor_attributes.py +118 -0
- ory_client/models/ui_node_attributes.py +238 -0
- ory_client/models/ui_node_image_attributes.py +116 -0
- ory_client/models/ui_node_input_attributes.py +154 -0
- ory_client/models/ui_node_meta.py +105 -0
- ory_client/models/ui_node_script_attributes.py +124 -0
- ory_client/models/ui_node_text_attributes.py +116 -0
- ory_client/models/ui_text.py +114 -0
- ory_client/models/update_identity_body.py +132 -0
- ory_client/models/update_login_flow_body.py +286 -0
- ory_client/models/update_login_flow_with_code_method.py +111 -0
- ory_client/models/update_login_flow_with_lookup_secret_method.py +105 -0
- ory_client/models/update_login_flow_with_oidc_method.py +115 -0
- ory_client/models/update_login_flow_with_passkey_method.py +105 -0
- ory_client/models/update_login_flow_with_password_method.py +111 -0
- ory_client/models/update_login_flow_with_totp_method.py +107 -0
- ory_client/models/update_login_flow_with_web_authn_method.py +109 -0
- ory_client/models/update_recovery_flow_body.py +166 -0
- ory_client/models/update_recovery_flow_with_code_method.py +116 -0
- ory_client/models/update_recovery_flow_with_link_method.py +114 -0
- ory_client/models/update_registration_flow_body.py +238 -0
- ory_client/models/update_registration_flow_with_code_method.py +111 -0
- ory_client/models/update_registration_flow_with_oidc_method.py +115 -0
- ory_client/models/update_registration_flow_with_passkey_method.py +109 -0
- ory_client/models/update_registration_flow_with_password_method.py +109 -0
- ory_client/models/update_registration_flow_with_profile_method.py +109 -0
- ory_client/models/update_registration_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_settings_flow_body.py +286 -0
- ory_client/models/update_settings_flow_with_lookup_method.py +113 -0
- ory_client/models/update_settings_flow_with_oidc_method.py +113 -0
- ory_client/models/update_settings_flow_with_passkey_method.py +107 -0
- ory_client/models/update_settings_flow_with_password_method.py +107 -0
- ory_client/models/update_settings_flow_with_profile_method.py +107 -0
- ory_client/models/update_settings_flow_with_totp_method.py +109 -0
- ory_client/models/update_settings_flow_with_web_authn_method.py +111 -0
- ory_client/models/update_subscription_body.py +112 -0
- ory_client/models/update_verification_flow_body.py +166 -0
- ory_client/models/update_verification_flow_with_code_method.py +116 -0
- ory_client/models/update_verification_flow_with_link_method.py +114 -0
- ory_client/models/update_workspace_payload.py +101 -0
- ory_client/models/usage.py +105 -0
- ory_client/models/verifiable_credential_priming_response.py +115 -0
- ory_client/models/verifiable_credential_proof.py +103 -0
- ory_client/models/verifiable_credential_response.py +103 -0
- ory_client/models/verifiable_identity_address.py +123 -0
- ory_client/models/verification_flow.py +129 -0
- ory_client/models/verification_flow_state.py +39 -0
- ory_client/models/version.py +101 -0
- ory_client/models/warning.py +103 -0
- ory_client/models/workspace.py +115 -0
- ory_client/models/workspace_meta.py +122 -0
- ory_client/py.typed +0 -0
- ory_client/rest.py +139 -236
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/METADATA +6 -4
- ory_client-1.11.6.dist-info/RECORD +278 -0
- ory_client/apis/__init__.py +0 -28
- ory_client/model/__init__.py +0 -5
- ory_client/model/accept_o_auth2_consent_request.py +0 -296
- ory_client/model/accept_o_auth2_consent_request_session.py +0 -268
- ory_client/model/accept_o_auth2_login_request.py +0 -308
- ory_client/model/active_project_in_console.py +0 -264
- ory_client/model/attribute.py +0 -268
- ory_client/model/attribute_filter.py +0 -282
- ory_client/model/attributes_count_datapoint.py +0 -276
- ory_client/model/authenticator_assurance_level.py +0 -293
- ory_client/model/batch_patch_identities_response.py +0 -270
- ory_client/model/check_opl_syntax_result.py +0 -270
- ory_client/model/check_permission_result.py +0 -270
- ory_client/model/cloud_account.py +0 -282
- ory_client/model/consistency_request_parameters.py +0 -269
- ory_client/model/continue_with.py +0 -356
- ory_client/model/continue_with_recovery_ui.py +0 -287
- ory_client/model/continue_with_recovery_ui_flow.py +0 -274
- ory_client/model/continue_with_set_ory_session_token.py +0 -281
- ory_client/model/continue_with_settings_ui.py +0 -287
- ory_client/model/continue_with_settings_ui_flow.py +0 -270
- ory_client/model/continue_with_verification_ui.py +0 -287
- ory_client/model/continue_with_verification_ui_flow.py +0 -280
- ory_client/model/courier_message_status.py +0 -293
- ory_client/model/courier_message_type.py +0 -291
- ory_client/model/create_custom_domain_body.py +0 -280
- ory_client/model/create_event_stream_body.py +0 -287
- ory_client/model/create_identity_body.py +0 -314
- ory_client/model/create_invite_response.py +0 -282
- ory_client/model/create_json_web_key_set.py +0 -282
- ory_client/model/create_member_invite_response.py +0 -287
- ory_client/model/create_project_api_key_request.py +0 -270
- ory_client/model/create_project_body.py +0 -284
- ory_client/model/create_project_branding.py +0 -290
- ory_client/model/create_project_member_invite_body.py +0 -264
- ory_client/model/create_project_normalized_payload.py +0 -1115
- ory_client/model/create_recovery_code_for_identity_body.py +0 -279
- ory_client/model/create_recovery_link_for_identity_body.py +0 -279
- ory_client/model/create_relationship_body.py +0 -286
- ory_client/model/create_subscription_body.py +0 -298
- ory_client/model/create_subscription_common.py +0 -292
- ory_client/model/create_verifiable_credential_request_body.py +0 -278
- ory_client/model/create_workspace_member_invite_body.py +0 -264
- ory_client/model/create_workspace_payload.py +0 -270
- ory_client/model/create_workspace_subscription_body.py +0 -292
- ory_client/model/credential_supported_draft00.py +0 -276
- ory_client/model/custom_domain.py +0 -334
- ory_client/model/delete_my_sessions_count.py +0 -264
- ory_client/model/email_template_data.py +0 -282
- ory_client/model/email_template_data_body.py +0 -276
- ory_client/model/error_authenticator_assurance_level_not_satisfied.py +0 -274
- ory_client/model/error_browser_location_change_required.py +0 -274
- ory_client/model/error_flow_replaced.py +0 -274
- ory_client/model/error_generic.py +0 -276
- ory_client/model/error_o_auth2.py +0 -280
- ory_client/model/event_stream.py +0 -284
- ory_client/model/expanded_permission_tree.py +0 -294
- ory_client/model/flow_error.py +0 -282
- ory_client/model/generic_error.py +0 -308
- ory_client/model/generic_error_content.py +0 -280
- ory_client/model/generic_usage.py +0 -276
- ory_client/model/get_attributes_count_response.py +0 -273
- ory_client/model/get_managed_identity_schema_location.py +0 -264
- ory_client/model/get_metrics_event_attributes_response.py +0 -267
- ory_client/model/get_metrics_event_types_response.py +0 -267
- ory_client/model/get_organization_response.py +0 -276
- ory_client/model/get_project_events_body.py +0 -298
- ory_client/model/get_project_events_response.py +0 -278
- ory_client/model/get_project_metrics_response.py +0 -273
- ory_client/model/get_session_activity_response.py +0 -273
- ory_client/model/get_version200_response.py +0 -270
- ory_client/model/health_not_ready_status.py +0 -264
- ory_client/model/health_status.py +0 -264
- ory_client/model/identity.py +0 -342
- ory_client/model/identity_credentials.py +0 -294
- ory_client/model/identity_credentials_code.py +0 -268
- ory_client/model/identity_credentials_oidc.py +0 -270
- ory_client/model/identity_credentials_oidc_provider.py +0 -284
- ory_client/model/identity_credentials_password.py +0 -264
- ory_client/model/identity_patch.py +0 -274
- ory_client/model/identity_patch_response.py +0 -275
- ory_client/model/identity_schema_container.py +0 -268
- ory_client/model/identity_schema_preset.py +0 -276
- ory_client/model/identity_schema_presets.py +0 -292
- ory_client/model/identity_schemas.py +0 -292
- ory_client/model/identity_with_credentials.py +0 -276
- ory_client/model/identity_with_credentials_oidc.py +0 -270
- ory_client/model/identity_with_credentials_oidc_config.py +0 -276
- ory_client/model/identity_with_credentials_oidc_config_provider.py +0 -276
- ory_client/model/identity_with_credentials_password.py +0 -270
- ory_client/model/identity_with_credentials_password_config.py +0 -268
- ory_client/model/internal_get_project_branding_body.py +0 -264
- ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +0 -276
- ory_client/model/internal_is_owner_for_project_by_slug_body.py +0 -290
- ory_client/model/internal_is_owner_for_project_by_slug_response.py +0 -270
- ory_client/model/introspected_o_auth2_token.py +0 -322
- ory_client/model/is_owner_for_project_by_slug.py +0 -276
- ory_client/model/is_ready200_response.py +0 -270
- ory_client/model/is_ready503_response.py +0 -270
- ory_client/model/json_patch.py +0 -292
- ory_client/model/json_patch_document.py +0 -292
- ory_client/model/json_web_key.py +0 -340
- ory_client/model/json_web_key_set.py +0 -270
- ory_client/model/keto_namespace.py +0 -268
- ory_client/model/keto_namespaces.py +0 -292
- ory_client/model/list_custom_domains.py +0 -292
- ory_client/model/list_event_streams.py +0 -270
- ory_client/model/list_my_workspaces_response.py +0 -288
- ory_client/model/list_organizations_response.py +0 -276
- ory_client/model/list_workspace_projects_response.py +0 -288
- ory_client/model/login_flow.py +0 -370
- ory_client/model/login_flow_state.py +0 -292
- ory_client/model/logout_flow.py +0 -276
- ory_client/model/managed_identity_schema.py +0 -300
- ory_client/model/managed_identity_schema_validation_result.py +0 -268
- ory_client/model/managed_identity_schemas.py +0 -292
- ory_client/model/member_invite.py +0 -321
- ory_client/model/member_invites.py +0 -292
- ory_client/model/message.py +0 -355
- ory_client/model/message_dispatch.py +0 -302
- ory_client/model/metrics_datapoint.py +0 -276
- ory_client/model/migration_options.py +0 -284
- ory_client/model/namespace.py +0 -264
- ory_client/model/needs_privileged_session_error.py +0 -280
- ory_client/model/normalized_project.py +0 -337
- ory_client/model/normalized_project_revision.py +0 -1101
- ory_client/model/normalized_project_revision_courier_channel.py +0 -328
- ory_client/model/normalized_project_revision_hook.py +0 -342
- ory_client/model/normalized_project_revision_identity_schema.py +0 -308
- ory_client/model/normalized_project_revision_identity_schemas.py +0 -292
- ory_client/model/normalized_project_revision_third_party_provider.py +0 -368
- ory_client/model/normalized_project_revision_tokenizer_template.py +0 -300
- ory_client/model/normalized_project_revision_tokenizer_templates.py +0 -292
- ory_client/model/normalized_projects.py +0 -292
- ory_client/model/null_duration.py +0 -292
- ory_client/model/o_auth2_client.py +0 -460
- ory_client/model/o_auth2_client_token_lifespans.py +0 -306
- ory_client/model/o_auth2_consent_request.py +0 -328
- ory_client/model/o_auth2_consent_request_open_id_connect_context.py +0 -280
- ory_client/model/o_auth2_consent_session.py +0 -308
- ory_client/model/o_auth2_consent_session_expires_at.py +0 -280
- ory_client/model/o_auth2_consent_sessions.py +0 -292
- ory_client/model/o_auth2_login_request.py +0 -320
- ory_client/model/o_auth2_logout_request.py +0 -290
- ory_client/model/o_auth2_redirect_to.py +0 -270
- ory_client/model/o_auth2_token_exchange.py +0 -284
- ory_client/model/oidc_configuration.py +0 -412
- ory_client/model/oidc_user_info.py +0 -336
- ory_client/model/organization.py +0 -302
- ory_client/model/organization_body.py +0 -268
- ory_client/model/pagination.py +0 -274
- ory_client/model/pagination_headers.py +0 -268
- ory_client/model/parse_error.py +0 -278
- ory_client/model/patch_identities_body.py +0 -270
- ory_client/model/perform_native_logout_body.py +0 -270
- ory_client/model/permissions_on_project.py +0 -260
- ory_client/model/permissions_on_workpace_response.py +0 -264
- ory_client/model/plan.py +0 -276
- ory_client/model/plan_details.py +0 -312
- ory_client/model/plan_features.py +0 -266
- ory_client/model/plans.py +0 -287
- ory_client/model/post_check_permission_body.py +0 -286
- ory_client/model/post_check_permission_or_error_body.py +0 -286
- ory_client/model/pricing.py +0 -292
- ory_client/model/project.py +0 -319
- ory_client/model/project_api_key.py +0 -298
- ory_client/model/project_api_keys.py +0 -292
- ory_client/model/project_branding.py +0 -303
- ory_client/model/project_branding_colors.py +0 -376
- ory_client/model/project_branding_theme.py +0 -421
- ory_client/model/project_branding_themes.py +0 -292
- ory_client/model/project_cors.py +0 -268
- ory_client/model/project_events_datapoint.py +0 -288
- ory_client/model/project_host.py +0 -281
- ory_client/model/project_member.py +0 -288
- ory_client/model/project_members.py +0 -292
- ory_client/model/project_metadata.py +0 -337
- ory_client/model/project_metadata_list.py +0 -292
- ory_client/model/project_revision_hooks.py +0 -292
- ory_client/model/project_revision_identity_schemas.py +0 -292
- ory_client/model/project_revision_third_party_login_providers.py +0 -292
- ory_client/model/project_revisions.py +0 -292
- ory_client/model/project_service_identity.py +0 -270
- ory_client/model/project_service_o_auth2.py +0 -270
- ory_client/model/project_service_permission.py +0 -270
- ory_client/model/project_services.py +0 -282
- ory_client/model/projects.py +0 -292
- ory_client/model/quota_usage.py +0 -326
- ory_client/model/recovery_code_for_identity.py +0 -280
- ory_client/model/recovery_flow.py +0 -330
- ory_client/model/recovery_flow_state.py +0 -292
- ory_client/model/recovery_identity_address.py +0 -290
- ory_client/model/recovery_link_for_identity.py +0 -274
- ory_client/model/registration_flow.py +0 -352
- ory_client/model/registration_flow_state.py +0 -292
- ory_client/model/reject_o_auth2_request.py +0 -280
- ory_client/model/relation_query.py +0 -286
- ory_client/model/relationship.py +0 -296
- ory_client/model/relationship_namespaces.py +0 -270
- ory_client/model/relationship_patch.py +0 -278
- ory_client/model/relationships.py +0 -274
- ory_client/model/revision_courier_channels.py +0 -292
- ory_client/model/rfc6749_error_json.py +0 -280
- ory_client/model/schema_patch.py +0 -276
- ory_client/model/self_service_flow_expired_error.py +0 -282
- ory_client/model/session.py +0 -318
- ory_client/model/session_activity_datapoint.py +0 -282
- ory_client/model/session_authentication_method.py +0 -297
- ory_client/model/session_authentication_methods.py +0 -292
- ory_client/model/session_device.py +0 -282
- ory_client/model/set_active_project_in_console_body.py +0 -270
- ory_client/model/set_custom_domain_body.py +0 -280
- ory_client/model/set_event_stream_body.py +0 -287
- ory_client/model/set_project.py +0 -296
- ory_client/model/set_project_branding_theme_body.py +0 -290
- ory_client/model/settings_flow.py +0 -338
- ory_client/model/settings_flow_state.py +0 -291
- ory_client/model/source_position.py +0 -268
- ory_client/model/string_slice_json_format.py +0 -287
- ory_client/model/subject_set.py +0 -282
- ory_client/model/subscription.py +0 -350
- ory_client/model/successful_code_exchange_response.py +0 -280
- ory_client/model/successful_native_login.py +0 -280
- ory_client/model/successful_native_registration.py +0 -292
- ory_client/model/successful_project_update.py +0 -284
- ory_client/model/token_pagination.py +0 -274
- ory_client/model/token_pagination_headers.py +0 -268
- ory_client/model/token_pagination_request_parameters.py +0 -274
- ory_client/model/token_pagination_response_headers.py +0 -268
- ory_client/model/trust_o_auth2_jwt_grant_issuer.py +0 -302
- ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +0 -298
- ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +0 -292
- ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +0 -268
- ory_client/model/ui_container.py +0 -294
- ory_client/model/ui_node.py +0 -322
- ory_client/model/ui_node_anchor_attributes.py +0 -294
- ory_client/model/ui_node_attributes.py +0 -440
- ory_client/model/ui_node_image_attributes.py +0 -294
- ory_client/model/ui_node_input_attributes.py +0 -340
- ory_client/model/ui_node_meta.py +0 -270
- ory_client/model/ui_node_script_attributes.py +0 -318
- ory_client/model/ui_node_text_attributes.py +0 -288
- ory_client/model/ui_nodes.py +0 -292
- ory_client/model/ui_text.py +0 -291
- ory_client/model/ui_texts.py +0 -292
- ory_client/model/update_identity_body.py +0 -304
- ory_client/model/update_login_flow_body.py +0 -411
- ory_client/model/update_login_flow_with_code_method.py +0 -292
- ory_client/model/update_login_flow_with_lookup_secret_method.py +0 -280
- ory_client/model/update_login_flow_with_oidc_method.py +0 -300
- ory_client/model/update_login_flow_with_password_method.py +0 -294
- ory_client/model/update_login_flow_with_totp_method.py +0 -284
- ory_client/model/update_login_flow_with_web_authn_method.py +0 -288
- ory_client/model/update_recovery_flow_body.py +0 -351
- ory_client/model/update_recovery_flow_with_code_method.py +0 -290
- ory_client/model/update_recovery_flow_with_link_method.py +0 -288
- ory_client/model/update_registration_flow_body.py +0 -389
- ory_client/model/update_registration_flow_with_code_method.py +0 -292
- ory_client/model/update_registration_flow_with_oidc_method.py +0 -300
- ory_client/model/update_registration_flow_with_password_method.py +0 -290
- ory_client/model/update_registration_flow_with_web_authn_method.py +0 -292
- ory_client/model/update_settings_flow_body.py +0 -419
- ory_client/model/update_settings_flow_with_lookup_method.py +0 -294
- ory_client/model/update_settings_flow_with_oidc_method.py +0 -294
- ory_client/model/update_settings_flow_with_password_method.py +0 -284
- ory_client/model/update_settings_flow_with_profile_method.py +0 -284
- ory_client/model/update_settings_flow_with_totp_method.py +0 -286
- ory_client/model/update_settings_flow_with_web_authn_method.py +0 -290
- ory_client/model/update_subscription_body.py +0 -284
- ory_client/model/update_verification_flow_body.py +0 -351
- ory_client/model/update_verification_flow_with_code_method.py +0 -290
- ory_client/model/update_verification_flow_with_link_method.py +0 -288
- ory_client/model/update_workspace_payload.py +0 -270
- ory_client/model/usage.py +0 -270
- ory_client/model/verifiable_credential_priming_response.py +0 -292
- ory_client/model/verifiable_credential_proof.py +0 -268
- ory_client/model/verifiable_credential_response.py +0 -268
- ory_client/model/verifiable_identity_address.py +0 -308
- ory_client/model/verification_flow.py +0 -318
- ory_client/model/verification_flow_state.py +0 -292
- ory_client/model/version.py +0 -264
- ory_client/model/warning.py +0 -268
- ory_client/model/workspace.py +0 -292
- ory_client/model/workspace_meta.py +0 -296
- ory_client/model/workspaces.py +0 -292
- ory_client/model_utils.py +0 -2059
- ory_client-1.8.1.dist-info/RECORD +0 -310
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/LICENSE +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/WHEEL +0 -0
- {ory_client-1.8.1.dist-info → ory_client-1.11.6.dist-info}/top_level.txt +0 -0
@@ -1,894 +1,1878 @@
|
|
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.
|
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.
|
8
|
+
The version of the OpenAPI document: v1.11.6
|
7
9
|
Contact: support@ory.sh
|
8
|
-
Generated by
|
9
|
-
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
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
|
10
19
|
|
20
|
+
from pydantic import Field, StrictInt, StrictStr
|
21
|
+
from typing import List, Optional
|
22
|
+
from typing_extensions import Annotated
|
23
|
+
from ory_client.models.check_opl_syntax_result import CheckOplSyntaxResult
|
24
|
+
from ory_client.models.create_relationship_body import CreateRelationshipBody
|
25
|
+
from ory_client.models.relationship import Relationship
|
26
|
+
from ory_client.models.relationship_namespaces import RelationshipNamespaces
|
27
|
+
from ory_client.models.relationship_patch import RelationshipPatch
|
28
|
+
from ory_client.models.relationships import Relationships
|
11
29
|
|
12
|
-
import
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
check_validations,
|
19
|
-
date,
|
20
|
-
datetime,
|
21
|
-
file_type,
|
22
|
-
none_type,
|
23
|
-
validate_and_convert_types
|
24
|
-
)
|
25
|
-
from ory_client.model.check_opl_syntax_result import CheckOplSyntaxResult
|
26
|
-
from ory_client.model.create_relationship_body import CreateRelationshipBody
|
27
|
-
from ory_client.model.error_generic import ErrorGeneric
|
28
|
-
from ory_client.model.relationship import Relationship
|
29
|
-
from ory_client.model.relationship_namespaces import RelationshipNamespaces
|
30
|
-
from ory_client.model.relationship_patch import RelationshipPatch
|
31
|
-
from ory_client.model.relationships import Relationships
|
32
|
-
|
33
|
-
|
34
|
-
class RelationshipApi(object):
|
30
|
+
from ory_client.api_client import ApiClient, RequestSerialized
|
31
|
+
from ory_client.api_response import ApiResponse
|
32
|
+
from ory_client.rest import RESTResponseType
|
33
|
+
|
34
|
+
|
35
|
+
class RelationshipApi:
|
35
36
|
"""NOTE: This class is auto generated by OpenAPI Generator
|
36
37
|
Ref: https://openapi-generator.tech
|
37
38
|
|
38
39
|
Do not edit the class manually.
|
39
40
|
"""
|
40
41
|
|
41
|
-
def __init__(self, api_client=None):
|
42
|
+
def __init__(self, api_client=None) -> None:
|
42
43
|
if api_client is None:
|
43
|
-
api_client = ApiClient()
|
44
|
+
api_client = ApiClient.get_default()
|
44
45
|
self.api_client = api_client
|
45
|
-
self.check_opl_syntax_endpoint = _Endpoint(
|
46
|
-
settings={
|
47
|
-
'response_type': (CheckOplSyntaxResult,),
|
48
|
-
'auth': [
|
49
|
-
'oryAccessToken'
|
50
|
-
],
|
51
|
-
'endpoint_path': '/opl/syntax/check',
|
52
|
-
'operation_id': 'check_opl_syntax',
|
53
|
-
'http_method': 'POST',
|
54
|
-
'servers': None,
|
55
|
-
},
|
56
|
-
params_map={
|
57
|
-
'all': [
|
58
|
-
'body',
|
59
|
-
],
|
60
|
-
'required': [],
|
61
|
-
'nullable': [
|
62
|
-
],
|
63
|
-
'enum': [
|
64
|
-
],
|
65
|
-
'validation': [
|
66
|
-
]
|
67
|
-
},
|
68
|
-
root_map={
|
69
|
-
'validations': {
|
70
|
-
},
|
71
|
-
'allowed_values': {
|
72
|
-
},
|
73
|
-
'openapi_types': {
|
74
|
-
'body':
|
75
|
-
(str,),
|
76
|
-
},
|
77
|
-
'attribute_map': {
|
78
|
-
},
|
79
|
-
'location_map': {
|
80
|
-
'body': 'body',
|
81
|
-
},
|
82
|
-
'collection_format_map': {
|
83
|
-
}
|
84
|
-
},
|
85
|
-
headers_map={
|
86
|
-
'accept': [
|
87
|
-
'application/json'
|
88
|
-
],
|
89
|
-
'content_type': [
|
90
|
-
'text/plain'
|
91
|
-
]
|
92
|
-
},
|
93
|
-
api_client=api_client
|
94
|
-
)
|
95
|
-
self.create_relationship_endpoint = _Endpoint(
|
96
|
-
settings={
|
97
|
-
'response_type': (Relationship,),
|
98
|
-
'auth': [
|
99
|
-
'oryAccessToken'
|
100
|
-
],
|
101
|
-
'endpoint_path': '/admin/relation-tuples',
|
102
|
-
'operation_id': 'create_relationship',
|
103
|
-
'http_method': 'PUT',
|
104
|
-
'servers': None,
|
105
|
-
},
|
106
|
-
params_map={
|
107
|
-
'all': [
|
108
|
-
'create_relationship_body',
|
109
|
-
],
|
110
|
-
'required': [],
|
111
|
-
'nullable': [
|
112
|
-
],
|
113
|
-
'enum': [
|
114
|
-
],
|
115
|
-
'validation': [
|
116
|
-
]
|
117
|
-
},
|
118
|
-
root_map={
|
119
|
-
'validations': {
|
120
|
-
},
|
121
|
-
'allowed_values': {
|
122
|
-
},
|
123
|
-
'openapi_types': {
|
124
|
-
'create_relationship_body':
|
125
|
-
(CreateRelationshipBody,),
|
126
|
-
},
|
127
|
-
'attribute_map': {
|
128
|
-
},
|
129
|
-
'location_map': {
|
130
|
-
'create_relationship_body': 'body',
|
131
|
-
},
|
132
|
-
'collection_format_map': {
|
133
|
-
}
|
134
|
-
},
|
135
|
-
headers_map={
|
136
|
-
'accept': [
|
137
|
-
'application/json'
|
138
|
-
],
|
139
|
-
'content_type': [
|
140
|
-
'application/json'
|
141
|
-
]
|
142
|
-
},
|
143
|
-
api_client=api_client
|
144
|
-
)
|
145
|
-
self.delete_relationships_endpoint = _Endpoint(
|
146
|
-
settings={
|
147
|
-
'response_type': None,
|
148
|
-
'auth': [
|
149
|
-
'oryAccessToken'
|
150
|
-
],
|
151
|
-
'endpoint_path': '/admin/relation-tuples',
|
152
|
-
'operation_id': 'delete_relationships',
|
153
|
-
'http_method': 'DELETE',
|
154
|
-
'servers': None,
|
155
|
-
},
|
156
|
-
params_map={
|
157
|
-
'all': [
|
158
|
-
'namespace',
|
159
|
-
'object',
|
160
|
-
'relation',
|
161
|
-
'subject_id',
|
162
|
-
'subject_set_namespace',
|
163
|
-
'subject_set_object',
|
164
|
-
'subject_set_relation',
|
165
|
-
],
|
166
|
-
'required': [],
|
167
|
-
'nullable': [
|
168
|
-
],
|
169
|
-
'enum': [
|
170
|
-
],
|
171
|
-
'validation': [
|
172
|
-
]
|
173
|
-
},
|
174
|
-
root_map={
|
175
|
-
'validations': {
|
176
|
-
},
|
177
|
-
'allowed_values': {
|
178
|
-
},
|
179
|
-
'openapi_types': {
|
180
|
-
'namespace':
|
181
|
-
(str,),
|
182
|
-
'object':
|
183
|
-
(str,),
|
184
|
-
'relation':
|
185
|
-
(str,),
|
186
|
-
'subject_id':
|
187
|
-
(str,),
|
188
|
-
'subject_set_namespace':
|
189
|
-
(str,),
|
190
|
-
'subject_set_object':
|
191
|
-
(str,),
|
192
|
-
'subject_set_relation':
|
193
|
-
(str,),
|
194
|
-
},
|
195
|
-
'attribute_map': {
|
196
|
-
'namespace': 'namespace',
|
197
|
-
'object': 'object',
|
198
|
-
'relation': 'relation',
|
199
|
-
'subject_id': 'subject_id',
|
200
|
-
'subject_set_namespace': 'subject_set.namespace',
|
201
|
-
'subject_set_object': 'subject_set.object',
|
202
|
-
'subject_set_relation': 'subject_set.relation',
|
203
|
-
},
|
204
|
-
'location_map': {
|
205
|
-
'namespace': 'query',
|
206
|
-
'object': 'query',
|
207
|
-
'relation': 'query',
|
208
|
-
'subject_id': 'query',
|
209
|
-
'subject_set_namespace': 'query',
|
210
|
-
'subject_set_object': 'query',
|
211
|
-
'subject_set_relation': 'query',
|
212
|
-
},
|
213
|
-
'collection_format_map': {
|
214
|
-
}
|
215
|
-
},
|
216
|
-
headers_map={
|
217
|
-
'accept': [
|
218
|
-
'application/json'
|
219
|
-
],
|
220
|
-
'content_type': [],
|
221
|
-
},
|
222
|
-
api_client=api_client
|
223
|
-
)
|
224
|
-
self.get_relationships_endpoint = _Endpoint(
|
225
|
-
settings={
|
226
|
-
'response_type': (Relationships,),
|
227
|
-
'auth': [
|
228
|
-
'oryAccessToken'
|
229
|
-
],
|
230
|
-
'endpoint_path': '/relation-tuples',
|
231
|
-
'operation_id': 'get_relationships',
|
232
|
-
'http_method': 'GET',
|
233
|
-
'servers': None,
|
234
|
-
},
|
235
|
-
params_map={
|
236
|
-
'all': [
|
237
|
-
'page_token',
|
238
|
-
'page_size',
|
239
|
-
'namespace',
|
240
|
-
'object',
|
241
|
-
'relation',
|
242
|
-
'subject_id',
|
243
|
-
'subject_set_namespace',
|
244
|
-
'subject_set_object',
|
245
|
-
'subject_set_relation',
|
246
|
-
],
|
247
|
-
'required': [],
|
248
|
-
'nullable': [
|
249
|
-
],
|
250
|
-
'enum': [
|
251
|
-
],
|
252
|
-
'validation': [
|
253
|
-
]
|
254
|
-
},
|
255
|
-
root_map={
|
256
|
-
'validations': {
|
257
|
-
},
|
258
|
-
'allowed_values': {
|
259
|
-
},
|
260
|
-
'openapi_types': {
|
261
|
-
'page_token':
|
262
|
-
(str,),
|
263
|
-
'page_size':
|
264
|
-
(int,),
|
265
|
-
'namespace':
|
266
|
-
(str,),
|
267
|
-
'object':
|
268
|
-
(str,),
|
269
|
-
'relation':
|
270
|
-
(str,),
|
271
|
-
'subject_id':
|
272
|
-
(str,),
|
273
|
-
'subject_set_namespace':
|
274
|
-
(str,),
|
275
|
-
'subject_set_object':
|
276
|
-
(str,),
|
277
|
-
'subject_set_relation':
|
278
|
-
(str,),
|
279
|
-
},
|
280
|
-
'attribute_map': {
|
281
|
-
'page_token': 'page_token',
|
282
|
-
'page_size': 'page_size',
|
283
|
-
'namespace': 'namespace',
|
284
|
-
'object': 'object',
|
285
|
-
'relation': 'relation',
|
286
|
-
'subject_id': 'subject_id',
|
287
|
-
'subject_set_namespace': 'subject_set.namespace',
|
288
|
-
'subject_set_object': 'subject_set.object',
|
289
|
-
'subject_set_relation': 'subject_set.relation',
|
290
|
-
},
|
291
|
-
'location_map': {
|
292
|
-
'page_token': 'query',
|
293
|
-
'page_size': 'query',
|
294
|
-
'namespace': 'query',
|
295
|
-
'object': 'query',
|
296
|
-
'relation': 'query',
|
297
|
-
'subject_id': 'query',
|
298
|
-
'subject_set_namespace': 'query',
|
299
|
-
'subject_set_object': 'query',
|
300
|
-
'subject_set_relation': 'query',
|
301
|
-
},
|
302
|
-
'collection_format_map': {
|
303
|
-
}
|
304
|
-
},
|
305
|
-
headers_map={
|
306
|
-
'accept': [
|
307
|
-
'application/json'
|
308
|
-
],
|
309
|
-
'content_type': [],
|
310
|
-
},
|
311
|
-
api_client=api_client
|
312
|
-
)
|
313
|
-
self.list_relationship_namespaces_endpoint = _Endpoint(
|
314
|
-
settings={
|
315
|
-
'response_type': (RelationshipNamespaces,),
|
316
|
-
'auth': [
|
317
|
-
'oryAccessToken'
|
318
|
-
],
|
319
|
-
'endpoint_path': '/namespaces',
|
320
|
-
'operation_id': 'list_relationship_namespaces',
|
321
|
-
'http_method': 'GET',
|
322
|
-
'servers': None,
|
323
|
-
},
|
324
|
-
params_map={
|
325
|
-
'all': [
|
326
|
-
],
|
327
|
-
'required': [],
|
328
|
-
'nullable': [
|
329
|
-
],
|
330
|
-
'enum': [
|
331
|
-
],
|
332
|
-
'validation': [
|
333
|
-
]
|
334
|
-
},
|
335
|
-
root_map={
|
336
|
-
'validations': {
|
337
|
-
},
|
338
|
-
'allowed_values': {
|
339
|
-
},
|
340
|
-
'openapi_types': {
|
341
|
-
},
|
342
|
-
'attribute_map': {
|
343
|
-
},
|
344
|
-
'location_map': {
|
345
|
-
},
|
346
|
-
'collection_format_map': {
|
347
|
-
}
|
348
|
-
},
|
349
|
-
headers_map={
|
350
|
-
'accept': [
|
351
|
-
'application/json'
|
352
|
-
],
|
353
|
-
'content_type': [],
|
354
|
-
},
|
355
|
-
api_client=api_client
|
356
|
-
)
|
357
|
-
self.patch_relationships_endpoint = _Endpoint(
|
358
|
-
settings={
|
359
|
-
'response_type': None,
|
360
|
-
'auth': [
|
361
|
-
'oryAccessToken'
|
362
|
-
],
|
363
|
-
'endpoint_path': '/admin/relation-tuples',
|
364
|
-
'operation_id': 'patch_relationships',
|
365
|
-
'http_method': 'PATCH',
|
366
|
-
'servers': None,
|
367
|
-
},
|
368
|
-
params_map={
|
369
|
-
'all': [
|
370
|
-
'relationship_patch',
|
371
|
-
],
|
372
|
-
'required': [],
|
373
|
-
'nullable': [
|
374
|
-
],
|
375
|
-
'enum': [
|
376
|
-
],
|
377
|
-
'validation': [
|
378
|
-
]
|
379
|
-
},
|
380
|
-
root_map={
|
381
|
-
'validations': {
|
382
|
-
},
|
383
|
-
'allowed_values': {
|
384
|
-
},
|
385
|
-
'openapi_types': {
|
386
|
-
'relationship_patch':
|
387
|
-
([RelationshipPatch],),
|
388
|
-
},
|
389
|
-
'attribute_map': {
|
390
|
-
},
|
391
|
-
'location_map': {
|
392
|
-
'relationship_patch': 'body',
|
393
|
-
},
|
394
|
-
'collection_format_map': {
|
395
|
-
}
|
396
|
-
},
|
397
|
-
headers_map={
|
398
|
-
'accept': [
|
399
|
-
'application/json'
|
400
|
-
],
|
401
|
-
'content_type': [
|
402
|
-
'application/json'
|
403
|
-
]
|
404
|
-
},
|
405
|
-
api_client=api_client
|
406
|
-
)
|
407
46
|
|
47
|
+
|
48
|
+
@validate_call
|
408
49
|
def check_opl_syntax(
|
409
50
|
self,
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
code and headers. Default is True.
|
426
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
427
|
-
will be returned without reading/decoding response data.
|
428
|
-
Default is True.
|
429
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
430
|
-
one number provided, it will be total request timeout. It can also
|
431
|
-
be a pair (tuple) of (connection, read) timeouts.
|
432
|
-
Default is None.
|
433
|
-
_check_input_type (bool): specifies if type checking
|
434
|
-
should be done one the data sent to the server.
|
435
|
-
Default is True.
|
436
|
-
_check_return_type (bool): specifies if type checking
|
437
|
-
should be done one the data received from the server.
|
438
|
-
Default is True.
|
439
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
440
|
-
are serialized names, as specified in the OpenAPI document.
|
441
|
-
False if the variable names in the input data
|
442
|
-
are pythonic names, e.g. snake case (default)
|
443
|
-
_content_type (str/None): force body content-type.
|
444
|
-
Default is None and content-type will be predicted by allowed
|
445
|
-
content-types and body.
|
446
|
-
_host_index (int/None): specifies the index of the server
|
447
|
-
that we want to use.
|
448
|
-
Default is read from the configuration.
|
449
|
-
_request_auths (list): set to override the auth_settings for an a single
|
450
|
-
request; this effectively ignores the authentication
|
451
|
-
in the spec for a single request.
|
452
|
-
Default is None
|
453
|
-
async_req (bool): execute request asynchronously
|
454
|
-
|
455
|
-
Returns:
|
456
|
-
CheckOplSyntaxResult
|
457
|
-
If the method is called asynchronously, returns the request
|
458
|
-
thread.
|
459
|
-
"""
|
460
|
-
kwargs['async_req'] = kwargs.get(
|
461
|
-
'async_req', False
|
462
|
-
)
|
463
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
464
|
-
'_return_http_data_only', True
|
465
|
-
)
|
466
|
-
kwargs['_preload_content'] = kwargs.get(
|
467
|
-
'_preload_content', True
|
468
|
-
)
|
469
|
-
kwargs['_request_timeout'] = kwargs.get(
|
470
|
-
'_request_timeout', None
|
471
|
-
)
|
472
|
-
kwargs['_check_input_type'] = kwargs.get(
|
473
|
-
'_check_input_type', True
|
474
|
-
)
|
475
|
-
kwargs['_check_return_type'] = kwargs.get(
|
476
|
-
'_check_return_type', True
|
477
|
-
)
|
478
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
479
|
-
'_spec_property_naming', False
|
480
|
-
)
|
481
|
-
kwargs['_content_type'] = kwargs.get(
|
482
|
-
'_content_type')
|
483
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
484
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
485
|
-
return self.check_opl_syntax_endpoint.call_with_http_info(**kwargs)
|
51
|
+
body: Optional[StrictStr] = None,
|
52
|
+
_request_timeout: Union[
|
53
|
+
None,
|
54
|
+
Annotated[StrictFloat, Field(gt=0)],
|
55
|
+
Tuple[
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
57
|
+
Annotated[StrictFloat, Field(gt=0)]
|
58
|
+
]
|
59
|
+
] = None,
|
60
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
61
|
+
_content_type: Optional[StrictStr] = None,
|
62
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
63
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
64
|
+
) -> CheckOplSyntaxResult:
|
65
|
+
"""Check the syntax of an OPL file
|
486
66
|
|
67
|
+
The OPL file is expected in the body of the request.
|
68
|
+
|
69
|
+
:param body:
|
70
|
+
:type body: str
|
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._check_opl_syntax_serialize(
|
94
|
+
body=body,
|
95
|
+
_request_auth=_request_auth,
|
96
|
+
_content_type=_content_type,
|
97
|
+
_headers=_headers,
|
98
|
+
_host_index=_host_index
|
99
|
+
)
|
100
|
+
|
101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
102
|
+
'200': "CheckOplSyntaxResult",
|
103
|
+
'400': "ErrorGeneric",
|
104
|
+
}
|
105
|
+
response_data = self.api_client.call_api(
|
106
|
+
*_param,
|
107
|
+
_request_timeout=_request_timeout
|
108
|
+
)
|
109
|
+
response_data.read()
|
110
|
+
return self.api_client.response_deserialize(
|
111
|
+
response_data=response_data,
|
112
|
+
response_types_map=_response_types_map,
|
113
|
+
).data
|
114
|
+
|
115
|
+
|
116
|
+
@validate_call
|
117
|
+
def check_opl_syntax_with_http_info(
|
118
|
+
self,
|
119
|
+
body: Optional[StrictStr] = None,
|
120
|
+
_request_timeout: Union[
|
121
|
+
None,
|
122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
123
|
+
Tuple[
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
126
|
+
]
|
127
|
+
] = None,
|
128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
129
|
+
_content_type: Optional[StrictStr] = None,
|
130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
132
|
+
) -> ApiResponse[CheckOplSyntaxResult]:
|
133
|
+
"""Check the syntax of an OPL file
|
134
|
+
|
135
|
+
The OPL file is expected in the body of the request.
|
136
|
+
|
137
|
+
:param body:
|
138
|
+
:type body: str
|
139
|
+
:param _request_timeout: timeout setting for this request. If one
|
140
|
+
number provided, it will be total request
|
141
|
+
timeout. It can also be a pair (tuple) of
|
142
|
+
(connection, read) timeouts.
|
143
|
+
:type _request_timeout: int, tuple(int, int), optional
|
144
|
+
:param _request_auth: set to override the auth_settings for an a single
|
145
|
+
request; this effectively ignores the
|
146
|
+
authentication in the spec for a single request.
|
147
|
+
:type _request_auth: dict, optional
|
148
|
+
:param _content_type: force content-type for the request.
|
149
|
+
:type _content_type: str, Optional
|
150
|
+
:param _headers: set to override the headers for a single
|
151
|
+
request; this effectively ignores the headers
|
152
|
+
in the spec for a single request.
|
153
|
+
:type _headers: dict, optional
|
154
|
+
:param _host_index: set to override the host_index for a single
|
155
|
+
request; this effectively ignores the host_index
|
156
|
+
in the spec for a single request.
|
157
|
+
:type _host_index: int, optional
|
158
|
+
:return: Returns the result object.
|
159
|
+
""" # noqa: E501
|
160
|
+
|
161
|
+
_param = self._check_opl_syntax_serialize(
|
162
|
+
body=body,
|
163
|
+
_request_auth=_request_auth,
|
164
|
+
_content_type=_content_type,
|
165
|
+
_headers=_headers,
|
166
|
+
_host_index=_host_index
|
167
|
+
)
|
168
|
+
|
169
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
170
|
+
'200': "CheckOplSyntaxResult",
|
171
|
+
'400': "ErrorGeneric",
|
172
|
+
}
|
173
|
+
response_data = self.api_client.call_api(
|
174
|
+
*_param,
|
175
|
+
_request_timeout=_request_timeout
|
176
|
+
)
|
177
|
+
response_data.read()
|
178
|
+
return self.api_client.response_deserialize(
|
179
|
+
response_data=response_data,
|
180
|
+
response_types_map=_response_types_map,
|
181
|
+
)
|
182
|
+
|
183
|
+
|
184
|
+
@validate_call
|
185
|
+
def check_opl_syntax_without_preload_content(
|
186
|
+
self,
|
187
|
+
body: Optional[StrictStr] = None,
|
188
|
+
_request_timeout: Union[
|
189
|
+
None,
|
190
|
+
Annotated[StrictFloat, Field(gt=0)],
|
191
|
+
Tuple[
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
193
|
+
Annotated[StrictFloat, Field(gt=0)]
|
194
|
+
]
|
195
|
+
] = None,
|
196
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
197
|
+
_content_type: Optional[StrictStr] = None,
|
198
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
199
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
200
|
+
) -> RESTResponseType:
|
201
|
+
"""Check the syntax of an OPL file
|
202
|
+
|
203
|
+
The OPL file is expected in the body of the request.
|
204
|
+
|
205
|
+
:param body:
|
206
|
+
:type body: str
|
207
|
+
:param _request_timeout: timeout setting for this request. If one
|
208
|
+
number provided, it will be total request
|
209
|
+
timeout. It can also be a pair (tuple) of
|
210
|
+
(connection, read) timeouts.
|
211
|
+
:type _request_timeout: int, tuple(int, int), optional
|
212
|
+
:param _request_auth: set to override the auth_settings for an a single
|
213
|
+
request; this effectively ignores the
|
214
|
+
authentication in the spec for a single request.
|
215
|
+
:type _request_auth: dict, optional
|
216
|
+
:param _content_type: force content-type for the request.
|
217
|
+
:type _content_type: str, Optional
|
218
|
+
:param _headers: set to override the headers for a single
|
219
|
+
request; this effectively ignores the headers
|
220
|
+
in the spec for a single request.
|
221
|
+
:type _headers: dict, optional
|
222
|
+
:param _host_index: set to override the host_index for a single
|
223
|
+
request; this effectively ignores the host_index
|
224
|
+
in the spec for a single request.
|
225
|
+
:type _host_index: int, optional
|
226
|
+
:return: Returns the result object.
|
227
|
+
""" # noqa: E501
|
228
|
+
|
229
|
+
_param = self._check_opl_syntax_serialize(
|
230
|
+
body=body,
|
231
|
+
_request_auth=_request_auth,
|
232
|
+
_content_type=_content_type,
|
233
|
+
_headers=_headers,
|
234
|
+
_host_index=_host_index
|
235
|
+
)
|
236
|
+
|
237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
238
|
+
'200': "CheckOplSyntaxResult",
|
239
|
+
'400': "ErrorGeneric",
|
240
|
+
}
|
241
|
+
response_data = self.api_client.call_api(
|
242
|
+
*_param,
|
243
|
+
_request_timeout=_request_timeout
|
244
|
+
)
|
245
|
+
return response_data.response
|
246
|
+
|
247
|
+
|
248
|
+
def _check_opl_syntax_serialize(
|
249
|
+
self,
|
250
|
+
body,
|
251
|
+
_request_auth,
|
252
|
+
_content_type,
|
253
|
+
_headers,
|
254
|
+
_host_index,
|
255
|
+
) -> RequestSerialized:
|
256
|
+
|
257
|
+
_host = None
|
258
|
+
|
259
|
+
_collection_formats: Dict[str, str] = {
|
260
|
+
}
|
261
|
+
|
262
|
+
_path_params: Dict[str, str] = {}
|
263
|
+
_query_params: List[Tuple[str, str]] = []
|
264
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
265
|
+
_form_params: List[Tuple[str, str]] = []
|
266
|
+
_files: Dict[str, str] = {}
|
267
|
+
_body_params: Optional[bytes] = None
|
268
|
+
|
269
|
+
# process the path parameters
|
270
|
+
# process the query parameters
|
271
|
+
# process the header parameters
|
272
|
+
# process the form parameters
|
273
|
+
# process the body parameter
|
274
|
+
if body is not None:
|
275
|
+
_body_params = body
|
276
|
+
|
277
|
+
|
278
|
+
# set the HTTP header `Accept`
|
279
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
280
|
+
[
|
281
|
+
'application/json'
|
282
|
+
]
|
283
|
+
)
|
284
|
+
|
285
|
+
# set the HTTP header `Content-Type`
|
286
|
+
if _content_type:
|
287
|
+
_header_params['Content-Type'] = _content_type
|
288
|
+
else:
|
289
|
+
_default_content_type = (
|
290
|
+
self.api_client.select_header_content_type(
|
291
|
+
[
|
292
|
+
'text/plain'
|
293
|
+
]
|
294
|
+
)
|
295
|
+
)
|
296
|
+
if _default_content_type is not None:
|
297
|
+
_header_params['Content-Type'] = _default_content_type
|
298
|
+
|
299
|
+
# authentication setting
|
300
|
+
_auth_settings: List[str] = [
|
301
|
+
'oryAccessToken'
|
302
|
+
]
|
303
|
+
|
304
|
+
return self.api_client.param_serialize(
|
305
|
+
method='POST',
|
306
|
+
resource_path='/opl/syntax/check',
|
307
|
+
path_params=_path_params,
|
308
|
+
query_params=_query_params,
|
309
|
+
header_params=_header_params,
|
310
|
+
body=_body_params,
|
311
|
+
post_params=_form_params,
|
312
|
+
files=_files,
|
313
|
+
auth_settings=_auth_settings,
|
314
|
+
collection_formats=_collection_formats,
|
315
|
+
_host=_host,
|
316
|
+
_request_auth=_request_auth
|
317
|
+
)
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
@validate_call
|
487
323
|
def create_relationship(
|
488
324
|
self,
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
'
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
)
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
325
|
+
create_relationship_body: Optional[CreateRelationshipBody] = None,
|
326
|
+
_request_timeout: Union[
|
327
|
+
None,
|
328
|
+
Annotated[StrictFloat, Field(gt=0)],
|
329
|
+
Tuple[
|
330
|
+
Annotated[StrictFloat, Field(gt=0)],
|
331
|
+
Annotated[StrictFloat, Field(gt=0)]
|
332
|
+
]
|
333
|
+
] = None,
|
334
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
335
|
+
_content_type: Optional[StrictStr] = None,
|
336
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
337
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
338
|
+
) -> Relationship:
|
339
|
+
"""Create a Relationship
|
340
|
+
|
341
|
+
Use this endpoint to create a relationship.
|
342
|
+
|
343
|
+
:param create_relationship_body:
|
344
|
+
:type create_relationship_body: CreateRelationshipBody
|
345
|
+
:param _request_timeout: timeout setting for this request. If one
|
346
|
+
number provided, it will be total request
|
347
|
+
timeout. It can also be a pair (tuple) of
|
348
|
+
(connection, read) timeouts.
|
349
|
+
:type _request_timeout: int, tuple(int, int), optional
|
350
|
+
:param _request_auth: set to override the auth_settings for an a single
|
351
|
+
request; this effectively ignores the
|
352
|
+
authentication in the spec for a single request.
|
353
|
+
:type _request_auth: dict, optional
|
354
|
+
:param _content_type: force content-type for the request.
|
355
|
+
:type _content_type: str, Optional
|
356
|
+
:param _headers: set to override the headers for a single
|
357
|
+
request; this effectively ignores the headers
|
358
|
+
in the spec for a single request.
|
359
|
+
:type _headers: dict, optional
|
360
|
+
:param _host_index: set to override the host_index for a single
|
361
|
+
request; this effectively ignores the host_index
|
362
|
+
in the spec for a single request.
|
363
|
+
:type _host_index: int, optional
|
364
|
+
:return: Returns the result object.
|
365
|
+
""" # noqa: E501
|
366
|
+
|
367
|
+
_param = self._create_relationship_serialize(
|
368
|
+
create_relationship_body=create_relationship_body,
|
369
|
+
_request_auth=_request_auth,
|
370
|
+
_content_type=_content_type,
|
371
|
+
_headers=_headers,
|
372
|
+
_host_index=_host_index
|
373
|
+
)
|
374
|
+
|
375
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
376
|
+
'201': "Relationship",
|
377
|
+
'400': "ErrorGeneric",
|
378
|
+
}
|
379
|
+
response_data = self.api_client.call_api(
|
380
|
+
*_param,
|
381
|
+
_request_timeout=_request_timeout
|
382
|
+
)
|
383
|
+
response_data.read()
|
384
|
+
return self.api_client.response_deserialize(
|
385
|
+
response_data=response_data,
|
386
|
+
response_types_map=_response_types_map,
|
387
|
+
).data
|
388
|
+
|
389
|
+
|
390
|
+
@validate_call
|
391
|
+
def create_relationship_with_http_info(
|
392
|
+
self,
|
393
|
+
create_relationship_body: Optional[CreateRelationshipBody] = None,
|
394
|
+
_request_timeout: Union[
|
395
|
+
None,
|
396
|
+
Annotated[StrictFloat, Field(gt=0)],
|
397
|
+
Tuple[
|
398
|
+
Annotated[StrictFloat, Field(gt=0)],
|
399
|
+
Annotated[StrictFloat, Field(gt=0)]
|
400
|
+
]
|
401
|
+
] = None,
|
402
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
403
|
+
_content_type: Optional[StrictStr] = None,
|
404
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
406
|
+
) -> ApiResponse[Relationship]:
|
407
|
+
"""Create a Relationship
|
408
|
+
|
409
|
+
Use this endpoint to create a relationship.
|
410
|
+
|
411
|
+
:param create_relationship_body:
|
412
|
+
:type create_relationship_body: CreateRelationshipBody
|
413
|
+
:param _request_timeout: timeout setting for this request. If one
|
414
|
+
number provided, it will be total request
|
415
|
+
timeout. It can also be a pair (tuple) of
|
416
|
+
(connection, read) timeouts.
|
417
|
+
:type _request_timeout: int, tuple(int, int), optional
|
418
|
+
:param _request_auth: set to override the auth_settings for an a single
|
419
|
+
request; this effectively ignores the
|
420
|
+
authentication in the spec for a single request.
|
421
|
+
:type _request_auth: dict, optional
|
422
|
+
:param _content_type: force content-type for the request.
|
423
|
+
:type _content_type: str, Optional
|
424
|
+
:param _headers: set to override the headers for a single
|
425
|
+
request; this effectively ignores the headers
|
426
|
+
in the spec for a single request.
|
427
|
+
:type _headers: dict, optional
|
428
|
+
:param _host_index: set to override the host_index for a single
|
429
|
+
request; this effectively ignores the host_index
|
430
|
+
in the spec for a single request.
|
431
|
+
:type _host_index: int, optional
|
432
|
+
:return: Returns the result object.
|
433
|
+
""" # noqa: E501
|
434
|
+
|
435
|
+
_param = self._create_relationship_serialize(
|
436
|
+
create_relationship_body=create_relationship_body,
|
437
|
+
_request_auth=_request_auth,
|
438
|
+
_content_type=_content_type,
|
439
|
+
_headers=_headers,
|
440
|
+
_host_index=_host_index
|
441
|
+
)
|
442
|
+
|
443
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
444
|
+
'201': "Relationship",
|
445
|
+
'400': "ErrorGeneric",
|
446
|
+
}
|
447
|
+
response_data = self.api_client.call_api(
|
448
|
+
*_param,
|
449
|
+
_request_timeout=_request_timeout
|
450
|
+
)
|
451
|
+
response_data.read()
|
452
|
+
return self.api_client.response_deserialize(
|
453
|
+
response_data=response_data,
|
454
|
+
response_types_map=_response_types_map,
|
455
|
+
)
|
456
|
+
|
457
|
+
|
458
|
+
@validate_call
|
459
|
+
def create_relationship_without_preload_content(
|
460
|
+
self,
|
461
|
+
create_relationship_body: Optional[CreateRelationshipBody] = None,
|
462
|
+
_request_timeout: Union[
|
463
|
+
None,
|
464
|
+
Annotated[StrictFloat, Field(gt=0)],
|
465
|
+
Tuple[
|
466
|
+
Annotated[StrictFloat, Field(gt=0)],
|
467
|
+
Annotated[StrictFloat, Field(gt=0)]
|
468
|
+
]
|
469
|
+
] = None,
|
470
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
471
|
+
_content_type: Optional[StrictStr] = None,
|
472
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
473
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
474
|
+
) -> RESTResponseType:
|
475
|
+
"""Create a Relationship
|
476
|
+
|
477
|
+
Use this endpoint to create a relationship.
|
478
|
+
|
479
|
+
:param create_relationship_body:
|
480
|
+
:type create_relationship_body: CreateRelationshipBody
|
481
|
+
:param _request_timeout: timeout setting for this request. If one
|
482
|
+
number provided, it will be total request
|
483
|
+
timeout. It can also be a pair (tuple) of
|
484
|
+
(connection, read) timeouts.
|
485
|
+
:type _request_timeout: int, tuple(int, int), optional
|
486
|
+
:param _request_auth: set to override the auth_settings for an a single
|
487
|
+
request; this effectively ignores the
|
488
|
+
authentication in the spec for a single request.
|
489
|
+
:type _request_auth: dict, optional
|
490
|
+
:param _content_type: force content-type for the request.
|
491
|
+
:type _content_type: str, Optional
|
492
|
+
:param _headers: set to override the headers for a single
|
493
|
+
request; this effectively ignores the headers
|
494
|
+
in the spec for a single request.
|
495
|
+
:type _headers: dict, optional
|
496
|
+
:param _host_index: set to override the host_index for a single
|
497
|
+
request; this effectively ignores the host_index
|
498
|
+
in the spec for a single request.
|
499
|
+
:type _host_index: int, optional
|
500
|
+
:return: Returns the result object.
|
501
|
+
""" # noqa: E501
|
502
|
+
|
503
|
+
_param = self._create_relationship_serialize(
|
504
|
+
create_relationship_body=create_relationship_body,
|
505
|
+
_request_auth=_request_auth,
|
506
|
+
_content_type=_content_type,
|
507
|
+
_headers=_headers,
|
508
|
+
_host_index=_host_index
|
509
|
+
)
|
510
|
+
|
511
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
512
|
+
'201': "Relationship",
|
513
|
+
'400': "ErrorGeneric",
|
514
|
+
}
|
515
|
+
response_data = self.api_client.call_api(
|
516
|
+
*_param,
|
517
|
+
_request_timeout=_request_timeout
|
518
|
+
)
|
519
|
+
return response_data.response
|
520
|
+
|
521
|
+
|
522
|
+
def _create_relationship_serialize(
|
523
|
+
self,
|
524
|
+
create_relationship_body,
|
525
|
+
_request_auth,
|
526
|
+
_content_type,
|
527
|
+
_headers,
|
528
|
+
_host_index,
|
529
|
+
) -> RequestSerialized:
|
530
|
+
|
531
|
+
_host = None
|
532
|
+
|
533
|
+
_collection_formats: Dict[str, str] = {
|
534
|
+
}
|
535
|
+
|
536
|
+
_path_params: Dict[str, str] = {}
|
537
|
+
_query_params: List[Tuple[str, str]] = []
|
538
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
539
|
+
_form_params: List[Tuple[str, str]] = []
|
540
|
+
_files: Dict[str, str] = {}
|
541
|
+
_body_params: Optional[bytes] = None
|
565
542
|
|
543
|
+
# process the path parameters
|
544
|
+
# process the query parameters
|
545
|
+
# process the header parameters
|
546
|
+
# process the form parameters
|
547
|
+
# process the body parameter
|
548
|
+
if create_relationship_body is not None:
|
549
|
+
_body_params = create_relationship_body
|
550
|
+
|
551
|
+
|
552
|
+
# set the HTTP header `Accept`
|
553
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
554
|
+
[
|
555
|
+
'application/json'
|
556
|
+
]
|
557
|
+
)
|
558
|
+
|
559
|
+
# set the HTTP header `Content-Type`
|
560
|
+
if _content_type:
|
561
|
+
_header_params['Content-Type'] = _content_type
|
562
|
+
else:
|
563
|
+
_default_content_type = (
|
564
|
+
self.api_client.select_header_content_type(
|
565
|
+
[
|
566
|
+
'application/json'
|
567
|
+
]
|
568
|
+
)
|
569
|
+
)
|
570
|
+
if _default_content_type is not None:
|
571
|
+
_header_params['Content-Type'] = _default_content_type
|
572
|
+
|
573
|
+
# authentication setting
|
574
|
+
_auth_settings: List[str] = [
|
575
|
+
'oryAccessToken'
|
576
|
+
]
|
577
|
+
|
578
|
+
return self.api_client.param_serialize(
|
579
|
+
method='PUT',
|
580
|
+
resource_path='/admin/relation-tuples',
|
581
|
+
path_params=_path_params,
|
582
|
+
query_params=_query_params,
|
583
|
+
header_params=_header_params,
|
584
|
+
body=_body_params,
|
585
|
+
post_params=_form_params,
|
586
|
+
files=_files,
|
587
|
+
auth_settings=_auth_settings,
|
588
|
+
collection_formats=_collection_formats,
|
589
|
+
_host=_host,
|
590
|
+
_request_auth=_request_auth
|
591
|
+
)
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
@validate_call
|
566
597
|
def delete_relationships(
|
567
598
|
self,
|
568
|
-
|
569
|
-
|
570
|
-
""
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
'
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
599
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
600
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
601
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
602
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
603
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
604
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
605
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
606
|
+
_request_timeout: Union[
|
607
|
+
None,
|
608
|
+
Annotated[StrictFloat, Field(gt=0)],
|
609
|
+
Tuple[
|
610
|
+
Annotated[StrictFloat, Field(gt=0)],
|
611
|
+
Annotated[StrictFloat, Field(gt=0)]
|
612
|
+
]
|
613
|
+
] = None,
|
614
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
615
|
+
_content_type: Optional[StrictStr] = None,
|
616
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
617
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
618
|
+
) -> None:
|
619
|
+
"""Delete Relationships
|
620
|
+
|
621
|
+
Use this endpoint to delete relationships
|
622
|
+
|
623
|
+
:param namespace: Namespace of the Relationship
|
624
|
+
:type namespace: str
|
625
|
+
:param object: Object of the Relationship
|
626
|
+
:type object: str
|
627
|
+
:param relation: Relation of the Relationship
|
628
|
+
:type relation: str
|
629
|
+
:param subject_id: SubjectID of the Relationship
|
630
|
+
:type subject_id: str
|
631
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
632
|
+
:type subject_set_namespace: str
|
633
|
+
:param subject_set_object: Object of the Subject Set
|
634
|
+
:type subject_set_object: str
|
635
|
+
:param subject_set_relation: Relation of the Subject Set
|
636
|
+
:type subject_set_relation: str
|
637
|
+
:param _request_timeout: timeout setting for this request. If one
|
638
|
+
number provided, it will be total request
|
639
|
+
timeout. It can also be a pair (tuple) of
|
640
|
+
(connection, read) timeouts.
|
641
|
+
:type _request_timeout: int, tuple(int, int), optional
|
642
|
+
:param _request_auth: set to override the auth_settings for an a single
|
643
|
+
request; this effectively ignores the
|
644
|
+
authentication in the spec for a single request.
|
645
|
+
:type _request_auth: dict, optional
|
646
|
+
:param _content_type: force content-type for the request.
|
647
|
+
:type _content_type: str, Optional
|
648
|
+
:param _headers: set to override the headers for a single
|
649
|
+
request; this effectively ignores the headers
|
650
|
+
in the spec for a single request.
|
651
|
+
:type _headers: dict, optional
|
652
|
+
:param _host_index: set to override the host_index for a single
|
653
|
+
request; this effectively ignores the host_index
|
654
|
+
in the spec for a single request.
|
655
|
+
:type _host_index: int, optional
|
656
|
+
:return: Returns the result object.
|
657
|
+
""" # noqa: E501
|
658
|
+
|
659
|
+
_param = self._delete_relationships_serialize(
|
660
|
+
namespace=namespace,
|
661
|
+
object=object,
|
662
|
+
relation=relation,
|
663
|
+
subject_id=subject_id,
|
664
|
+
subject_set_namespace=subject_set_namespace,
|
665
|
+
subject_set_object=subject_set_object,
|
666
|
+
subject_set_relation=subject_set_relation,
|
667
|
+
_request_auth=_request_auth,
|
668
|
+
_content_type=_content_type,
|
669
|
+
_headers=_headers,
|
670
|
+
_host_index=_host_index
|
671
|
+
)
|
672
|
+
|
673
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
674
|
+
'204': None,
|
675
|
+
'400': "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 delete_relationships_with_http_info(
|
690
|
+
self,
|
691
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
692
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
693
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
694
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
695
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
696
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
697
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
698
|
+
_request_timeout: Union[
|
699
|
+
None,
|
700
|
+
Annotated[StrictFloat, Field(gt=0)],
|
701
|
+
Tuple[
|
702
|
+
Annotated[StrictFloat, Field(gt=0)],
|
703
|
+
Annotated[StrictFloat, Field(gt=0)]
|
704
|
+
]
|
705
|
+
] = None,
|
706
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
707
|
+
_content_type: Optional[StrictStr] = None,
|
708
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
709
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
710
|
+
) -> ApiResponse[None]:
|
711
|
+
"""Delete Relationships
|
712
|
+
|
713
|
+
Use this endpoint to delete relationships
|
714
|
+
|
715
|
+
:param namespace: Namespace of the Relationship
|
716
|
+
:type namespace: str
|
717
|
+
:param object: Object of the Relationship
|
718
|
+
:type object: str
|
719
|
+
:param relation: Relation of the Relationship
|
720
|
+
:type relation: str
|
721
|
+
:param subject_id: SubjectID of the Relationship
|
722
|
+
:type subject_id: str
|
723
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
724
|
+
:type subject_set_namespace: str
|
725
|
+
:param subject_set_object: Object of the Subject Set
|
726
|
+
:type subject_set_object: str
|
727
|
+
:param subject_set_relation: Relation of the Subject Set
|
728
|
+
:type subject_set_relation: str
|
729
|
+
:param _request_timeout: timeout setting for this request. If one
|
730
|
+
number provided, it will be total request
|
731
|
+
timeout. It can also be a pair (tuple) of
|
732
|
+
(connection, read) timeouts.
|
733
|
+
:type _request_timeout: int, tuple(int, int), optional
|
734
|
+
:param _request_auth: set to override the auth_settings for an a single
|
735
|
+
request; this effectively ignores the
|
736
|
+
authentication in the spec for a single request.
|
737
|
+
:type _request_auth: dict, optional
|
738
|
+
:param _content_type: force content-type for the request.
|
739
|
+
:type _content_type: str, Optional
|
740
|
+
:param _headers: set to override the headers for a single
|
741
|
+
request; this effectively ignores the headers
|
742
|
+
in the spec for a single request.
|
743
|
+
:type _headers: dict, optional
|
744
|
+
:param _host_index: set to override the host_index for a single
|
745
|
+
request; this effectively ignores the host_index
|
746
|
+
in the spec for a single request.
|
747
|
+
:type _host_index: int, optional
|
748
|
+
:return: Returns the result object.
|
749
|
+
""" # noqa: E501
|
750
|
+
|
751
|
+
_param = self._delete_relationships_serialize(
|
752
|
+
namespace=namespace,
|
753
|
+
object=object,
|
754
|
+
relation=relation,
|
755
|
+
subject_id=subject_id,
|
756
|
+
subject_set_namespace=subject_set_namespace,
|
757
|
+
subject_set_object=subject_set_object,
|
758
|
+
subject_set_relation=subject_set_relation,
|
759
|
+
_request_auth=_request_auth,
|
760
|
+
_content_type=_content_type,
|
761
|
+
_headers=_headers,
|
762
|
+
_host_index=_host_index
|
763
|
+
)
|
764
|
+
|
765
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
766
|
+
'204': None,
|
767
|
+
'400': "ErrorGeneric",
|
768
|
+
}
|
769
|
+
response_data = self.api_client.call_api(
|
770
|
+
*_param,
|
771
|
+
_request_timeout=_request_timeout
|
772
|
+
)
|
773
|
+
response_data.read()
|
774
|
+
return self.api_client.response_deserialize(
|
775
|
+
response_data=response_data,
|
776
|
+
response_types_map=_response_types_map,
|
777
|
+
)
|
778
|
+
|
779
|
+
|
780
|
+
@validate_call
|
781
|
+
def delete_relationships_without_preload_content(
|
782
|
+
self,
|
783
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
784
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
785
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
786
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
787
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
788
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
789
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
790
|
+
_request_timeout: Union[
|
791
|
+
None,
|
792
|
+
Annotated[StrictFloat, Field(gt=0)],
|
793
|
+
Tuple[
|
794
|
+
Annotated[StrictFloat, Field(gt=0)],
|
795
|
+
Annotated[StrictFloat, Field(gt=0)]
|
796
|
+
]
|
797
|
+
] = None,
|
798
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
799
|
+
_content_type: Optional[StrictStr] = None,
|
800
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
801
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
802
|
+
) -> RESTResponseType:
|
803
|
+
"""Delete Relationships
|
804
|
+
|
805
|
+
Use this endpoint to delete relationships
|
806
|
+
|
807
|
+
:param namespace: Namespace of the Relationship
|
808
|
+
:type namespace: str
|
809
|
+
:param object: Object of the Relationship
|
810
|
+
:type object: str
|
811
|
+
:param relation: Relation of the Relationship
|
812
|
+
:type relation: str
|
813
|
+
:param subject_id: SubjectID of the Relationship
|
814
|
+
:type subject_id: str
|
815
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
816
|
+
:type subject_set_namespace: str
|
817
|
+
:param subject_set_object: Object of the Subject Set
|
818
|
+
:type subject_set_object: str
|
819
|
+
:param subject_set_relation: Relation of the Subject Set
|
820
|
+
:type subject_set_relation: str
|
821
|
+
:param _request_timeout: timeout setting for this request. If one
|
822
|
+
number provided, it will be total request
|
823
|
+
timeout. It can also be a pair (tuple) of
|
824
|
+
(connection, read) timeouts.
|
825
|
+
:type _request_timeout: int, tuple(int, int), optional
|
826
|
+
:param _request_auth: set to override the auth_settings for an a single
|
827
|
+
request; this effectively ignores the
|
828
|
+
authentication in the spec for a single request.
|
829
|
+
:type _request_auth: dict, optional
|
830
|
+
:param _content_type: force content-type for the request.
|
831
|
+
:type _content_type: str, Optional
|
832
|
+
:param _headers: set to override the headers for a single
|
833
|
+
request; this effectively ignores the headers
|
834
|
+
in the spec for a single request.
|
835
|
+
:type _headers: dict, optional
|
836
|
+
:param _host_index: set to override the host_index for a single
|
837
|
+
request; this effectively ignores the host_index
|
838
|
+
in the spec for a single request.
|
839
|
+
:type _host_index: int, optional
|
840
|
+
:return: Returns the result object.
|
841
|
+
""" # noqa: E501
|
842
|
+
|
843
|
+
_param = self._delete_relationships_serialize(
|
844
|
+
namespace=namespace,
|
845
|
+
object=object,
|
846
|
+
relation=relation,
|
847
|
+
subject_id=subject_id,
|
848
|
+
subject_set_namespace=subject_set_namespace,
|
849
|
+
subject_set_object=subject_set_object,
|
850
|
+
subject_set_relation=subject_set_relation,
|
851
|
+
_request_auth=_request_auth,
|
852
|
+
_content_type=_content_type,
|
853
|
+
_headers=_headers,
|
854
|
+
_host_index=_host_index
|
855
|
+
)
|
856
|
+
|
857
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
858
|
+
'204': None,
|
859
|
+
'400': "ErrorGeneric",
|
860
|
+
}
|
861
|
+
response_data = self.api_client.call_api(
|
862
|
+
*_param,
|
863
|
+
_request_timeout=_request_timeout
|
864
|
+
)
|
865
|
+
return response_data.response
|
866
|
+
|
867
|
+
|
868
|
+
def _delete_relationships_serialize(
|
869
|
+
self,
|
870
|
+
namespace,
|
871
|
+
object,
|
872
|
+
relation,
|
873
|
+
subject_id,
|
874
|
+
subject_set_namespace,
|
875
|
+
subject_set_object,
|
876
|
+
subject_set_relation,
|
877
|
+
_request_auth,
|
878
|
+
_content_type,
|
879
|
+
_headers,
|
880
|
+
_host_index,
|
881
|
+
) -> RequestSerialized:
|
882
|
+
|
883
|
+
_host = None
|
884
|
+
|
885
|
+
_collection_formats: Dict[str, str] = {
|
886
|
+
}
|
887
|
+
|
888
|
+
_path_params: Dict[str, str] = {}
|
889
|
+
_query_params: List[Tuple[str, str]] = []
|
890
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
891
|
+
_form_params: List[Tuple[str, str]] = []
|
892
|
+
_files: Dict[str, str] = {}
|
893
|
+
_body_params: Optional[bytes] = None
|
894
|
+
|
895
|
+
# process the path parameters
|
896
|
+
# process the query parameters
|
897
|
+
if namespace is not None:
|
898
|
+
|
899
|
+
_query_params.append(('namespace', namespace))
|
900
|
+
|
901
|
+
if object is not None:
|
902
|
+
|
903
|
+
_query_params.append(('object', object))
|
904
|
+
|
905
|
+
if relation is not None:
|
906
|
+
|
907
|
+
_query_params.append(('relation', relation))
|
908
|
+
|
909
|
+
if subject_id is not None:
|
910
|
+
|
911
|
+
_query_params.append(('subject_id', subject_id))
|
912
|
+
|
913
|
+
if subject_set_namespace is not None:
|
914
|
+
|
915
|
+
_query_params.append(('subject_set.namespace', subject_set_namespace))
|
916
|
+
|
917
|
+
if subject_set_object is not None:
|
918
|
+
|
919
|
+
_query_params.append(('subject_set.object', subject_set_object))
|
920
|
+
|
921
|
+
if subject_set_relation is not None:
|
922
|
+
|
923
|
+
_query_params.append(('subject_set.relation', subject_set_relation))
|
924
|
+
|
925
|
+
# process the header parameters
|
926
|
+
# process the form parameters
|
927
|
+
# process the body parameter
|
928
|
+
|
929
|
+
|
930
|
+
# set the HTTP header `Accept`
|
931
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
932
|
+
[
|
933
|
+
'application/json'
|
934
|
+
]
|
935
|
+
)
|
936
|
+
|
937
|
+
|
938
|
+
# authentication setting
|
939
|
+
_auth_settings: List[str] = [
|
940
|
+
'oryAccessToken'
|
941
|
+
]
|
650
942
|
|
943
|
+
return self.api_client.param_serialize(
|
944
|
+
method='DELETE',
|
945
|
+
resource_path='/admin/relation-tuples',
|
946
|
+
path_params=_path_params,
|
947
|
+
query_params=_query_params,
|
948
|
+
header_params=_header_params,
|
949
|
+
body=_body_params,
|
950
|
+
post_params=_form_params,
|
951
|
+
files=_files,
|
952
|
+
auth_settings=_auth_settings,
|
953
|
+
collection_formats=_collection_formats,
|
954
|
+
_host=_host,
|
955
|
+
_request_auth=_request_auth
|
956
|
+
)
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
@validate_call
|
651
962
|
def get_relationships(
|
652
963
|
self,
|
653
|
-
|
654
|
-
|
655
|
-
""
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
964
|
+
page_token: Optional[StrictStr] = None,
|
965
|
+
page_size: Optional[StrictInt] = None,
|
966
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
967
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
968
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
969
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
970
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
971
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
972
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
973
|
+
_request_timeout: Union[
|
974
|
+
None,
|
975
|
+
Annotated[StrictFloat, Field(gt=0)],
|
976
|
+
Tuple[
|
977
|
+
Annotated[StrictFloat, Field(gt=0)],
|
978
|
+
Annotated[StrictFloat, Field(gt=0)]
|
979
|
+
]
|
980
|
+
] = None,
|
981
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
982
|
+
_content_type: Optional[StrictStr] = None,
|
983
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
984
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
985
|
+
) -> Relationships:
|
986
|
+
"""Query relationships
|
987
|
+
|
988
|
+
Get all relationships that match the query. Only the namespace field is required.
|
989
|
+
|
990
|
+
:param page_token:
|
991
|
+
:type page_token: str
|
992
|
+
:param page_size:
|
993
|
+
:type page_size: int
|
994
|
+
:param namespace: Namespace of the Relationship
|
995
|
+
:type namespace: str
|
996
|
+
:param object: Object of the Relationship
|
997
|
+
:type object: str
|
998
|
+
:param relation: Relation of the Relationship
|
999
|
+
:type relation: str
|
1000
|
+
:param subject_id: SubjectID of the Relationship
|
1001
|
+
:type subject_id: str
|
1002
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
1003
|
+
:type subject_set_namespace: str
|
1004
|
+
:param subject_set_object: Object of the Subject Set
|
1005
|
+
:type subject_set_object: str
|
1006
|
+
:param subject_set_relation: Relation of the Subject Set
|
1007
|
+
:type subject_set_relation: str
|
1008
|
+
:param _request_timeout: timeout setting for this request. If one
|
1009
|
+
number provided, it will be total request
|
1010
|
+
timeout. It can also be a pair (tuple) of
|
1011
|
+
(connection, read) timeouts.
|
1012
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1013
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1014
|
+
request; this effectively ignores the
|
1015
|
+
authentication in the spec for a single request.
|
1016
|
+
:type _request_auth: dict, optional
|
1017
|
+
:param _content_type: force content-type for the request.
|
1018
|
+
:type _content_type: str, Optional
|
1019
|
+
:param _headers: set to override the headers for a single
|
1020
|
+
request; this effectively ignores the headers
|
1021
|
+
in the spec for a single request.
|
1022
|
+
:type _headers: dict, optional
|
1023
|
+
:param _host_index: set to override the host_index for a single
|
1024
|
+
request; this effectively ignores the host_index
|
1025
|
+
in the spec for a single request.
|
1026
|
+
:type _host_index: int, optional
|
1027
|
+
:return: Returns the result object.
|
1028
|
+
""" # noqa: E501
|
1029
|
+
|
1030
|
+
_param = self._get_relationships_serialize(
|
1031
|
+
page_token=page_token,
|
1032
|
+
page_size=page_size,
|
1033
|
+
namespace=namespace,
|
1034
|
+
object=object,
|
1035
|
+
relation=relation,
|
1036
|
+
subject_id=subject_id,
|
1037
|
+
subject_set_namespace=subject_set_namespace,
|
1038
|
+
subject_set_object=subject_set_object,
|
1039
|
+
subject_set_relation=subject_set_relation,
|
1040
|
+
_request_auth=_request_auth,
|
1041
|
+
_content_type=_content_type,
|
1042
|
+
_headers=_headers,
|
1043
|
+
_host_index=_host_index
|
1044
|
+
)
|
1045
|
+
|
1046
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1047
|
+
'200': "Relationships",
|
1048
|
+
'404': "ErrorGeneric",
|
1049
|
+
}
|
1050
|
+
response_data = self.api_client.call_api(
|
1051
|
+
*_param,
|
1052
|
+
_request_timeout=_request_timeout
|
1053
|
+
)
|
1054
|
+
response_data.read()
|
1055
|
+
return self.api_client.response_deserialize(
|
1056
|
+
response_data=response_data,
|
1057
|
+
response_types_map=_response_types_map,
|
1058
|
+
).data
|
1059
|
+
|
1060
|
+
|
1061
|
+
@validate_call
|
1062
|
+
def get_relationships_with_http_info(
|
1063
|
+
self,
|
1064
|
+
page_token: Optional[StrictStr] = None,
|
1065
|
+
page_size: Optional[StrictInt] = None,
|
1066
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
1067
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
1068
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
1069
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
1070
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
1071
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
1072
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
1073
|
+
_request_timeout: Union[
|
1074
|
+
None,
|
1075
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1076
|
+
Tuple[
|
1077
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1078
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1079
|
+
]
|
1080
|
+
] = None,
|
1081
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1082
|
+
_content_type: Optional[StrictStr] = None,
|
1083
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1084
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1085
|
+
) -> ApiResponse[Relationships]:
|
1086
|
+
"""Query relationships
|
1087
|
+
|
1088
|
+
Get all relationships that match the query. Only the namespace field is required.
|
1089
|
+
|
1090
|
+
:param page_token:
|
1091
|
+
:type page_token: str
|
1092
|
+
:param page_size:
|
1093
|
+
:type page_size: int
|
1094
|
+
:param namespace: Namespace of the Relationship
|
1095
|
+
:type namespace: str
|
1096
|
+
:param object: Object of the Relationship
|
1097
|
+
:type object: str
|
1098
|
+
:param relation: Relation of the Relationship
|
1099
|
+
:type relation: str
|
1100
|
+
:param subject_id: SubjectID of the Relationship
|
1101
|
+
:type subject_id: str
|
1102
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
1103
|
+
:type subject_set_namespace: str
|
1104
|
+
:param subject_set_object: Object of the Subject Set
|
1105
|
+
:type subject_set_object: str
|
1106
|
+
:param subject_set_relation: Relation of the Subject Set
|
1107
|
+
:type subject_set_relation: str
|
1108
|
+
:param _request_timeout: timeout setting for this request. If one
|
1109
|
+
number provided, it will be total request
|
1110
|
+
timeout. It can also be a pair (tuple) of
|
1111
|
+
(connection, read) timeouts.
|
1112
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1113
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1114
|
+
request; this effectively ignores the
|
1115
|
+
authentication in the spec for a single request.
|
1116
|
+
:type _request_auth: dict, optional
|
1117
|
+
:param _content_type: force content-type for the request.
|
1118
|
+
:type _content_type: str, Optional
|
1119
|
+
:param _headers: set to override the headers for a single
|
1120
|
+
request; this effectively ignores the headers
|
1121
|
+
in the spec for a single request.
|
1122
|
+
:type _headers: dict, optional
|
1123
|
+
:param _host_index: set to override the host_index for a single
|
1124
|
+
request; this effectively ignores the host_index
|
1125
|
+
in the spec for a single request.
|
1126
|
+
:type _host_index: int, optional
|
1127
|
+
:return: Returns the result object.
|
1128
|
+
""" # noqa: E501
|
1129
|
+
|
1130
|
+
_param = self._get_relationships_serialize(
|
1131
|
+
page_token=page_token,
|
1132
|
+
page_size=page_size,
|
1133
|
+
namespace=namespace,
|
1134
|
+
object=object,
|
1135
|
+
relation=relation,
|
1136
|
+
subject_id=subject_id,
|
1137
|
+
subject_set_namespace=subject_set_namespace,
|
1138
|
+
subject_set_object=subject_set_object,
|
1139
|
+
subject_set_relation=subject_set_relation,
|
1140
|
+
_request_auth=_request_auth,
|
1141
|
+
_content_type=_content_type,
|
1142
|
+
_headers=_headers,
|
1143
|
+
_host_index=_host_index
|
1144
|
+
)
|
1145
|
+
|
1146
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1147
|
+
'200': "Relationships",
|
1148
|
+
'404': "ErrorGeneric",
|
1149
|
+
}
|
1150
|
+
response_data = self.api_client.call_api(
|
1151
|
+
*_param,
|
1152
|
+
_request_timeout=_request_timeout
|
1153
|
+
)
|
1154
|
+
response_data.read()
|
1155
|
+
return self.api_client.response_deserialize(
|
1156
|
+
response_data=response_data,
|
1157
|
+
response_types_map=_response_types_map,
|
1158
|
+
)
|
1159
|
+
|
1160
|
+
|
1161
|
+
@validate_call
|
1162
|
+
def get_relationships_without_preload_content(
|
1163
|
+
self,
|
1164
|
+
page_token: Optional[StrictStr] = None,
|
1165
|
+
page_size: Optional[StrictInt] = None,
|
1166
|
+
namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Relationship")] = None,
|
1167
|
+
object: Annotated[Optional[StrictStr], Field(description="Object of the Relationship")] = None,
|
1168
|
+
relation: Annotated[Optional[StrictStr], Field(description="Relation of the Relationship")] = None,
|
1169
|
+
subject_id: Annotated[Optional[StrictStr], Field(description="SubjectID of the Relationship")] = None,
|
1170
|
+
subject_set_namespace: Annotated[Optional[StrictStr], Field(description="Namespace of the Subject Set")] = None,
|
1171
|
+
subject_set_object: Annotated[Optional[StrictStr], Field(description="Object of the Subject Set")] = None,
|
1172
|
+
subject_set_relation: Annotated[Optional[StrictStr], Field(description="Relation of the Subject Set")] = None,
|
1173
|
+
_request_timeout: Union[
|
1174
|
+
None,
|
1175
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1176
|
+
Tuple[
|
1177
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1178
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1179
|
+
]
|
1180
|
+
] = None,
|
1181
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1182
|
+
_content_type: Optional[StrictStr] = None,
|
1183
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1184
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1185
|
+
) -> RESTResponseType:
|
1186
|
+
"""Query relationships
|
1187
|
+
|
1188
|
+
Get all relationships that match the query. Only the namespace field is required.
|
1189
|
+
|
1190
|
+
:param page_token:
|
1191
|
+
:type page_token: str
|
1192
|
+
:param page_size:
|
1193
|
+
:type page_size: int
|
1194
|
+
:param namespace: Namespace of the Relationship
|
1195
|
+
:type namespace: str
|
1196
|
+
:param object: Object of the Relationship
|
1197
|
+
:type object: str
|
1198
|
+
:param relation: Relation of the Relationship
|
1199
|
+
:type relation: str
|
1200
|
+
:param subject_id: SubjectID of the Relationship
|
1201
|
+
:type subject_id: str
|
1202
|
+
:param subject_set_namespace: Namespace of the Subject Set
|
1203
|
+
:type subject_set_namespace: str
|
1204
|
+
:param subject_set_object: Object of the Subject Set
|
1205
|
+
:type subject_set_object: str
|
1206
|
+
:param subject_set_relation: Relation of the Subject Set
|
1207
|
+
:type subject_set_relation: str
|
1208
|
+
:param _request_timeout: timeout setting for this request. If one
|
1209
|
+
number provided, it will be total request
|
1210
|
+
timeout. It can also be a pair (tuple) of
|
1211
|
+
(connection, read) timeouts.
|
1212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1214
|
+
request; this effectively ignores the
|
1215
|
+
authentication in the spec for a single request.
|
1216
|
+
:type _request_auth: dict, optional
|
1217
|
+
:param _content_type: force content-type for the request.
|
1218
|
+
:type _content_type: str, Optional
|
1219
|
+
:param _headers: set to override the headers for a single
|
1220
|
+
request; this effectively ignores the headers
|
1221
|
+
in the spec for a single request.
|
1222
|
+
:type _headers: dict, optional
|
1223
|
+
:param _host_index: set to override the host_index for a single
|
1224
|
+
request; this effectively ignores the host_index
|
1225
|
+
in the spec for a single request.
|
1226
|
+
:type _host_index: int, optional
|
1227
|
+
:return: Returns the result object.
|
1228
|
+
""" # noqa: E501
|
1229
|
+
|
1230
|
+
_param = self._get_relationships_serialize(
|
1231
|
+
page_token=page_token,
|
1232
|
+
page_size=page_size,
|
1233
|
+
namespace=namespace,
|
1234
|
+
object=object,
|
1235
|
+
relation=relation,
|
1236
|
+
subject_id=subject_id,
|
1237
|
+
subject_set_namespace=subject_set_namespace,
|
1238
|
+
subject_set_object=subject_set_object,
|
1239
|
+
subject_set_relation=subject_set_relation,
|
1240
|
+
_request_auth=_request_auth,
|
1241
|
+
_content_type=_content_type,
|
1242
|
+
_headers=_headers,
|
1243
|
+
_host_index=_host_index
|
1244
|
+
)
|
1245
|
+
|
1246
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1247
|
+
'200': "Relationships",
|
1248
|
+
'404': "ErrorGeneric",
|
1249
|
+
}
|
1250
|
+
response_data = self.api_client.call_api(
|
1251
|
+
*_param,
|
1252
|
+
_request_timeout=_request_timeout
|
1253
|
+
)
|
1254
|
+
return response_data.response
|
1255
|
+
|
1256
|
+
|
1257
|
+
def _get_relationships_serialize(
|
1258
|
+
self,
|
1259
|
+
page_token,
|
1260
|
+
page_size,
|
1261
|
+
namespace,
|
1262
|
+
object,
|
1263
|
+
relation,
|
1264
|
+
subject_id,
|
1265
|
+
subject_set_namespace,
|
1266
|
+
subject_set_object,
|
1267
|
+
subject_set_relation,
|
1268
|
+
_request_auth,
|
1269
|
+
_content_type,
|
1270
|
+
_headers,
|
1271
|
+
_host_index,
|
1272
|
+
) -> RequestSerialized:
|
737
1273
|
|
1274
|
+
_host = None
|
1275
|
+
|
1276
|
+
_collection_formats: Dict[str, str] = {
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
_path_params: Dict[str, str] = {}
|
1280
|
+
_query_params: List[Tuple[str, str]] = []
|
1281
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1282
|
+
_form_params: List[Tuple[str, str]] = []
|
1283
|
+
_files: Dict[str, str] = {}
|
1284
|
+
_body_params: Optional[bytes] = None
|
1285
|
+
|
1286
|
+
# process the path parameters
|
1287
|
+
# process the query parameters
|
1288
|
+
if page_token is not None:
|
1289
|
+
|
1290
|
+
_query_params.append(('page_token', page_token))
|
1291
|
+
|
1292
|
+
if page_size is not None:
|
1293
|
+
|
1294
|
+
_query_params.append(('page_size', page_size))
|
1295
|
+
|
1296
|
+
if namespace is not None:
|
1297
|
+
|
1298
|
+
_query_params.append(('namespace', namespace))
|
1299
|
+
|
1300
|
+
if object is not None:
|
1301
|
+
|
1302
|
+
_query_params.append(('object', object))
|
1303
|
+
|
1304
|
+
if relation is not None:
|
1305
|
+
|
1306
|
+
_query_params.append(('relation', relation))
|
1307
|
+
|
1308
|
+
if subject_id is not None:
|
1309
|
+
|
1310
|
+
_query_params.append(('subject_id', subject_id))
|
1311
|
+
|
1312
|
+
if subject_set_namespace is not None:
|
1313
|
+
|
1314
|
+
_query_params.append(('subject_set.namespace', subject_set_namespace))
|
1315
|
+
|
1316
|
+
if subject_set_object is not None:
|
1317
|
+
|
1318
|
+
_query_params.append(('subject_set.object', subject_set_object))
|
1319
|
+
|
1320
|
+
if subject_set_relation is not None:
|
1321
|
+
|
1322
|
+
_query_params.append(('subject_set.relation', subject_set_relation))
|
1323
|
+
|
1324
|
+
# process the header parameters
|
1325
|
+
# process the form parameters
|
1326
|
+
# process the body parameter
|
1327
|
+
|
1328
|
+
|
1329
|
+
# set the HTTP header `Accept`
|
1330
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1331
|
+
[
|
1332
|
+
'application/json'
|
1333
|
+
]
|
1334
|
+
)
|
1335
|
+
|
1336
|
+
|
1337
|
+
# authentication setting
|
1338
|
+
_auth_settings: List[str] = [
|
1339
|
+
'oryAccessToken'
|
1340
|
+
]
|
1341
|
+
|
1342
|
+
return self.api_client.param_serialize(
|
1343
|
+
method='GET',
|
1344
|
+
resource_path='/relation-tuples',
|
1345
|
+
path_params=_path_params,
|
1346
|
+
query_params=_query_params,
|
1347
|
+
header_params=_header_params,
|
1348
|
+
body=_body_params,
|
1349
|
+
post_params=_form_params,
|
1350
|
+
files=_files,
|
1351
|
+
auth_settings=_auth_settings,
|
1352
|
+
collection_formats=_collection_formats,
|
1353
|
+
_host=_host,
|
1354
|
+
_request_auth=_request_auth
|
1355
|
+
)
|
1356
|
+
|
1357
|
+
|
1358
|
+
|
1359
|
+
|
1360
|
+
@validate_call
|
738
1361
|
def list_relationship_namespaces(
|
739
1362
|
self,
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
)
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
1363
|
+
_request_timeout: Union[
|
1364
|
+
None,
|
1365
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1366
|
+
Tuple[
|
1367
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1368
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1369
|
+
]
|
1370
|
+
] = None,
|
1371
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1372
|
+
_content_type: Optional[StrictStr] = None,
|
1373
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1374
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1375
|
+
) -> RelationshipNamespaces:
|
1376
|
+
"""Query namespaces
|
1377
|
+
|
1378
|
+
Get all namespaces
|
1379
|
+
|
1380
|
+
:param _request_timeout: timeout setting for this request. If one
|
1381
|
+
number provided, it will be total request
|
1382
|
+
timeout. It can also be a pair (tuple) of
|
1383
|
+
(connection, read) timeouts.
|
1384
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1385
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1386
|
+
request; this effectively ignores the
|
1387
|
+
authentication in the spec for a single request.
|
1388
|
+
:type _request_auth: dict, optional
|
1389
|
+
:param _content_type: force content-type for the request.
|
1390
|
+
:type _content_type: str, Optional
|
1391
|
+
:param _headers: set to override the headers for a single
|
1392
|
+
request; this effectively ignores the headers
|
1393
|
+
in the spec for a single request.
|
1394
|
+
:type _headers: dict, optional
|
1395
|
+
:param _host_index: set to override the host_index for a single
|
1396
|
+
request; this effectively ignores the host_index
|
1397
|
+
in the spec for a single request.
|
1398
|
+
:type _host_index: int, optional
|
1399
|
+
:return: Returns the result object.
|
1400
|
+
""" # noqa: E501
|
1401
|
+
|
1402
|
+
_param = self._list_relationship_namespaces_serialize(
|
1403
|
+
_request_auth=_request_auth,
|
1404
|
+
_content_type=_content_type,
|
1405
|
+
_headers=_headers,
|
1406
|
+
_host_index=_host_index
|
1407
|
+
)
|
1408
|
+
|
1409
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1410
|
+
'200': "RelationshipNamespaces",
|
1411
|
+
}
|
1412
|
+
response_data = self.api_client.call_api(
|
1413
|
+
*_param,
|
1414
|
+
_request_timeout=_request_timeout
|
1415
|
+
)
|
1416
|
+
response_data.read()
|
1417
|
+
return self.api_client.response_deserialize(
|
1418
|
+
response_data=response_data,
|
1419
|
+
response_types_map=_response_types_map,
|
1420
|
+
).data
|
1421
|
+
|
1422
|
+
|
1423
|
+
@validate_call
|
1424
|
+
def list_relationship_namespaces_with_http_info(
|
1425
|
+
self,
|
1426
|
+
_request_timeout: Union[
|
1427
|
+
None,
|
1428
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1429
|
+
Tuple[
|
1430
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1431
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1432
|
+
]
|
1433
|
+
] = None,
|
1434
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1435
|
+
_content_type: Optional[StrictStr] = None,
|
1436
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1437
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1438
|
+
) -> ApiResponse[RelationshipNamespaces]:
|
1439
|
+
"""Query namespaces
|
1440
|
+
|
1441
|
+
Get all namespaces
|
815
1442
|
|
1443
|
+
:param _request_timeout: timeout setting for this request. If one
|
1444
|
+
number provided, it will be total request
|
1445
|
+
timeout. It can also be a pair (tuple) of
|
1446
|
+
(connection, read) timeouts.
|
1447
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1448
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1449
|
+
request; this effectively ignores the
|
1450
|
+
authentication in the spec for a single request.
|
1451
|
+
:type _request_auth: dict, optional
|
1452
|
+
:param _content_type: force content-type for the request.
|
1453
|
+
:type _content_type: str, Optional
|
1454
|
+
:param _headers: set to override the headers for a single
|
1455
|
+
request; this effectively ignores the headers
|
1456
|
+
in the spec for a single request.
|
1457
|
+
:type _headers: dict, optional
|
1458
|
+
:param _host_index: set to override the host_index for a single
|
1459
|
+
request; this effectively ignores the host_index
|
1460
|
+
in the spec for a single request.
|
1461
|
+
:type _host_index: int, optional
|
1462
|
+
:return: Returns the result object.
|
1463
|
+
""" # noqa: E501
|
1464
|
+
|
1465
|
+
_param = self._list_relationship_namespaces_serialize(
|
1466
|
+
_request_auth=_request_auth,
|
1467
|
+
_content_type=_content_type,
|
1468
|
+
_headers=_headers,
|
1469
|
+
_host_index=_host_index
|
1470
|
+
)
|
1471
|
+
|
1472
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1473
|
+
'200': "RelationshipNamespaces",
|
1474
|
+
}
|
1475
|
+
response_data = self.api_client.call_api(
|
1476
|
+
*_param,
|
1477
|
+
_request_timeout=_request_timeout
|
1478
|
+
)
|
1479
|
+
response_data.read()
|
1480
|
+
return self.api_client.response_deserialize(
|
1481
|
+
response_data=response_data,
|
1482
|
+
response_types_map=_response_types_map,
|
1483
|
+
)
|
1484
|
+
|
1485
|
+
|
1486
|
+
@validate_call
|
1487
|
+
def list_relationship_namespaces_without_preload_content(
|
1488
|
+
self,
|
1489
|
+
_request_timeout: Union[
|
1490
|
+
None,
|
1491
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1492
|
+
Tuple[
|
1493
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1494
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1495
|
+
]
|
1496
|
+
] = None,
|
1497
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1498
|
+
_content_type: Optional[StrictStr] = None,
|
1499
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1500
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1501
|
+
) -> RESTResponseType:
|
1502
|
+
"""Query namespaces
|
1503
|
+
|
1504
|
+
Get all namespaces
|
1505
|
+
|
1506
|
+
:param _request_timeout: timeout setting for this request. If one
|
1507
|
+
number provided, it will be total request
|
1508
|
+
timeout. It can also be a pair (tuple) of
|
1509
|
+
(connection, read) timeouts.
|
1510
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1511
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1512
|
+
request; this effectively ignores the
|
1513
|
+
authentication in the spec for a single request.
|
1514
|
+
:type _request_auth: dict, optional
|
1515
|
+
:param _content_type: force content-type for the request.
|
1516
|
+
:type _content_type: str, Optional
|
1517
|
+
:param _headers: set to override the headers for a single
|
1518
|
+
request; this effectively ignores the headers
|
1519
|
+
in the spec for a single request.
|
1520
|
+
:type _headers: dict, optional
|
1521
|
+
:param _host_index: set to override the host_index for a single
|
1522
|
+
request; this effectively ignores the host_index
|
1523
|
+
in the spec for a single request.
|
1524
|
+
:type _host_index: int, optional
|
1525
|
+
:return: Returns the result object.
|
1526
|
+
""" # noqa: E501
|
1527
|
+
|
1528
|
+
_param = self._list_relationship_namespaces_serialize(
|
1529
|
+
_request_auth=_request_auth,
|
1530
|
+
_content_type=_content_type,
|
1531
|
+
_headers=_headers,
|
1532
|
+
_host_index=_host_index
|
1533
|
+
)
|
1534
|
+
|
1535
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1536
|
+
'200': "RelationshipNamespaces",
|
1537
|
+
}
|
1538
|
+
response_data = self.api_client.call_api(
|
1539
|
+
*_param,
|
1540
|
+
_request_timeout=_request_timeout
|
1541
|
+
)
|
1542
|
+
return response_data.response
|
1543
|
+
|
1544
|
+
|
1545
|
+
def _list_relationship_namespaces_serialize(
|
1546
|
+
self,
|
1547
|
+
_request_auth,
|
1548
|
+
_content_type,
|
1549
|
+
_headers,
|
1550
|
+
_host_index,
|
1551
|
+
) -> RequestSerialized:
|
1552
|
+
|
1553
|
+
_host = None
|
1554
|
+
|
1555
|
+
_collection_formats: Dict[str, str] = {
|
1556
|
+
}
|
1557
|
+
|
1558
|
+
_path_params: Dict[str, str] = {}
|
1559
|
+
_query_params: List[Tuple[str, str]] = []
|
1560
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1561
|
+
_form_params: List[Tuple[str, str]] = []
|
1562
|
+
_files: Dict[str, str] = {}
|
1563
|
+
_body_params: Optional[bytes] = None
|
1564
|
+
|
1565
|
+
# process the path parameters
|
1566
|
+
# process the query parameters
|
1567
|
+
# process the header parameters
|
1568
|
+
# process the form parameters
|
1569
|
+
# process the body parameter
|
1570
|
+
|
1571
|
+
|
1572
|
+
# set the HTTP header `Accept`
|
1573
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1574
|
+
[
|
1575
|
+
'application/json'
|
1576
|
+
]
|
1577
|
+
)
|
1578
|
+
|
1579
|
+
|
1580
|
+
# authentication setting
|
1581
|
+
_auth_settings: List[str] = [
|
1582
|
+
'oryAccessToken'
|
1583
|
+
]
|
1584
|
+
|
1585
|
+
return self.api_client.param_serialize(
|
1586
|
+
method='GET',
|
1587
|
+
resource_path='/namespaces',
|
1588
|
+
path_params=_path_params,
|
1589
|
+
query_params=_query_params,
|
1590
|
+
header_params=_header_params,
|
1591
|
+
body=_body_params,
|
1592
|
+
post_params=_form_params,
|
1593
|
+
files=_files,
|
1594
|
+
auth_settings=_auth_settings,
|
1595
|
+
collection_formats=_collection_formats,
|
1596
|
+
_host=_host,
|
1597
|
+
_request_auth=_request_auth
|
1598
|
+
)
|
1599
|
+
|
1600
|
+
|
1601
|
+
|
1602
|
+
|
1603
|
+
@validate_call
|
816
1604
|
def patch_relationships(
|
817
1605
|
self,
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
'
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
)
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
1606
|
+
relationship_patch: Optional[List[RelationshipPatch]] = None,
|
1607
|
+
_request_timeout: Union[
|
1608
|
+
None,
|
1609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1610
|
+
Tuple[
|
1611
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1612
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1613
|
+
]
|
1614
|
+
] = None,
|
1615
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1616
|
+
_content_type: Optional[StrictStr] = None,
|
1617
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1618
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1619
|
+
) -> None:
|
1620
|
+
"""Patch Multiple Relationships
|
1621
|
+
|
1622
|
+
Use this endpoint to patch one or more relationships.
|
1623
|
+
|
1624
|
+
:param relationship_patch:
|
1625
|
+
:type relationship_patch: List[RelationshipPatch]
|
1626
|
+
:param _request_timeout: timeout setting for this request. If one
|
1627
|
+
number provided, it will be total request
|
1628
|
+
timeout. It can also be a pair (tuple) of
|
1629
|
+
(connection, read) timeouts.
|
1630
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1631
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1632
|
+
request; this effectively ignores the
|
1633
|
+
authentication in the spec for a single request.
|
1634
|
+
:type _request_auth: dict, optional
|
1635
|
+
:param _content_type: force content-type for the request.
|
1636
|
+
:type _content_type: str, Optional
|
1637
|
+
:param _headers: set to override the headers for a single
|
1638
|
+
request; this effectively ignores the headers
|
1639
|
+
in the spec for a single request.
|
1640
|
+
:type _headers: dict, optional
|
1641
|
+
:param _host_index: set to override the host_index for a single
|
1642
|
+
request; this effectively ignores the host_index
|
1643
|
+
in the spec for a single request.
|
1644
|
+
:type _host_index: int, optional
|
1645
|
+
:return: Returns the result object.
|
1646
|
+
""" # noqa: E501
|
1647
|
+
|
1648
|
+
_param = self._patch_relationships_serialize(
|
1649
|
+
relationship_patch=relationship_patch,
|
1650
|
+
_request_auth=_request_auth,
|
1651
|
+
_content_type=_content_type,
|
1652
|
+
_headers=_headers,
|
1653
|
+
_host_index=_host_index
|
1654
|
+
)
|
1655
|
+
|
1656
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1657
|
+
'204': None,
|
1658
|
+
'400': "ErrorGeneric",
|
1659
|
+
'404': "ErrorGeneric",
|
1660
|
+
}
|
1661
|
+
response_data = self.api_client.call_api(
|
1662
|
+
*_param,
|
1663
|
+
_request_timeout=_request_timeout
|
1664
|
+
)
|
1665
|
+
response_data.read()
|
1666
|
+
return self.api_client.response_deserialize(
|
1667
|
+
response_data=response_data,
|
1668
|
+
response_types_map=_response_types_map,
|
1669
|
+
).data
|
1670
|
+
|
1671
|
+
|
1672
|
+
@validate_call
|
1673
|
+
def patch_relationships_with_http_info(
|
1674
|
+
self,
|
1675
|
+
relationship_patch: Optional[List[RelationshipPatch]] = None,
|
1676
|
+
_request_timeout: Union[
|
1677
|
+
None,
|
1678
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1679
|
+
Tuple[
|
1680
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1681
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1682
|
+
]
|
1683
|
+
] = None,
|
1684
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1685
|
+
_content_type: Optional[StrictStr] = None,
|
1686
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1687
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1688
|
+
) -> ApiResponse[None]:
|
1689
|
+
"""Patch Multiple Relationships
|
1690
|
+
|
1691
|
+
Use this endpoint to patch one or more relationships.
|
1692
|
+
|
1693
|
+
:param relationship_patch:
|
1694
|
+
:type relationship_patch: List[RelationshipPatch]
|
1695
|
+
:param _request_timeout: timeout setting for this request. If one
|
1696
|
+
number provided, it will be total request
|
1697
|
+
timeout. It can also be a pair (tuple) of
|
1698
|
+
(connection, read) timeouts.
|
1699
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1700
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1701
|
+
request; this effectively ignores the
|
1702
|
+
authentication in the spec for a single request.
|
1703
|
+
:type _request_auth: dict, optional
|
1704
|
+
:param _content_type: force content-type for the request.
|
1705
|
+
:type _content_type: str, Optional
|
1706
|
+
:param _headers: set to override the headers for a single
|
1707
|
+
request; this effectively ignores the headers
|
1708
|
+
in the spec for a single request.
|
1709
|
+
:type _headers: dict, optional
|
1710
|
+
:param _host_index: set to override the host_index for a single
|
1711
|
+
request; this effectively ignores the host_index
|
1712
|
+
in the spec for a single request.
|
1713
|
+
:type _host_index: int, optional
|
1714
|
+
:return: Returns the result object.
|
1715
|
+
""" # noqa: E501
|
1716
|
+
|
1717
|
+
_param = self._patch_relationships_serialize(
|
1718
|
+
relationship_patch=relationship_patch,
|
1719
|
+
_request_auth=_request_auth,
|
1720
|
+
_content_type=_content_type,
|
1721
|
+
_headers=_headers,
|
1722
|
+
_host_index=_host_index
|
1723
|
+
)
|
1724
|
+
|
1725
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1726
|
+
'204': None,
|
1727
|
+
'400': "ErrorGeneric",
|
1728
|
+
'404': "ErrorGeneric",
|
1729
|
+
}
|
1730
|
+
response_data = self.api_client.call_api(
|
1731
|
+
*_param,
|
1732
|
+
_request_timeout=_request_timeout
|
1733
|
+
)
|
1734
|
+
response_data.read()
|
1735
|
+
return self.api_client.response_deserialize(
|
1736
|
+
response_data=response_data,
|
1737
|
+
response_types_map=_response_types_map,
|
1738
|
+
)
|
1739
|
+
|
1740
|
+
|
1741
|
+
@validate_call
|
1742
|
+
def patch_relationships_without_preload_content(
|
1743
|
+
self,
|
1744
|
+
relationship_patch: Optional[List[RelationshipPatch]] = None,
|
1745
|
+
_request_timeout: Union[
|
1746
|
+
None,
|
1747
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1748
|
+
Tuple[
|
1749
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1750
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1751
|
+
]
|
1752
|
+
] = None,
|
1753
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1754
|
+
_content_type: Optional[StrictStr] = None,
|
1755
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1756
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1757
|
+
) -> RESTResponseType:
|
1758
|
+
"""Patch Multiple Relationships
|
1759
|
+
|
1760
|
+
Use this endpoint to patch one or more relationships.
|
1761
|
+
|
1762
|
+
:param relationship_patch:
|
1763
|
+
:type relationship_patch: List[RelationshipPatch]
|
1764
|
+
:param _request_timeout: timeout setting for this request. If one
|
1765
|
+
number provided, it will be total request
|
1766
|
+
timeout. It can also be a pair (tuple) of
|
1767
|
+
(connection, read) timeouts.
|
1768
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1769
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1770
|
+
request; this effectively ignores the
|
1771
|
+
authentication in the spec for a single request.
|
1772
|
+
:type _request_auth: dict, optional
|
1773
|
+
:param _content_type: force content-type for the request.
|
1774
|
+
:type _content_type: str, Optional
|
1775
|
+
:param _headers: set to override the headers for a single
|
1776
|
+
request; this effectively ignores the headers
|
1777
|
+
in the spec for a single request.
|
1778
|
+
:type _headers: dict, optional
|
1779
|
+
:param _host_index: set to override the host_index for a single
|
1780
|
+
request; this effectively ignores the host_index
|
1781
|
+
in the spec for a single request.
|
1782
|
+
:type _host_index: int, optional
|
1783
|
+
:return: Returns the result object.
|
1784
|
+
""" # noqa: E501
|
1785
|
+
|
1786
|
+
_param = self._patch_relationships_serialize(
|
1787
|
+
relationship_patch=relationship_patch,
|
1788
|
+
_request_auth=_request_auth,
|
1789
|
+
_content_type=_content_type,
|
1790
|
+
_headers=_headers,
|
1791
|
+
_host_index=_host_index
|
1792
|
+
)
|
1793
|
+
|
1794
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1795
|
+
'204': None,
|
1796
|
+
'400': "ErrorGeneric",
|
1797
|
+
'404': "ErrorGeneric",
|
1798
|
+
}
|
1799
|
+
response_data = self.api_client.call_api(
|
1800
|
+
*_param,
|
1801
|
+
_request_timeout=_request_timeout
|
1802
|
+
)
|
1803
|
+
return response_data.response
|
1804
|
+
|
1805
|
+
|
1806
|
+
def _patch_relationships_serialize(
|
1807
|
+
self,
|
1808
|
+
relationship_patch,
|
1809
|
+
_request_auth,
|
1810
|
+
_content_type,
|
1811
|
+
_headers,
|
1812
|
+
_host_index,
|
1813
|
+
) -> RequestSerialized:
|
1814
|
+
|
1815
|
+
_host = None
|
1816
|
+
|
1817
|
+
_collection_formats: Dict[str, str] = {
|
1818
|
+
'RelationshipPatch': '',
|
1819
|
+
}
|
1820
|
+
|
1821
|
+
_path_params: Dict[str, str] = {}
|
1822
|
+
_query_params: List[Tuple[str, str]] = []
|
1823
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1824
|
+
_form_params: List[Tuple[str, str]] = []
|
1825
|
+
_files: Dict[str, str] = {}
|
1826
|
+
_body_params: Optional[bytes] = None
|
1827
|
+
|
1828
|
+
# process the path parameters
|
1829
|
+
# process the query parameters
|
1830
|
+
# process the header parameters
|
1831
|
+
# process the form parameters
|
1832
|
+
# process the body parameter
|
1833
|
+
if relationship_patch is not None:
|
1834
|
+
_body_params = relationship_patch
|
1835
|
+
|
1836
|
+
|
1837
|
+
# set the HTTP header `Accept`
|
1838
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1839
|
+
[
|
1840
|
+
'application/json'
|
1841
|
+
]
|
1842
|
+
)
|
1843
|
+
|
1844
|
+
# set the HTTP header `Content-Type`
|
1845
|
+
if _content_type:
|
1846
|
+
_header_params['Content-Type'] = _content_type
|
1847
|
+
else:
|
1848
|
+
_default_content_type = (
|
1849
|
+
self.api_client.select_header_content_type(
|
1850
|
+
[
|
1851
|
+
'application/json'
|
1852
|
+
]
|
1853
|
+
)
|
1854
|
+
)
|
1855
|
+
if _default_content_type is not None:
|
1856
|
+
_header_params['Content-Type'] = _default_content_type
|
1857
|
+
|
1858
|
+
# authentication setting
|
1859
|
+
_auth_settings: List[str] = [
|
1860
|
+
'oryAccessToken'
|
1861
|
+
]
|
1862
|
+
|
1863
|
+
return self.api_client.param_serialize(
|
1864
|
+
method='PATCH',
|
1865
|
+
resource_path='/admin/relation-tuples',
|
1866
|
+
path_params=_path_params,
|
1867
|
+
query_params=_query_params,
|
1868
|
+
header_params=_header_params,
|
1869
|
+
body=_body_params,
|
1870
|
+
post_params=_form_params,
|
1871
|
+
files=_files,
|
1872
|
+
auth_settings=_auth_settings,
|
1873
|
+
collection_formats=_collection_formats,
|
1874
|
+
_host=_host,
|
1875
|
+
_request_auth=_request_auth
|
1876
|
+
)
|
1877
|
+
|
894
1878
|
|