ory-client 1.20.10__py3-none-any.whl → 1.20.22__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 +15 -4
- ory_client/api/courier_api.py +1 -1
- ory_client/api/events_api.py +1 -1
- ory_client/api/frontend_api.py +1 -1
- ory_client/api/identity_api.py +19 -19
- ory_client/api/jwk_api.py +1 -1
- ory_client/api/metadata_api.py +1 -1
- ory_client/api/o_auth2_api.py +824 -41
- ory_client/api/oidc_api.py +1 -1
- ory_client/api/permission_api.py +1 -1
- ory_client/api/project_api.py +1941 -723
- ory_client/api/relationship_api.py +1 -1
- ory_client/api/wellknown_api.py +1 -1
- ory_client/api/workspace_api.py +1 -1
- ory_client/api_client.py +2 -2
- ory_client/configuration.py +4 -4
- ory_client/exceptions.py +1 -1
- ory_client/models/__init__.py +14 -3
- ory_client/models/accept_device_user_code_request.py +101 -0
- ory_client/models/accept_o_auth2_consent_request.py +1 -1
- ory_client/models/accept_o_auth2_consent_request_session.py +1 -1
- ory_client/models/accept_o_auth2_login_request.py +1 -1
- ory_client/models/account_experience_colors.py +4 -2
- ory_client/models/account_experience_configuration.py +1 -1
- ory_client/models/account_experience_theme_variables.py +1 -1
- ory_client/models/active_project_in_console.py +1 -1
- ory_client/models/add_project_to_workspace_body.py +1 -1
- ory_client/models/attribute.py +1 -1
- ory_client/models/attribute_filter.py +1 -1
- ory_client/models/attributes_count_datapoint.py +1 -1
- ory_client/models/authenticator_assurance_level.py +1 -1
- ory_client/models/{pagination_headers.py → basic_organization.py} +13 -11
- ory_client/models/batch_check_permission_body.py +1 -1
- ory_client/models/batch_check_permission_result.py +1 -1
- ory_client/models/batch_patch_identities_response.py +1 -1
- ory_client/models/billing_period_bucket.py +1 -1
- ory_client/models/check_opl_syntax_result.py +1 -1
- ory_client/models/check_permission_result.py +1 -1
- ory_client/models/check_permission_result_with_error.py +1 -1
- ory_client/models/cloud_account.py +1 -1
- ory_client/models/consistency_request_parameters.py +1 -1
- ory_client/models/continue_with.py +1 -1
- ory_client/models/continue_with_recovery_ui.py +1 -1
- ory_client/models/continue_with_recovery_ui_flow.py +1 -1
- ory_client/models/continue_with_redirect_browser_to.py +1 -1
- ory_client/models/continue_with_set_ory_session_token.py +1 -1
- ory_client/models/continue_with_settings_ui.py +1 -1
- ory_client/models/continue_with_settings_ui_flow.py +1 -1
- ory_client/models/continue_with_verification_ui.py +1 -1
- ory_client/models/continue_with_verification_ui_flow.py +1 -1
- ory_client/models/courier_message_status.py +1 -1
- ory_client/models/courier_message_type.py +1 -1
- ory_client/models/create_custom_domain_body.py +1 -1
- ory_client/models/create_event_stream_body.py +1 -1
- ory_client/models/create_fedcm_flow_response.py +1 -1
- ory_client/models/create_identity_body.py +1 -1
- ory_client/models/create_invite_response.py +1 -1
- ory_client/models/create_json_web_key_set.py +1 -1
- ory_client/models/create_organization_onboarding_portal_link_body.py +104 -0
- ory_client/models/create_project_api_key_request.py +1 -1
- ory_client/models/create_project_body.py +1 -1
- ory_client/models/create_project_branding.py +1 -1
- ory_client/models/create_project_member_invite_body.py +1 -1
- ory_client/models/create_project_normalized_payload.py +33 -2
- ory_client/models/create_recovery_code_for_identity_body.py +1 -1
- ory_client/models/create_recovery_link_for_identity_body.py +1 -1
- ory_client/models/create_relationship_body.py +1 -1
- ory_client/models/create_subscription_body.py +1 -1
- ory_client/models/create_subscription_common.py +1 -1
- ory_client/models/create_verifiable_credential_request_body.py +1 -1
- ory_client/models/create_workspace_api_key_body.py +1 -1
- ory_client/models/create_workspace_body.py +1 -1
- ory_client/models/create_workspace_member_invite_body.py +1 -1
- ory_client/models/create_workspace_subscription_body.py +1 -1
- ory_client/models/credential_supported_draft00.py +1 -1
- ory_client/models/custom_domain.py +1 -1
- ory_client/models/delete_my_sessions_count.py +1 -1
- ory_client/models/device_authorization.py +111 -0
- ory_client/models/device_user_auth_request.py +116 -0
- ory_client/models/email_template_data.py +1 -1
- ory_client/models/email_template_data_body.py +1 -1
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +1 -1
- ory_client/models/error_browser_location_change_required.py +1 -1
- ory_client/models/error_flow_replaced.py +1 -1
- ory_client/models/error_generic.py +1 -1
- ory_client/models/error_o_auth2.py +1 -1
- ory_client/models/event_stream.py +1 -1
- ory_client/models/expanded_permission_tree.py +1 -1
- ory_client/models/flow_error.py +1 -1
- ory_client/models/generic_error.py +1 -1
- ory_client/models/generic_error_content.py +1 -1
- ory_client/models/generic_usage.py +1 -1
- ory_client/models/get_attributes_count_response.py +1 -1
- ory_client/models/get_managed_identity_schema_location.py +1 -1
- ory_client/models/get_metrics_event_attributes_response.py +1 -1
- ory_client/models/get_metrics_event_types_response.py +1 -1
- ory_client/models/get_organization_response.py +1 -1
- ory_client/models/get_project_events_body.py +1 -1
- ory_client/models/get_project_events_response.py +1 -1
- ory_client/models/get_project_metrics_response.py +1 -1
- ory_client/models/get_session_activity_response.py +1 -1
- ory_client/models/get_version200_response.py +1 -1
- ory_client/models/health_not_ready_status.py +1 -1
- ory_client/models/health_status.py +1 -1
- ory_client/models/identity.py +1 -1
- ory_client/models/identity_credentials.py +1 -1
- ory_client/models/identity_credentials_code.py +1 -1
- ory_client/models/identity_credentials_code_address.py +1 -1
- ory_client/models/identity_credentials_oidc.py +1 -1
- ory_client/models/identity_credentials_oidc_provider.py +1 -1
- ory_client/models/identity_credentials_password.py +1 -1
- ory_client/models/identity_patch.py +1 -1
- ory_client/models/identity_patch_response.py +1 -1
- ory_client/models/identity_schema_container.py +1 -1
- ory_client/models/identity_schema_preset.py +1 -1
- ory_client/models/identity_with_credentials.py +1 -1
- ory_client/models/identity_with_credentials_oidc.py +1 -1
- ory_client/models/identity_with_credentials_oidc_config.py +1 -1
- ory_client/models/identity_with_credentials_oidc_config_provider.py +1 -1
- ory_client/models/identity_with_credentials_password.py +1 -1
- ory_client/models/identity_with_credentials_password_config.py +1 -1
- ory_client/models/identity_with_credentials_saml.py +1 -1
- ory_client/models/identity_with_credentials_saml_config.py +1 -1
- ory_client/models/identity_with_credentials_saml_config_provider.py +1 -1
- ory_client/models/internal_get_project_branding_body.py +1 -1
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +1 -1
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +1 -1
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +1 -1
- ory_client/models/introspected_o_auth2_token.py +1 -1
- ory_client/models/invite_token_body.py +1 -1
- ory_client/models/invoice.py +1 -1
- ory_client/models/invoice_data_v1.py +1 -1
- ory_client/models/is_owner_for_project_by_slug.py +1 -1
- ory_client/models/json_patch.py +1 -1
- ory_client/models/json_web_key.py +1 -1
- ory_client/models/json_web_key_set.py +1 -1
- ory_client/models/keto_namespace.py +1 -1
- ory_client/models/{pagination.py → keyset_pagination_request_parameters.py} +9 -9
- ory_client/models/keyset_pagination_response_headers.py +101 -0
- ory_client/models/line_item_v1.py +1 -1
- ory_client/models/list_event_streams.py +1 -1
- ory_client/models/list_invoices_response.py +1 -1
- ory_client/models/list_organizations_response.py +1 -1
- ory_client/models/list_workspace_projects.py +1 -1
- ory_client/models/list_workspaces.py +1 -1
- ory_client/models/login_flow.py +1 -1
- ory_client/models/login_flow_state.py +1 -1
- ory_client/models/logout_flow.py +1 -1
- ory_client/models/managed_identity_schema.py +1 -1
- ory_client/models/managed_identity_schema_validation_result.py +1 -1
- ory_client/models/member_invite.py +1 -1
- ory_client/models/message.py +1 -1
- ory_client/models/message_dispatch.py +1 -1
- ory_client/models/metrics_datapoint.py +1 -1
- ory_client/models/money.py +1 -1
- ory_client/models/namespace.py +1 -1
- ory_client/models/needs_privileged_session_error.py +1 -1
- ory_client/models/normalized_project.py +1 -1
- ory_client/models/normalized_project_revision.py +33 -2
- ory_client/models/normalized_project_revision_courier_channel.py +1 -1
- ory_client/models/normalized_project_revision_hook.py +1 -1
- ory_client/models/normalized_project_revision_identity_schema.py +1 -1
- ory_client/models/normalized_project_revision_saml_provider.py +1 -1
- ory_client/models/normalized_project_revision_scim_client.py +1 -1
- ory_client/models/normalized_project_revision_third_party_provider.py +1 -1
- ory_client/models/normalized_project_revision_tokenizer_template.py +1 -1
- ory_client/models/o_auth2_client.py +60 -10
- ory_client/models/o_auth2_client_token_lifespans.py +53 -2
- ory_client/models/o_auth2_consent_request.py +4 -2
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +1 -1
- ory_client/models/o_auth2_consent_session.py +1 -1
- ory_client/models/o_auth2_consent_session_expires_at.py +1 -1
- ory_client/models/o_auth2_login_request.py +1 -1
- ory_client/models/o_auth2_logout_request.py +1 -1
- ory_client/models/o_auth2_redirect_to.py +1 -1
- ory_client/models/o_auth2_token_exchange.py +1 -1
- ory_client/models/oidc_configuration.py +4 -2
- ory_client/models/oidc_user_info.py +1 -1
- ory_client/models/onboarding_portal_link.py +126 -0
- ory_client/models/onboarding_portal_organization.py +127 -0
- ory_client/models/organization.py +4 -12
- ory_client/models/organization_body.py +1 -1
- ory_client/models/organization_onboarding_portal_links_response.py +109 -0
- ory_client/models/parse_error.py +1 -1
- ory_client/models/patch_identities_body.py +1 -1
- ory_client/models/perform_native_logout_body.py +1 -1
- ory_client/models/permissions_on_workspace.py +1 -1
- ory_client/models/plan.py +1 -1
- ory_client/models/plan_details.py +1 -1
- ory_client/models/post_check_permission_body.py +1 -1
- ory_client/models/post_check_permission_or_error_body.py +1 -1
- ory_client/models/project.py +12 -2
- ory_client/models/project_api_key.py +1 -1
- ory_client/models/project_branding.py +1 -1
- ory_client/models/project_branding_colors.py +1 -1
- ory_client/models/project_branding_theme.py +1 -1
- ory_client/models/project_cors.py +1 -1
- ory_client/models/project_events_datapoint.py +1 -1
- ory_client/models/project_host.py +1 -1
- ory_client/models/project_member.py +1 -1
- ory_client/models/project_metadata.py +1 -1
- ory_client/models/project_service_identity.py +1 -1
- ory_client/models/project_service_o_auth2.py +1 -1
- ory_client/models/project_service_permission.py +1 -1
- ory_client/models/project_services.py +1 -1
- ory_client/models/provider.py +1 -1
- ory_client/models/quota_usage.py +4 -4
- ory_client/models/recovery_code_for_identity.py +1 -1
- ory_client/models/recovery_flow.py +1 -1
- ory_client/models/recovery_flow_state.py +1 -1
- ory_client/models/recovery_identity_address.py +1 -1
- ory_client/models/recovery_link_for_identity.py +1 -1
- ory_client/models/registration_flow.py +1 -1
- ory_client/models/registration_flow_state.py +1 -1
- ory_client/models/reject_o_auth2_request.py +1 -1
- ory_client/models/relation_query.py +1 -1
- ory_client/models/relationship.py +1 -1
- ory_client/models/relationship_namespaces.py +1 -1
- ory_client/models/relationship_patch.py +1 -1
- ory_client/models/relationships.py +1 -1
- ory_client/models/rfc6749_error_json.py +1 -1
- ory_client/models/schema_patch.py +1 -1
- ory_client/models/self_service_flow_expired_error.py +1 -1
- ory_client/models/session.py +1 -1
- ory_client/models/session_activity_datapoint.py +1 -1
- ory_client/models/session_authentication_method.py +1 -1
- ory_client/models/session_device.py +1 -1
- ory_client/models/set_active_project_in_console_body.py +1 -1
- ory_client/models/set_custom_domain_body.py +1 -1
- ory_client/models/set_event_stream_body.py +1 -1
- ory_client/models/set_organization_from_onboarding_portal_link_body.py +121 -0
- ory_client/models/set_project.py +12 -2
- ory_client/models/set_project_branding_theme_body.py +1 -1
- ory_client/models/settings_flow.py +1 -1
- ory_client/models/settings_flow_state.py +1 -1
- ory_client/models/source_position.py +1 -1
- ory_client/models/subject_set.py +1 -1
- ory_client/models/subscription.py +1 -1
- ory_client/models/successful_code_exchange_response.py +1 -1
- ory_client/models/successful_native_login.py +1 -1
- ory_client/models/successful_native_registration.py +1 -1
- ory_client/models/successful_project_update.py +1 -1
- ory_client/models/tax_line_item.py +1 -1
- ory_client/models/time_interval.py +1 -1
- ory_client/models/token_pagination.py +1 -1
- ory_client/models/token_pagination_headers.py +1 -1
- ory_client/models/token_pagination_request_parameters.py +1 -1
- ory_client/models/token_pagination_response_headers.py +1 -1
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +1 -1
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +1 -1
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +1 -1
- ory_client/models/ui_container.py +1 -1
- ory_client/models/ui_node.py +1 -1
- ory_client/models/ui_node_anchor_attributes.py +3 -3
- ory_client/models/ui_node_attributes.py +1 -1
- ory_client/models/ui_node_division_attributes.py +5 -5
- ory_client/models/ui_node_image_attributes.py +3 -3
- ory_client/models/ui_node_input_attributes.py +6 -6
- ory_client/models/ui_node_meta.py +1 -1
- ory_client/models/ui_node_script_attributes.py +3 -3
- ory_client/models/ui_node_text_attributes.py +3 -3
- ory_client/models/ui_text.py +1 -1
- ory_client/models/update_fedcm_flow_body.py +1 -1
- ory_client/models/update_identity_body.py +1 -1
- ory_client/models/update_login_flow_body.py +1 -1
- ory_client/models/update_login_flow_with_code_method.py +1 -1
- ory_client/models/update_login_flow_with_identifier_first_method.py +1 -1
- ory_client/models/update_login_flow_with_lookup_secret_method.py +1 -1
- ory_client/models/update_login_flow_with_oidc_method.py +1 -1
- ory_client/models/update_login_flow_with_passkey_method.py +1 -1
- ory_client/models/update_login_flow_with_password_method.py +1 -1
- ory_client/models/update_login_flow_with_saml_method.py +1 -1
- ory_client/models/update_login_flow_with_totp_method.py +1 -1
- ory_client/models/update_login_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_organization_onboarding_portal_link_body.py +104 -0
- ory_client/models/update_recovery_flow_body.py +1 -1
- ory_client/models/update_recovery_flow_with_code_method.py +1 -1
- ory_client/models/update_recovery_flow_with_link_method.py +1 -1
- ory_client/models/update_registration_flow_body.py +1 -1
- ory_client/models/update_registration_flow_with_code_method.py +1 -1
- ory_client/models/update_registration_flow_with_oidc_method.py +1 -1
- ory_client/models/update_registration_flow_with_passkey_method.py +1 -1
- ory_client/models/update_registration_flow_with_password_method.py +1 -1
- ory_client/models/update_registration_flow_with_profile_method.py +1 -1
- ory_client/models/update_registration_flow_with_saml_method.py +1 -1
- ory_client/models/update_registration_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_settings_flow_body.py +1 -1
- ory_client/models/update_settings_flow_with_lookup_method.py +1 -1
- ory_client/models/update_settings_flow_with_oidc_method.py +1 -1
- ory_client/models/update_settings_flow_with_passkey_method.py +1 -1
- ory_client/models/update_settings_flow_with_password_method.py +1 -1
- ory_client/models/update_settings_flow_with_profile_method.py +1 -1
- ory_client/models/update_settings_flow_with_saml_method.py +1 -1
- ory_client/models/update_settings_flow_with_totp_method.py +1 -1
- ory_client/models/update_settings_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_subscription_body.py +1 -1
- ory_client/models/update_verification_flow_body.py +1 -1
- ory_client/models/update_verification_flow_with_code_method.py +1 -1
- ory_client/models/update_verification_flow_with_link_method.py +1 -1
- ory_client/models/update_workspace_body.py +1 -1
- ory_client/models/usage.py +1 -1
- ory_client/models/verifiable_credential_priming_response.py +1 -1
- ory_client/models/verifiable_credential_proof.py +1 -1
- ory_client/models/verifiable_credential_response.py +1 -1
- ory_client/models/verifiable_identity_address.py +1 -1
- ory_client/models/verification_flow.py +1 -1
- ory_client/models/verification_flow_state.py +1 -1
- ory_client/models/verify_user_code_request.py +118 -0
- ory_client/models/version.py +1 -1
- ory_client/models/warning.py +1 -1
- ory_client/models/workspace.py +1 -1
- ory_client/models/workspace_api_key.py +1 -1
- ory_client/rest.py +1 -1
- {ory_client-1.20.10.dist-info → ory_client-1.20.22.dist-info}/METADATA +1 -1
- ory_client-1.20.22.dist-info/RECORD +321 -0
- ory_client-1.20.10.dist-info/RECORD +0 -310
- {ory_client-1.20.10.dist-info → ory_client-1.20.22.dist-info}/LICENSE +0 -0
- {ory_client-1.20.10.dist-info → ory_client-1.20.22.dist-info}/WHEEL +0 -0
- {ory_client-1.20.10.dist-info → ory_client-1.20.22.dist-info}/top_level.txt +0 -0
ory_client/api/project_api.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Introduction 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. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.20.
|
8
|
+
The version of the OpenAPI document: v1.20.22
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -20,19 +20,23 @@ from typing_extensions import Annotated
|
|
20
20
|
from pydantic import Field, StrictStr
|
21
21
|
from typing import List, Optional
|
22
22
|
from typing_extensions import Annotated
|
23
|
+
from ory_client.models.create_organization_onboarding_portal_link_body import CreateOrganizationOnboardingPortalLinkBody
|
23
24
|
from ory_client.models.create_project_api_key_request import CreateProjectApiKeyRequest
|
24
25
|
from ory_client.models.create_project_body import CreateProjectBody
|
25
26
|
from ory_client.models.get_organization_response import GetOrganizationResponse
|
26
27
|
from ory_client.models.json_patch import JsonPatch
|
27
28
|
from ory_client.models.list_organizations_response import ListOrganizationsResponse
|
29
|
+
from ory_client.models.onboarding_portal_link import OnboardingPortalLink
|
28
30
|
from ory_client.models.organization import Organization
|
29
31
|
from ory_client.models.organization_body import OrganizationBody
|
32
|
+
from ory_client.models.organization_onboarding_portal_links_response import OrganizationOnboardingPortalLinksResponse
|
30
33
|
from ory_client.models.project import Project
|
31
34
|
from ory_client.models.project_api_key import ProjectApiKey
|
32
35
|
from ory_client.models.project_member import ProjectMember
|
33
36
|
from ory_client.models.project_metadata import ProjectMetadata
|
34
37
|
from ory_client.models.set_project import SetProject
|
35
38
|
from ory_client.models.successful_project_update import SuccessfulProjectUpdate
|
39
|
+
from ory_client.models.update_organization_onboarding_portal_link_body import UpdateOrganizationOnboardingPortalLinkBody
|
36
40
|
|
37
41
|
from ory_client.api_client import ApiClient, RequestSerialized
|
38
42
|
from ory_client.api_response import ApiResponse
|
@@ -354,9 +358,11 @@ class ProjectApi:
|
|
354
358
|
|
355
359
|
|
356
360
|
@validate_call
|
357
|
-
def
|
361
|
+
def create_organization_onboarding_portal_link(
|
358
362
|
self,
|
359
|
-
|
363
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
364
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
365
|
+
create_organization_onboarding_portal_link_body: Optional[CreateOrganizationOnboardingPortalLinkBody] = None,
|
360
366
|
_request_timeout: Union[
|
361
367
|
None,
|
362
368
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -369,13 +375,17 @@ class ProjectApi:
|
|
369
375
|
_content_type: Optional[StrictStr] = None,
|
370
376
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
371
377
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
372
|
-
) ->
|
373
|
-
"""Create
|
378
|
+
) -> OnboardingPortalLink:
|
379
|
+
"""Create organization onboarding portal link
|
374
380
|
|
375
|
-
|
381
|
+
Create a onboarding portal link for an organization.
|
376
382
|
|
377
|
-
:param
|
378
|
-
:type
|
383
|
+
:param project_id: Project ID The project's ID. (required)
|
384
|
+
:type project_id: str
|
385
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
386
|
+
:type organization_id: str
|
387
|
+
:param create_organization_onboarding_portal_link_body:
|
388
|
+
:type create_organization_onboarding_portal_link_body: CreateOrganizationOnboardingPortalLinkBody
|
379
389
|
:param _request_timeout: timeout setting for this request. If one
|
380
390
|
number provided, it will be total request
|
381
391
|
timeout. It can also be a pair (tuple) of
|
@@ -398,8 +408,10 @@ class ProjectApi:
|
|
398
408
|
:return: Returns the result object.
|
399
409
|
""" # noqa: E501
|
400
410
|
|
401
|
-
_param = self.
|
402
|
-
|
411
|
+
_param = self._create_organization_onboarding_portal_link_serialize(
|
412
|
+
project_id=project_id,
|
413
|
+
organization_id=organization_id,
|
414
|
+
create_organization_onboarding_portal_link_body=create_organization_onboarding_portal_link_body,
|
403
415
|
_request_auth=_request_auth,
|
404
416
|
_content_type=_content_type,
|
405
417
|
_headers=_headers,
|
@@ -407,10 +419,7 @@ class ProjectApi:
|
|
407
419
|
)
|
408
420
|
|
409
421
|
_response_types_map: Dict[str, Optional[str]] = {
|
410
|
-
'201': "
|
411
|
-
'401': "ErrorGeneric",
|
412
|
-
'403': "ErrorGeneric",
|
413
|
-
'404': "ErrorGeneric",
|
422
|
+
'201': "OnboardingPortalLink",
|
414
423
|
}
|
415
424
|
response_data = self.api_client.call_api(
|
416
425
|
*_param,
|
@@ -424,9 +433,11 @@ class ProjectApi:
|
|
424
433
|
|
425
434
|
|
426
435
|
@validate_call
|
427
|
-
def
|
436
|
+
def create_organization_onboarding_portal_link_with_http_info(
|
428
437
|
self,
|
429
|
-
|
438
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
439
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
440
|
+
create_organization_onboarding_portal_link_body: Optional[CreateOrganizationOnboardingPortalLinkBody] = None,
|
430
441
|
_request_timeout: Union[
|
431
442
|
None,
|
432
443
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -439,13 +450,17 @@ class ProjectApi:
|
|
439
450
|
_content_type: Optional[StrictStr] = None,
|
440
451
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
441
452
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
442
|
-
) -> ApiResponse[
|
443
|
-
"""Create
|
453
|
+
) -> ApiResponse[OnboardingPortalLink]:
|
454
|
+
"""Create organization onboarding portal link
|
444
455
|
|
445
|
-
|
456
|
+
Create a onboarding portal link for an organization.
|
446
457
|
|
447
|
-
:param
|
448
|
-
:type
|
458
|
+
:param project_id: Project ID The project's ID. (required)
|
459
|
+
:type project_id: str
|
460
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
461
|
+
:type organization_id: str
|
462
|
+
:param create_organization_onboarding_portal_link_body:
|
463
|
+
:type create_organization_onboarding_portal_link_body: CreateOrganizationOnboardingPortalLinkBody
|
449
464
|
:param _request_timeout: timeout setting for this request. If one
|
450
465
|
number provided, it will be total request
|
451
466
|
timeout. It can also be a pair (tuple) of
|
@@ -468,8 +483,10 @@ class ProjectApi:
|
|
468
483
|
:return: Returns the result object.
|
469
484
|
""" # noqa: E501
|
470
485
|
|
471
|
-
_param = self.
|
472
|
-
|
486
|
+
_param = self._create_organization_onboarding_portal_link_serialize(
|
487
|
+
project_id=project_id,
|
488
|
+
organization_id=organization_id,
|
489
|
+
create_organization_onboarding_portal_link_body=create_organization_onboarding_portal_link_body,
|
473
490
|
_request_auth=_request_auth,
|
474
491
|
_content_type=_content_type,
|
475
492
|
_headers=_headers,
|
@@ -477,10 +494,7 @@ class ProjectApi:
|
|
477
494
|
)
|
478
495
|
|
479
496
|
_response_types_map: Dict[str, Optional[str]] = {
|
480
|
-
'201': "
|
481
|
-
'401': "ErrorGeneric",
|
482
|
-
'403': "ErrorGeneric",
|
483
|
-
'404': "ErrorGeneric",
|
497
|
+
'201': "OnboardingPortalLink",
|
484
498
|
}
|
485
499
|
response_data = self.api_client.call_api(
|
486
500
|
*_param,
|
@@ -494,9 +508,11 @@ class ProjectApi:
|
|
494
508
|
|
495
509
|
|
496
510
|
@validate_call
|
497
|
-
def
|
511
|
+
def create_organization_onboarding_portal_link_without_preload_content(
|
498
512
|
self,
|
499
|
-
|
513
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
514
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
515
|
+
create_organization_onboarding_portal_link_body: Optional[CreateOrganizationOnboardingPortalLinkBody] = None,
|
500
516
|
_request_timeout: Union[
|
501
517
|
None,
|
502
518
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -510,12 +526,16 @@ class ProjectApi:
|
|
510
526
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
511
527
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
512
528
|
) -> RESTResponseType:
|
513
|
-
"""Create
|
529
|
+
"""Create organization onboarding portal link
|
514
530
|
|
515
|
-
|
531
|
+
Create a onboarding portal link for an organization.
|
516
532
|
|
517
|
-
:param
|
518
|
-
:type
|
533
|
+
:param project_id: Project ID The project's ID. (required)
|
534
|
+
:type project_id: str
|
535
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
536
|
+
:type organization_id: str
|
537
|
+
:param create_organization_onboarding_portal_link_body:
|
538
|
+
:type create_organization_onboarding_portal_link_body: CreateOrganizationOnboardingPortalLinkBody
|
519
539
|
:param _request_timeout: timeout setting for this request. If one
|
520
540
|
number provided, it will be total request
|
521
541
|
timeout. It can also be a pair (tuple) of
|
@@ -538,8 +558,10 @@ class ProjectApi:
|
|
538
558
|
:return: Returns the result object.
|
539
559
|
""" # noqa: E501
|
540
560
|
|
541
|
-
_param = self.
|
542
|
-
|
561
|
+
_param = self._create_organization_onboarding_portal_link_serialize(
|
562
|
+
project_id=project_id,
|
563
|
+
organization_id=organization_id,
|
564
|
+
create_organization_onboarding_portal_link_body=create_organization_onboarding_portal_link_body,
|
543
565
|
_request_auth=_request_auth,
|
544
566
|
_content_type=_content_type,
|
545
567
|
_headers=_headers,
|
@@ -547,10 +569,7 @@ class ProjectApi:
|
|
547
569
|
)
|
548
570
|
|
549
571
|
_response_types_map: Dict[str, Optional[str]] = {
|
550
|
-
'201': "
|
551
|
-
'401': "ErrorGeneric",
|
552
|
-
'403': "ErrorGeneric",
|
553
|
-
'404': "ErrorGeneric",
|
572
|
+
'201': "OnboardingPortalLink",
|
554
573
|
}
|
555
574
|
response_data = self.api_client.call_api(
|
556
575
|
*_param,
|
@@ -559,9 +578,11 @@ class ProjectApi:
|
|
559
578
|
return response_data.response
|
560
579
|
|
561
580
|
|
562
|
-
def
|
581
|
+
def _create_organization_onboarding_portal_link_serialize(
|
563
582
|
self,
|
564
|
-
|
583
|
+
project_id,
|
584
|
+
organization_id,
|
585
|
+
create_organization_onboarding_portal_link_body,
|
565
586
|
_request_auth,
|
566
587
|
_content_type,
|
567
588
|
_headers,
|
@@ -586,12 +607,16 @@ class ProjectApi:
|
|
586
607
|
_body_params: Optional[bytes] = None
|
587
608
|
|
588
609
|
# process the path parameters
|
610
|
+
if project_id is not None:
|
611
|
+
_path_params['project_id'] = project_id
|
612
|
+
if organization_id is not None:
|
613
|
+
_path_params['organization_id'] = organization_id
|
589
614
|
# process the query parameters
|
590
615
|
# process the header parameters
|
591
616
|
# process the form parameters
|
592
617
|
# process the body parameter
|
593
|
-
if
|
594
|
-
_body_params =
|
618
|
+
if create_organization_onboarding_portal_link_body is not None:
|
619
|
+
_body_params = create_organization_onboarding_portal_link_body
|
595
620
|
|
596
621
|
|
597
622
|
# set the HTTP header `Accept`
|
@@ -623,7 +648,7 @@ class ProjectApi:
|
|
623
648
|
|
624
649
|
return self.api_client.param_serialize(
|
625
650
|
method='POST',
|
626
|
-
resource_path='/projects',
|
651
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links',
|
627
652
|
path_params=_path_params,
|
628
653
|
query_params=_query_params,
|
629
654
|
header_params=_header_params,
|
@@ -640,10 +665,9 @@ class ProjectApi:
|
|
640
665
|
|
641
666
|
|
642
667
|
@validate_call
|
643
|
-
def
|
668
|
+
def create_project(
|
644
669
|
self,
|
645
|
-
|
646
|
-
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
670
|
+
create_project_body: Optional[CreateProjectBody] = None,
|
647
671
|
_request_timeout: Union[
|
648
672
|
None,
|
649
673
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -656,15 +680,13 @@ class ProjectApi:
|
|
656
680
|
_content_type: Optional[StrictStr] = None,
|
657
681
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
658
682
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
659
|
-
) ->
|
660
|
-
"""Create
|
683
|
+
) -> Project:
|
684
|
+
"""Create a Project
|
661
685
|
|
662
|
-
|
686
|
+
Creates a new project.
|
663
687
|
|
664
|
-
:param
|
665
|
-
:type
|
666
|
-
:param create_project_api_key_request:
|
667
|
-
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
688
|
+
:param create_project_body:
|
689
|
+
:type create_project_body: CreateProjectBody
|
668
690
|
:param _request_timeout: timeout setting for this request. If one
|
669
691
|
number provided, it will be total request
|
670
692
|
timeout. It can also be a pair (tuple) of
|
@@ -687,9 +709,8 @@ class ProjectApi:
|
|
687
709
|
:return: Returns the result object.
|
688
710
|
""" # noqa: E501
|
689
711
|
|
690
|
-
_param = self.
|
691
|
-
|
692
|
-
create_project_api_key_request=create_project_api_key_request,
|
712
|
+
_param = self._create_project_serialize(
|
713
|
+
create_project_body=create_project_body,
|
693
714
|
_request_auth=_request_auth,
|
694
715
|
_content_type=_content_type,
|
695
716
|
_headers=_headers,
|
@@ -697,7 +718,10 @@ class ProjectApi:
|
|
697
718
|
)
|
698
719
|
|
699
720
|
_response_types_map: Dict[str, Optional[str]] = {
|
700
|
-
'201': "
|
721
|
+
'201': "Project",
|
722
|
+
'401': "ErrorGeneric",
|
723
|
+
'403': "ErrorGeneric",
|
724
|
+
'404': "ErrorGeneric",
|
701
725
|
}
|
702
726
|
response_data = self.api_client.call_api(
|
703
727
|
*_param,
|
@@ -711,10 +735,9 @@ class ProjectApi:
|
|
711
735
|
|
712
736
|
|
713
737
|
@validate_call
|
714
|
-
def
|
738
|
+
def create_project_with_http_info(
|
715
739
|
self,
|
716
|
-
|
717
|
-
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
740
|
+
create_project_body: Optional[CreateProjectBody] = None,
|
718
741
|
_request_timeout: Union[
|
719
742
|
None,
|
720
743
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -727,15 +750,13 @@ class ProjectApi:
|
|
727
750
|
_content_type: Optional[StrictStr] = None,
|
728
751
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
729
752
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
730
|
-
) -> ApiResponse[
|
731
|
-
"""Create
|
753
|
+
) -> ApiResponse[Project]:
|
754
|
+
"""Create a Project
|
732
755
|
|
733
|
-
|
756
|
+
Creates a new project.
|
734
757
|
|
735
|
-
:param
|
736
|
-
:type
|
737
|
-
:param create_project_api_key_request:
|
738
|
-
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
758
|
+
:param create_project_body:
|
759
|
+
:type create_project_body: CreateProjectBody
|
739
760
|
:param _request_timeout: timeout setting for this request. If one
|
740
761
|
number provided, it will be total request
|
741
762
|
timeout. It can also be a pair (tuple) of
|
@@ -758,9 +779,8 @@ class ProjectApi:
|
|
758
779
|
:return: Returns the result object.
|
759
780
|
""" # noqa: E501
|
760
781
|
|
761
|
-
_param = self.
|
762
|
-
|
763
|
-
create_project_api_key_request=create_project_api_key_request,
|
782
|
+
_param = self._create_project_serialize(
|
783
|
+
create_project_body=create_project_body,
|
764
784
|
_request_auth=_request_auth,
|
765
785
|
_content_type=_content_type,
|
766
786
|
_headers=_headers,
|
@@ -768,7 +788,10 @@ class ProjectApi:
|
|
768
788
|
)
|
769
789
|
|
770
790
|
_response_types_map: Dict[str, Optional[str]] = {
|
771
|
-
'201': "
|
791
|
+
'201': "Project",
|
792
|
+
'401': "ErrorGeneric",
|
793
|
+
'403': "ErrorGeneric",
|
794
|
+
'404': "ErrorGeneric",
|
772
795
|
}
|
773
796
|
response_data = self.api_client.call_api(
|
774
797
|
*_param,
|
@@ -782,10 +805,9 @@ class ProjectApi:
|
|
782
805
|
|
783
806
|
|
784
807
|
@validate_call
|
785
|
-
def
|
808
|
+
def create_project_without_preload_content(
|
786
809
|
self,
|
787
|
-
|
788
|
-
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
810
|
+
create_project_body: Optional[CreateProjectBody] = None,
|
789
811
|
_request_timeout: Union[
|
790
812
|
None,
|
791
813
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -799,14 +821,12 @@ class ProjectApi:
|
|
799
821
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
800
822
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
801
823
|
) -> RESTResponseType:
|
802
|
-
"""Create
|
824
|
+
"""Create a Project
|
803
825
|
|
804
|
-
|
826
|
+
Creates a new project.
|
805
827
|
|
806
|
-
:param
|
807
|
-
:type
|
808
|
-
:param create_project_api_key_request:
|
809
|
-
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
828
|
+
:param create_project_body:
|
829
|
+
:type create_project_body: CreateProjectBody
|
810
830
|
:param _request_timeout: timeout setting for this request. If one
|
811
831
|
number provided, it will be total request
|
812
832
|
timeout. It can also be a pair (tuple) of
|
@@ -829,9 +849,8 @@ class ProjectApi:
|
|
829
849
|
:return: Returns the result object.
|
830
850
|
""" # noqa: E501
|
831
851
|
|
832
|
-
_param = self.
|
833
|
-
|
834
|
-
create_project_api_key_request=create_project_api_key_request,
|
852
|
+
_param = self._create_project_serialize(
|
853
|
+
create_project_body=create_project_body,
|
835
854
|
_request_auth=_request_auth,
|
836
855
|
_content_type=_content_type,
|
837
856
|
_headers=_headers,
|
@@ -839,7 +858,10 @@ class ProjectApi:
|
|
839
858
|
)
|
840
859
|
|
841
860
|
_response_types_map: Dict[str, Optional[str]] = {
|
842
|
-
'201': "
|
861
|
+
'201': "Project",
|
862
|
+
'401': "ErrorGeneric",
|
863
|
+
'403': "ErrorGeneric",
|
864
|
+
'404': "ErrorGeneric",
|
843
865
|
}
|
844
866
|
response_data = self.api_client.call_api(
|
845
867
|
*_param,
|
@@ -848,10 +870,9 @@ class ProjectApi:
|
|
848
870
|
return response_data.response
|
849
871
|
|
850
872
|
|
851
|
-
def
|
873
|
+
def _create_project_serialize(
|
852
874
|
self,
|
853
|
-
|
854
|
-
create_project_api_key_request,
|
875
|
+
create_project_body,
|
855
876
|
_request_auth,
|
856
877
|
_content_type,
|
857
878
|
_headers,
|
@@ -876,14 +897,12 @@ class ProjectApi:
|
|
876
897
|
_body_params: Optional[bytes] = None
|
877
898
|
|
878
899
|
# process the path parameters
|
879
|
-
if project is not None:
|
880
|
-
_path_params['project'] = project
|
881
900
|
# process the query parameters
|
882
901
|
# process the header parameters
|
883
902
|
# process the form parameters
|
884
903
|
# process the body parameter
|
885
|
-
if
|
886
|
-
_body_params =
|
904
|
+
if create_project_body is not None:
|
905
|
+
_body_params = create_project_body
|
887
906
|
|
888
907
|
|
889
908
|
# set the HTTP header `Accept`
|
@@ -915,7 +934,7 @@ class ProjectApi:
|
|
915
934
|
|
916
935
|
return self.api_client.param_serialize(
|
917
936
|
method='POST',
|
918
|
-
resource_path='/projects
|
937
|
+
resource_path='/projects',
|
919
938
|
path_params=_path_params,
|
920
939
|
query_params=_query_params,
|
921
940
|
header_params=_header_params,
|
@@ -932,10 +951,10 @@ class ProjectApi:
|
|
932
951
|
|
933
952
|
|
934
953
|
@validate_call
|
935
|
-
def
|
954
|
+
def create_project_api_key(
|
936
955
|
self,
|
937
|
-
|
938
|
-
|
956
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
957
|
+
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
939
958
|
_request_timeout: Union[
|
940
959
|
None,
|
941
960
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -948,15 +967,15 @@ class ProjectApi:
|
|
948
967
|
_content_type: Optional[StrictStr] = None,
|
949
968
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
950
969
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
951
|
-
) ->
|
952
|
-
"""
|
970
|
+
) -> ProjectApiKey:
|
971
|
+
"""Create project API key
|
953
972
|
|
954
|
-
|
973
|
+
Create an API key for a project.
|
955
974
|
|
956
|
-
:param
|
957
|
-
:type
|
958
|
-
:param
|
959
|
-
:type
|
975
|
+
:param project: The Project ID or Project slug (required)
|
976
|
+
:type project: str
|
977
|
+
:param create_project_api_key_request:
|
978
|
+
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
960
979
|
:param _request_timeout: timeout setting for this request. If one
|
961
980
|
number provided, it will be total request
|
962
981
|
timeout. It can also be a pair (tuple) of
|
@@ -979,9 +998,9 @@ class ProjectApi:
|
|
979
998
|
:return: Returns the result object.
|
980
999
|
""" # noqa: E501
|
981
1000
|
|
982
|
-
_param = self.
|
983
|
-
|
984
|
-
|
1001
|
+
_param = self._create_project_api_key_serialize(
|
1002
|
+
project=project,
|
1003
|
+
create_project_api_key_request=create_project_api_key_request,
|
985
1004
|
_request_auth=_request_auth,
|
986
1005
|
_content_type=_content_type,
|
987
1006
|
_headers=_headers,
|
@@ -989,11 +1008,7 @@ class ProjectApi:
|
|
989
1008
|
)
|
990
1009
|
|
991
1010
|
_response_types_map: Dict[str, Optional[str]] = {
|
992
|
-
'
|
993
|
-
'400': "ErrorGeneric",
|
994
|
-
'403': "ErrorGeneric",
|
995
|
-
'404': "ErrorGeneric",
|
996
|
-
'409': "ErrorGeneric",
|
1011
|
+
'201': "ProjectApiKey",
|
997
1012
|
}
|
998
1013
|
response_data = self.api_client.call_api(
|
999
1014
|
*_param,
|
@@ -1007,10 +1022,10 @@ class ProjectApi:
|
|
1007
1022
|
|
1008
1023
|
|
1009
1024
|
@validate_call
|
1010
|
-
def
|
1025
|
+
def create_project_api_key_with_http_info(
|
1011
1026
|
self,
|
1012
|
-
|
1013
|
-
|
1027
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
1028
|
+
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
1014
1029
|
_request_timeout: Union[
|
1015
1030
|
None,
|
1016
1031
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1023,15 +1038,15 @@ class ProjectApi:
|
|
1023
1038
|
_content_type: Optional[StrictStr] = None,
|
1024
1039
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1025
1040
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1026
|
-
) -> ApiResponse[
|
1027
|
-
"""
|
1041
|
+
) -> ApiResponse[ProjectApiKey]:
|
1042
|
+
"""Create project API key
|
1028
1043
|
|
1029
|
-
|
1044
|
+
Create an API key for a project.
|
1030
1045
|
|
1031
|
-
:param
|
1032
|
-
:type
|
1033
|
-
:param
|
1034
|
-
:type
|
1046
|
+
:param project: The Project ID or Project slug (required)
|
1047
|
+
:type project: str
|
1048
|
+
:param create_project_api_key_request:
|
1049
|
+
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
1035
1050
|
:param _request_timeout: timeout setting for this request. If one
|
1036
1051
|
number provided, it will be total request
|
1037
1052
|
timeout. It can also be a pair (tuple) of
|
@@ -1054,9 +1069,9 @@ class ProjectApi:
|
|
1054
1069
|
:return: Returns the result object.
|
1055
1070
|
""" # noqa: E501
|
1056
1071
|
|
1057
|
-
_param = self.
|
1058
|
-
|
1059
|
-
|
1072
|
+
_param = self._create_project_api_key_serialize(
|
1073
|
+
project=project,
|
1074
|
+
create_project_api_key_request=create_project_api_key_request,
|
1060
1075
|
_request_auth=_request_auth,
|
1061
1076
|
_content_type=_content_type,
|
1062
1077
|
_headers=_headers,
|
@@ -1064,11 +1079,7 @@ class ProjectApi:
|
|
1064
1079
|
)
|
1065
1080
|
|
1066
1081
|
_response_types_map: Dict[str, Optional[str]] = {
|
1067
|
-
'
|
1068
|
-
'400': "ErrorGeneric",
|
1069
|
-
'403': "ErrorGeneric",
|
1070
|
-
'404': "ErrorGeneric",
|
1071
|
-
'409': "ErrorGeneric",
|
1082
|
+
'201': "ProjectApiKey",
|
1072
1083
|
}
|
1073
1084
|
response_data = self.api_client.call_api(
|
1074
1085
|
*_param,
|
@@ -1082,10 +1093,10 @@ class ProjectApi:
|
|
1082
1093
|
|
1083
1094
|
|
1084
1095
|
@validate_call
|
1085
|
-
def
|
1096
|
+
def create_project_api_key_without_preload_content(
|
1086
1097
|
self,
|
1087
|
-
|
1088
|
-
|
1098
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
1099
|
+
create_project_api_key_request: Optional[CreateProjectApiKeyRequest] = None,
|
1089
1100
|
_request_timeout: Union[
|
1090
1101
|
None,
|
1091
1102
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1099,14 +1110,14 @@ class ProjectApi:
|
|
1099
1110
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1100
1111
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1101
1112
|
) -> RESTResponseType:
|
1102
|
-
"""
|
1113
|
+
"""Create project API key
|
1103
1114
|
|
1104
|
-
|
1115
|
+
Create an API key for a project.
|
1105
1116
|
|
1106
|
-
:param
|
1107
|
-
:type
|
1108
|
-
:param
|
1109
|
-
:type
|
1117
|
+
:param project: The Project ID or Project slug (required)
|
1118
|
+
:type project: str
|
1119
|
+
:param create_project_api_key_request:
|
1120
|
+
:type create_project_api_key_request: CreateProjectApiKeyRequest
|
1110
1121
|
:param _request_timeout: timeout setting for this request. If one
|
1111
1122
|
number provided, it will be total request
|
1112
1123
|
timeout. It can also be a pair (tuple) of
|
@@ -1129,9 +1140,9 @@ class ProjectApi:
|
|
1129
1140
|
:return: Returns the result object.
|
1130
1141
|
""" # noqa: E501
|
1131
1142
|
|
1132
|
-
_param = self.
|
1133
|
-
|
1134
|
-
|
1143
|
+
_param = self._create_project_api_key_serialize(
|
1144
|
+
project=project,
|
1145
|
+
create_project_api_key_request=create_project_api_key_request,
|
1135
1146
|
_request_auth=_request_auth,
|
1136
1147
|
_content_type=_content_type,
|
1137
1148
|
_headers=_headers,
|
@@ -1139,11 +1150,7 @@ class ProjectApi:
|
|
1139
1150
|
)
|
1140
1151
|
|
1141
1152
|
_response_types_map: Dict[str, Optional[str]] = {
|
1142
|
-
'
|
1143
|
-
'400': "ErrorGeneric",
|
1144
|
-
'403': "ErrorGeneric",
|
1145
|
-
'404': "ErrorGeneric",
|
1146
|
-
'409': "ErrorGeneric",
|
1153
|
+
'201': "ProjectApiKey",
|
1147
1154
|
}
|
1148
1155
|
response_data = self.api_client.call_api(
|
1149
1156
|
*_param,
|
@@ -1152,10 +1159,10 @@ class ProjectApi:
|
|
1152
1159
|
return response_data.response
|
1153
1160
|
|
1154
1161
|
|
1155
|
-
def
|
1162
|
+
def _create_project_api_key_serialize(
|
1156
1163
|
self,
|
1157
|
-
|
1158
|
-
|
1164
|
+
project,
|
1165
|
+
create_project_api_key_request,
|
1159
1166
|
_request_auth,
|
1160
1167
|
_content_type,
|
1161
1168
|
_headers,
|
@@ -1180,14 +1187,14 @@ class ProjectApi:
|
|
1180
1187
|
_body_params: Optional[bytes] = None
|
1181
1188
|
|
1182
1189
|
# process the path parameters
|
1183
|
-
if
|
1184
|
-
_path_params['
|
1185
|
-
if organization_id is not None:
|
1186
|
-
_path_params['organization_id'] = organization_id
|
1190
|
+
if project is not None:
|
1191
|
+
_path_params['project'] = project
|
1187
1192
|
# process the query parameters
|
1188
1193
|
# process the header parameters
|
1189
1194
|
# process the form parameters
|
1190
1195
|
# process the body parameter
|
1196
|
+
if create_project_api_key_request is not None:
|
1197
|
+
_body_params = create_project_api_key_request
|
1191
1198
|
|
1192
1199
|
|
1193
1200
|
# set the HTTP header `Accept`
|
@@ -1198,6 +1205,19 @@ class ProjectApi:
|
|
1198
1205
|
]
|
1199
1206
|
)
|
1200
1207
|
|
1208
|
+
# set the HTTP header `Content-Type`
|
1209
|
+
if _content_type:
|
1210
|
+
_header_params['Content-Type'] = _content_type
|
1211
|
+
else:
|
1212
|
+
_default_content_type = (
|
1213
|
+
self.api_client.select_header_content_type(
|
1214
|
+
[
|
1215
|
+
'application/json'
|
1216
|
+
]
|
1217
|
+
)
|
1218
|
+
)
|
1219
|
+
if _default_content_type is not None:
|
1220
|
+
_header_params['Content-Type'] = _default_content_type
|
1201
1221
|
|
1202
1222
|
# authentication setting
|
1203
1223
|
_auth_settings: List[str] = [
|
@@ -1205,8 +1225,8 @@ class ProjectApi:
|
|
1205
1225
|
]
|
1206
1226
|
|
1207
1227
|
return self.api_client.param_serialize(
|
1208
|
-
method='
|
1209
|
-
resource_path='/projects/{
|
1228
|
+
method='POST',
|
1229
|
+
resource_path='/projects/{project}/tokens',
|
1210
1230
|
path_params=_path_params,
|
1211
1231
|
query_params=_query_params,
|
1212
1232
|
header_params=_header_params,
|
@@ -1223,10 +1243,10 @@ class ProjectApi:
|
|
1223
1243
|
|
1224
1244
|
|
1225
1245
|
@validate_call
|
1226
|
-
def
|
1246
|
+
def delete_organization(
|
1227
1247
|
self,
|
1228
|
-
|
1229
|
-
|
1248
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
1249
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
1230
1250
|
_request_timeout: Union[
|
1231
1251
|
None,
|
1232
1252
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1240,14 +1260,14 @@ class ProjectApi:
|
|
1240
1260
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1241
1261
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1242
1262
|
) -> None:
|
1243
|
-
"""Delete
|
1263
|
+
"""Delete Enterprise SSO Organization
|
1244
1264
|
|
1245
|
-
|
1265
|
+
Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
|
1246
1266
|
|
1247
|
-
:param
|
1248
|
-
:type
|
1249
|
-
:param
|
1250
|
-
:type
|
1267
|
+
:param project_id: Project ID The project's ID. (required)
|
1268
|
+
:type project_id: str
|
1269
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
1270
|
+
:type organization_id: str
|
1251
1271
|
:param _request_timeout: timeout setting for this request. If one
|
1252
1272
|
number provided, it will be total request
|
1253
1273
|
timeout. It can also be a pair (tuple) of
|
@@ -1270,9 +1290,9 @@ class ProjectApi:
|
|
1270
1290
|
:return: Returns the result object.
|
1271
1291
|
""" # noqa: E501
|
1272
1292
|
|
1273
|
-
_param = self.
|
1274
|
-
|
1275
|
-
|
1293
|
+
_param = self._delete_organization_serialize(
|
1294
|
+
project_id=project_id,
|
1295
|
+
organization_id=organization_id,
|
1276
1296
|
_request_auth=_request_auth,
|
1277
1297
|
_content_type=_content_type,
|
1278
1298
|
_headers=_headers,
|
@@ -1281,6 +1301,10 @@ class ProjectApi:
|
|
1281
1301
|
|
1282
1302
|
_response_types_map: Dict[str, Optional[str]] = {
|
1283
1303
|
'204': None,
|
1304
|
+
'400': "ErrorGeneric",
|
1305
|
+
'403': "ErrorGeneric",
|
1306
|
+
'404': "ErrorGeneric",
|
1307
|
+
'409': "ErrorGeneric",
|
1284
1308
|
}
|
1285
1309
|
response_data = self.api_client.call_api(
|
1286
1310
|
*_param,
|
@@ -1294,10 +1318,10 @@ class ProjectApi:
|
|
1294
1318
|
|
1295
1319
|
|
1296
1320
|
@validate_call
|
1297
|
-
def
|
1321
|
+
def delete_organization_with_http_info(
|
1298
1322
|
self,
|
1299
|
-
|
1300
|
-
|
1323
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
1324
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
1301
1325
|
_request_timeout: Union[
|
1302
1326
|
None,
|
1303
1327
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1311,14 +1335,14 @@ class ProjectApi:
|
|
1311
1335
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1312
1336
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1313
1337
|
) -> ApiResponse[None]:
|
1314
|
-
"""Delete
|
1338
|
+
"""Delete Enterprise SSO Organization
|
1315
1339
|
|
1316
|
-
|
1340
|
+
Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
|
1317
1341
|
|
1318
|
-
:param
|
1319
|
-
:type
|
1320
|
-
:param
|
1321
|
-
:type
|
1342
|
+
:param project_id: Project ID The project's ID. (required)
|
1343
|
+
:type project_id: str
|
1344
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
1345
|
+
:type organization_id: str
|
1322
1346
|
:param _request_timeout: timeout setting for this request. If one
|
1323
1347
|
number provided, it will be total request
|
1324
1348
|
timeout. It can also be a pair (tuple) of
|
@@ -1341,9 +1365,9 @@ class ProjectApi:
|
|
1341
1365
|
:return: Returns the result object.
|
1342
1366
|
""" # noqa: E501
|
1343
1367
|
|
1344
|
-
_param = self.
|
1345
|
-
|
1346
|
-
|
1368
|
+
_param = self._delete_organization_serialize(
|
1369
|
+
project_id=project_id,
|
1370
|
+
organization_id=organization_id,
|
1347
1371
|
_request_auth=_request_auth,
|
1348
1372
|
_content_type=_content_type,
|
1349
1373
|
_headers=_headers,
|
@@ -1352,6 +1376,10 @@ class ProjectApi:
|
|
1352
1376
|
|
1353
1377
|
_response_types_map: Dict[str, Optional[str]] = {
|
1354
1378
|
'204': None,
|
1379
|
+
'400': "ErrorGeneric",
|
1380
|
+
'403': "ErrorGeneric",
|
1381
|
+
'404': "ErrorGeneric",
|
1382
|
+
'409': "ErrorGeneric",
|
1355
1383
|
}
|
1356
1384
|
response_data = self.api_client.call_api(
|
1357
1385
|
*_param,
|
@@ -1365,10 +1393,10 @@ class ProjectApi:
|
|
1365
1393
|
|
1366
1394
|
|
1367
1395
|
@validate_call
|
1368
|
-
def
|
1396
|
+
def delete_organization_without_preload_content(
|
1369
1397
|
self,
|
1370
|
-
|
1371
|
-
|
1398
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
1399
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
1372
1400
|
_request_timeout: Union[
|
1373
1401
|
None,
|
1374
1402
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1382,14 +1410,14 @@ class ProjectApi:
|
|
1382
1410
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1383
1411
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1384
1412
|
) -> RESTResponseType:
|
1385
|
-
"""Delete
|
1413
|
+
"""Delete Enterprise SSO Organization
|
1386
1414
|
|
1387
|
-
|
1415
|
+
Irrecoverably deletes an Enterprise SSO Organization in a project by its ID.
|
1388
1416
|
|
1389
|
-
:param
|
1390
|
-
:type
|
1391
|
-
:param
|
1392
|
-
:type
|
1417
|
+
:param project_id: Project ID The project's ID. (required)
|
1418
|
+
:type project_id: str
|
1419
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
1420
|
+
:type organization_id: str
|
1393
1421
|
:param _request_timeout: timeout setting for this request. If one
|
1394
1422
|
number provided, it will be total request
|
1395
1423
|
timeout. It can also be a pair (tuple) of
|
@@ -1412,9 +1440,9 @@ class ProjectApi:
|
|
1412
1440
|
:return: Returns the result object.
|
1413
1441
|
""" # noqa: E501
|
1414
1442
|
|
1415
|
-
_param = self.
|
1416
|
-
|
1417
|
-
|
1443
|
+
_param = self._delete_organization_serialize(
|
1444
|
+
project_id=project_id,
|
1445
|
+
organization_id=organization_id,
|
1418
1446
|
_request_auth=_request_auth,
|
1419
1447
|
_content_type=_content_type,
|
1420
1448
|
_headers=_headers,
|
@@ -1423,6 +1451,10 @@ class ProjectApi:
|
|
1423
1451
|
|
1424
1452
|
_response_types_map: Dict[str, Optional[str]] = {
|
1425
1453
|
'204': None,
|
1454
|
+
'400': "ErrorGeneric",
|
1455
|
+
'403': "ErrorGeneric",
|
1456
|
+
'404': "ErrorGeneric",
|
1457
|
+
'409': "ErrorGeneric",
|
1426
1458
|
}
|
1427
1459
|
response_data = self.api_client.call_api(
|
1428
1460
|
*_param,
|
@@ -1431,10 +1463,10 @@ class ProjectApi:
|
|
1431
1463
|
return response_data.response
|
1432
1464
|
|
1433
1465
|
|
1434
|
-
def
|
1466
|
+
def _delete_organization_serialize(
|
1435
1467
|
self,
|
1436
|
-
|
1437
|
-
|
1468
|
+
project_id,
|
1469
|
+
organization_id,
|
1438
1470
|
_request_auth,
|
1439
1471
|
_content_type,
|
1440
1472
|
_headers,
|
@@ -1459,10 +1491,10 @@ class ProjectApi:
|
|
1459
1491
|
_body_params: Optional[bytes] = None
|
1460
1492
|
|
1461
1493
|
# process the path parameters
|
1462
|
-
if
|
1463
|
-
_path_params['
|
1464
|
-
if
|
1465
|
-
_path_params['
|
1494
|
+
if project_id is not None:
|
1495
|
+
_path_params['project_id'] = project_id
|
1496
|
+
if organization_id is not None:
|
1497
|
+
_path_params['organization_id'] = organization_id
|
1466
1498
|
# process the query parameters
|
1467
1499
|
# process the header parameters
|
1468
1500
|
# process the form parameters
|
@@ -1485,7 +1517,7 @@ class ProjectApi:
|
|
1485
1517
|
|
1486
1518
|
return self.api_client.param_serialize(
|
1487
1519
|
method='DELETE',
|
1488
|
-
resource_path='/projects/{
|
1520
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}',
|
1489
1521
|
path_params=_path_params,
|
1490
1522
|
query_params=_query_params,
|
1491
1523
|
header_params=_header_params,
|
@@ -1502,10 +1534,11 @@ class ProjectApi:
|
|
1502
1534
|
|
1503
1535
|
|
1504
1536
|
@validate_call
|
1505
|
-
def
|
1537
|
+
def delete_organization_onboarding_portal_link(
|
1506
1538
|
self,
|
1507
|
-
project_id:
|
1508
|
-
organization_id:
|
1539
|
+
project_id: StrictStr,
|
1540
|
+
organization_id: StrictStr,
|
1541
|
+
onboarding_portal_link_id: StrictStr,
|
1509
1542
|
_request_timeout: Union[
|
1510
1543
|
None,
|
1511
1544
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1518,15 +1551,17 @@ class ProjectApi:
|
|
1518
1551
|
_content_type: Optional[StrictStr] = None,
|
1519
1552
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1520
1553
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1521
|
-
) ->
|
1522
|
-
"""
|
1554
|
+
) -> None:
|
1555
|
+
"""Delete an organization onboarding portal link
|
1523
1556
|
|
1524
|
-
|
1557
|
+
Deletes a onboarding portal link for an organization.
|
1525
1558
|
|
1526
|
-
:param project_id:
|
1559
|
+
:param project_id: (required)
|
1527
1560
|
:type project_id: str
|
1528
|
-
:param organization_id:
|
1561
|
+
:param organization_id: (required)
|
1529
1562
|
:type organization_id: str
|
1563
|
+
:param onboarding_portal_link_id: (required)
|
1564
|
+
:type onboarding_portal_link_id: str
|
1530
1565
|
:param _request_timeout: timeout setting for this request. If one
|
1531
1566
|
number provided, it will be total request
|
1532
1567
|
timeout. It can also be a pair (tuple) of
|
@@ -1549,9 +1584,10 @@ class ProjectApi:
|
|
1549
1584
|
:return: Returns the result object.
|
1550
1585
|
""" # noqa: E501
|
1551
1586
|
|
1552
|
-
_param = self.
|
1587
|
+
_param = self._delete_organization_onboarding_portal_link_serialize(
|
1553
1588
|
project_id=project_id,
|
1554
1589
|
organization_id=organization_id,
|
1590
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
1555
1591
|
_request_auth=_request_auth,
|
1556
1592
|
_content_type=_content_type,
|
1557
1593
|
_headers=_headers,
|
@@ -1559,7 +1595,7 @@ class ProjectApi:
|
|
1559
1595
|
)
|
1560
1596
|
|
1561
1597
|
_response_types_map: Dict[str, Optional[str]] = {
|
1562
|
-
'
|
1598
|
+
'204': None,
|
1563
1599
|
'400': "ErrorGeneric",
|
1564
1600
|
'403': "ErrorGeneric",
|
1565
1601
|
}
|
@@ -1575,10 +1611,11 @@ class ProjectApi:
|
|
1575
1611
|
|
1576
1612
|
|
1577
1613
|
@validate_call
|
1578
|
-
def
|
1614
|
+
def delete_organization_onboarding_portal_link_with_http_info(
|
1579
1615
|
self,
|
1580
|
-
project_id:
|
1581
|
-
organization_id:
|
1616
|
+
project_id: StrictStr,
|
1617
|
+
organization_id: StrictStr,
|
1618
|
+
onboarding_portal_link_id: StrictStr,
|
1582
1619
|
_request_timeout: Union[
|
1583
1620
|
None,
|
1584
1621
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1591,15 +1628,17 @@ class ProjectApi:
|
|
1591
1628
|
_content_type: Optional[StrictStr] = None,
|
1592
1629
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1593
1630
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1594
|
-
) -> ApiResponse[
|
1595
|
-
"""
|
1631
|
+
) -> ApiResponse[None]:
|
1632
|
+
"""Delete an organization onboarding portal link
|
1596
1633
|
|
1597
|
-
|
1634
|
+
Deletes a onboarding portal link for an organization.
|
1598
1635
|
|
1599
|
-
:param project_id:
|
1636
|
+
:param project_id: (required)
|
1600
1637
|
:type project_id: str
|
1601
|
-
:param organization_id:
|
1638
|
+
:param organization_id: (required)
|
1602
1639
|
:type organization_id: str
|
1640
|
+
:param onboarding_portal_link_id: (required)
|
1641
|
+
:type onboarding_portal_link_id: str
|
1603
1642
|
:param _request_timeout: timeout setting for this request. If one
|
1604
1643
|
number provided, it will be total request
|
1605
1644
|
timeout. It can also be a pair (tuple) of
|
@@ -1622,9 +1661,10 @@ class ProjectApi:
|
|
1622
1661
|
:return: Returns the result object.
|
1623
1662
|
""" # noqa: E501
|
1624
1663
|
|
1625
|
-
_param = self.
|
1664
|
+
_param = self._delete_organization_onboarding_portal_link_serialize(
|
1626
1665
|
project_id=project_id,
|
1627
1666
|
organization_id=organization_id,
|
1667
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
1628
1668
|
_request_auth=_request_auth,
|
1629
1669
|
_content_type=_content_type,
|
1630
1670
|
_headers=_headers,
|
@@ -1632,7 +1672,7 @@ class ProjectApi:
|
|
1632
1672
|
)
|
1633
1673
|
|
1634
1674
|
_response_types_map: Dict[str, Optional[str]] = {
|
1635
|
-
'
|
1675
|
+
'204': None,
|
1636
1676
|
'400': "ErrorGeneric",
|
1637
1677
|
'403': "ErrorGeneric",
|
1638
1678
|
}
|
@@ -1648,10 +1688,11 @@ class ProjectApi:
|
|
1648
1688
|
|
1649
1689
|
|
1650
1690
|
@validate_call
|
1651
|
-
def
|
1691
|
+
def delete_organization_onboarding_portal_link_without_preload_content(
|
1652
1692
|
self,
|
1653
|
-
project_id:
|
1654
|
-
organization_id:
|
1693
|
+
project_id: StrictStr,
|
1694
|
+
organization_id: StrictStr,
|
1695
|
+
onboarding_portal_link_id: StrictStr,
|
1655
1696
|
_request_timeout: Union[
|
1656
1697
|
None,
|
1657
1698
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1665,14 +1706,16 @@ class ProjectApi:
|
|
1665
1706
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1666
1707
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1667
1708
|
) -> RESTResponseType:
|
1668
|
-
"""
|
1709
|
+
"""Delete an organization onboarding portal link
|
1669
1710
|
|
1670
|
-
|
1711
|
+
Deletes a onboarding portal link for an organization.
|
1671
1712
|
|
1672
|
-
:param project_id:
|
1713
|
+
:param project_id: (required)
|
1673
1714
|
:type project_id: str
|
1674
|
-
:param organization_id:
|
1715
|
+
:param organization_id: (required)
|
1675
1716
|
:type organization_id: str
|
1717
|
+
:param onboarding_portal_link_id: (required)
|
1718
|
+
:type onboarding_portal_link_id: str
|
1676
1719
|
:param _request_timeout: timeout setting for this request. If one
|
1677
1720
|
number provided, it will be total request
|
1678
1721
|
timeout. It can also be a pair (tuple) of
|
@@ -1695,9 +1738,10 @@ class ProjectApi:
|
|
1695
1738
|
:return: Returns the result object.
|
1696
1739
|
""" # noqa: E501
|
1697
1740
|
|
1698
|
-
_param = self.
|
1741
|
+
_param = self._delete_organization_onboarding_portal_link_serialize(
|
1699
1742
|
project_id=project_id,
|
1700
1743
|
organization_id=organization_id,
|
1744
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
1701
1745
|
_request_auth=_request_auth,
|
1702
1746
|
_content_type=_content_type,
|
1703
1747
|
_headers=_headers,
|
@@ -1705,7 +1749,7 @@ class ProjectApi:
|
|
1705
1749
|
)
|
1706
1750
|
|
1707
1751
|
_response_types_map: Dict[str, Optional[str]] = {
|
1708
|
-
'
|
1752
|
+
'204': None,
|
1709
1753
|
'400': "ErrorGeneric",
|
1710
1754
|
'403': "ErrorGeneric",
|
1711
1755
|
}
|
@@ -1716,10 +1760,11 @@ class ProjectApi:
|
|
1716
1760
|
return response_data.response
|
1717
1761
|
|
1718
1762
|
|
1719
|
-
def
|
1763
|
+
def _delete_organization_onboarding_portal_link_serialize(
|
1720
1764
|
self,
|
1721
1765
|
project_id,
|
1722
1766
|
organization_id,
|
1767
|
+
onboarding_portal_link_id,
|
1723
1768
|
_request_auth,
|
1724
1769
|
_content_type,
|
1725
1770
|
_headers,
|
@@ -1748,6 +1793,8 @@ class ProjectApi:
|
|
1748
1793
|
_path_params['project_id'] = project_id
|
1749
1794
|
if organization_id is not None:
|
1750
1795
|
_path_params['organization_id'] = organization_id
|
1796
|
+
if onboarding_portal_link_id is not None:
|
1797
|
+
_path_params['onboarding_portal_link_id'] = onboarding_portal_link_id
|
1751
1798
|
# process the query parameters
|
1752
1799
|
# process the header parameters
|
1753
1800
|
# process the form parameters
|
@@ -1769,8 +1816,8 @@ class ProjectApi:
|
|
1769
1816
|
]
|
1770
1817
|
|
1771
1818
|
return self.api_client.param_serialize(
|
1772
|
-
method='
|
1773
|
-
resource_path='/projects/{project_id}/organizations/{organization_id}',
|
1819
|
+
method='DELETE',
|
1820
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}',
|
1774
1821
|
path_params=_path_params,
|
1775
1822
|
query_params=_query_params,
|
1776
1823
|
header_params=_header_params,
|
@@ -1787,9 +1834,10 @@ class ProjectApi:
|
|
1787
1834
|
|
1788
1835
|
|
1789
1836
|
@validate_call
|
1790
|
-
def
|
1837
|
+
def delete_project_api_key(
|
1791
1838
|
self,
|
1792
|
-
|
1839
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
1840
|
+
token_id: Annotated[StrictStr, Field(description="The Token ID")],
|
1793
1841
|
_request_timeout: Union[
|
1794
1842
|
None,
|
1795
1843
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1802,13 +1850,15 @@ class ProjectApi:
|
|
1802
1850
|
_content_type: Optional[StrictStr] = None,
|
1803
1851
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1804
1852
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1805
|
-
) ->
|
1806
|
-
"""
|
1853
|
+
) -> None:
|
1854
|
+
"""Delete project API key
|
1807
1855
|
|
1808
|
-
|
1856
|
+
Deletes an API key and immediately removes it.
|
1809
1857
|
|
1810
|
-
:param
|
1811
|
-
:type
|
1858
|
+
:param project: The Project ID or Project slug (required)
|
1859
|
+
:type project: str
|
1860
|
+
:param token_id: The Token ID (required)
|
1861
|
+
:type token_id: str
|
1812
1862
|
:param _request_timeout: timeout setting for this request. If one
|
1813
1863
|
number provided, it will be total request
|
1814
1864
|
timeout. It can also be a pair (tuple) of
|
@@ -1831,8 +1881,9 @@ class ProjectApi:
|
|
1831
1881
|
:return: Returns the result object.
|
1832
1882
|
""" # noqa: E501
|
1833
1883
|
|
1834
|
-
_param = self.
|
1835
|
-
|
1884
|
+
_param = self._delete_project_api_key_serialize(
|
1885
|
+
project=project,
|
1886
|
+
token_id=token_id,
|
1836
1887
|
_request_auth=_request_auth,
|
1837
1888
|
_content_type=_content_type,
|
1838
1889
|
_headers=_headers,
|
@@ -1840,10 +1891,7 @@ class ProjectApi:
|
|
1840
1891
|
)
|
1841
1892
|
|
1842
1893
|
_response_types_map: Dict[str, Optional[str]] = {
|
1843
|
-
'
|
1844
|
-
'401': "ErrorGeneric",
|
1845
|
-
'403': "ErrorGeneric",
|
1846
|
-
'404': "ErrorGeneric",
|
1894
|
+
'204': None,
|
1847
1895
|
}
|
1848
1896
|
response_data = self.api_client.call_api(
|
1849
1897
|
*_param,
|
@@ -1857,9 +1905,10 @@ class ProjectApi:
|
|
1857
1905
|
|
1858
1906
|
|
1859
1907
|
@validate_call
|
1860
|
-
def
|
1908
|
+
def delete_project_api_key_with_http_info(
|
1861
1909
|
self,
|
1862
|
-
|
1910
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
1911
|
+
token_id: Annotated[StrictStr, Field(description="The Token ID")],
|
1863
1912
|
_request_timeout: Union[
|
1864
1913
|
None,
|
1865
1914
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1872,13 +1921,15 @@ class ProjectApi:
|
|
1872
1921
|
_content_type: Optional[StrictStr] = None,
|
1873
1922
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1874
1923
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1875
|
-
) -> ApiResponse[
|
1876
|
-
"""
|
1924
|
+
) -> ApiResponse[None]:
|
1925
|
+
"""Delete project API key
|
1877
1926
|
|
1878
|
-
|
1927
|
+
Deletes an API key and immediately removes it.
|
1879
1928
|
|
1880
|
-
:param
|
1881
|
-
:type
|
1929
|
+
:param project: The Project ID or Project slug (required)
|
1930
|
+
:type project: str
|
1931
|
+
:param token_id: The Token ID (required)
|
1932
|
+
:type token_id: str
|
1882
1933
|
:param _request_timeout: timeout setting for this request. If one
|
1883
1934
|
number provided, it will be total request
|
1884
1935
|
timeout. It can also be a pair (tuple) of
|
@@ -1901,8 +1952,9 @@ class ProjectApi:
|
|
1901
1952
|
:return: Returns the result object.
|
1902
1953
|
""" # noqa: E501
|
1903
1954
|
|
1904
|
-
_param = self.
|
1905
|
-
|
1955
|
+
_param = self._delete_project_api_key_serialize(
|
1956
|
+
project=project,
|
1957
|
+
token_id=token_id,
|
1906
1958
|
_request_auth=_request_auth,
|
1907
1959
|
_content_type=_content_type,
|
1908
1960
|
_headers=_headers,
|
@@ -1910,10 +1962,7 @@ class ProjectApi:
|
|
1910
1962
|
)
|
1911
1963
|
|
1912
1964
|
_response_types_map: Dict[str, Optional[str]] = {
|
1913
|
-
'
|
1914
|
-
'401': "ErrorGeneric",
|
1915
|
-
'403': "ErrorGeneric",
|
1916
|
-
'404': "ErrorGeneric",
|
1965
|
+
'204': None,
|
1917
1966
|
}
|
1918
1967
|
response_data = self.api_client.call_api(
|
1919
1968
|
*_param,
|
@@ -1927,9 +1976,10 @@ class ProjectApi:
|
|
1927
1976
|
|
1928
1977
|
|
1929
1978
|
@validate_call
|
1930
|
-
def
|
1979
|
+
def delete_project_api_key_without_preload_content(
|
1931
1980
|
self,
|
1932
|
-
|
1981
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
1982
|
+
token_id: Annotated[StrictStr, Field(description="The Token ID")],
|
1933
1983
|
_request_timeout: Union[
|
1934
1984
|
None,
|
1935
1985
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1943,12 +1993,14 @@ class ProjectApi:
|
|
1943
1993
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1944
1994
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1945
1995
|
) -> RESTResponseType:
|
1946
|
-
"""
|
1996
|
+
"""Delete project API key
|
1947
1997
|
|
1948
|
-
|
1998
|
+
Deletes an API key and immediately removes it.
|
1949
1999
|
|
1950
|
-
:param
|
1951
|
-
:type
|
2000
|
+
:param project: The Project ID or Project slug (required)
|
2001
|
+
:type project: str
|
2002
|
+
:param token_id: The Token ID (required)
|
2003
|
+
:type token_id: str
|
1952
2004
|
:param _request_timeout: timeout setting for this request. If one
|
1953
2005
|
number provided, it will be total request
|
1954
2006
|
timeout. It can also be a pair (tuple) of
|
@@ -1971,8 +2023,9 @@ class ProjectApi:
|
|
1971
2023
|
:return: Returns the result object.
|
1972
2024
|
""" # noqa: E501
|
1973
2025
|
|
1974
|
-
_param = self.
|
1975
|
-
|
2026
|
+
_param = self._delete_project_api_key_serialize(
|
2027
|
+
project=project,
|
2028
|
+
token_id=token_id,
|
1976
2029
|
_request_auth=_request_auth,
|
1977
2030
|
_content_type=_content_type,
|
1978
2031
|
_headers=_headers,
|
@@ -1980,10 +2033,7 @@ class ProjectApi:
|
|
1980
2033
|
)
|
1981
2034
|
|
1982
2035
|
_response_types_map: Dict[str, Optional[str]] = {
|
1983
|
-
'
|
1984
|
-
'401': "ErrorGeneric",
|
1985
|
-
'403': "ErrorGeneric",
|
1986
|
-
'404': "ErrorGeneric",
|
2036
|
+
'204': None,
|
1987
2037
|
}
|
1988
2038
|
response_data = self.api_client.call_api(
|
1989
2039
|
*_param,
|
@@ -1992,9 +2042,855 @@ class ProjectApi:
|
|
1992
2042
|
return response_data.response
|
1993
2043
|
|
1994
2044
|
|
1995
|
-
def
|
2045
|
+
def _delete_project_api_key_serialize(
|
1996
2046
|
self,
|
1997
|
-
|
2047
|
+
project,
|
2048
|
+
token_id,
|
2049
|
+
_request_auth,
|
2050
|
+
_content_type,
|
2051
|
+
_headers,
|
2052
|
+
_host_index,
|
2053
|
+
) -> RequestSerialized:
|
2054
|
+
|
2055
|
+
_hosts = [
|
2056
|
+
'https://api.console.ory.sh'
|
2057
|
+
]
|
2058
|
+
_host = _hosts[_host_index]
|
2059
|
+
|
2060
|
+
_collection_formats: Dict[str, str] = {
|
2061
|
+
}
|
2062
|
+
|
2063
|
+
_path_params: Dict[str, str] = {}
|
2064
|
+
_query_params: List[Tuple[str, str]] = []
|
2065
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2066
|
+
_form_params: List[Tuple[str, str]] = []
|
2067
|
+
_files: Dict[
|
2068
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2069
|
+
] = {}
|
2070
|
+
_body_params: Optional[bytes] = None
|
2071
|
+
|
2072
|
+
# process the path parameters
|
2073
|
+
if project is not None:
|
2074
|
+
_path_params['project'] = project
|
2075
|
+
if token_id is not None:
|
2076
|
+
_path_params['token_id'] = token_id
|
2077
|
+
# process the query parameters
|
2078
|
+
# process the header parameters
|
2079
|
+
# process the form parameters
|
2080
|
+
# process the body parameter
|
2081
|
+
|
2082
|
+
|
2083
|
+
# set the HTTP header `Accept`
|
2084
|
+
if 'Accept' not in _header_params:
|
2085
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2086
|
+
[
|
2087
|
+
'application/json'
|
2088
|
+
]
|
2089
|
+
)
|
2090
|
+
|
2091
|
+
|
2092
|
+
# authentication setting
|
2093
|
+
_auth_settings: List[str] = [
|
2094
|
+
'oryWorkspaceApiKey'
|
2095
|
+
]
|
2096
|
+
|
2097
|
+
return self.api_client.param_serialize(
|
2098
|
+
method='DELETE',
|
2099
|
+
resource_path='/projects/{project}/tokens/{token_id}',
|
2100
|
+
path_params=_path_params,
|
2101
|
+
query_params=_query_params,
|
2102
|
+
header_params=_header_params,
|
2103
|
+
body=_body_params,
|
2104
|
+
post_params=_form_params,
|
2105
|
+
files=_files,
|
2106
|
+
auth_settings=_auth_settings,
|
2107
|
+
collection_formats=_collection_formats,
|
2108
|
+
_host=_host,
|
2109
|
+
_request_auth=_request_auth
|
2110
|
+
)
|
2111
|
+
|
2112
|
+
|
2113
|
+
|
2114
|
+
|
2115
|
+
@validate_call
|
2116
|
+
def get_organization(
|
2117
|
+
self,
|
2118
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2119
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2120
|
+
_request_timeout: Union[
|
2121
|
+
None,
|
2122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2123
|
+
Tuple[
|
2124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2125
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2126
|
+
]
|
2127
|
+
] = None,
|
2128
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2129
|
+
_content_type: Optional[StrictStr] = None,
|
2130
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2131
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2132
|
+
) -> GetOrganizationResponse:
|
2133
|
+
"""Get Enterprise SSO Organization by ID
|
2134
|
+
|
2135
|
+
Retrieves an Enterprise SSO Organization for a project by its ID
|
2136
|
+
|
2137
|
+
:param project_id: Project ID The project's ID. (required)
|
2138
|
+
:type project_id: str
|
2139
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2140
|
+
:type organization_id: str
|
2141
|
+
:param _request_timeout: timeout setting for this request. If one
|
2142
|
+
number provided, it will be total request
|
2143
|
+
timeout. It can also be a pair (tuple) of
|
2144
|
+
(connection, read) timeouts.
|
2145
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2146
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2147
|
+
request; this effectively ignores the
|
2148
|
+
authentication in the spec for a single request.
|
2149
|
+
:type _request_auth: dict, optional
|
2150
|
+
:param _content_type: force content-type for the request.
|
2151
|
+
:type _content_type: str, Optional
|
2152
|
+
:param _headers: set to override the headers for a single
|
2153
|
+
request; this effectively ignores the headers
|
2154
|
+
in the spec for a single request.
|
2155
|
+
:type _headers: dict, optional
|
2156
|
+
:param _host_index: set to override the host_index for a single
|
2157
|
+
request; this effectively ignores the host_index
|
2158
|
+
in the spec for a single request.
|
2159
|
+
:type _host_index: int, optional
|
2160
|
+
:return: Returns the result object.
|
2161
|
+
""" # noqa: E501
|
2162
|
+
|
2163
|
+
_param = self._get_organization_serialize(
|
2164
|
+
project_id=project_id,
|
2165
|
+
organization_id=organization_id,
|
2166
|
+
_request_auth=_request_auth,
|
2167
|
+
_content_type=_content_type,
|
2168
|
+
_headers=_headers,
|
2169
|
+
_host_index=_host_index
|
2170
|
+
)
|
2171
|
+
|
2172
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2173
|
+
'200': "GetOrganizationResponse",
|
2174
|
+
'400': "ErrorGeneric",
|
2175
|
+
'403': "ErrorGeneric",
|
2176
|
+
}
|
2177
|
+
response_data = self.api_client.call_api(
|
2178
|
+
*_param,
|
2179
|
+
_request_timeout=_request_timeout
|
2180
|
+
)
|
2181
|
+
response_data.read()
|
2182
|
+
return self.api_client.response_deserialize(
|
2183
|
+
response_data=response_data,
|
2184
|
+
response_types_map=_response_types_map,
|
2185
|
+
).data
|
2186
|
+
|
2187
|
+
|
2188
|
+
@validate_call
|
2189
|
+
def get_organization_with_http_info(
|
2190
|
+
self,
|
2191
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2192
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2193
|
+
_request_timeout: Union[
|
2194
|
+
None,
|
2195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2196
|
+
Tuple[
|
2197
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2198
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2199
|
+
]
|
2200
|
+
] = None,
|
2201
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2202
|
+
_content_type: Optional[StrictStr] = None,
|
2203
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2204
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2205
|
+
) -> ApiResponse[GetOrganizationResponse]:
|
2206
|
+
"""Get Enterprise SSO Organization by ID
|
2207
|
+
|
2208
|
+
Retrieves an Enterprise SSO Organization for a project by its ID
|
2209
|
+
|
2210
|
+
:param project_id: Project ID The project's ID. (required)
|
2211
|
+
:type project_id: str
|
2212
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2213
|
+
:type organization_id: str
|
2214
|
+
:param _request_timeout: timeout setting for this request. If one
|
2215
|
+
number provided, it will be total request
|
2216
|
+
timeout. It can also be a pair (tuple) of
|
2217
|
+
(connection, read) timeouts.
|
2218
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2219
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2220
|
+
request; this effectively ignores the
|
2221
|
+
authentication in the spec for a single request.
|
2222
|
+
:type _request_auth: dict, optional
|
2223
|
+
:param _content_type: force content-type for the request.
|
2224
|
+
:type _content_type: str, Optional
|
2225
|
+
:param _headers: set to override the headers for a single
|
2226
|
+
request; this effectively ignores the headers
|
2227
|
+
in the spec for a single request.
|
2228
|
+
:type _headers: dict, optional
|
2229
|
+
:param _host_index: set to override the host_index for a single
|
2230
|
+
request; this effectively ignores the host_index
|
2231
|
+
in the spec for a single request.
|
2232
|
+
:type _host_index: int, optional
|
2233
|
+
:return: Returns the result object.
|
2234
|
+
""" # noqa: E501
|
2235
|
+
|
2236
|
+
_param = self._get_organization_serialize(
|
2237
|
+
project_id=project_id,
|
2238
|
+
organization_id=organization_id,
|
2239
|
+
_request_auth=_request_auth,
|
2240
|
+
_content_type=_content_type,
|
2241
|
+
_headers=_headers,
|
2242
|
+
_host_index=_host_index
|
2243
|
+
)
|
2244
|
+
|
2245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2246
|
+
'200': "GetOrganizationResponse",
|
2247
|
+
'400': "ErrorGeneric",
|
2248
|
+
'403': "ErrorGeneric",
|
2249
|
+
}
|
2250
|
+
response_data = self.api_client.call_api(
|
2251
|
+
*_param,
|
2252
|
+
_request_timeout=_request_timeout
|
2253
|
+
)
|
2254
|
+
response_data.read()
|
2255
|
+
return self.api_client.response_deserialize(
|
2256
|
+
response_data=response_data,
|
2257
|
+
response_types_map=_response_types_map,
|
2258
|
+
)
|
2259
|
+
|
2260
|
+
|
2261
|
+
@validate_call
|
2262
|
+
def get_organization_without_preload_content(
|
2263
|
+
self,
|
2264
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2265
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2266
|
+
_request_timeout: Union[
|
2267
|
+
None,
|
2268
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2269
|
+
Tuple[
|
2270
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2271
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2272
|
+
]
|
2273
|
+
] = None,
|
2274
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2275
|
+
_content_type: Optional[StrictStr] = None,
|
2276
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2277
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2278
|
+
) -> RESTResponseType:
|
2279
|
+
"""Get Enterprise SSO Organization by ID
|
2280
|
+
|
2281
|
+
Retrieves an Enterprise SSO Organization for a project by its ID
|
2282
|
+
|
2283
|
+
:param project_id: Project ID The project's ID. (required)
|
2284
|
+
:type project_id: str
|
2285
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2286
|
+
:type organization_id: str
|
2287
|
+
:param _request_timeout: timeout setting for this request. If one
|
2288
|
+
number provided, it will be total request
|
2289
|
+
timeout. It can also be a pair (tuple) of
|
2290
|
+
(connection, read) timeouts.
|
2291
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2292
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2293
|
+
request; this effectively ignores the
|
2294
|
+
authentication in the spec for a single request.
|
2295
|
+
:type _request_auth: dict, optional
|
2296
|
+
:param _content_type: force content-type for the request.
|
2297
|
+
:type _content_type: str, Optional
|
2298
|
+
:param _headers: set to override the headers for a single
|
2299
|
+
request; this effectively ignores the headers
|
2300
|
+
in the spec for a single request.
|
2301
|
+
:type _headers: dict, optional
|
2302
|
+
:param _host_index: set to override the host_index for a single
|
2303
|
+
request; this effectively ignores the host_index
|
2304
|
+
in the spec for a single request.
|
2305
|
+
:type _host_index: int, optional
|
2306
|
+
:return: Returns the result object.
|
2307
|
+
""" # noqa: E501
|
2308
|
+
|
2309
|
+
_param = self._get_organization_serialize(
|
2310
|
+
project_id=project_id,
|
2311
|
+
organization_id=organization_id,
|
2312
|
+
_request_auth=_request_auth,
|
2313
|
+
_content_type=_content_type,
|
2314
|
+
_headers=_headers,
|
2315
|
+
_host_index=_host_index
|
2316
|
+
)
|
2317
|
+
|
2318
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2319
|
+
'200': "GetOrganizationResponse",
|
2320
|
+
'400': "ErrorGeneric",
|
2321
|
+
'403': "ErrorGeneric",
|
2322
|
+
}
|
2323
|
+
response_data = self.api_client.call_api(
|
2324
|
+
*_param,
|
2325
|
+
_request_timeout=_request_timeout
|
2326
|
+
)
|
2327
|
+
return response_data.response
|
2328
|
+
|
2329
|
+
|
2330
|
+
def _get_organization_serialize(
|
2331
|
+
self,
|
2332
|
+
project_id,
|
2333
|
+
organization_id,
|
2334
|
+
_request_auth,
|
2335
|
+
_content_type,
|
2336
|
+
_headers,
|
2337
|
+
_host_index,
|
2338
|
+
) -> RequestSerialized:
|
2339
|
+
|
2340
|
+
_hosts = [
|
2341
|
+
'https://api.console.ory.sh'
|
2342
|
+
]
|
2343
|
+
_host = _hosts[_host_index]
|
2344
|
+
|
2345
|
+
_collection_formats: Dict[str, str] = {
|
2346
|
+
}
|
2347
|
+
|
2348
|
+
_path_params: Dict[str, str] = {}
|
2349
|
+
_query_params: List[Tuple[str, str]] = []
|
2350
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2351
|
+
_form_params: List[Tuple[str, str]] = []
|
2352
|
+
_files: Dict[
|
2353
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2354
|
+
] = {}
|
2355
|
+
_body_params: Optional[bytes] = None
|
2356
|
+
|
2357
|
+
# process the path parameters
|
2358
|
+
if project_id is not None:
|
2359
|
+
_path_params['project_id'] = project_id
|
2360
|
+
if organization_id is not None:
|
2361
|
+
_path_params['organization_id'] = organization_id
|
2362
|
+
# process the query parameters
|
2363
|
+
# process the header parameters
|
2364
|
+
# process the form parameters
|
2365
|
+
# process the body parameter
|
2366
|
+
|
2367
|
+
|
2368
|
+
# set the HTTP header `Accept`
|
2369
|
+
if 'Accept' not in _header_params:
|
2370
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2371
|
+
[
|
2372
|
+
'application/json'
|
2373
|
+
]
|
2374
|
+
)
|
2375
|
+
|
2376
|
+
|
2377
|
+
# authentication setting
|
2378
|
+
_auth_settings: List[str] = [
|
2379
|
+
'oryWorkspaceApiKey'
|
2380
|
+
]
|
2381
|
+
|
2382
|
+
return self.api_client.param_serialize(
|
2383
|
+
method='GET',
|
2384
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}',
|
2385
|
+
path_params=_path_params,
|
2386
|
+
query_params=_query_params,
|
2387
|
+
header_params=_header_params,
|
2388
|
+
body=_body_params,
|
2389
|
+
post_params=_form_params,
|
2390
|
+
files=_files,
|
2391
|
+
auth_settings=_auth_settings,
|
2392
|
+
collection_formats=_collection_formats,
|
2393
|
+
_host=_host,
|
2394
|
+
_request_auth=_request_auth
|
2395
|
+
)
|
2396
|
+
|
2397
|
+
|
2398
|
+
|
2399
|
+
|
2400
|
+
@validate_call
|
2401
|
+
def get_organization_onboarding_portal_links(
|
2402
|
+
self,
|
2403
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2404
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2405
|
+
_request_timeout: Union[
|
2406
|
+
None,
|
2407
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2408
|
+
Tuple[
|
2409
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2410
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2411
|
+
]
|
2412
|
+
] = None,
|
2413
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2414
|
+
_content_type: Optional[StrictStr] = None,
|
2415
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2416
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2417
|
+
) -> OrganizationOnboardingPortalLinksResponse:
|
2418
|
+
"""Get the organization onboarding portal links
|
2419
|
+
|
2420
|
+
Retrieves the organization onboarding portal links.
|
2421
|
+
|
2422
|
+
:param project_id: Project ID The project's ID. (required)
|
2423
|
+
:type project_id: str
|
2424
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2425
|
+
:type organization_id: str
|
2426
|
+
:param _request_timeout: timeout setting for this request. If one
|
2427
|
+
number provided, it will be total request
|
2428
|
+
timeout. It can also be a pair (tuple) of
|
2429
|
+
(connection, read) timeouts.
|
2430
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2431
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2432
|
+
request; this effectively ignores the
|
2433
|
+
authentication in the spec for a single request.
|
2434
|
+
:type _request_auth: dict, optional
|
2435
|
+
:param _content_type: force content-type for the request.
|
2436
|
+
:type _content_type: str, Optional
|
2437
|
+
:param _headers: set to override the headers for a single
|
2438
|
+
request; this effectively ignores the headers
|
2439
|
+
in the spec for a single request.
|
2440
|
+
:type _headers: dict, optional
|
2441
|
+
:param _host_index: set to override the host_index for a single
|
2442
|
+
request; this effectively ignores the host_index
|
2443
|
+
in the spec for a single request.
|
2444
|
+
:type _host_index: int, optional
|
2445
|
+
:return: Returns the result object.
|
2446
|
+
""" # noqa: E501
|
2447
|
+
|
2448
|
+
_param = self._get_organization_onboarding_portal_links_serialize(
|
2449
|
+
project_id=project_id,
|
2450
|
+
organization_id=organization_id,
|
2451
|
+
_request_auth=_request_auth,
|
2452
|
+
_content_type=_content_type,
|
2453
|
+
_headers=_headers,
|
2454
|
+
_host_index=_host_index
|
2455
|
+
)
|
2456
|
+
|
2457
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2458
|
+
'200': "OrganizationOnboardingPortalLinksResponse",
|
2459
|
+
'400': "ErrorGeneric",
|
2460
|
+
'403': "ErrorGeneric",
|
2461
|
+
}
|
2462
|
+
response_data = self.api_client.call_api(
|
2463
|
+
*_param,
|
2464
|
+
_request_timeout=_request_timeout
|
2465
|
+
)
|
2466
|
+
response_data.read()
|
2467
|
+
return self.api_client.response_deserialize(
|
2468
|
+
response_data=response_data,
|
2469
|
+
response_types_map=_response_types_map,
|
2470
|
+
).data
|
2471
|
+
|
2472
|
+
|
2473
|
+
@validate_call
|
2474
|
+
def get_organization_onboarding_portal_links_with_http_info(
|
2475
|
+
self,
|
2476
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2477
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2478
|
+
_request_timeout: Union[
|
2479
|
+
None,
|
2480
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2481
|
+
Tuple[
|
2482
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2483
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2484
|
+
]
|
2485
|
+
] = None,
|
2486
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2487
|
+
_content_type: Optional[StrictStr] = None,
|
2488
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2489
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2490
|
+
) -> ApiResponse[OrganizationOnboardingPortalLinksResponse]:
|
2491
|
+
"""Get the organization onboarding portal links
|
2492
|
+
|
2493
|
+
Retrieves the organization onboarding portal links.
|
2494
|
+
|
2495
|
+
:param project_id: Project ID The project's ID. (required)
|
2496
|
+
:type project_id: str
|
2497
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2498
|
+
:type organization_id: str
|
2499
|
+
:param _request_timeout: timeout setting for this request. If one
|
2500
|
+
number provided, it will be total request
|
2501
|
+
timeout. It can also be a pair (tuple) of
|
2502
|
+
(connection, read) timeouts.
|
2503
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2504
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2505
|
+
request; this effectively ignores the
|
2506
|
+
authentication in the spec for a single request.
|
2507
|
+
:type _request_auth: dict, optional
|
2508
|
+
:param _content_type: force content-type for the request.
|
2509
|
+
:type _content_type: str, Optional
|
2510
|
+
:param _headers: set to override the headers for a single
|
2511
|
+
request; this effectively ignores the headers
|
2512
|
+
in the spec for a single request.
|
2513
|
+
:type _headers: dict, optional
|
2514
|
+
:param _host_index: set to override the host_index for a single
|
2515
|
+
request; this effectively ignores the host_index
|
2516
|
+
in the spec for a single request.
|
2517
|
+
:type _host_index: int, optional
|
2518
|
+
:return: Returns the result object.
|
2519
|
+
""" # noqa: E501
|
2520
|
+
|
2521
|
+
_param = self._get_organization_onboarding_portal_links_serialize(
|
2522
|
+
project_id=project_id,
|
2523
|
+
organization_id=organization_id,
|
2524
|
+
_request_auth=_request_auth,
|
2525
|
+
_content_type=_content_type,
|
2526
|
+
_headers=_headers,
|
2527
|
+
_host_index=_host_index
|
2528
|
+
)
|
2529
|
+
|
2530
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2531
|
+
'200': "OrganizationOnboardingPortalLinksResponse",
|
2532
|
+
'400': "ErrorGeneric",
|
2533
|
+
'403': "ErrorGeneric",
|
2534
|
+
}
|
2535
|
+
response_data = self.api_client.call_api(
|
2536
|
+
*_param,
|
2537
|
+
_request_timeout=_request_timeout
|
2538
|
+
)
|
2539
|
+
response_data.read()
|
2540
|
+
return self.api_client.response_deserialize(
|
2541
|
+
response_data=response_data,
|
2542
|
+
response_types_map=_response_types_map,
|
2543
|
+
)
|
2544
|
+
|
2545
|
+
|
2546
|
+
@validate_call
|
2547
|
+
def get_organization_onboarding_portal_links_without_preload_content(
|
2548
|
+
self,
|
2549
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2550
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
2551
|
+
_request_timeout: Union[
|
2552
|
+
None,
|
2553
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2554
|
+
Tuple[
|
2555
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2556
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2557
|
+
]
|
2558
|
+
] = None,
|
2559
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2560
|
+
_content_type: Optional[StrictStr] = None,
|
2561
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2562
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2563
|
+
) -> RESTResponseType:
|
2564
|
+
"""Get the organization onboarding portal links
|
2565
|
+
|
2566
|
+
Retrieves the organization onboarding portal links.
|
2567
|
+
|
2568
|
+
:param project_id: Project ID The project's ID. (required)
|
2569
|
+
:type project_id: str
|
2570
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
2571
|
+
:type organization_id: str
|
2572
|
+
:param _request_timeout: timeout setting for this request. If one
|
2573
|
+
number provided, it will be total request
|
2574
|
+
timeout. It can also be a pair (tuple) of
|
2575
|
+
(connection, read) timeouts.
|
2576
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2577
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2578
|
+
request; this effectively ignores the
|
2579
|
+
authentication in the spec for a single request.
|
2580
|
+
:type _request_auth: dict, optional
|
2581
|
+
:param _content_type: force content-type for the request.
|
2582
|
+
:type _content_type: str, Optional
|
2583
|
+
:param _headers: set to override the headers for a single
|
2584
|
+
request; this effectively ignores the headers
|
2585
|
+
in the spec for a single request.
|
2586
|
+
:type _headers: dict, optional
|
2587
|
+
:param _host_index: set to override the host_index for a single
|
2588
|
+
request; this effectively ignores the host_index
|
2589
|
+
in the spec for a single request.
|
2590
|
+
:type _host_index: int, optional
|
2591
|
+
:return: Returns the result object.
|
2592
|
+
""" # noqa: E501
|
2593
|
+
|
2594
|
+
_param = self._get_organization_onboarding_portal_links_serialize(
|
2595
|
+
project_id=project_id,
|
2596
|
+
organization_id=organization_id,
|
2597
|
+
_request_auth=_request_auth,
|
2598
|
+
_content_type=_content_type,
|
2599
|
+
_headers=_headers,
|
2600
|
+
_host_index=_host_index
|
2601
|
+
)
|
2602
|
+
|
2603
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2604
|
+
'200': "OrganizationOnboardingPortalLinksResponse",
|
2605
|
+
'400': "ErrorGeneric",
|
2606
|
+
'403': "ErrorGeneric",
|
2607
|
+
}
|
2608
|
+
response_data = self.api_client.call_api(
|
2609
|
+
*_param,
|
2610
|
+
_request_timeout=_request_timeout
|
2611
|
+
)
|
2612
|
+
return response_data.response
|
2613
|
+
|
2614
|
+
|
2615
|
+
def _get_organization_onboarding_portal_links_serialize(
|
2616
|
+
self,
|
2617
|
+
project_id,
|
2618
|
+
organization_id,
|
2619
|
+
_request_auth,
|
2620
|
+
_content_type,
|
2621
|
+
_headers,
|
2622
|
+
_host_index,
|
2623
|
+
) -> RequestSerialized:
|
2624
|
+
|
2625
|
+
_hosts = [
|
2626
|
+
'https://api.console.ory.sh'
|
2627
|
+
]
|
2628
|
+
_host = _hosts[_host_index]
|
2629
|
+
|
2630
|
+
_collection_formats: Dict[str, str] = {
|
2631
|
+
}
|
2632
|
+
|
2633
|
+
_path_params: Dict[str, str] = {}
|
2634
|
+
_query_params: List[Tuple[str, str]] = []
|
2635
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2636
|
+
_form_params: List[Tuple[str, str]] = []
|
2637
|
+
_files: Dict[
|
2638
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2639
|
+
] = {}
|
2640
|
+
_body_params: Optional[bytes] = None
|
2641
|
+
|
2642
|
+
# process the path parameters
|
2643
|
+
if project_id is not None:
|
2644
|
+
_path_params['project_id'] = project_id
|
2645
|
+
if organization_id is not None:
|
2646
|
+
_path_params['organization_id'] = organization_id
|
2647
|
+
# process the query parameters
|
2648
|
+
# process the header parameters
|
2649
|
+
# process the form parameters
|
2650
|
+
# process the body parameter
|
2651
|
+
|
2652
|
+
|
2653
|
+
# set the HTTP header `Accept`
|
2654
|
+
if 'Accept' not in _header_params:
|
2655
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
2656
|
+
[
|
2657
|
+
'application/json'
|
2658
|
+
]
|
2659
|
+
)
|
2660
|
+
|
2661
|
+
|
2662
|
+
# authentication setting
|
2663
|
+
_auth_settings: List[str] = [
|
2664
|
+
'oryWorkspaceApiKey'
|
2665
|
+
]
|
2666
|
+
|
2667
|
+
return self.api_client.param_serialize(
|
2668
|
+
method='GET',
|
2669
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links',
|
2670
|
+
path_params=_path_params,
|
2671
|
+
query_params=_query_params,
|
2672
|
+
header_params=_header_params,
|
2673
|
+
body=_body_params,
|
2674
|
+
post_params=_form_params,
|
2675
|
+
files=_files,
|
2676
|
+
auth_settings=_auth_settings,
|
2677
|
+
collection_formats=_collection_formats,
|
2678
|
+
_host=_host,
|
2679
|
+
_request_auth=_request_auth
|
2680
|
+
)
|
2681
|
+
|
2682
|
+
|
2683
|
+
|
2684
|
+
|
2685
|
+
@validate_call
|
2686
|
+
def get_project(
|
2687
|
+
self,
|
2688
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2689
|
+
_request_timeout: Union[
|
2690
|
+
None,
|
2691
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2692
|
+
Tuple[
|
2693
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2694
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2695
|
+
]
|
2696
|
+
] = None,
|
2697
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2698
|
+
_content_type: Optional[StrictStr] = None,
|
2699
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2700
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2701
|
+
) -> Project:
|
2702
|
+
"""Get a Project
|
2703
|
+
|
2704
|
+
Get a projects you have access to by its ID.
|
2705
|
+
|
2706
|
+
:param project_id: Project ID The project's ID. (required)
|
2707
|
+
:type project_id: str
|
2708
|
+
:param _request_timeout: timeout setting for this request. If one
|
2709
|
+
number provided, it will be total request
|
2710
|
+
timeout. It can also be a pair (tuple) of
|
2711
|
+
(connection, read) timeouts.
|
2712
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2713
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2714
|
+
request; this effectively ignores the
|
2715
|
+
authentication in the spec for a single request.
|
2716
|
+
:type _request_auth: dict, optional
|
2717
|
+
:param _content_type: force content-type for the request.
|
2718
|
+
:type _content_type: str, Optional
|
2719
|
+
:param _headers: set to override the headers for a single
|
2720
|
+
request; this effectively ignores the headers
|
2721
|
+
in the spec for a single request.
|
2722
|
+
:type _headers: dict, optional
|
2723
|
+
:param _host_index: set to override the host_index for a single
|
2724
|
+
request; this effectively ignores the host_index
|
2725
|
+
in the spec for a single request.
|
2726
|
+
:type _host_index: int, optional
|
2727
|
+
:return: Returns the result object.
|
2728
|
+
""" # noqa: E501
|
2729
|
+
|
2730
|
+
_param = self._get_project_serialize(
|
2731
|
+
project_id=project_id,
|
2732
|
+
_request_auth=_request_auth,
|
2733
|
+
_content_type=_content_type,
|
2734
|
+
_headers=_headers,
|
2735
|
+
_host_index=_host_index
|
2736
|
+
)
|
2737
|
+
|
2738
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2739
|
+
'200': "Project",
|
2740
|
+
'401': "ErrorGeneric",
|
2741
|
+
'403': "ErrorGeneric",
|
2742
|
+
'404': "ErrorGeneric",
|
2743
|
+
}
|
2744
|
+
response_data = self.api_client.call_api(
|
2745
|
+
*_param,
|
2746
|
+
_request_timeout=_request_timeout
|
2747
|
+
)
|
2748
|
+
response_data.read()
|
2749
|
+
return self.api_client.response_deserialize(
|
2750
|
+
response_data=response_data,
|
2751
|
+
response_types_map=_response_types_map,
|
2752
|
+
).data
|
2753
|
+
|
2754
|
+
|
2755
|
+
@validate_call
|
2756
|
+
def get_project_with_http_info(
|
2757
|
+
self,
|
2758
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2759
|
+
_request_timeout: Union[
|
2760
|
+
None,
|
2761
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2762
|
+
Tuple[
|
2763
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2764
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2765
|
+
]
|
2766
|
+
] = None,
|
2767
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2768
|
+
_content_type: Optional[StrictStr] = None,
|
2769
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2770
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2771
|
+
) -> ApiResponse[Project]:
|
2772
|
+
"""Get a Project
|
2773
|
+
|
2774
|
+
Get a projects you have access to by its ID.
|
2775
|
+
|
2776
|
+
:param project_id: Project ID The project's ID. (required)
|
2777
|
+
:type project_id: str
|
2778
|
+
:param _request_timeout: timeout setting for this request. If one
|
2779
|
+
number provided, it will be total request
|
2780
|
+
timeout. It can also be a pair (tuple) of
|
2781
|
+
(connection, read) timeouts.
|
2782
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2783
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2784
|
+
request; this effectively ignores the
|
2785
|
+
authentication in the spec for a single request.
|
2786
|
+
:type _request_auth: dict, optional
|
2787
|
+
:param _content_type: force content-type for the request.
|
2788
|
+
:type _content_type: str, Optional
|
2789
|
+
:param _headers: set to override the headers for a single
|
2790
|
+
request; this effectively ignores the headers
|
2791
|
+
in the spec for a single request.
|
2792
|
+
:type _headers: dict, optional
|
2793
|
+
:param _host_index: set to override the host_index for a single
|
2794
|
+
request; this effectively ignores the host_index
|
2795
|
+
in the spec for a single request.
|
2796
|
+
:type _host_index: int, optional
|
2797
|
+
:return: Returns the result object.
|
2798
|
+
""" # noqa: E501
|
2799
|
+
|
2800
|
+
_param = self._get_project_serialize(
|
2801
|
+
project_id=project_id,
|
2802
|
+
_request_auth=_request_auth,
|
2803
|
+
_content_type=_content_type,
|
2804
|
+
_headers=_headers,
|
2805
|
+
_host_index=_host_index
|
2806
|
+
)
|
2807
|
+
|
2808
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2809
|
+
'200': "Project",
|
2810
|
+
'401': "ErrorGeneric",
|
2811
|
+
'403': "ErrorGeneric",
|
2812
|
+
'404': "ErrorGeneric",
|
2813
|
+
}
|
2814
|
+
response_data = self.api_client.call_api(
|
2815
|
+
*_param,
|
2816
|
+
_request_timeout=_request_timeout
|
2817
|
+
)
|
2818
|
+
response_data.read()
|
2819
|
+
return self.api_client.response_deserialize(
|
2820
|
+
response_data=response_data,
|
2821
|
+
response_types_map=_response_types_map,
|
2822
|
+
)
|
2823
|
+
|
2824
|
+
|
2825
|
+
@validate_call
|
2826
|
+
def get_project_without_preload_content(
|
2827
|
+
self,
|
2828
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2829
|
+
_request_timeout: Union[
|
2830
|
+
None,
|
2831
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2832
|
+
Tuple[
|
2833
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2834
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2835
|
+
]
|
2836
|
+
] = None,
|
2837
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2838
|
+
_content_type: Optional[StrictStr] = None,
|
2839
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2840
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2841
|
+
) -> RESTResponseType:
|
2842
|
+
"""Get a Project
|
2843
|
+
|
2844
|
+
Get a projects you have access to by its ID.
|
2845
|
+
|
2846
|
+
:param project_id: Project ID The project's ID. (required)
|
2847
|
+
:type project_id: str
|
2848
|
+
:param _request_timeout: timeout setting for this request. If one
|
2849
|
+
number provided, it will be total request
|
2850
|
+
timeout. It can also be a pair (tuple) of
|
2851
|
+
(connection, read) timeouts.
|
2852
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2853
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2854
|
+
request; this effectively ignores the
|
2855
|
+
authentication in the spec for a single request.
|
2856
|
+
:type _request_auth: dict, optional
|
2857
|
+
:param _content_type: force content-type for the request.
|
2858
|
+
:type _content_type: str, Optional
|
2859
|
+
:param _headers: set to override the headers for a single
|
2860
|
+
request; this effectively ignores the headers
|
2861
|
+
in the spec for a single request.
|
2862
|
+
:type _headers: dict, optional
|
2863
|
+
:param _host_index: set to override the host_index for a single
|
2864
|
+
request; this effectively ignores the host_index
|
2865
|
+
in the spec for a single request.
|
2866
|
+
:type _host_index: int, optional
|
2867
|
+
:return: Returns the result object.
|
2868
|
+
""" # noqa: E501
|
2869
|
+
|
2870
|
+
_param = self._get_project_serialize(
|
2871
|
+
project_id=project_id,
|
2872
|
+
_request_auth=_request_auth,
|
2873
|
+
_content_type=_content_type,
|
2874
|
+
_headers=_headers,
|
2875
|
+
_host_index=_host_index
|
2876
|
+
)
|
2877
|
+
|
2878
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
2879
|
+
'200': "Project",
|
2880
|
+
'401': "ErrorGeneric",
|
2881
|
+
'403': "ErrorGeneric",
|
2882
|
+
'404': "ErrorGeneric",
|
2883
|
+
}
|
2884
|
+
response_data = self.api_client.call_api(
|
2885
|
+
*_param,
|
2886
|
+
_request_timeout=_request_timeout
|
2887
|
+
)
|
2888
|
+
return response_data.response
|
2889
|
+
|
2890
|
+
|
2891
|
+
def _get_project_serialize(
|
2892
|
+
self,
|
2893
|
+
project_id,
|
1998
2894
|
_request_auth,
|
1999
2895
|
_content_type,
|
2000
2896
|
_headers,
|
@@ -2043,7 +2939,277 @@ class ProjectApi:
|
|
2043
2939
|
|
2044
2940
|
return self.api_client.param_serialize(
|
2045
2941
|
method='GET',
|
2046
|
-
resource_path='/projects/{project_id}',
|
2942
|
+
resource_path='/projects/{project_id}',
|
2943
|
+
path_params=_path_params,
|
2944
|
+
query_params=_query_params,
|
2945
|
+
header_params=_header_params,
|
2946
|
+
body=_body_params,
|
2947
|
+
post_params=_form_params,
|
2948
|
+
files=_files,
|
2949
|
+
auth_settings=_auth_settings,
|
2950
|
+
collection_formats=_collection_formats,
|
2951
|
+
_host=_host,
|
2952
|
+
_request_auth=_request_auth
|
2953
|
+
)
|
2954
|
+
|
2955
|
+
|
2956
|
+
|
2957
|
+
|
2958
|
+
@validate_call
|
2959
|
+
def get_project_members(
|
2960
|
+
self,
|
2961
|
+
project: StrictStr,
|
2962
|
+
_request_timeout: Union[
|
2963
|
+
None,
|
2964
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2965
|
+
Tuple[
|
2966
|
+
Annotated[StrictFloat, Field(gt=0)],
|
2967
|
+
Annotated[StrictFloat, Field(gt=0)]
|
2968
|
+
]
|
2969
|
+
] = None,
|
2970
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2971
|
+
_content_type: Optional[StrictStr] = None,
|
2972
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2973
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2974
|
+
) -> List[ProjectMember]:
|
2975
|
+
"""Get all members associated with this project
|
2976
|
+
|
2977
|
+
This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
|
2978
|
+
|
2979
|
+
:param project: (required)
|
2980
|
+
:type project: str
|
2981
|
+
:param _request_timeout: timeout setting for this request. If one
|
2982
|
+
number provided, it will be total request
|
2983
|
+
timeout. It can also be a pair (tuple) of
|
2984
|
+
(connection, read) timeouts.
|
2985
|
+
:type _request_timeout: int, tuple(int, int), optional
|
2986
|
+
:param _request_auth: set to override the auth_settings for an a single
|
2987
|
+
request; this effectively ignores the
|
2988
|
+
authentication in the spec for a single request.
|
2989
|
+
:type _request_auth: dict, optional
|
2990
|
+
:param _content_type: force content-type for the request.
|
2991
|
+
:type _content_type: str, Optional
|
2992
|
+
:param _headers: set to override the headers for a single
|
2993
|
+
request; this effectively ignores the headers
|
2994
|
+
in the spec for a single request.
|
2995
|
+
:type _headers: dict, optional
|
2996
|
+
:param _host_index: set to override the host_index for a single
|
2997
|
+
request; this effectively ignores the host_index
|
2998
|
+
in the spec for a single request.
|
2999
|
+
:type _host_index: int, optional
|
3000
|
+
:return: Returns the result object.
|
3001
|
+
""" # noqa: E501
|
3002
|
+
|
3003
|
+
_param = self._get_project_members_serialize(
|
3004
|
+
project=project,
|
3005
|
+
_request_auth=_request_auth,
|
3006
|
+
_content_type=_content_type,
|
3007
|
+
_headers=_headers,
|
3008
|
+
_host_index=_host_index
|
3009
|
+
)
|
3010
|
+
|
3011
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3012
|
+
'200': "List[ProjectMember]",
|
3013
|
+
'401': "GenericError",
|
3014
|
+
'406': "GenericError",
|
3015
|
+
}
|
3016
|
+
response_data = self.api_client.call_api(
|
3017
|
+
*_param,
|
3018
|
+
_request_timeout=_request_timeout
|
3019
|
+
)
|
3020
|
+
response_data.read()
|
3021
|
+
return self.api_client.response_deserialize(
|
3022
|
+
response_data=response_data,
|
3023
|
+
response_types_map=_response_types_map,
|
3024
|
+
).data
|
3025
|
+
|
3026
|
+
|
3027
|
+
@validate_call
|
3028
|
+
def get_project_members_with_http_info(
|
3029
|
+
self,
|
3030
|
+
project: StrictStr,
|
3031
|
+
_request_timeout: Union[
|
3032
|
+
None,
|
3033
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3034
|
+
Tuple[
|
3035
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3036
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3037
|
+
]
|
3038
|
+
] = None,
|
3039
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3040
|
+
_content_type: Optional[StrictStr] = None,
|
3041
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3042
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3043
|
+
) -> ApiResponse[List[ProjectMember]]:
|
3044
|
+
"""Get all members associated with this project
|
3045
|
+
|
3046
|
+
This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
|
3047
|
+
|
3048
|
+
:param project: (required)
|
3049
|
+
:type project: str
|
3050
|
+
:param _request_timeout: timeout setting for this request. If one
|
3051
|
+
number provided, it will be total request
|
3052
|
+
timeout. It can also be a pair (tuple) of
|
3053
|
+
(connection, read) timeouts.
|
3054
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3055
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3056
|
+
request; this effectively ignores the
|
3057
|
+
authentication in the spec for a single request.
|
3058
|
+
:type _request_auth: dict, optional
|
3059
|
+
:param _content_type: force content-type for the request.
|
3060
|
+
:type _content_type: str, Optional
|
3061
|
+
:param _headers: set to override the headers for a single
|
3062
|
+
request; this effectively ignores the headers
|
3063
|
+
in the spec for a single request.
|
3064
|
+
:type _headers: dict, optional
|
3065
|
+
:param _host_index: set to override the host_index for a single
|
3066
|
+
request; this effectively ignores the host_index
|
3067
|
+
in the spec for a single request.
|
3068
|
+
:type _host_index: int, optional
|
3069
|
+
:return: Returns the result object.
|
3070
|
+
""" # noqa: E501
|
3071
|
+
|
3072
|
+
_param = self._get_project_members_serialize(
|
3073
|
+
project=project,
|
3074
|
+
_request_auth=_request_auth,
|
3075
|
+
_content_type=_content_type,
|
3076
|
+
_headers=_headers,
|
3077
|
+
_host_index=_host_index
|
3078
|
+
)
|
3079
|
+
|
3080
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3081
|
+
'200': "List[ProjectMember]",
|
3082
|
+
'401': "GenericError",
|
3083
|
+
'406': "GenericError",
|
3084
|
+
}
|
3085
|
+
response_data = self.api_client.call_api(
|
3086
|
+
*_param,
|
3087
|
+
_request_timeout=_request_timeout
|
3088
|
+
)
|
3089
|
+
response_data.read()
|
3090
|
+
return self.api_client.response_deserialize(
|
3091
|
+
response_data=response_data,
|
3092
|
+
response_types_map=_response_types_map,
|
3093
|
+
)
|
3094
|
+
|
3095
|
+
|
3096
|
+
@validate_call
|
3097
|
+
def get_project_members_without_preload_content(
|
3098
|
+
self,
|
3099
|
+
project: StrictStr,
|
3100
|
+
_request_timeout: Union[
|
3101
|
+
None,
|
3102
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3103
|
+
Tuple[
|
3104
|
+
Annotated[StrictFloat, Field(gt=0)],
|
3105
|
+
Annotated[StrictFloat, Field(gt=0)]
|
3106
|
+
]
|
3107
|
+
] = None,
|
3108
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3109
|
+
_content_type: Optional[StrictStr] = None,
|
3110
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3111
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3112
|
+
) -> RESTResponseType:
|
3113
|
+
"""Get all members associated with this project
|
3114
|
+
|
3115
|
+
This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`.
|
3116
|
+
|
3117
|
+
:param project: (required)
|
3118
|
+
:type project: str
|
3119
|
+
:param _request_timeout: timeout setting for this request. If one
|
3120
|
+
number provided, it will be total request
|
3121
|
+
timeout. It can also be a pair (tuple) of
|
3122
|
+
(connection, read) timeouts.
|
3123
|
+
:type _request_timeout: int, tuple(int, int), optional
|
3124
|
+
:param _request_auth: set to override the auth_settings for an a single
|
3125
|
+
request; this effectively ignores the
|
3126
|
+
authentication in the spec for a single request.
|
3127
|
+
:type _request_auth: dict, optional
|
3128
|
+
:param _content_type: force content-type for the request.
|
3129
|
+
:type _content_type: str, Optional
|
3130
|
+
:param _headers: set to override the headers for a single
|
3131
|
+
request; this effectively ignores the headers
|
3132
|
+
in the spec for a single request.
|
3133
|
+
:type _headers: dict, optional
|
3134
|
+
:param _host_index: set to override the host_index for a single
|
3135
|
+
request; this effectively ignores the host_index
|
3136
|
+
in the spec for a single request.
|
3137
|
+
:type _host_index: int, optional
|
3138
|
+
:return: Returns the result object.
|
3139
|
+
""" # noqa: E501
|
3140
|
+
|
3141
|
+
_param = self._get_project_members_serialize(
|
3142
|
+
project=project,
|
3143
|
+
_request_auth=_request_auth,
|
3144
|
+
_content_type=_content_type,
|
3145
|
+
_headers=_headers,
|
3146
|
+
_host_index=_host_index
|
3147
|
+
)
|
3148
|
+
|
3149
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
3150
|
+
'200': "List[ProjectMember]",
|
3151
|
+
'401': "GenericError",
|
3152
|
+
'406': "GenericError",
|
3153
|
+
}
|
3154
|
+
response_data = self.api_client.call_api(
|
3155
|
+
*_param,
|
3156
|
+
_request_timeout=_request_timeout
|
3157
|
+
)
|
3158
|
+
return response_data.response
|
3159
|
+
|
3160
|
+
|
3161
|
+
def _get_project_members_serialize(
|
3162
|
+
self,
|
3163
|
+
project,
|
3164
|
+
_request_auth,
|
3165
|
+
_content_type,
|
3166
|
+
_headers,
|
3167
|
+
_host_index,
|
3168
|
+
) -> RequestSerialized:
|
3169
|
+
|
3170
|
+
_hosts = [
|
3171
|
+
'https://api.console.ory.sh'
|
3172
|
+
]
|
3173
|
+
_host = _hosts[_host_index]
|
3174
|
+
|
3175
|
+
_collection_formats: Dict[str, str] = {
|
3176
|
+
}
|
3177
|
+
|
3178
|
+
_path_params: Dict[str, str] = {}
|
3179
|
+
_query_params: List[Tuple[str, str]] = []
|
3180
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
3181
|
+
_form_params: List[Tuple[str, str]] = []
|
3182
|
+
_files: Dict[
|
3183
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
3184
|
+
] = {}
|
3185
|
+
_body_params: Optional[bytes] = None
|
3186
|
+
|
3187
|
+
# process the path parameters
|
3188
|
+
if project is not None:
|
3189
|
+
_path_params['project'] = project
|
3190
|
+
# process the query parameters
|
3191
|
+
# process the header parameters
|
3192
|
+
# process the form parameters
|
3193
|
+
# process the body parameter
|
3194
|
+
|
3195
|
+
|
3196
|
+
# set the HTTP header `Accept`
|
3197
|
+
if 'Accept' not in _header_params:
|
3198
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
3199
|
+
[
|
3200
|
+
'application/json'
|
3201
|
+
]
|
3202
|
+
)
|
3203
|
+
|
3204
|
+
|
3205
|
+
# authentication setting
|
3206
|
+
_auth_settings: List[str] = [
|
3207
|
+
'oryWorkspaceApiKey'
|
3208
|
+
]
|
3209
|
+
|
3210
|
+
return self.api_client.param_serialize(
|
3211
|
+
method='GET',
|
3212
|
+
resource_path='/projects/{project}/members',
|
2047
3213
|
path_params=_path_params,
|
2048
3214
|
query_params=_query_params,
|
2049
3215
|
header_params=_header_params,
|
@@ -2060,9 +3226,12 @@ class ProjectApi:
|
|
2060
3226
|
|
2061
3227
|
|
2062
3228
|
@validate_call
|
2063
|
-
def
|
3229
|
+
def list_organizations(
|
2064
3230
|
self,
|
2065
|
-
|
3231
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3232
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3233
|
+
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3234
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
2066
3235
|
_request_timeout: Union[
|
2067
3236
|
None,
|
2068
3237
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2075,13 +3244,19 @@ class ProjectApi:
|
|
2075
3244
|
_content_type: Optional[StrictStr] = None,
|
2076
3245
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2077
3246
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2078
|
-
) ->
|
2079
|
-
"""
|
3247
|
+
) -> ListOrganizationsResponse:
|
3248
|
+
"""List all Enterprise SSO organizations
|
2080
3249
|
|
2081
|
-
|
3250
|
+
Lists all Enterprise SSO organizations in a project.
|
2082
3251
|
|
2083
|
-
:param
|
2084
|
-
:type
|
3252
|
+
:param project_id: Project ID The project's ID. (required)
|
3253
|
+
:type project_id: str
|
3254
|
+
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3255
|
+
:type page_size: int
|
3256
|
+
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3257
|
+
:type page_token: str
|
3258
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
3259
|
+
:type domain: str
|
2085
3260
|
:param _request_timeout: timeout setting for this request. If one
|
2086
3261
|
number provided, it will be total request
|
2087
3262
|
timeout. It can also be a pair (tuple) of
|
@@ -2104,8 +3279,11 @@ class ProjectApi:
|
|
2104
3279
|
:return: Returns the result object.
|
2105
3280
|
""" # noqa: E501
|
2106
3281
|
|
2107
|
-
_param = self.
|
2108
|
-
|
3282
|
+
_param = self._list_organizations_serialize(
|
3283
|
+
project_id=project_id,
|
3284
|
+
page_size=page_size,
|
3285
|
+
page_token=page_token,
|
3286
|
+
domain=domain,
|
2109
3287
|
_request_auth=_request_auth,
|
2110
3288
|
_content_type=_content_type,
|
2111
3289
|
_headers=_headers,
|
@@ -2113,9 +3291,9 @@ class ProjectApi:
|
|
2113
3291
|
)
|
2114
3292
|
|
2115
3293
|
_response_types_map: Dict[str, Optional[str]] = {
|
2116
|
-
'200': "
|
2117
|
-
'
|
2118
|
-
'
|
3294
|
+
'200': "ListOrganizationsResponse",
|
3295
|
+
'400': "ErrorGeneric",
|
3296
|
+
'403': "ErrorGeneric",
|
2119
3297
|
}
|
2120
3298
|
response_data = self.api_client.call_api(
|
2121
3299
|
*_param,
|
@@ -2129,9 +3307,12 @@ class ProjectApi:
|
|
2129
3307
|
|
2130
3308
|
|
2131
3309
|
@validate_call
|
2132
|
-
def
|
3310
|
+
def list_organizations_with_http_info(
|
2133
3311
|
self,
|
2134
|
-
|
3312
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3313
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3314
|
+
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3315
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
2135
3316
|
_request_timeout: Union[
|
2136
3317
|
None,
|
2137
3318
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2144,13 +3325,19 @@ class ProjectApi:
|
|
2144
3325
|
_content_type: Optional[StrictStr] = None,
|
2145
3326
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2146
3327
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2147
|
-
) -> ApiResponse[
|
2148
|
-
"""
|
3328
|
+
) -> ApiResponse[ListOrganizationsResponse]:
|
3329
|
+
"""List all Enterprise SSO organizations
|
2149
3330
|
|
2150
|
-
|
3331
|
+
Lists all Enterprise SSO organizations in a project.
|
2151
3332
|
|
2152
|
-
:param
|
2153
|
-
:type
|
3333
|
+
:param project_id: Project ID The project's ID. (required)
|
3334
|
+
:type project_id: str
|
3335
|
+
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3336
|
+
:type page_size: int
|
3337
|
+
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3338
|
+
:type page_token: str
|
3339
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
3340
|
+
:type domain: str
|
2154
3341
|
:param _request_timeout: timeout setting for this request. If one
|
2155
3342
|
number provided, it will be total request
|
2156
3343
|
timeout. It can also be a pair (tuple) of
|
@@ -2173,8 +3360,11 @@ class ProjectApi:
|
|
2173
3360
|
:return: Returns the result object.
|
2174
3361
|
""" # noqa: E501
|
2175
3362
|
|
2176
|
-
_param = self.
|
2177
|
-
|
3363
|
+
_param = self._list_organizations_serialize(
|
3364
|
+
project_id=project_id,
|
3365
|
+
page_size=page_size,
|
3366
|
+
page_token=page_token,
|
3367
|
+
domain=domain,
|
2178
3368
|
_request_auth=_request_auth,
|
2179
3369
|
_content_type=_content_type,
|
2180
3370
|
_headers=_headers,
|
@@ -2182,9 +3372,9 @@ class ProjectApi:
|
|
2182
3372
|
)
|
2183
3373
|
|
2184
3374
|
_response_types_map: Dict[str, Optional[str]] = {
|
2185
|
-
'200': "
|
2186
|
-
'
|
2187
|
-
'
|
3375
|
+
'200': "ListOrganizationsResponse",
|
3376
|
+
'400': "ErrorGeneric",
|
3377
|
+
'403': "ErrorGeneric",
|
2188
3378
|
}
|
2189
3379
|
response_data = self.api_client.call_api(
|
2190
3380
|
*_param,
|
@@ -2198,9 +3388,12 @@ class ProjectApi:
|
|
2198
3388
|
|
2199
3389
|
|
2200
3390
|
@validate_call
|
2201
|
-
def
|
3391
|
+
def list_organizations_without_preload_content(
|
2202
3392
|
self,
|
2203
|
-
|
3393
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3394
|
+
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3395
|
+
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
3396
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
2204
3397
|
_request_timeout: Union[
|
2205
3398
|
None,
|
2206
3399
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2214,12 +3407,18 @@ class ProjectApi:
|
|
2214
3407
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2215
3408
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2216
3409
|
) -> RESTResponseType:
|
2217
|
-
"""
|
3410
|
+
"""List all Enterprise SSO organizations
|
2218
3411
|
|
2219
|
-
|
3412
|
+
Lists all Enterprise SSO organizations in a project.
|
2220
3413
|
|
2221
|
-
:param
|
2222
|
-
:type
|
3414
|
+
:param project_id: Project ID The project's ID. (required)
|
3415
|
+
:type project_id: str
|
3416
|
+
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3417
|
+
:type page_size: int
|
3418
|
+
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
3419
|
+
:type page_token: str
|
3420
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
3421
|
+
:type domain: str
|
2223
3422
|
:param _request_timeout: timeout setting for this request. If one
|
2224
3423
|
number provided, it will be total request
|
2225
3424
|
timeout. It can also be a pair (tuple) of
|
@@ -2242,8 +3441,11 @@ class ProjectApi:
|
|
2242
3441
|
:return: Returns the result object.
|
2243
3442
|
""" # noqa: E501
|
2244
3443
|
|
2245
|
-
_param = self.
|
2246
|
-
|
3444
|
+
_param = self._list_organizations_serialize(
|
3445
|
+
project_id=project_id,
|
3446
|
+
page_size=page_size,
|
3447
|
+
page_token=page_token,
|
3448
|
+
domain=domain,
|
2247
3449
|
_request_auth=_request_auth,
|
2248
3450
|
_content_type=_content_type,
|
2249
3451
|
_headers=_headers,
|
@@ -2251,9 +3453,9 @@ class ProjectApi:
|
|
2251
3453
|
)
|
2252
3454
|
|
2253
3455
|
_response_types_map: Dict[str, Optional[str]] = {
|
2254
|
-
'200': "
|
2255
|
-
'
|
2256
|
-
'
|
3456
|
+
'200': "ListOrganizationsResponse",
|
3457
|
+
'400': "ErrorGeneric",
|
3458
|
+
'403': "ErrorGeneric",
|
2257
3459
|
}
|
2258
3460
|
response_data = self.api_client.call_api(
|
2259
3461
|
*_param,
|
@@ -2262,9 +3464,12 @@ class ProjectApi:
|
|
2262
3464
|
return response_data.response
|
2263
3465
|
|
2264
3466
|
|
2265
|
-
def
|
3467
|
+
def _list_organizations_serialize(
|
2266
3468
|
self,
|
2267
|
-
|
3469
|
+
project_id,
|
3470
|
+
page_size,
|
3471
|
+
page_token,
|
3472
|
+
domain,
|
2268
3473
|
_request_auth,
|
2269
3474
|
_content_type,
|
2270
3475
|
_headers,
|
@@ -2289,9 +3494,21 @@ class ProjectApi:
|
|
2289
3494
|
_body_params: Optional[bytes] = None
|
2290
3495
|
|
2291
3496
|
# process the path parameters
|
2292
|
-
if
|
2293
|
-
_path_params['
|
3497
|
+
if project_id is not None:
|
3498
|
+
_path_params['project_id'] = project_id
|
2294
3499
|
# process the query parameters
|
3500
|
+
if page_size is not None:
|
3501
|
+
|
3502
|
+
_query_params.append(('page_size', page_size))
|
3503
|
+
|
3504
|
+
if page_token is not None:
|
3505
|
+
|
3506
|
+
_query_params.append(('page_token', page_token))
|
3507
|
+
|
3508
|
+
if domain is not None:
|
3509
|
+
|
3510
|
+
_query_params.append(('domain', domain))
|
3511
|
+
|
2295
3512
|
# process the header parameters
|
2296
3513
|
# process the form parameters
|
2297
3514
|
# process the body parameter
|
@@ -2313,7 +3530,7 @@ class ProjectApi:
|
|
2313
3530
|
|
2314
3531
|
return self.api_client.param_serialize(
|
2315
3532
|
method='GET',
|
2316
|
-
resource_path='/projects/{
|
3533
|
+
resource_path='/projects/{project_id}/organizations',
|
2317
3534
|
path_params=_path_params,
|
2318
3535
|
query_params=_query_params,
|
2319
3536
|
header_params=_header_params,
|
@@ -2330,12 +3547,9 @@ class ProjectApi:
|
|
2330
3547
|
|
2331
3548
|
|
2332
3549
|
@validate_call
|
2333
|
-
def
|
3550
|
+
def list_project_api_keys(
|
2334
3551
|
self,
|
2335
|
-
|
2336
|
-
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2337
|
-
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2338
|
-
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
3552
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2339
3553
|
_request_timeout: Union[
|
2340
3554
|
None,
|
2341
3555
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2348,19 +3562,13 @@ class ProjectApi:
|
|
2348
3562
|
_content_type: Optional[StrictStr] = None,
|
2349
3563
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2350
3564
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2351
|
-
) ->
|
2352
|
-
"""List
|
3565
|
+
) -> List[ProjectApiKey]:
|
3566
|
+
"""List a project's API keys
|
2353
3567
|
|
2354
|
-
|
3568
|
+
A list of all the project's API keys.
|
2355
3569
|
|
2356
|
-
:param
|
2357
|
-
:type
|
2358
|
-
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2359
|
-
:type page_size: int
|
2360
|
-
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2361
|
-
:type page_token: str
|
2362
|
-
:param domain: Domain If set, only organizations with that domain will be returned.
|
2363
|
-
:type domain: str
|
3570
|
+
:param project: The Project ID or Project slug (required)
|
3571
|
+
:type project: str
|
2364
3572
|
:param _request_timeout: timeout setting for this request. If one
|
2365
3573
|
number provided, it will be total request
|
2366
3574
|
timeout. It can also be a pair (tuple) of
|
@@ -2383,11 +3591,8 @@ class ProjectApi:
|
|
2383
3591
|
:return: Returns the result object.
|
2384
3592
|
""" # noqa: E501
|
2385
3593
|
|
2386
|
-
_param = self.
|
2387
|
-
|
2388
|
-
page_size=page_size,
|
2389
|
-
page_token=page_token,
|
2390
|
-
domain=domain,
|
3594
|
+
_param = self._list_project_api_keys_serialize(
|
3595
|
+
project=project,
|
2391
3596
|
_request_auth=_request_auth,
|
2392
3597
|
_content_type=_content_type,
|
2393
3598
|
_headers=_headers,
|
@@ -2395,9 +3600,7 @@ class ProjectApi:
|
|
2395
3600
|
)
|
2396
3601
|
|
2397
3602
|
_response_types_map: Dict[str, Optional[str]] = {
|
2398
|
-
'200': "
|
2399
|
-
'400': "ErrorGeneric",
|
2400
|
-
'403': "ErrorGeneric",
|
3603
|
+
'200': "List[ProjectApiKey]",
|
2401
3604
|
}
|
2402
3605
|
response_data = self.api_client.call_api(
|
2403
3606
|
*_param,
|
@@ -2411,12 +3614,9 @@ class ProjectApi:
|
|
2411
3614
|
|
2412
3615
|
|
2413
3616
|
@validate_call
|
2414
|
-
def
|
3617
|
+
def list_project_api_keys_with_http_info(
|
2415
3618
|
self,
|
2416
|
-
|
2417
|
-
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2418
|
-
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2419
|
-
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
3619
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2420
3620
|
_request_timeout: Union[
|
2421
3621
|
None,
|
2422
3622
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2429,19 +3629,13 @@ class ProjectApi:
|
|
2429
3629
|
_content_type: Optional[StrictStr] = None,
|
2430
3630
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2431
3631
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2432
|
-
) -> ApiResponse[
|
2433
|
-
"""List
|
3632
|
+
) -> ApiResponse[List[ProjectApiKey]]:
|
3633
|
+
"""List a project's API keys
|
2434
3634
|
|
2435
|
-
|
3635
|
+
A list of all the project's API keys.
|
2436
3636
|
|
2437
|
-
:param
|
2438
|
-
:type
|
2439
|
-
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2440
|
-
:type page_size: int
|
2441
|
-
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2442
|
-
:type page_token: str
|
2443
|
-
:param domain: Domain If set, only organizations with that domain will be returned.
|
2444
|
-
:type domain: str
|
3637
|
+
:param project: The Project ID or Project slug (required)
|
3638
|
+
:type project: str
|
2445
3639
|
:param _request_timeout: timeout setting for this request. If one
|
2446
3640
|
number provided, it will be total request
|
2447
3641
|
timeout. It can also be a pair (tuple) of
|
@@ -2464,11 +3658,8 @@ class ProjectApi:
|
|
2464
3658
|
:return: Returns the result object.
|
2465
3659
|
""" # noqa: E501
|
2466
3660
|
|
2467
|
-
_param = self.
|
2468
|
-
|
2469
|
-
page_size=page_size,
|
2470
|
-
page_token=page_token,
|
2471
|
-
domain=domain,
|
3661
|
+
_param = self._list_project_api_keys_serialize(
|
3662
|
+
project=project,
|
2472
3663
|
_request_auth=_request_auth,
|
2473
3664
|
_content_type=_content_type,
|
2474
3665
|
_headers=_headers,
|
@@ -2476,9 +3667,7 @@ class ProjectApi:
|
|
2476
3667
|
)
|
2477
3668
|
|
2478
3669
|
_response_types_map: Dict[str, Optional[str]] = {
|
2479
|
-
'200': "
|
2480
|
-
'400': "ErrorGeneric",
|
2481
|
-
'403': "ErrorGeneric",
|
3670
|
+
'200': "List[ProjectApiKey]",
|
2482
3671
|
}
|
2483
3672
|
response_data = self.api_client.call_api(
|
2484
3673
|
*_param,
|
@@ -2492,12 +3681,9 @@ class ProjectApi:
|
|
2492
3681
|
|
2493
3682
|
|
2494
3683
|
@validate_call
|
2495
|
-
def
|
3684
|
+
def list_project_api_keys_without_preload_content(
|
2496
3685
|
self,
|
2497
|
-
|
2498
|
-
page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2499
|
-
page_token: Annotated[Optional[StrictStr], Field(description="Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).")] = None,
|
2500
|
-
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
3686
|
+
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2501
3687
|
_request_timeout: Union[
|
2502
3688
|
None,
|
2503
3689
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2511,18 +3697,12 @@ class ProjectApi:
|
|
2511
3697
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2512
3698
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2513
3699
|
) -> RESTResponseType:
|
2514
|
-
"""List
|
3700
|
+
"""List a project's API keys
|
2515
3701
|
|
2516
|
-
|
3702
|
+
A list of all the project's API keys.
|
2517
3703
|
|
2518
|
-
:param
|
2519
|
-
:type
|
2520
|
-
:param page_size: Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2521
|
-
:type page_size: int
|
2522
|
-
:param page_token: Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
|
2523
|
-
:type page_token: str
|
2524
|
-
:param domain: Domain If set, only organizations with that domain will be returned.
|
2525
|
-
:type domain: str
|
3704
|
+
:param project: The Project ID or Project slug (required)
|
3705
|
+
:type project: str
|
2526
3706
|
:param _request_timeout: timeout setting for this request. If one
|
2527
3707
|
number provided, it will be total request
|
2528
3708
|
timeout. It can also be a pair (tuple) of
|
@@ -2545,11 +3725,8 @@ class ProjectApi:
|
|
2545
3725
|
:return: Returns the result object.
|
2546
3726
|
""" # noqa: E501
|
2547
3727
|
|
2548
|
-
_param = self.
|
2549
|
-
|
2550
|
-
page_size=page_size,
|
2551
|
-
page_token=page_token,
|
2552
|
-
domain=domain,
|
3728
|
+
_param = self._list_project_api_keys_serialize(
|
3729
|
+
project=project,
|
2553
3730
|
_request_auth=_request_auth,
|
2554
3731
|
_content_type=_content_type,
|
2555
3732
|
_headers=_headers,
|
@@ -2557,9 +3734,7 @@ class ProjectApi:
|
|
2557
3734
|
)
|
2558
3735
|
|
2559
3736
|
_response_types_map: Dict[str, Optional[str]] = {
|
2560
|
-
'200': "
|
2561
|
-
'400': "ErrorGeneric",
|
2562
|
-
'403': "ErrorGeneric",
|
3737
|
+
'200': "List[ProjectApiKey]",
|
2563
3738
|
}
|
2564
3739
|
response_data = self.api_client.call_api(
|
2565
3740
|
*_param,
|
@@ -2568,12 +3743,9 @@ class ProjectApi:
|
|
2568
3743
|
return response_data.response
|
2569
3744
|
|
2570
3745
|
|
2571
|
-
def
|
3746
|
+
def _list_project_api_keys_serialize(
|
2572
3747
|
self,
|
2573
|
-
|
2574
|
-
page_size,
|
2575
|
-
page_token,
|
2576
|
-
domain,
|
3748
|
+
project,
|
2577
3749
|
_request_auth,
|
2578
3750
|
_content_type,
|
2579
3751
|
_headers,
|
@@ -2598,21 +3770,9 @@ class ProjectApi:
|
|
2598
3770
|
_body_params: Optional[bytes] = None
|
2599
3771
|
|
2600
3772
|
# process the path parameters
|
2601
|
-
if
|
2602
|
-
_path_params['
|
3773
|
+
if project is not None:
|
3774
|
+
_path_params['project'] = project
|
2603
3775
|
# process the query parameters
|
2604
|
-
if page_size is not None:
|
2605
|
-
|
2606
|
-
_query_params.append(('page_size', page_size))
|
2607
|
-
|
2608
|
-
if page_token is not None:
|
2609
|
-
|
2610
|
-
_query_params.append(('page_token', page_token))
|
2611
|
-
|
2612
|
-
if domain is not None:
|
2613
|
-
|
2614
|
-
_query_params.append(('domain', domain))
|
2615
|
-
|
2616
3776
|
# process the header parameters
|
2617
3777
|
# process the form parameters
|
2618
3778
|
# process the body parameter
|
@@ -2634,7 +3794,7 @@ class ProjectApi:
|
|
2634
3794
|
|
2635
3795
|
return self.api_client.param_serialize(
|
2636
3796
|
method='GET',
|
2637
|
-
resource_path='/projects/{
|
3797
|
+
resource_path='/projects/{project}/tokens',
|
2638
3798
|
path_params=_path_params,
|
2639
3799
|
query_params=_query_params,
|
2640
3800
|
header_params=_header_params,
|
@@ -2651,9 +3811,8 @@ class ProjectApi:
|
|
2651
3811
|
|
2652
3812
|
|
2653
3813
|
@validate_call
|
2654
|
-
def
|
3814
|
+
def list_projects(
|
2655
3815
|
self,
|
2656
|
-
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2657
3816
|
_request_timeout: Union[
|
2658
3817
|
None,
|
2659
3818
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2666,13 +3825,11 @@ class ProjectApi:
|
|
2666
3825
|
_content_type: Optional[StrictStr] = None,
|
2667
3826
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2668
3827
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2669
|
-
) -> List[
|
2670
|
-
"""List
|
3828
|
+
) -> List[ProjectMetadata]:
|
3829
|
+
"""List All Projects
|
2671
3830
|
|
2672
|
-
|
3831
|
+
Lists all projects you have access to.
|
2673
3832
|
|
2674
|
-
:param project: The Project ID or Project slug (required)
|
2675
|
-
:type project: str
|
2676
3833
|
:param _request_timeout: timeout setting for this request. If one
|
2677
3834
|
number provided, it will be total request
|
2678
3835
|
timeout. It can also be a pair (tuple) of
|
@@ -2695,8 +3852,7 @@ class ProjectApi:
|
|
2695
3852
|
:return: Returns the result object.
|
2696
3853
|
""" # noqa: E501
|
2697
3854
|
|
2698
|
-
_param = self.
|
2699
|
-
project=project,
|
3855
|
+
_param = self._list_projects_serialize(
|
2700
3856
|
_request_auth=_request_auth,
|
2701
3857
|
_content_type=_content_type,
|
2702
3858
|
_headers=_headers,
|
@@ -2704,7 +3860,10 @@ class ProjectApi:
|
|
2704
3860
|
)
|
2705
3861
|
|
2706
3862
|
_response_types_map: Dict[str, Optional[str]] = {
|
2707
|
-
'200': "List[
|
3863
|
+
'200': "List[ProjectMetadata]",
|
3864
|
+
'401': "ErrorGeneric",
|
3865
|
+
'403': "ErrorGeneric",
|
3866
|
+
'404': "ErrorGeneric",
|
2708
3867
|
}
|
2709
3868
|
response_data = self.api_client.call_api(
|
2710
3869
|
*_param,
|
@@ -2718,9 +3877,8 @@ class ProjectApi:
|
|
2718
3877
|
|
2719
3878
|
|
2720
3879
|
@validate_call
|
2721
|
-
def
|
3880
|
+
def list_projects_with_http_info(
|
2722
3881
|
self,
|
2723
|
-
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2724
3882
|
_request_timeout: Union[
|
2725
3883
|
None,
|
2726
3884
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2733,13 +3891,11 @@ class ProjectApi:
|
|
2733
3891
|
_content_type: Optional[StrictStr] = None,
|
2734
3892
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2735
3893
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2736
|
-
) -> ApiResponse[List[
|
2737
|
-
"""List
|
3894
|
+
) -> ApiResponse[List[ProjectMetadata]]:
|
3895
|
+
"""List All Projects
|
2738
3896
|
|
2739
|
-
|
3897
|
+
Lists all projects you have access to.
|
2740
3898
|
|
2741
|
-
:param project: The Project ID or Project slug (required)
|
2742
|
-
:type project: str
|
2743
3899
|
:param _request_timeout: timeout setting for this request. If one
|
2744
3900
|
number provided, it will be total request
|
2745
3901
|
timeout. It can also be a pair (tuple) of
|
@@ -2762,8 +3918,7 @@ class ProjectApi:
|
|
2762
3918
|
:return: Returns the result object.
|
2763
3919
|
""" # noqa: E501
|
2764
3920
|
|
2765
|
-
_param = self.
|
2766
|
-
project=project,
|
3921
|
+
_param = self._list_projects_serialize(
|
2767
3922
|
_request_auth=_request_auth,
|
2768
3923
|
_content_type=_content_type,
|
2769
3924
|
_headers=_headers,
|
@@ -2771,7 +3926,10 @@ class ProjectApi:
|
|
2771
3926
|
)
|
2772
3927
|
|
2773
3928
|
_response_types_map: Dict[str, Optional[str]] = {
|
2774
|
-
'200': "List[
|
3929
|
+
'200': "List[ProjectMetadata]",
|
3930
|
+
'401': "ErrorGeneric",
|
3931
|
+
'403': "ErrorGeneric",
|
3932
|
+
'404': "ErrorGeneric",
|
2775
3933
|
}
|
2776
3934
|
response_data = self.api_client.call_api(
|
2777
3935
|
*_param,
|
@@ -2785,9 +3943,8 @@ class ProjectApi:
|
|
2785
3943
|
|
2786
3944
|
|
2787
3945
|
@validate_call
|
2788
|
-
def
|
3946
|
+
def list_projects_without_preload_content(
|
2789
3947
|
self,
|
2790
|
-
project: Annotated[StrictStr, Field(description="The Project ID or Project slug")],
|
2791
3948
|
_request_timeout: Union[
|
2792
3949
|
None,
|
2793
3950
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2801,12 +3958,10 @@ class ProjectApi:
|
|
2801
3958
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2802
3959
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2803
3960
|
) -> RESTResponseType:
|
2804
|
-
"""List
|
3961
|
+
"""List All Projects
|
2805
3962
|
|
2806
|
-
|
3963
|
+
Lists all projects you have access to.
|
2807
3964
|
|
2808
|
-
:param project: The Project ID or Project slug (required)
|
2809
|
-
:type project: str
|
2810
3965
|
:param _request_timeout: timeout setting for this request. If one
|
2811
3966
|
number provided, it will be total request
|
2812
3967
|
timeout. It can also be a pair (tuple) of
|
@@ -2829,8 +3984,7 @@ class ProjectApi:
|
|
2829
3984
|
:return: Returns the result object.
|
2830
3985
|
""" # noqa: E501
|
2831
3986
|
|
2832
|
-
_param = self.
|
2833
|
-
project=project,
|
3987
|
+
_param = self._list_projects_serialize(
|
2834
3988
|
_request_auth=_request_auth,
|
2835
3989
|
_content_type=_content_type,
|
2836
3990
|
_headers=_headers,
|
@@ -2838,7 +3992,10 @@ class ProjectApi:
|
|
2838
3992
|
)
|
2839
3993
|
|
2840
3994
|
_response_types_map: Dict[str, Optional[str]] = {
|
2841
|
-
'200': "List[
|
3995
|
+
'200': "List[ProjectMetadata]",
|
3996
|
+
'401': "ErrorGeneric",
|
3997
|
+
'403': "ErrorGeneric",
|
3998
|
+
'404': "ErrorGeneric",
|
2842
3999
|
}
|
2843
4000
|
response_data = self.api_client.call_api(
|
2844
4001
|
*_param,
|
@@ -2847,9 +4004,8 @@ class ProjectApi:
|
|
2847
4004
|
return response_data.response
|
2848
4005
|
|
2849
4006
|
|
2850
|
-
def
|
4007
|
+
def _list_projects_serialize(
|
2851
4008
|
self,
|
2852
|
-
project,
|
2853
4009
|
_request_auth,
|
2854
4010
|
_content_type,
|
2855
4011
|
_headers,
|
@@ -2874,8 +4030,6 @@ class ProjectApi:
|
|
2874
4030
|
_body_params: Optional[bytes] = None
|
2875
4031
|
|
2876
4032
|
# process the path parameters
|
2877
|
-
if project is not None:
|
2878
|
-
_path_params['project'] = project
|
2879
4033
|
# process the query parameters
|
2880
4034
|
# process the header parameters
|
2881
4035
|
# process the form parameters
|
@@ -2898,7 +4052,7 @@ class ProjectApi:
|
|
2898
4052
|
|
2899
4053
|
return self.api_client.param_serialize(
|
2900
4054
|
method='GET',
|
2901
|
-
resource_path='/projects
|
4055
|
+
resource_path='/projects',
|
2902
4056
|
path_params=_path_params,
|
2903
4057
|
query_params=_query_params,
|
2904
4058
|
header_params=_header_params,
|
@@ -2915,8 +4069,10 @@ class ProjectApi:
|
|
2915
4069
|
|
2916
4070
|
|
2917
4071
|
@validate_call
|
2918
|
-
def
|
4072
|
+
def patch_project(
|
2919
4073
|
self,
|
4074
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4075
|
+
json_patch: Optional[List[JsonPatch]] = None,
|
2920
4076
|
_request_timeout: Union[
|
2921
4077
|
None,
|
2922
4078
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2929,11 +4085,15 @@ class ProjectApi:
|
|
2929
4085
|
_content_type: Optional[StrictStr] = None,
|
2930
4086
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2931
4087
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2932
|
-
) ->
|
2933
|
-
"""
|
4088
|
+
) -> SuccessfulProjectUpdate:
|
4089
|
+
"""Patch an Ory Network Project Configuration
|
2934
4090
|
|
2935
|
-
|
4091
|
+
Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
2936
4092
|
|
4093
|
+
:param project_id: Project ID The project's ID. (required)
|
4094
|
+
:type project_id: str
|
4095
|
+
:param json_patch:
|
4096
|
+
:type json_patch: List[JsonPatch]
|
2937
4097
|
:param _request_timeout: timeout setting for this request. If one
|
2938
4098
|
number provided, it will be total request
|
2939
4099
|
timeout. It can also be a pair (tuple) of
|
@@ -2956,7 +4116,9 @@ class ProjectApi:
|
|
2956
4116
|
:return: Returns the result object.
|
2957
4117
|
""" # noqa: E501
|
2958
4118
|
|
2959
|
-
_param = self.
|
4119
|
+
_param = self._patch_project_serialize(
|
4120
|
+
project_id=project_id,
|
4121
|
+
json_patch=json_patch,
|
2960
4122
|
_request_auth=_request_auth,
|
2961
4123
|
_content_type=_content_type,
|
2962
4124
|
_headers=_headers,
|
@@ -2964,7 +4126,8 @@ class ProjectApi:
|
|
2964
4126
|
)
|
2965
4127
|
|
2966
4128
|
_response_types_map: Dict[str, Optional[str]] = {
|
2967
|
-
'200': "
|
4129
|
+
'200': "SuccessfulProjectUpdate",
|
4130
|
+
'400': "ErrorGeneric",
|
2968
4131
|
'401': "ErrorGeneric",
|
2969
4132
|
'403': "ErrorGeneric",
|
2970
4133
|
'404': "ErrorGeneric",
|
@@ -2981,8 +4144,10 @@ class ProjectApi:
|
|
2981
4144
|
|
2982
4145
|
|
2983
4146
|
@validate_call
|
2984
|
-
def
|
4147
|
+
def patch_project_with_http_info(
|
2985
4148
|
self,
|
4149
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4150
|
+
json_patch: Optional[List[JsonPatch]] = None,
|
2986
4151
|
_request_timeout: Union[
|
2987
4152
|
None,
|
2988
4153
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2995,11 +4160,15 @@ class ProjectApi:
|
|
2995
4160
|
_content_type: Optional[StrictStr] = None,
|
2996
4161
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2997
4162
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2998
|
-
) -> ApiResponse[
|
2999
|
-
"""
|
4163
|
+
) -> ApiResponse[SuccessfulProjectUpdate]:
|
4164
|
+
"""Patch an Ory Network Project Configuration
|
3000
4165
|
|
3001
|
-
|
4166
|
+
Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
3002
4167
|
|
4168
|
+
:param project_id: Project ID The project's ID. (required)
|
4169
|
+
:type project_id: str
|
4170
|
+
:param json_patch:
|
4171
|
+
:type json_patch: List[JsonPatch]
|
3003
4172
|
:param _request_timeout: timeout setting for this request. If one
|
3004
4173
|
number provided, it will be total request
|
3005
4174
|
timeout. It can also be a pair (tuple) of
|
@@ -3022,7 +4191,9 @@ class ProjectApi:
|
|
3022
4191
|
:return: Returns the result object.
|
3023
4192
|
""" # noqa: E501
|
3024
4193
|
|
3025
|
-
_param = self.
|
4194
|
+
_param = self._patch_project_serialize(
|
4195
|
+
project_id=project_id,
|
4196
|
+
json_patch=json_patch,
|
3026
4197
|
_request_auth=_request_auth,
|
3027
4198
|
_content_type=_content_type,
|
3028
4199
|
_headers=_headers,
|
@@ -3030,7 +4201,8 @@ class ProjectApi:
|
|
3030
4201
|
)
|
3031
4202
|
|
3032
4203
|
_response_types_map: Dict[str, Optional[str]] = {
|
3033
|
-
'200': "
|
4204
|
+
'200': "SuccessfulProjectUpdate",
|
4205
|
+
'400': "ErrorGeneric",
|
3034
4206
|
'401': "ErrorGeneric",
|
3035
4207
|
'403': "ErrorGeneric",
|
3036
4208
|
'404': "ErrorGeneric",
|
@@ -3047,8 +4219,10 @@ class ProjectApi:
|
|
3047
4219
|
|
3048
4220
|
|
3049
4221
|
@validate_call
|
3050
|
-
def
|
4222
|
+
def patch_project_without_preload_content(
|
3051
4223
|
self,
|
4224
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4225
|
+
json_patch: Optional[List[JsonPatch]] = None,
|
3052
4226
|
_request_timeout: Union[
|
3053
4227
|
None,
|
3054
4228
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3062,10 +4236,14 @@ class ProjectApi:
|
|
3062
4236
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3063
4237
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3064
4238
|
) -> RESTResponseType:
|
3065
|
-
"""
|
4239
|
+
"""Patch an Ory Network Project Configuration
|
3066
4240
|
|
3067
|
-
|
4241
|
+
Deprecated: Use the `patchProjectWithRevision` endpoint instead to specify the exact revision the patch was generated for. This endpoints allows you to patch individual Ory Network project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
3068
4242
|
|
4243
|
+
:param project_id: Project ID The project's ID. (required)
|
4244
|
+
:type project_id: str
|
4245
|
+
:param json_patch:
|
4246
|
+
:type json_patch: List[JsonPatch]
|
3069
4247
|
:param _request_timeout: timeout setting for this request. If one
|
3070
4248
|
number provided, it will be total request
|
3071
4249
|
timeout. It can also be a pair (tuple) of
|
@@ -3088,7 +4266,9 @@ class ProjectApi:
|
|
3088
4266
|
:return: Returns the result object.
|
3089
4267
|
""" # noqa: E501
|
3090
4268
|
|
3091
|
-
_param = self.
|
4269
|
+
_param = self._patch_project_serialize(
|
4270
|
+
project_id=project_id,
|
4271
|
+
json_patch=json_patch,
|
3092
4272
|
_request_auth=_request_auth,
|
3093
4273
|
_content_type=_content_type,
|
3094
4274
|
_headers=_headers,
|
@@ -3096,7 +4276,8 @@ class ProjectApi:
|
|
3096
4276
|
)
|
3097
4277
|
|
3098
4278
|
_response_types_map: Dict[str, Optional[str]] = {
|
3099
|
-
'200': "
|
4279
|
+
'200': "SuccessfulProjectUpdate",
|
4280
|
+
'400': "ErrorGeneric",
|
3100
4281
|
'401': "ErrorGeneric",
|
3101
4282
|
'403': "ErrorGeneric",
|
3102
4283
|
'404': "ErrorGeneric",
|
@@ -3108,8 +4289,10 @@ class ProjectApi:
|
|
3108
4289
|
return response_data.response
|
3109
4290
|
|
3110
4291
|
|
3111
|
-
def
|
4292
|
+
def _patch_project_serialize(
|
3112
4293
|
self,
|
4294
|
+
project_id,
|
4295
|
+
json_patch,
|
3113
4296
|
_request_auth,
|
3114
4297
|
_content_type,
|
3115
4298
|
_headers,
|
@@ -3122,6 +4305,7 @@ class ProjectApi:
|
|
3122
4305
|
_host = _hosts[_host_index]
|
3123
4306
|
|
3124
4307
|
_collection_formats: Dict[str, str] = {
|
4308
|
+
'JsonPatch': '',
|
3125
4309
|
}
|
3126
4310
|
|
3127
4311
|
_path_params: Dict[str, str] = {}
|
@@ -3134,10 +4318,14 @@ class ProjectApi:
|
|
3134
4318
|
_body_params: Optional[bytes] = None
|
3135
4319
|
|
3136
4320
|
# process the path parameters
|
4321
|
+
if project_id is not None:
|
4322
|
+
_path_params['project_id'] = project_id
|
3137
4323
|
# process the query parameters
|
3138
4324
|
# process the header parameters
|
3139
4325
|
# process the form parameters
|
3140
4326
|
# process the body parameter
|
4327
|
+
if json_patch is not None:
|
4328
|
+
_body_params = json_patch
|
3141
4329
|
|
3142
4330
|
|
3143
4331
|
# set the HTTP header `Accept`
|
@@ -3147,7 +4335,20 @@ class ProjectApi:
|
|
3147
4335
|
'application/json'
|
3148
4336
|
]
|
3149
4337
|
)
|
3150
|
-
|
4338
|
+
|
4339
|
+
# set the HTTP header `Content-Type`
|
4340
|
+
if _content_type:
|
4341
|
+
_header_params['Content-Type'] = _content_type
|
4342
|
+
else:
|
4343
|
+
_default_content_type = (
|
4344
|
+
self.api_client.select_header_content_type(
|
4345
|
+
[
|
4346
|
+
'application/json'
|
4347
|
+
]
|
4348
|
+
)
|
4349
|
+
)
|
4350
|
+
if _default_content_type is not None:
|
4351
|
+
_header_params['Content-Type'] = _default_content_type
|
3151
4352
|
|
3152
4353
|
# authentication setting
|
3153
4354
|
_auth_settings: List[str] = [
|
@@ -3155,8 +4356,8 @@ class ProjectApi:
|
|
3155
4356
|
]
|
3156
4357
|
|
3157
4358
|
return self.api_client.param_serialize(
|
3158
|
-
method='
|
3159
|
-
resource_path='/projects',
|
4359
|
+
method='PATCH',
|
4360
|
+
resource_path='/projects/{project_id}',
|
3160
4361
|
path_params=_path_params,
|
3161
4362
|
query_params=_query_params,
|
3162
4363
|
header_params=_header_params,
|
@@ -3173,9 +4374,10 @@ class ProjectApi:
|
|
3173
4374
|
|
3174
4375
|
|
3175
4376
|
@validate_call
|
3176
|
-
def
|
4377
|
+
def patch_project_with_revision(
|
3177
4378
|
self,
|
3178
4379
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4380
|
+
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3179
4381
|
json_patch: Optional[List[JsonPatch]] = None,
|
3180
4382
|
_request_timeout: Union[
|
3181
4383
|
None,
|
@@ -3190,12 +4392,14 @@ class ProjectApi:
|
|
3190
4392
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3191
4393
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3192
4394
|
) -> SuccessfulProjectUpdate:
|
3193
|
-
"""Patch an Ory Network Project Configuration
|
4395
|
+
"""Patch an Ory Network Project Configuration based on a revision ID
|
3194
4396
|
|
3195
|
-
|
4397
|
+
This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
3196
4398
|
|
3197
4399
|
:param project_id: Project ID The project's ID. (required)
|
3198
4400
|
:type project_id: str
|
4401
|
+
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
4402
|
+
:type revision_id: str
|
3199
4403
|
:param json_patch:
|
3200
4404
|
:type json_patch: List[JsonPatch]
|
3201
4405
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3220,8 +4424,9 @@ class ProjectApi:
|
|
3220
4424
|
:return: Returns the result object.
|
3221
4425
|
""" # noqa: E501
|
3222
4426
|
|
3223
|
-
_param = self.
|
4427
|
+
_param = self._patch_project_with_revision_serialize(
|
3224
4428
|
project_id=project_id,
|
4429
|
+
revision_id=revision_id,
|
3225
4430
|
json_patch=json_patch,
|
3226
4431
|
_request_auth=_request_auth,
|
3227
4432
|
_content_type=_content_type,
|
@@ -3248,9 +4453,10 @@ class ProjectApi:
|
|
3248
4453
|
|
3249
4454
|
|
3250
4455
|
@validate_call
|
3251
|
-
def
|
4456
|
+
def patch_project_with_revision_with_http_info(
|
3252
4457
|
self,
|
3253
4458
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4459
|
+
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3254
4460
|
json_patch: Optional[List[JsonPatch]] = None,
|
3255
4461
|
_request_timeout: Union[
|
3256
4462
|
None,
|
@@ -3265,12 +4471,14 @@ class ProjectApi:
|
|
3265
4471
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3266
4472
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3267
4473
|
) -> ApiResponse[SuccessfulProjectUpdate]:
|
3268
|
-
"""Patch an Ory Network Project Configuration
|
4474
|
+
"""Patch an Ory Network Project Configuration based on a revision ID
|
3269
4475
|
|
3270
|
-
|
4476
|
+
This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
3271
4477
|
|
3272
4478
|
:param project_id: Project ID The project's ID. (required)
|
3273
4479
|
:type project_id: str
|
4480
|
+
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
4481
|
+
:type revision_id: str
|
3274
4482
|
:param json_patch:
|
3275
4483
|
:type json_patch: List[JsonPatch]
|
3276
4484
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3295,8 +4503,9 @@ class ProjectApi:
|
|
3295
4503
|
:return: Returns the result object.
|
3296
4504
|
""" # noqa: E501
|
3297
4505
|
|
3298
|
-
_param = self.
|
4506
|
+
_param = self._patch_project_with_revision_serialize(
|
3299
4507
|
project_id=project_id,
|
4508
|
+
revision_id=revision_id,
|
3300
4509
|
json_patch=json_patch,
|
3301
4510
|
_request_auth=_request_auth,
|
3302
4511
|
_content_type=_content_type,
|
@@ -3323,9 +4532,10 @@ class ProjectApi:
|
|
3323
4532
|
|
3324
4533
|
|
3325
4534
|
@validate_call
|
3326
|
-
def
|
4535
|
+
def patch_project_with_revision_without_preload_content(
|
3327
4536
|
self,
|
3328
4537
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4538
|
+
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3329
4539
|
json_patch: Optional[List[JsonPatch]] = None,
|
3330
4540
|
_request_timeout: Union[
|
3331
4541
|
None,
|
@@ -3340,12 +4550,14 @@ class ProjectApi:
|
|
3340
4550
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3341
4551
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3342
4552
|
) -> RESTResponseType:
|
3343
|
-
"""Patch an Ory Network Project Configuration
|
4553
|
+
"""Patch an Ory Network Project Configuration based on a revision ID
|
3344
4554
|
|
3345
|
-
|
4555
|
+
This endpoints allows you to patch individual Ory Network Project configuration keys for Ory's services (identity, permission, ...). The configuration format is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed.
|
3346
4556
|
|
3347
4557
|
:param project_id: Project ID The project's ID. (required)
|
3348
4558
|
:type project_id: str
|
4559
|
+
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
4560
|
+
:type revision_id: str
|
3349
4561
|
:param json_patch:
|
3350
4562
|
:type json_patch: List[JsonPatch]
|
3351
4563
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -3370,8 +4582,9 @@ class ProjectApi:
|
|
3370
4582
|
:return: Returns the result object.
|
3371
4583
|
""" # noqa: E501
|
3372
4584
|
|
3373
|
-
_param = self.
|
4585
|
+
_param = self._patch_project_with_revision_serialize(
|
3374
4586
|
project_id=project_id,
|
4587
|
+
revision_id=revision_id,
|
3375
4588
|
json_patch=json_patch,
|
3376
4589
|
_request_auth=_request_auth,
|
3377
4590
|
_content_type=_content_type,
|
@@ -3393,9 +4606,10 @@ class ProjectApi:
|
|
3393
4606
|
return response_data.response
|
3394
4607
|
|
3395
4608
|
|
3396
|
-
def
|
4609
|
+
def _patch_project_with_revision_serialize(
|
3397
4610
|
self,
|
3398
4611
|
project_id,
|
4612
|
+
revision_id,
|
3399
4613
|
json_patch,
|
3400
4614
|
_request_auth,
|
3401
4615
|
_content_type,
|
@@ -3424,6 +4638,8 @@ class ProjectApi:
|
|
3424
4638
|
# process the path parameters
|
3425
4639
|
if project_id is not None:
|
3426
4640
|
_path_params['project_id'] = project_id
|
4641
|
+
if revision_id is not None:
|
4642
|
+
_path_params['revision_id'] = revision_id
|
3427
4643
|
# process the query parameters
|
3428
4644
|
# process the header parameters
|
3429
4645
|
# process the form parameters
|
@@ -3461,7 +4677,7 @@ class ProjectApi:
|
|
3461
4677
|
|
3462
4678
|
return self.api_client.param_serialize(
|
3463
4679
|
method='PATCH',
|
3464
|
-
resource_path='/projects/{project_id}',
|
4680
|
+
resource_path='/projects/{project_id}/revision/{revision_id}',
|
3465
4681
|
path_params=_path_params,
|
3466
4682
|
query_params=_query_params,
|
3467
4683
|
header_params=_header_params,
|
@@ -3478,11 +4694,9 @@ class ProjectApi:
|
|
3478
4694
|
|
3479
4695
|
|
3480
4696
|
@validate_call
|
3481
|
-
def
|
4697
|
+
def purge_project(
|
3482
4698
|
self,
|
3483
4699
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3484
|
-
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3485
|
-
json_patch: Optional[List[JsonPatch]] = None,
|
3486
4700
|
_request_timeout: Union[
|
3487
4701
|
None,
|
3488
4702
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3495,17 +4709,13 @@ class ProjectApi:
|
|
3495
4709
|
_content_type: Optional[StrictStr] = None,
|
3496
4710
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3497
4711
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3498
|
-
) ->
|
3499
|
-
"""
|
4712
|
+
) -> None:
|
4713
|
+
"""Irrecoverably purge a project
|
3500
4714
|
|
3501
|
-
|
4715
|
+
!! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
|
3502
4716
|
|
3503
4717
|
:param project_id: Project ID The project's ID. (required)
|
3504
4718
|
:type project_id: str
|
3505
|
-
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
3506
|
-
:type revision_id: str
|
3507
|
-
:param json_patch:
|
3508
|
-
:type json_patch: List[JsonPatch]
|
3509
4719
|
:param _request_timeout: timeout setting for this request. If one
|
3510
4720
|
number provided, it will be total request
|
3511
4721
|
timeout. It can also be a pair (tuple) of
|
@@ -3528,10 +4738,8 @@ class ProjectApi:
|
|
3528
4738
|
:return: Returns the result object.
|
3529
4739
|
""" # noqa: E501
|
3530
4740
|
|
3531
|
-
_param = self.
|
4741
|
+
_param = self._purge_project_serialize(
|
3532
4742
|
project_id=project_id,
|
3533
|
-
revision_id=revision_id,
|
3534
|
-
json_patch=json_patch,
|
3535
4743
|
_request_auth=_request_auth,
|
3536
4744
|
_content_type=_content_type,
|
3537
4745
|
_headers=_headers,
|
@@ -3539,11 +4747,10 @@ class ProjectApi:
|
|
3539
4747
|
)
|
3540
4748
|
|
3541
4749
|
_response_types_map: Dict[str, Optional[str]] = {
|
3542
|
-
'
|
3543
|
-
'
|
3544
|
-
'
|
3545
|
-
'
|
3546
|
-
'404': "ErrorGeneric",
|
4750
|
+
'204': None,
|
4751
|
+
'401': "GenericError",
|
4752
|
+
'403': "GenericError",
|
4753
|
+
'404': "GenericError",
|
3547
4754
|
}
|
3548
4755
|
response_data = self.api_client.call_api(
|
3549
4756
|
*_param,
|
@@ -3557,11 +4764,9 @@ class ProjectApi:
|
|
3557
4764
|
|
3558
4765
|
|
3559
4766
|
@validate_call
|
3560
|
-
def
|
4767
|
+
def purge_project_with_http_info(
|
3561
4768
|
self,
|
3562
4769
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3563
|
-
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3564
|
-
json_patch: Optional[List[JsonPatch]] = None,
|
3565
4770
|
_request_timeout: Union[
|
3566
4771
|
None,
|
3567
4772
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3574,17 +4779,13 @@ class ProjectApi:
|
|
3574
4779
|
_content_type: Optional[StrictStr] = None,
|
3575
4780
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3576
4781
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3577
|
-
) -> ApiResponse[
|
3578
|
-
"""
|
4782
|
+
) -> ApiResponse[None]:
|
4783
|
+
"""Irrecoverably purge a project
|
3579
4784
|
|
3580
|
-
|
4785
|
+
!! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
|
3581
4786
|
|
3582
4787
|
:param project_id: Project ID The project's ID. (required)
|
3583
4788
|
:type project_id: str
|
3584
|
-
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
3585
|
-
:type revision_id: str
|
3586
|
-
:param json_patch:
|
3587
|
-
:type json_patch: List[JsonPatch]
|
3588
4789
|
:param _request_timeout: timeout setting for this request. If one
|
3589
4790
|
number provided, it will be total request
|
3590
4791
|
timeout. It can also be a pair (tuple) of
|
@@ -3607,10 +4808,8 @@ class ProjectApi:
|
|
3607
4808
|
:return: Returns the result object.
|
3608
4809
|
""" # noqa: E501
|
3609
4810
|
|
3610
|
-
_param = self.
|
4811
|
+
_param = self._purge_project_serialize(
|
3611
4812
|
project_id=project_id,
|
3612
|
-
revision_id=revision_id,
|
3613
|
-
json_patch=json_patch,
|
3614
4813
|
_request_auth=_request_auth,
|
3615
4814
|
_content_type=_content_type,
|
3616
4815
|
_headers=_headers,
|
@@ -3618,11 +4817,10 @@ class ProjectApi:
|
|
3618
4817
|
)
|
3619
4818
|
|
3620
4819
|
_response_types_map: Dict[str, Optional[str]] = {
|
3621
|
-
'
|
3622
|
-
'
|
3623
|
-
'
|
3624
|
-
'
|
3625
|
-
'404': "ErrorGeneric",
|
4820
|
+
'204': None,
|
4821
|
+
'401': "GenericError",
|
4822
|
+
'403': "GenericError",
|
4823
|
+
'404': "GenericError",
|
3626
4824
|
}
|
3627
4825
|
response_data = self.api_client.call_api(
|
3628
4826
|
*_param,
|
@@ -3636,11 +4834,9 @@ class ProjectApi:
|
|
3636
4834
|
|
3637
4835
|
|
3638
4836
|
@validate_call
|
3639
|
-
def
|
4837
|
+
def purge_project_without_preload_content(
|
3640
4838
|
self,
|
3641
4839
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
3642
|
-
revision_id: Annotated[StrictStr, Field(description="Revision ID The revision ID that this patch was generated for.")],
|
3643
|
-
json_patch: Optional[List[JsonPatch]] = None,
|
3644
4840
|
_request_timeout: Union[
|
3645
4841
|
None,
|
3646
4842
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3654,16 +4850,12 @@ class ProjectApi:
|
|
3654
4850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3655
4851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3656
4852
|
) -> RESTResponseType:
|
3657
|
-
"""
|
4853
|
+
"""Irrecoverably purge a project
|
3658
4854
|
|
3659
|
-
|
4855
|
+
!! Use with extreme caution !! Using this API endpoint you can purge (completely delete) a project and its data. This action can not be undone and will delete ALL your data. Calling this endpoint will additionally delete custom domains and other related data. If the project is linked to a subscription, the subscription needs to be unlinked first.
|
3660
4856
|
|
3661
4857
|
:param project_id: Project ID The project's ID. (required)
|
3662
4858
|
:type project_id: str
|
3663
|
-
:param revision_id: Revision ID The revision ID that this patch was generated for. (required)
|
3664
|
-
:type revision_id: str
|
3665
|
-
:param json_patch:
|
3666
|
-
:type json_patch: List[JsonPatch]
|
3667
4859
|
:param _request_timeout: timeout setting for this request. If one
|
3668
4860
|
number provided, it will be total request
|
3669
4861
|
timeout. It can also be a pair (tuple) of
|
@@ -3686,10 +4878,8 @@ class ProjectApi:
|
|
3686
4878
|
:return: Returns the result object.
|
3687
4879
|
""" # noqa: E501
|
3688
4880
|
|
3689
|
-
_param = self.
|
4881
|
+
_param = self._purge_project_serialize(
|
3690
4882
|
project_id=project_id,
|
3691
|
-
revision_id=revision_id,
|
3692
|
-
json_patch=json_patch,
|
3693
4883
|
_request_auth=_request_auth,
|
3694
4884
|
_content_type=_content_type,
|
3695
4885
|
_headers=_headers,
|
@@ -3697,11 +4887,10 @@ class ProjectApi:
|
|
3697
4887
|
)
|
3698
4888
|
|
3699
4889
|
_response_types_map: Dict[str, Optional[str]] = {
|
3700
|
-
'
|
3701
|
-
'
|
3702
|
-
'
|
3703
|
-
'
|
3704
|
-
'404': "ErrorGeneric",
|
4890
|
+
'204': None,
|
4891
|
+
'401': "GenericError",
|
4892
|
+
'403': "GenericError",
|
4893
|
+
'404': "GenericError",
|
3705
4894
|
}
|
3706
4895
|
response_data = self.api_client.call_api(
|
3707
4896
|
*_param,
|
@@ -3710,11 +4899,9 @@ class ProjectApi:
|
|
3710
4899
|
return response_data.response
|
3711
4900
|
|
3712
4901
|
|
3713
|
-
def
|
4902
|
+
def _purge_project_serialize(
|
3714
4903
|
self,
|
3715
4904
|
project_id,
|
3716
|
-
revision_id,
|
3717
|
-
json_patch,
|
3718
4905
|
_request_auth,
|
3719
4906
|
_content_type,
|
3720
4907
|
_headers,
|
@@ -3727,7 +4914,6 @@ class ProjectApi:
|
|
3727
4914
|
_host = _hosts[_host_index]
|
3728
4915
|
|
3729
4916
|
_collection_formats: Dict[str, str] = {
|
3730
|
-
'JsonPatch': '',
|
3731
4917
|
}
|
3732
4918
|
|
3733
4919
|
_path_params: Dict[str, str] = {}
|
@@ -3742,14 +4928,10 @@ class ProjectApi:
|
|
3742
4928
|
# process the path parameters
|
3743
4929
|
if project_id is not None:
|
3744
4930
|
_path_params['project_id'] = project_id
|
3745
|
-
if revision_id is not None:
|
3746
|
-
_path_params['revision_id'] = revision_id
|
3747
4931
|
# process the query parameters
|
3748
4932
|
# process the header parameters
|
3749
4933
|
# process the form parameters
|
3750
4934
|
# process the body parameter
|
3751
|
-
if json_patch is not None:
|
3752
|
-
_body_params = json_patch
|
3753
4935
|
|
3754
4936
|
|
3755
4937
|
# set the HTTP header `Accept`
|
@@ -3760,19 +4942,6 @@ class ProjectApi:
|
|
3760
4942
|
]
|
3761
4943
|
)
|
3762
4944
|
|
3763
|
-
# set the HTTP header `Content-Type`
|
3764
|
-
if _content_type:
|
3765
|
-
_header_params['Content-Type'] = _content_type
|
3766
|
-
else:
|
3767
|
-
_default_content_type = (
|
3768
|
-
self.api_client.select_header_content_type(
|
3769
|
-
[
|
3770
|
-
'application/json'
|
3771
|
-
]
|
3772
|
-
)
|
3773
|
-
)
|
3774
|
-
if _default_content_type is not None:
|
3775
|
-
_header_params['Content-Type'] = _default_content_type
|
3776
4945
|
|
3777
4946
|
# authentication setting
|
3778
4947
|
_auth_settings: List[str] = [
|
@@ -3780,8 +4949,8 @@ class ProjectApi:
|
|
3780
4949
|
]
|
3781
4950
|
|
3782
4951
|
return self.api_client.param_serialize(
|
3783
|
-
method='
|
3784
|
-
resource_path='/projects/{project_id}
|
4952
|
+
method='DELETE',
|
4953
|
+
resource_path='/projects/{project_id}',
|
3785
4954
|
path_params=_path_params,
|
3786
4955
|
query_params=_query_params,
|
3787
4956
|
header_params=_header_params,
|
@@ -3798,9 +4967,10 @@ class ProjectApi:
|
|
3798
4967
|
|
3799
4968
|
|
3800
4969
|
@validate_call
|
3801
|
-
def
|
4970
|
+
def remove_project_member(
|
3802
4971
|
self,
|
3803
|
-
|
4972
|
+
project: StrictStr,
|
4973
|
+
member: StrictStr,
|
3804
4974
|
_request_timeout: Union[
|
3805
4975
|
None,
|
3806
4976
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3814,12 +4984,14 @@ class ProjectApi:
|
|
3814
4984
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3815
4985
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3816
4986
|
) -> None:
|
3817
|
-
"""
|
4987
|
+
"""Remove a member associated with this project
|
3818
4988
|
|
3819
|
-
|
4989
|
+
This also sets their invite status to `REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`.
|
3820
4990
|
|
3821
|
-
:param
|
3822
|
-
:type
|
4991
|
+
:param project: (required)
|
4992
|
+
:type project: str
|
4993
|
+
:param member: (required)
|
4994
|
+
:type member: str
|
3823
4995
|
:param _request_timeout: timeout setting for this request. If one
|
3824
4996
|
number provided, it will be total request
|
3825
4997
|
timeout. It can also be a pair (tuple) of
|
@@ -3842,8 +5014,9 @@ class ProjectApi:
|
|
3842
5014
|
:return: Returns the result object.
|
3843
5015
|
""" # noqa: E501
|
3844
5016
|
|
3845
|
-
_param = self.
|
3846
|
-
|
5017
|
+
_param = self._remove_project_member_serialize(
|
5018
|
+
project=project,
|
5019
|
+
member=member,
|
3847
5020
|
_request_auth=_request_auth,
|
3848
5021
|
_content_type=_content_type,
|
3849
5022
|
_headers=_headers,
|
@@ -3853,8 +5026,7 @@ class ProjectApi:
|
|
3853
5026
|
_response_types_map: Dict[str, Optional[str]] = {
|
3854
5027
|
'204': None,
|
3855
5028
|
'401': "GenericError",
|
3856
|
-
'
|
3857
|
-
'404': "GenericError",
|
5029
|
+
'406': "GenericError",
|
3858
5030
|
}
|
3859
5031
|
response_data = self.api_client.call_api(
|
3860
5032
|
*_param,
|
@@ -3868,9 +5040,10 @@ class ProjectApi:
|
|
3868
5040
|
|
3869
5041
|
|
3870
5042
|
@validate_call
|
3871
|
-
def
|
5043
|
+
def remove_project_member_with_http_info(
|
3872
5044
|
self,
|
3873
|
-
|
5045
|
+
project: StrictStr,
|
5046
|
+
member: StrictStr,
|
3874
5047
|
_request_timeout: Union[
|
3875
5048
|
None,
|
3876
5049
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3884,12 +5057,14 @@ class ProjectApi:
|
|
3884
5057
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3885
5058
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3886
5059
|
) -> ApiResponse[None]:
|
3887
|
-
"""
|
5060
|
+
"""Remove a member associated with this project
|
3888
5061
|
|
3889
|
-
|
5062
|
+
This also sets their invite status to `REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`.
|
3890
5063
|
|
3891
|
-
:param
|
3892
|
-
:type
|
5064
|
+
:param project: (required)
|
5065
|
+
:type project: str
|
5066
|
+
:param member: (required)
|
5067
|
+
:type member: str
|
3893
5068
|
:param _request_timeout: timeout setting for this request. If one
|
3894
5069
|
number provided, it will be total request
|
3895
5070
|
timeout. It can also be a pair (tuple) of
|
@@ -3912,8 +5087,9 @@ class ProjectApi:
|
|
3912
5087
|
:return: Returns the result object.
|
3913
5088
|
""" # noqa: E501
|
3914
5089
|
|
3915
|
-
_param = self.
|
3916
|
-
|
5090
|
+
_param = self._remove_project_member_serialize(
|
5091
|
+
project=project,
|
5092
|
+
member=member,
|
3917
5093
|
_request_auth=_request_auth,
|
3918
5094
|
_content_type=_content_type,
|
3919
5095
|
_headers=_headers,
|
@@ -3923,8 +5099,7 @@ class ProjectApi:
|
|
3923
5099
|
_response_types_map: Dict[str, Optional[str]] = {
|
3924
5100
|
'204': None,
|
3925
5101
|
'401': "GenericError",
|
3926
|
-
'
|
3927
|
-
'404': "GenericError",
|
5102
|
+
'406': "GenericError",
|
3928
5103
|
}
|
3929
5104
|
response_data = self.api_client.call_api(
|
3930
5105
|
*_param,
|
@@ -3938,9 +5113,10 @@ class ProjectApi:
|
|
3938
5113
|
|
3939
5114
|
|
3940
5115
|
@validate_call
|
3941
|
-
def
|
5116
|
+
def remove_project_member_without_preload_content(
|
3942
5117
|
self,
|
3943
|
-
|
5118
|
+
project: StrictStr,
|
5119
|
+
member: StrictStr,
|
3944
5120
|
_request_timeout: Union[
|
3945
5121
|
None,
|
3946
5122
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3954,12 +5130,14 @@ class ProjectApi:
|
|
3954
5130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3955
5131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3956
5132
|
) -> RESTResponseType:
|
3957
|
-
"""
|
5133
|
+
"""Remove a member associated with this project
|
3958
5134
|
|
3959
|
-
|
5135
|
+
This also sets their invite status to `REMOVED`. This endpoint requires the user to be a member of the project with the role `OWNER`.
|
3960
5136
|
|
3961
|
-
:param
|
3962
|
-
:type
|
5137
|
+
:param project: (required)
|
5138
|
+
:type project: str
|
5139
|
+
:param member: (required)
|
5140
|
+
:type member: str
|
3963
5141
|
:param _request_timeout: timeout setting for this request. If one
|
3964
5142
|
number provided, it will be total request
|
3965
5143
|
timeout. It can also be a pair (tuple) of
|
@@ -3982,8 +5160,9 @@ class ProjectApi:
|
|
3982
5160
|
:return: Returns the result object.
|
3983
5161
|
""" # noqa: E501
|
3984
5162
|
|
3985
|
-
_param = self.
|
3986
|
-
|
5163
|
+
_param = self._remove_project_member_serialize(
|
5164
|
+
project=project,
|
5165
|
+
member=member,
|
3987
5166
|
_request_auth=_request_auth,
|
3988
5167
|
_content_type=_content_type,
|
3989
5168
|
_headers=_headers,
|
@@ -3993,8 +5172,7 @@ class ProjectApi:
|
|
3993
5172
|
_response_types_map: Dict[str, Optional[str]] = {
|
3994
5173
|
'204': None,
|
3995
5174
|
'401': "GenericError",
|
3996
|
-
'
|
3997
|
-
'404': "GenericError",
|
5175
|
+
'406': "GenericError",
|
3998
5176
|
}
|
3999
5177
|
response_data = self.api_client.call_api(
|
4000
5178
|
*_param,
|
@@ -4003,9 +5181,10 @@ class ProjectApi:
|
|
4003
5181
|
return response_data.response
|
4004
5182
|
|
4005
5183
|
|
4006
|
-
def
|
5184
|
+
def _remove_project_member_serialize(
|
4007
5185
|
self,
|
4008
|
-
|
5186
|
+
project,
|
5187
|
+
member,
|
4009
5188
|
_request_auth,
|
4010
5189
|
_content_type,
|
4011
5190
|
_headers,
|
@@ -4030,8 +5209,10 @@ class ProjectApi:
|
|
4030
5209
|
_body_params: Optional[bytes] = None
|
4031
5210
|
|
4032
5211
|
# process the path parameters
|
4033
|
-
if
|
4034
|
-
_path_params['
|
5212
|
+
if project is not None:
|
5213
|
+
_path_params['project'] = project
|
5214
|
+
if member is not None:
|
5215
|
+
_path_params['member'] = member
|
4035
5216
|
# process the query parameters
|
4036
5217
|
# process the header parameters
|
4037
5218
|
# process the form parameters
|
@@ -4054,7 +5235,7 @@ class ProjectApi:
|
|
4054
5235
|
|
4055
5236
|
return self.api_client.param_serialize(
|
4056
5237
|
method='DELETE',
|
4057
|
-
resource_path='/projects/{
|
5238
|
+
resource_path='/projects/{project}/members/{member}',
|
4058
5239
|
path_params=_path_params,
|
4059
5240
|
query_params=_query_params,
|
4060
5241
|
header_params=_header_params,
|
@@ -4071,10 +5252,10 @@ class ProjectApi:
|
|
4071
5252
|
|
4072
5253
|
|
4073
5254
|
@validate_call
|
4074
|
-
def
|
5255
|
+
def set_project(
|
4075
5256
|
self,
|
4076
|
-
|
4077
|
-
|
5257
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
5258
|
+
set_project: Optional[SetProject] = None,
|
4078
5259
|
_request_timeout: Union[
|
4079
5260
|
None,
|
4080
5261
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4087,15 +5268,15 @@ class ProjectApi:
|
|
4087
5268
|
_content_type: Optional[StrictStr] = None,
|
4088
5269
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4089
5270
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4090
|
-
) ->
|
4091
|
-
"""
|
5271
|
+
) -> SuccessfulProjectUpdate:
|
5272
|
+
"""Update an Ory Network Project Configuration
|
4092
5273
|
|
4093
|
-
This
|
5274
|
+
This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
|
4094
5275
|
|
4095
|
-
:param
|
4096
|
-
:type
|
4097
|
-
:param
|
4098
|
-
:type
|
5276
|
+
:param project_id: Project ID The project's ID. (required)
|
5277
|
+
:type project_id: str
|
5278
|
+
:param set_project:
|
5279
|
+
:type set_project: SetProject
|
4099
5280
|
:param _request_timeout: timeout setting for this request. If one
|
4100
5281
|
number provided, it will be total request
|
4101
5282
|
timeout. It can also be a pair (tuple) of
|
@@ -4118,9 +5299,9 @@ class ProjectApi:
|
|
4118
5299
|
:return: Returns the result object.
|
4119
5300
|
""" # noqa: E501
|
4120
5301
|
|
4121
|
-
_param = self.
|
4122
|
-
|
4123
|
-
|
5302
|
+
_param = self._set_project_serialize(
|
5303
|
+
project_id=project_id,
|
5304
|
+
set_project=set_project,
|
4124
5305
|
_request_auth=_request_auth,
|
4125
5306
|
_content_type=_content_type,
|
4126
5307
|
_headers=_headers,
|
@@ -4128,9 +5309,11 @@ class ProjectApi:
|
|
4128
5309
|
)
|
4129
5310
|
|
4130
5311
|
_response_types_map: Dict[str, Optional[str]] = {
|
4131
|
-
'
|
4132
|
-
'
|
4133
|
-
'
|
5312
|
+
'200': "SuccessfulProjectUpdate",
|
5313
|
+
'400': "ErrorGeneric",
|
5314
|
+
'401': "ErrorGeneric",
|
5315
|
+
'403': "ErrorGeneric",
|
5316
|
+
'404': "ErrorGeneric",
|
4134
5317
|
}
|
4135
5318
|
response_data = self.api_client.call_api(
|
4136
5319
|
*_param,
|
@@ -4144,10 +5327,10 @@ class ProjectApi:
|
|
4144
5327
|
|
4145
5328
|
|
4146
5329
|
@validate_call
|
4147
|
-
def
|
5330
|
+
def set_project_with_http_info(
|
4148
5331
|
self,
|
4149
|
-
|
4150
|
-
|
5332
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
5333
|
+
set_project: Optional[SetProject] = None,
|
4151
5334
|
_request_timeout: Union[
|
4152
5335
|
None,
|
4153
5336
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4160,15 +5343,15 @@ class ProjectApi:
|
|
4160
5343
|
_content_type: Optional[StrictStr] = None,
|
4161
5344
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4162
5345
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4163
|
-
) -> ApiResponse[
|
4164
|
-
"""
|
5346
|
+
) -> ApiResponse[SuccessfulProjectUpdate]:
|
5347
|
+
"""Update an Ory Network Project Configuration
|
4165
5348
|
|
4166
|
-
This
|
5349
|
+
This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
|
4167
5350
|
|
4168
|
-
:param
|
4169
|
-
:type
|
4170
|
-
:param
|
4171
|
-
:type
|
5351
|
+
:param project_id: Project ID The project's ID. (required)
|
5352
|
+
:type project_id: str
|
5353
|
+
:param set_project:
|
5354
|
+
:type set_project: SetProject
|
4172
5355
|
:param _request_timeout: timeout setting for this request. If one
|
4173
5356
|
number provided, it will be total request
|
4174
5357
|
timeout. It can also be a pair (tuple) of
|
@@ -4191,9 +5374,9 @@ class ProjectApi:
|
|
4191
5374
|
:return: Returns the result object.
|
4192
5375
|
""" # noqa: E501
|
4193
5376
|
|
4194
|
-
_param = self.
|
4195
|
-
|
4196
|
-
|
5377
|
+
_param = self._set_project_serialize(
|
5378
|
+
project_id=project_id,
|
5379
|
+
set_project=set_project,
|
4197
5380
|
_request_auth=_request_auth,
|
4198
5381
|
_content_type=_content_type,
|
4199
5382
|
_headers=_headers,
|
@@ -4201,9 +5384,11 @@ class ProjectApi:
|
|
4201
5384
|
)
|
4202
5385
|
|
4203
5386
|
_response_types_map: Dict[str, Optional[str]] = {
|
4204
|
-
'
|
4205
|
-
'
|
4206
|
-
'
|
5387
|
+
'200': "SuccessfulProjectUpdate",
|
5388
|
+
'400': "ErrorGeneric",
|
5389
|
+
'401': "ErrorGeneric",
|
5390
|
+
'403': "ErrorGeneric",
|
5391
|
+
'404': "ErrorGeneric",
|
4207
5392
|
}
|
4208
5393
|
response_data = self.api_client.call_api(
|
4209
5394
|
*_param,
|
@@ -4217,10 +5402,10 @@ class ProjectApi:
|
|
4217
5402
|
|
4218
5403
|
|
4219
5404
|
@validate_call
|
4220
|
-
def
|
5405
|
+
def set_project_without_preload_content(
|
4221
5406
|
self,
|
4222
|
-
|
4223
|
-
|
5407
|
+
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
5408
|
+
set_project: Optional[SetProject] = None,
|
4224
5409
|
_request_timeout: Union[
|
4225
5410
|
None,
|
4226
5411
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4234,14 +5419,14 @@ class ProjectApi:
|
|
4234
5419
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4235
5420
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4236
5421
|
) -> RESTResponseType:
|
4237
|
-
"""
|
5422
|
+
"""Update an Ory Network Project Configuration
|
4238
5423
|
|
4239
|
-
This
|
5424
|
+
This endpoints allows you to update the Ory Network project configuration for individual services (identity, permission, ...). The configuration is fully compatible with the open source projects for the respective services (e.g. Ory Kratos for Identity, Ory Keto for Permissions). This endpoint expects the `version` key to be set in the payload. If it is unset, it will try to import the config as if it is from the most recent version. If you have an older version of a configuration, you should set the version key in the payload! While this endpoint is able to process all configuration items related to features (e.g. password reset), it does not support operational configuration items (e.g. port, tracing, logging) otherwise available in the open source. For configuration items that can not be translated to the Ory Network, this endpoint will return a list of warnings to help you understand which parts of your config could not be processed. Be aware that updating any service's configuration will completely override your current configuration for that service!
|
4240
5425
|
|
4241
|
-
:param
|
4242
|
-
:type
|
4243
|
-
:param
|
4244
|
-
:type
|
5426
|
+
:param project_id: Project ID The project's ID. (required)
|
5427
|
+
:type project_id: str
|
5428
|
+
:param set_project:
|
5429
|
+
:type set_project: SetProject
|
4245
5430
|
:param _request_timeout: timeout setting for this request. If one
|
4246
5431
|
number provided, it will be total request
|
4247
5432
|
timeout. It can also be a pair (tuple) of
|
@@ -4264,9 +5449,9 @@ class ProjectApi:
|
|
4264
5449
|
:return: Returns the result object.
|
4265
5450
|
""" # noqa: E501
|
4266
5451
|
|
4267
|
-
_param = self.
|
4268
|
-
|
4269
|
-
|
5452
|
+
_param = self._set_project_serialize(
|
5453
|
+
project_id=project_id,
|
5454
|
+
set_project=set_project,
|
4270
5455
|
_request_auth=_request_auth,
|
4271
5456
|
_content_type=_content_type,
|
4272
5457
|
_headers=_headers,
|
@@ -4274,9 +5459,11 @@ class ProjectApi:
|
|
4274
5459
|
)
|
4275
5460
|
|
4276
5461
|
_response_types_map: Dict[str, Optional[str]] = {
|
4277
|
-
'
|
4278
|
-
'
|
4279
|
-
'
|
5462
|
+
'200': "SuccessfulProjectUpdate",
|
5463
|
+
'400': "ErrorGeneric",
|
5464
|
+
'401': "ErrorGeneric",
|
5465
|
+
'403': "ErrorGeneric",
|
5466
|
+
'404': "ErrorGeneric",
|
4280
5467
|
}
|
4281
5468
|
response_data = self.api_client.call_api(
|
4282
5469
|
*_param,
|
@@ -4285,10 +5472,10 @@ class ProjectApi:
|
|
4285
5472
|
return response_data.response
|
4286
5473
|
|
4287
5474
|
|
4288
|
-
def
|
5475
|
+
def _set_project_serialize(
|
4289
5476
|
self,
|
4290
|
-
|
4291
|
-
|
5477
|
+
project_id,
|
5478
|
+
set_project,
|
4292
5479
|
_request_auth,
|
4293
5480
|
_content_type,
|
4294
5481
|
_headers,
|
@@ -4313,14 +5500,14 @@ class ProjectApi:
|
|
4313
5500
|
_body_params: Optional[bytes] = None
|
4314
5501
|
|
4315
5502
|
# process the path parameters
|
4316
|
-
if
|
4317
|
-
_path_params['
|
4318
|
-
if member is not None:
|
4319
|
-
_path_params['member'] = member
|
5503
|
+
if project_id is not None:
|
5504
|
+
_path_params['project_id'] = project_id
|
4320
5505
|
# process the query parameters
|
4321
5506
|
# process the header parameters
|
4322
5507
|
# process the form parameters
|
4323
5508
|
# process the body parameter
|
5509
|
+
if set_project is not None:
|
5510
|
+
_body_params = set_project
|
4324
5511
|
|
4325
5512
|
|
4326
5513
|
# set the HTTP header `Accept`
|
@@ -4331,6 +5518,19 @@ class ProjectApi:
|
|
4331
5518
|
]
|
4332
5519
|
)
|
4333
5520
|
|
5521
|
+
# set the HTTP header `Content-Type`
|
5522
|
+
if _content_type:
|
5523
|
+
_header_params['Content-Type'] = _content_type
|
5524
|
+
else:
|
5525
|
+
_default_content_type = (
|
5526
|
+
self.api_client.select_header_content_type(
|
5527
|
+
[
|
5528
|
+
'application/json'
|
5529
|
+
]
|
5530
|
+
)
|
5531
|
+
)
|
5532
|
+
if _default_content_type is not None:
|
5533
|
+
_header_params['Content-Type'] = _default_content_type
|
4334
5534
|
|
4335
5535
|
# authentication setting
|
4336
5536
|
_auth_settings: List[str] = [
|
@@ -4338,8 +5538,8 @@ class ProjectApi:
|
|
4338
5538
|
]
|
4339
5539
|
|
4340
5540
|
return self.api_client.param_serialize(
|
4341
|
-
method='
|
4342
|
-
resource_path='/projects/{
|
5541
|
+
method='PUT',
|
5542
|
+
resource_path='/projects/{project_id}',
|
4343
5543
|
path_params=_path_params,
|
4344
5544
|
query_params=_query_params,
|
4345
5545
|
header_params=_header_params,
|
@@ -4356,10 +5556,11 @@ class ProjectApi:
|
|
4356
5556
|
|
4357
5557
|
|
4358
5558
|
@validate_call
|
4359
|
-
def
|
5559
|
+
def update_organization(
|
4360
5560
|
self,
|
4361
5561
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4362
|
-
|
5562
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
5563
|
+
organization_body: Optional[OrganizationBody] = None,
|
4363
5564
|
_request_timeout: Union[
|
4364
5565
|
None,
|
4365
5566
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4372,15 +5573,17 @@ class ProjectApi:
|
|
4372
5573
|
_content_type: Optional[StrictStr] = None,
|
4373
5574
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4374
5575
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4375
|
-
) ->
|
4376
|
-
"""Update an
|
5576
|
+
) -> Organization:
|
5577
|
+
"""Update an Enterprise SSO Organization
|
4377
5578
|
|
4378
|
-
|
5579
|
+
Updates an Enterprise SSO Organization in a project by its ID.
|
4379
5580
|
|
4380
5581
|
:param project_id: Project ID The project's ID. (required)
|
4381
5582
|
:type project_id: str
|
4382
|
-
:param
|
4383
|
-
:type
|
5583
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
5584
|
+
:type organization_id: str
|
5585
|
+
:param organization_body:
|
5586
|
+
:type organization_body: OrganizationBody
|
4384
5587
|
:param _request_timeout: timeout setting for this request. If one
|
4385
5588
|
number provided, it will be total request
|
4386
5589
|
timeout. It can also be a pair (tuple) of
|
@@ -4403,9 +5606,10 @@ class ProjectApi:
|
|
4403
5606
|
:return: Returns the result object.
|
4404
5607
|
""" # noqa: E501
|
4405
5608
|
|
4406
|
-
_param = self.
|
5609
|
+
_param = self._update_organization_serialize(
|
4407
5610
|
project_id=project_id,
|
4408
|
-
|
5611
|
+
organization_id=organization_id,
|
5612
|
+
organization_body=organization_body,
|
4409
5613
|
_request_auth=_request_auth,
|
4410
5614
|
_content_type=_content_type,
|
4411
5615
|
_headers=_headers,
|
@@ -4413,11 +5617,11 @@ class ProjectApi:
|
|
4413
5617
|
)
|
4414
5618
|
|
4415
5619
|
_response_types_map: Dict[str, Optional[str]] = {
|
4416
|
-
'200': "
|
5620
|
+
'200': "Organization",
|
4417
5621
|
'400': "ErrorGeneric",
|
4418
|
-
'401': "ErrorGeneric",
|
4419
5622
|
'403': "ErrorGeneric",
|
4420
5623
|
'404': "ErrorGeneric",
|
5624
|
+
'409': "ErrorGeneric",
|
4421
5625
|
}
|
4422
5626
|
response_data = self.api_client.call_api(
|
4423
5627
|
*_param,
|
@@ -4431,10 +5635,11 @@ class ProjectApi:
|
|
4431
5635
|
|
4432
5636
|
|
4433
5637
|
@validate_call
|
4434
|
-
def
|
5638
|
+
def update_organization_with_http_info(
|
4435
5639
|
self,
|
4436
5640
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4437
|
-
|
5641
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
5642
|
+
organization_body: Optional[OrganizationBody] = None,
|
4438
5643
|
_request_timeout: Union[
|
4439
5644
|
None,
|
4440
5645
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4447,15 +5652,17 @@ class ProjectApi:
|
|
4447
5652
|
_content_type: Optional[StrictStr] = None,
|
4448
5653
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4449
5654
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4450
|
-
) -> ApiResponse[
|
4451
|
-
"""Update an
|
5655
|
+
) -> ApiResponse[Organization]:
|
5656
|
+
"""Update an Enterprise SSO Organization
|
4452
5657
|
|
4453
|
-
|
5658
|
+
Updates an Enterprise SSO Organization in a project by its ID.
|
4454
5659
|
|
4455
5660
|
:param project_id: Project ID The project's ID. (required)
|
4456
5661
|
:type project_id: str
|
4457
|
-
:param
|
4458
|
-
:type
|
5662
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
5663
|
+
:type organization_id: str
|
5664
|
+
:param organization_body:
|
5665
|
+
:type organization_body: OrganizationBody
|
4459
5666
|
:param _request_timeout: timeout setting for this request. If one
|
4460
5667
|
number provided, it will be total request
|
4461
5668
|
timeout. It can also be a pair (tuple) of
|
@@ -4478,9 +5685,10 @@ class ProjectApi:
|
|
4478
5685
|
:return: Returns the result object.
|
4479
5686
|
""" # noqa: E501
|
4480
5687
|
|
4481
|
-
_param = self.
|
5688
|
+
_param = self._update_organization_serialize(
|
4482
5689
|
project_id=project_id,
|
4483
|
-
|
5690
|
+
organization_id=organization_id,
|
5691
|
+
organization_body=organization_body,
|
4484
5692
|
_request_auth=_request_auth,
|
4485
5693
|
_content_type=_content_type,
|
4486
5694
|
_headers=_headers,
|
@@ -4488,11 +5696,11 @@ class ProjectApi:
|
|
4488
5696
|
)
|
4489
5697
|
|
4490
5698
|
_response_types_map: Dict[str, Optional[str]] = {
|
4491
|
-
'200': "
|
5699
|
+
'200': "Organization",
|
4492
5700
|
'400': "ErrorGeneric",
|
4493
|
-
'401': "ErrorGeneric",
|
4494
5701
|
'403': "ErrorGeneric",
|
4495
5702
|
'404': "ErrorGeneric",
|
5703
|
+
'409': "ErrorGeneric",
|
4496
5704
|
}
|
4497
5705
|
response_data = self.api_client.call_api(
|
4498
5706
|
*_param,
|
@@ -4506,10 +5714,11 @@ class ProjectApi:
|
|
4506
5714
|
|
4507
5715
|
|
4508
5716
|
@validate_call
|
4509
|
-
def
|
5717
|
+
def update_organization_without_preload_content(
|
4510
5718
|
self,
|
4511
5719
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4512
|
-
|
5720
|
+
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
5721
|
+
organization_body: Optional[OrganizationBody] = None,
|
4513
5722
|
_request_timeout: Union[
|
4514
5723
|
None,
|
4515
5724
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4523,14 +5732,16 @@ class ProjectApi:
|
|
4523
5732
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4524
5733
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4525
5734
|
) -> RESTResponseType:
|
4526
|
-
"""Update an
|
5735
|
+
"""Update an Enterprise SSO Organization
|
4527
5736
|
|
4528
|
-
|
5737
|
+
Updates an Enterprise SSO Organization in a project by its ID.
|
4529
5738
|
|
4530
5739
|
:param project_id: Project ID The project's ID. (required)
|
4531
5740
|
:type project_id: str
|
4532
|
-
:param
|
4533
|
-
:type
|
5741
|
+
:param organization_id: Organization ID The Organization's ID. (required)
|
5742
|
+
:type organization_id: str
|
5743
|
+
:param organization_body:
|
5744
|
+
:type organization_body: OrganizationBody
|
4534
5745
|
:param _request_timeout: timeout setting for this request. If one
|
4535
5746
|
number provided, it will be total request
|
4536
5747
|
timeout. It can also be a pair (tuple) of
|
@@ -4553,9 +5764,10 @@ class ProjectApi:
|
|
4553
5764
|
:return: Returns the result object.
|
4554
5765
|
""" # noqa: E501
|
4555
5766
|
|
4556
|
-
_param = self.
|
5767
|
+
_param = self._update_organization_serialize(
|
4557
5768
|
project_id=project_id,
|
4558
|
-
|
5769
|
+
organization_id=organization_id,
|
5770
|
+
organization_body=organization_body,
|
4559
5771
|
_request_auth=_request_auth,
|
4560
5772
|
_content_type=_content_type,
|
4561
5773
|
_headers=_headers,
|
@@ -4563,11 +5775,11 @@ class ProjectApi:
|
|
4563
5775
|
)
|
4564
5776
|
|
4565
5777
|
_response_types_map: Dict[str, Optional[str]] = {
|
4566
|
-
'200': "
|
5778
|
+
'200': "Organization",
|
4567
5779
|
'400': "ErrorGeneric",
|
4568
|
-
'401': "ErrorGeneric",
|
4569
5780
|
'403': "ErrorGeneric",
|
4570
5781
|
'404': "ErrorGeneric",
|
5782
|
+
'409': "ErrorGeneric",
|
4571
5783
|
}
|
4572
5784
|
response_data = self.api_client.call_api(
|
4573
5785
|
*_param,
|
@@ -4576,10 +5788,11 @@ class ProjectApi:
|
|
4576
5788
|
return response_data.response
|
4577
5789
|
|
4578
5790
|
|
4579
|
-
def
|
5791
|
+
def _update_organization_serialize(
|
4580
5792
|
self,
|
4581
5793
|
project_id,
|
4582
|
-
|
5794
|
+
organization_id,
|
5795
|
+
organization_body,
|
4583
5796
|
_request_auth,
|
4584
5797
|
_content_type,
|
4585
5798
|
_headers,
|
@@ -4606,12 +5819,14 @@ class ProjectApi:
|
|
4606
5819
|
# process the path parameters
|
4607
5820
|
if project_id is not None:
|
4608
5821
|
_path_params['project_id'] = project_id
|
5822
|
+
if organization_id is not None:
|
5823
|
+
_path_params['organization_id'] = organization_id
|
4609
5824
|
# process the query parameters
|
4610
5825
|
# process the header parameters
|
4611
5826
|
# process the form parameters
|
4612
5827
|
# process the body parameter
|
4613
|
-
if
|
4614
|
-
_body_params =
|
5828
|
+
if organization_body is not None:
|
5829
|
+
_body_params = organization_body
|
4615
5830
|
|
4616
5831
|
|
4617
5832
|
# set the HTTP header `Accept`
|
@@ -4643,7 +5858,7 @@ class ProjectApi:
|
|
4643
5858
|
|
4644
5859
|
return self.api_client.param_serialize(
|
4645
5860
|
method='PUT',
|
4646
|
-
resource_path='/projects/{project_id}',
|
5861
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}',
|
4647
5862
|
path_params=_path_params,
|
4648
5863
|
query_params=_query_params,
|
4649
5864
|
header_params=_header_params,
|
@@ -4660,11 +5875,12 @@ class ProjectApi:
|
|
4660
5875
|
|
4661
5876
|
|
4662
5877
|
@validate_call
|
4663
|
-
def
|
5878
|
+
def update_organization_onboarding_portal_link(
|
4664
5879
|
self,
|
4665
5880
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4666
5881
|
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
4667
|
-
|
5882
|
+
onboarding_portal_link_id: StrictStr,
|
5883
|
+
update_organization_onboarding_portal_link_body: Optional[UpdateOrganizationOnboardingPortalLinkBody] = None,
|
4668
5884
|
_request_timeout: Union[
|
4669
5885
|
None,
|
4670
5886
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4677,17 +5893,19 @@ class ProjectApi:
|
|
4677
5893
|
_content_type: Optional[StrictStr] = None,
|
4678
5894
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4679
5895
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4680
|
-
) ->
|
4681
|
-
"""Update
|
5896
|
+
) -> OnboardingPortalLink:
|
5897
|
+
"""Update organization onboarding portal link
|
4682
5898
|
|
4683
|
-
|
5899
|
+
Update a onboarding portal link for an organization.
|
4684
5900
|
|
4685
5901
|
:param project_id: Project ID The project's ID. (required)
|
4686
5902
|
:type project_id: str
|
4687
5903
|
:param organization_id: Organization ID The Organization's ID. (required)
|
4688
5904
|
:type organization_id: str
|
4689
|
-
:param
|
4690
|
-
:type
|
5905
|
+
:param onboarding_portal_link_id: (required)
|
5906
|
+
:type onboarding_portal_link_id: str
|
5907
|
+
:param update_organization_onboarding_portal_link_body:
|
5908
|
+
:type update_organization_onboarding_portal_link_body: UpdateOrganizationOnboardingPortalLinkBody
|
4691
5909
|
:param _request_timeout: timeout setting for this request. If one
|
4692
5910
|
number provided, it will be total request
|
4693
5911
|
timeout. It can also be a pair (tuple) of
|
@@ -4710,10 +5928,11 @@ class ProjectApi:
|
|
4710
5928
|
:return: Returns the result object.
|
4711
5929
|
""" # noqa: E501
|
4712
5930
|
|
4713
|
-
_param = self.
|
5931
|
+
_param = self._update_organization_onboarding_portal_link_serialize(
|
4714
5932
|
project_id=project_id,
|
4715
5933
|
organization_id=organization_id,
|
4716
|
-
|
5934
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
5935
|
+
update_organization_onboarding_portal_link_body=update_organization_onboarding_portal_link_body,
|
4717
5936
|
_request_auth=_request_auth,
|
4718
5937
|
_content_type=_content_type,
|
4719
5938
|
_headers=_headers,
|
@@ -4721,11 +5940,7 @@ class ProjectApi:
|
|
4721
5940
|
)
|
4722
5941
|
|
4723
5942
|
_response_types_map: Dict[str, Optional[str]] = {
|
4724
|
-
'200': "
|
4725
|
-
'400': "ErrorGeneric",
|
4726
|
-
'403': "ErrorGeneric",
|
4727
|
-
'404': "ErrorGeneric",
|
4728
|
-
'409': "ErrorGeneric",
|
5943
|
+
'200': "OnboardingPortalLink",
|
4729
5944
|
}
|
4730
5945
|
response_data = self.api_client.call_api(
|
4731
5946
|
*_param,
|
@@ -4739,11 +5954,12 @@ class ProjectApi:
|
|
4739
5954
|
|
4740
5955
|
|
4741
5956
|
@validate_call
|
4742
|
-
def
|
5957
|
+
def update_organization_onboarding_portal_link_with_http_info(
|
4743
5958
|
self,
|
4744
5959
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4745
5960
|
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
4746
|
-
|
5961
|
+
onboarding_portal_link_id: StrictStr,
|
5962
|
+
update_organization_onboarding_portal_link_body: Optional[UpdateOrganizationOnboardingPortalLinkBody] = None,
|
4747
5963
|
_request_timeout: Union[
|
4748
5964
|
None,
|
4749
5965
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4756,17 +5972,19 @@ class ProjectApi:
|
|
4756
5972
|
_content_type: Optional[StrictStr] = None,
|
4757
5973
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4758
5974
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4759
|
-
) -> ApiResponse[
|
4760
|
-
"""Update
|
5975
|
+
) -> ApiResponse[OnboardingPortalLink]:
|
5976
|
+
"""Update organization onboarding portal link
|
4761
5977
|
|
4762
|
-
|
5978
|
+
Update a onboarding portal link for an organization.
|
4763
5979
|
|
4764
5980
|
:param project_id: Project ID The project's ID. (required)
|
4765
5981
|
:type project_id: str
|
4766
5982
|
:param organization_id: Organization ID The Organization's ID. (required)
|
4767
5983
|
:type organization_id: str
|
4768
|
-
:param
|
4769
|
-
:type
|
5984
|
+
:param onboarding_portal_link_id: (required)
|
5985
|
+
:type onboarding_portal_link_id: str
|
5986
|
+
:param update_organization_onboarding_portal_link_body:
|
5987
|
+
:type update_organization_onboarding_portal_link_body: UpdateOrganizationOnboardingPortalLinkBody
|
4770
5988
|
:param _request_timeout: timeout setting for this request. If one
|
4771
5989
|
number provided, it will be total request
|
4772
5990
|
timeout. It can also be a pair (tuple) of
|
@@ -4789,10 +6007,11 @@ class ProjectApi:
|
|
4789
6007
|
:return: Returns the result object.
|
4790
6008
|
""" # noqa: E501
|
4791
6009
|
|
4792
|
-
_param = self.
|
6010
|
+
_param = self._update_organization_onboarding_portal_link_serialize(
|
4793
6011
|
project_id=project_id,
|
4794
6012
|
organization_id=organization_id,
|
4795
|
-
|
6013
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
6014
|
+
update_organization_onboarding_portal_link_body=update_organization_onboarding_portal_link_body,
|
4796
6015
|
_request_auth=_request_auth,
|
4797
6016
|
_content_type=_content_type,
|
4798
6017
|
_headers=_headers,
|
@@ -4800,11 +6019,7 @@ class ProjectApi:
|
|
4800
6019
|
)
|
4801
6020
|
|
4802
6021
|
_response_types_map: Dict[str, Optional[str]] = {
|
4803
|
-
'200': "
|
4804
|
-
'400': "ErrorGeneric",
|
4805
|
-
'403': "ErrorGeneric",
|
4806
|
-
'404': "ErrorGeneric",
|
4807
|
-
'409': "ErrorGeneric",
|
6022
|
+
'200': "OnboardingPortalLink",
|
4808
6023
|
}
|
4809
6024
|
response_data = self.api_client.call_api(
|
4810
6025
|
*_param,
|
@@ -4818,11 +6033,12 @@ class ProjectApi:
|
|
4818
6033
|
|
4819
6034
|
|
4820
6035
|
@validate_call
|
4821
|
-
def
|
6036
|
+
def update_organization_onboarding_portal_link_without_preload_content(
|
4822
6037
|
self,
|
4823
6038
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
4824
6039
|
organization_id: Annotated[StrictStr, Field(description="Organization ID The Organization's ID.")],
|
4825
|
-
|
6040
|
+
onboarding_portal_link_id: StrictStr,
|
6041
|
+
update_organization_onboarding_portal_link_body: Optional[UpdateOrganizationOnboardingPortalLinkBody] = None,
|
4826
6042
|
_request_timeout: Union[
|
4827
6043
|
None,
|
4828
6044
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -4836,16 +6052,18 @@ class ProjectApi:
|
|
4836
6052
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4837
6053
|
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4838
6054
|
) -> RESTResponseType:
|
4839
|
-
"""Update
|
6055
|
+
"""Update organization onboarding portal link
|
4840
6056
|
|
4841
|
-
|
6057
|
+
Update a onboarding portal link for an organization.
|
4842
6058
|
|
4843
6059
|
:param project_id: Project ID The project's ID. (required)
|
4844
6060
|
:type project_id: str
|
4845
6061
|
:param organization_id: Organization ID The Organization's ID. (required)
|
4846
6062
|
:type organization_id: str
|
4847
|
-
:param
|
4848
|
-
:type
|
6063
|
+
:param onboarding_portal_link_id: (required)
|
6064
|
+
:type onboarding_portal_link_id: str
|
6065
|
+
:param update_organization_onboarding_portal_link_body:
|
6066
|
+
:type update_organization_onboarding_portal_link_body: UpdateOrganizationOnboardingPortalLinkBody
|
4849
6067
|
:param _request_timeout: timeout setting for this request. If one
|
4850
6068
|
number provided, it will be total request
|
4851
6069
|
timeout. It can also be a pair (tuple) of
|
@@ -4868,10 +6086,11 @@ class ProjectApi:
|
|
4868
6086
|
:return: Returns the result object.
|
4869
6087
|
""" # noqa: E501
|
4870
6088
|
|
4871
|
-
_param = self.
|
6089
|
+
_param = self._update_organization_onboarding_portal_link_serialize(
|
4872
6090
|
project_id=project_id,
|
4873
6091
|
organization_id=organization_id,
|
4874
|
-
|
6092
|
+
onboarding_portal_link_id=onboarding_portal_link_id,
|
6093
|
+
update_organization_onboarding_portal_link_body=update_organization_onboarding_portal_link_body,
|
4875
6094
|
_request_auth=_request_auth,
|
4876
6095
|
_content_type=_content_type,
|
4877
6096
|
_headers=_headers,
|
@@ -4879,11 +6098,7 @@ class ProjectApi:
|
|
4879
6098
|
)
|
4880
6099
|
|
4881
6100
|
_response_types_map: Dict[str, Optional[str]] = {
|
4882
|
-
'200': "
|
4883
|
-
'400': "ErrorGeneric",
|
4884
|
-
'403': "ErrorGeneric",
|
4885
|
-
'404': "ErrorGeneric",
|
4886
|
-
'409': "ErrorGeneric",
|
6101
|
+
'200': "OnboardingPortalLink",
|
4887
6102
|
}
|
4888
6103
|
response_data = self.api_client.call_api(
|
4889
6104
|
*_param,
|
@@ -4892,11 +6107,12 @@ class ProjectApi:
|
|
4892
6107
|
return response_data.response
|
4893
6108
|
|
4894
6109
|
|
4895
|
-
def
|
6110
|
+
def _update_organization_onboarding_portal_link_serialize(
|
4896
6111
|
self,
|
4897
6112
|
project_id,
|
4898
6113
|
organization_id,
|
4899
|
-
|
6114
|
+
onboarding_portal_link_id,
|
6115
|
+
update_organization_onboarding_portal_link_body,
|
4900
6116
|
_request_auth,
|
4901
6117
|
_content_type,
|
4902
6118
|
_headers,
|
@@ -4925,12 +6141,14 @@ class ProjectApi:
|
|
4925
6141
|
_path_params['project_id'] = project_id
|
4926
6142
|
if organization_id is not None:
|
4927
6143
|
_path_params['organization_id'] = organization_id
|
6144
|
+
if onboarding_portal_link_id is not None:
|
6145
|
+
_path_params['onboarding_portal_link_id'] = onboarding_portal_link_id
|
4928
6146
|
# process the query parameters
|
4929
6147
|
# process the header parameters
|
4930
6148
|
# process the form parameters
|
4931
6149
|
# process the body parameter
|
4932
|
-
if
|
4933
|
-
_body_params =
|
6150
|
+
if update_organization_onboarding_portal_link_body is not None:
|
6151
|
+
_body_params = update_organization_onboarding_portal_link_body
|
4934
6152
|
|
4935
6153
|
|
4936
6154
|
# set the HTTP header `Accept`
|
@@ -4961,8 +6179,8 @@ class ProjectApi:
|
|
4961
6179
|
]
|
4962
6180
|
|
4963
6181
|
return self.api_client.param_serialize(
|
4964
|
-
method='
|
4965
|
-
resource_path='/projects/{project_id}/organizations/{organization_id}',
|
6182
|
+
method='POST',
|
6183
|
+
resource_path='/projects/{project_id}/organizations/{organization_id}/onboarding-portal-links/{onboarding_portal_link_id}',
|
4966
6184
|
path_params=_path_params,
|
4967
6185
|
query_params=_query_params,
|
4968
6186
|
header_params=_header_params,
|