ory-client 1.11.7__py3-none-any.whl → 1.11.11__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 +19 -9
- ory_client/api/__init__.py +1 -0
- ory_client/api/courier_api.py +1 -1
- ory_client/api/events_api.py +33 -21
- ory_client/api/frontend_api.py +1 -1
- ory_client/api/identity_api.py +7 -4
- ory_client/api/jwk_api.py +1 -1
- ory_client/api/metadata_api.py +1 -1
- ory_client/api/o_auth2_api.py +1 -1
- ory_client/api/oidc_api.py +1 -1
- ory_client/api/permission_api.py +1 -1
- ory_client/api/project_api.py +201 -967
- ory_client/api/relationship_api.py +1 -1
- ory_client/api/wellknown_api.py +1 -1
- ory_client/api/workspace_api.py +1463 -0
- ory_client/api_client.py +2 -2
- ory_client/configuration.py +34 -6
- ory_client/exceptions.py +1 -1
- ory_client/models/__init__.py +17 -8
- 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_configuration.py +109 -0
- ory_client/models/account_experience_theme_variables.py +282 -0
- ory_client/models/active_project_in_console.py +1 -1
- ory_client/models/{migration_options.py → add_project_to_workspace_body.py} +5 -5
- 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/batch_patch_identities_response.py +1 -1
- ory_client/models/billing_period_bucket.py +120 -0
- ory_client/models/check_opl_syntax_result.py +1 -1
- ory_client/models/check_permission_result.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_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_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_project_api_key_request.py +1 -1
- ory_client/models/create_project_body.py +14 -2
- 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 +27 -3
- ory_client/models/create_recovery_code_for_identity_body.py +4 -2
- 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_payload.py → create_workspace_body.py} +5 -5
- 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/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 +7 -3
- 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_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/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/{workspace_meta.py → invoice.py} +31 -28
- ory_client/models/invoice_data_v1.py +149 -0
- 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/line_item_v1.py +120 -0
- ory_client/models/list_event_streams.py +1 -1
- ory_client/models/list_invoices_response.py +113 -0
- ory_client/models/list_organizations_response.py +8 -4
- ory_client/models/{list_workspace_projects_response.py → list_workspace_projects.py} +5 -5
- ory_client/models/{list_my_workspaces_response.py → list_workspaces.py} +8 -8
- 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 +105 -0
- ory_client/models/namespace.py +1 -1
- ory_client/models/needs_privileged_session_error.py +1 -1
- ory_client/models/normalized_project.py +13 -2
- ory_client/models/normalized_project_revision.py +15 -3
- 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_third_party_provider.py +1 -1
- ory_client/models/normalized_project_revision_tokenizer_template.py +1 -1
- ory_client/models/o_auth2_client.py +1 -1
- ory_client/models/o_auth2_client_token_lifespans.py +1 -1
- ory_client/models/o_auth2_consent_request.py +1 -1
- 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 +1 -1
- ory_client/models/oidc_user_info.py +1 -1
- ory_client/models/organization.py +1 -1
- ory_client/models/organization_body.py +1 -1
- ory_client/models/pagination.py +1 -1
- ory_client/models/pagination_headers.py +1 -1
- 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_workpace_response.py → permissions_on_workspace.py} +4 -4
- 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 +20 -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 +14 -2
- 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 +12 -3
- 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/quota_usage.py +5 -5
- 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_project.py +1 -1
- 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 +103 -0
- ory_client/models/time_interval.py +104 -0
- 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 +1 -1
- ory_client/models/ui_node_attributes.py +1 -1
- ory_client/models/ui_node_image_attributes.py +1 -1
- ory_client/models/ui_node_input_attributes.py +1 -1
- ory_client/models/ui_node_meta.py +1 -1
- ory_client/models/ui_node_script_attributes.py +1 -1
- ory_client/models/ui_node_text_attributes.py +1 -1
- ory_client/models/ui_text.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_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_totp_method.py +1 -1
- ory_client/models/update_login_flow_with_web_authn_method.py +1 -1
- 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_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_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_payload.py → update_workspace_body.py} +5 -5
- 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/version.py +1 -1
- ory_client/models/warning.py +1 -1
- ory_client/models/workspace.py +9 -2
- ory_client/rest.py +1 -1
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/METADATA +1 -1
- ory_client-1.11.11.dist-info/RECORD +288 -0
- ory_client-1.11.7.dist-info/RECORD +0 -278
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/LICENSE +0 -0
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/WHEEL +0 -0
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/top_level.txt +0 -0
ory_client/api/project_api.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -17,15 +17,12 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
|
-
from
|
21
|
-
from pydantic import Field, StrictStr, field_validator
|
20
|
+
from pydantic import Field, StrictStr
|
22
21
|
from typing import List, Optional
|
23
22
|
from typing_extensions import Annotated
|
24
|
-
from ory_client.models.active_project_in_console import ActiveProjectInConsole
|
25
23
|
from ory_client.models.create_project_api_key_request import CreateProjectApiKeyRequest
|
26
24
|
from ory_client.models.create_project_body import CreateProjectBody
|
27
25
|
from ory_client.models.get_organization_response import GetOrganizationResponse
|
28
|
-
from ory_client.models.get_project_metrics_response import GetProjectMetricsResponse
|
29
26
|
from ory_client.models.json_patch import JsonPatch
|
30
27
|
from ory_client.models.list_organizations_response import ListOrganizationsResponse
|
31
28
|
from ory_client.models.organization import Organization
|
@@ -34,7 +31,6 @@ from ory_client.models.project import Project
|
|
34
31
|
from ory_client.models.project_api_key import ProjectApiKey
|
35
32
|
from ory_client.models.project_member import ProjectMember
|
36
33
|
from ory_client.models.project_metadata import ProjectMetadata
|
37
|
-
from ory_client.models.set_active_project_in_console_body import SetActiveProjectInConsoleBody
|
38
34
|
from ory_client.models.set_project import SetProject
|
39
35
|
from ory_client.models.successful_project_update import SuccessfulProjectUpdate
|
40
36
|
|
@@ -72,7 +68,7 @@ class ProjectApi:
|
|
72
68
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
73
69
|
_content_type: Optional[StrictStr] = None,
|
74
70
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
75
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
71
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
76
72
|
) -> Organization:
|
77
73
|
"""create_organization
|
78
74
|
|
@@ -146,7 +142,7 @@ class ProjectApi:
|
|
146
142
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
147
143
|
_content_type: Optional[StrictStr] = None,
|
148
144
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
149
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
145
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
150
146
|
) -> ApiResponse[Organization]:
|
151
147
|
"""create_organization
|
152
148
|
|
@@ -220,7 +216,7 @@ class ProjectApi:
|
|
220
216
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
221
217
|
_content_type: Optional[StrictStr] = None,
|
222
218
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
223
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
219
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
224
220
|
) -> RESTResponseType:
|
225
221
|
"""create_organization
|
226
222
|
|
@@ -284,7 +280,10 @@ class ProjectApi:
|
|
284
280
|
_host_index,
|
285
281
|
) -> RequestSerialized:
|
286
282
|
|
287
|
-
|
283
|
+
_hosts = [
|
284
|
+
'https://api.console.ory.sh'
|
285
|
+
]
|
286
|
+
_host = _hosts[_host_index]
|
288
287
|
|
289
288
|
_collection_formats: Dict[str, str] = {
|
290
289
|
}
|
@@ -330,7 +329,7 @@ class ProjectApi:
|
|
330
329
|
|
331
330
|
# authentication setting
|
332
331
|
_auth_settings: List[str] = [
|
333
|
-
'
|
332
|
+
'oryNetworkCookie'
|
334
333
|
]
|
335
334
|
|
336
335
|
return self.api_client.param_serialize(
|
@@ -366,7 +365,7 @@ class ProjectApi:
|
|
366
365
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
367
366
|
_content_type: Optional[StrictStr] = None,
|
368
367
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
369
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
368
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
370
369
|
) -> Project:
|
371
370
|
"""Create a Project
|
372
371
|
|
@@ -436,7 +435,7 @@ class ProjectApi:
|
|
436
435
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
437
436
|
_content_type: Optional[StrictStr] = None,
|
438
437
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
439
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
438
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
440
439
|
) -> ApiResponse[Project]:
|
441
440
|
"""Create a Project
|
442
441
|
|
@@ -506,7 +505,7 @@ class ProjectApi:
|
|
506
505
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
507
506
|
_content_type: Optional[StrictStr] = None,
|
508
507
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
509
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
508
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
510
509
|
) -> RESTResponseType:
|
511
510
|
"""Create a Project
|
512
511
|
|
@@ -566,7 +565,10 @@ class ProjectApi:
|
|
566
565
|
_host_index,
|
567
566
|
) -> RequestSerialized:
|
568
567
|
|
569
|
-
|
568
|
+
_hosts = [
|
569
|
+
'https://api.console.ory.sh'
|
570
|
+
]
|
571
|
+
_host = _hosts[_host_index]
|
570
572
|
|
571
573
|
_collection_formats: Dict[str, str] = {
|
572
574
|
}
|
@@ -610,7 +612,7 @@ class ProjectApi:
|
|
610
612
|
|
611
613
|
# authentication setting
|
612
614
|
_auth_settings: List[str] = [
|
613
|
-
'
|
615
|
+
'oryNetworkCookie'
|
614
616
|
]
|
615
617
|
|
616
618
|
return self.api_client.param_serialize(
|
@@ -647,7 +649,7 @@ class ProjectApi:
|
|
647
649
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
648
650
|
_content_type: Optional[StrictStr] = None,
|
649
651
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
650
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
652
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
651
653
|
) -> ProjectApiKey:
|
652
654
|
"""Create project API token
|
653
655
|
|
@@ -718,7 +720,7 @@ class ProjectApi:
|
|
718
720
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
719
721
|
_content_type: Optional[StrictStr] = None,
|
720
722
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
721
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
723
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
722
724
|
) -> ApiResponse[ProjectApiKey]:
|
723
725
|
"""Create project API token
|
724
726
|
|
@@ -789,7 +791,7 @@ class ProjectApi:
|
|
789
791
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
790
792
|
_content_type: Optional[StrictStr] = None,
|
791
793
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
792
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
794
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
793
795
|
) -> RESTResponseType:
|
794
796
|
"""Create project API token
|
795
797
|
|
@@ -850,7 +852,10 @@ class ProjectApi:
|
|
850
852
|
_host_index,
|
851
853
|
) -> RequestSerialized:
|
852
854
|
|
853
|
-
|
855
|
+
_hosts = [
|
856
|
+
'https://api.console.ory.sh'
|
857
|
+
]
|
858
|
+
_host = _hosts[_host_index]
|
854
859
|
|
855
860
|
_collection_formats: Dict[str, str] = {
|
856
861
|
}
|
@@ -896,7 +901,7 @@ class ProjectApi:
|
|
896
901
|
|
897
902
|
# authentication setting
|
898
903
|
_auth_settings: List[str] = [
|
899
|
-
'
|
904
|
+
'oryNetworkCookie'
|
900
905
|
]
|
901
906
|
|
902
907
|
return self.api_client.param_serialize(
|
@@ -933,10 +938,11 @@ class ProjectApi:
|
|
933
938
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
934
939
|
_content_type: Optional[StrictStr] = None,
|
935
940
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
936
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
941
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
937
942
|
) -> None:
|
938
|
-
"""
|
943
|
+
"""delete_organization
|
939
944
|
|
945
|
+
Delete a B2B SSO Organization for a project
|
940
946
|
|
941
947
|
:param project_id: Project ID The project's ID. (required)
|
942
948
|
:type project_id: str
|
@@ -1007,10 +1013,11 @@ class ProjectApi:
|
|
1007
1013
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1008
1014
|
_content_type: Optional[StrictStr] = None,
|
1009
1015
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1010
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1016
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1011
1017
|
) -> ApiResponse[None]:
|
1012
|
-
"""
|
1018
|
+
"""delete_organization
|
1013
1019
|
|
1020
|
+
Delete a B2B SSO Organization for a project
|
1014
1021
|
|
1015
1022
|
:param project_id: Project ID The project's ID. (required)
|
1016
1023
|
:type project_id: str
|
@@ -1081,10 +1088,11 @@ class ProjectApi:
|
|
1081
1088
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1082
1089
|
_content_type: Optional[StrictStr] = None,
|
1083
1090
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1084
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1091
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1085
1092
|
) -> RESTResponseType:
|
1086
|
-
"""
|
1093
|
+
"""delete_organization
|
1087
1094
|
|
1095
|
+
Delete a B2B SSO Organization for a project
|
1088
1096
|
|
1089
1097
|
:param project_id: Project ID The project's ID. (required)
|
1090
1098
|
:type project_id: str
|
@@ -1145,7 +1153,10 @@ class ProjectApi:
|
|
1145
1153
|
_host_index,
|
1146
1154
|
) -> RequestSerialized:
|
1147
1155
|
|
1148
|
-
|
1156
|
+
_hosts = [
|
1157
|
+
'https://api.console.ory.sh'
|
1158
|
+
]
|
1159
|
+
_host = _hosts[_host_index]
|
1149
1160
|
|
1150
1161
|
_collection_formats: Dict[str, str] = {
|
1151
1162
|
}
|
@@ -1178,7 +1189,7 @@ class ProjectApi:
|
|
1178
1189
|
|
1179
1190
|
# authentication setting
|
1180
1191
|
_auth_settings: List[str] = [
|
1181
|
-
'
|
1192
|
+
'oryNetworkCookie'
|
1182
1193
|
]
|
1183
1194
|
|
1184
1195
|
return self.api_client.param_serialize(
|
@@ -1215,7 +1226,7 @@ class ProjectApi:
|
|
1215
1226
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1216
1227
|
_content_type: Optional[StrictStr] = None,
|
1217
1228
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1218
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1229
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1219
1230
|
) -> None:
|
1220
1231
|
"""Delete project API token
|
1221
1232
|
|
@@ -1286,7 +1297,7 @@ class ProjectApi:
|
|
1286
1297
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1287
1298
|
_content_type: Optional[StrictStr] = None,
|
1288
1299
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1289
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1300
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1290
1301
|
) -> ApiResponse[None]:
|
1291
1302
|
"""Delete project API token
|
1292
1303
|
|
@@ -1357,7 +1368,7 @@ class ProjectApi:
|
|
1357
1368
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1358
1369
|
_content_type: Optional[StrictStr] = None,
|
1359
1370
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1360
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1371
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1361
1372
|
) -> RESTResponseType:
|
1362
1373
|
"""Delete project API token
|
1363
1374
|
|
@@ -1418,7 +1429,10 @@ class ProjectApi:
|
|
1418
1429
|
_host_index,
|
1419
1430
|
) -> RequestSerialized:
|
1420
1431
|
|
1421
|
-
|
1432
|
+
_hosts = [
|
1433
|
+
'https://api.console.ory.sh'
|
1434
|
+
]
|
1435
|
+
_host = _hosts[_host_index]
|
1422
1436
|
|
1423
1437
|
_collection_formats: Dict[str, str] = {
|
1424
1438
|
}
|
@@ -1451,7 +1465,7 @@ class ProjectApi:
|
|
1451
1465
|
|
1452
1466
|
# authentication setting
|
1453
1467
|
_auth_settings: List[str] = [
|
1454
|
-
'
|
1468
|
+
'oryNetworkCookie'
|
1455
1469
|
]
|
1456
1470
|
|
1457
1471
|
return self.api_client.param_serialize(
|
@@ -1472,252 +1486,6 @@ class ProjectApi:
|
|
1472
1486
|
|
1473
1487
|
|
1474
1488
|
|
1475
|
-
@validate_call
|
1476
|
-
def get_active_project_in_console(
|
1477
|
-
self,
|
1478
|
-
_request_timeout: Union[
|
1479
|
-
None,
|
1480
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1481
|
-
Tuple[
|
1482
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1483
|
-
Annotated[StrictFloat, Field(gt=0)]
|
1484
|
-
]
|
1485
|
-
] = None,
|
1486
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1487
|
-
_content_type: Optional[StrictStr] = None,
|
1488
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1489
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1490
|
-
) -> ActiveProjectInConsole:
|
1491
|
-
"""Returns the Ory Network Project selected in the Ory Network Console
|
1492
|
-
|
1493
|
-
Use this API to get your active project in the Ory Network Console UI.
|
1494
|
-
|
1495
|
-
:param _request_timeout: timeout setting for this request. If one
|
1496
|
-
number provided, it will be total request
|
1497
|
-
timeout. It can also be a pair (tuple) of
|
1498
|
-
(connection, read) timeouts.
|
1499
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1500
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1501
|
-
request; this effectively ignores the
|
1502
|
-
authentication in the spec for a single request.
|
1503
|
-
:type _request_auth: dict, optional
|
1504
|
-
:param _content_type: force content-type for the request.
|
1505
|
-
:type _content_type: str, Optional
|
1506
|
-
:param _headers: set to override the headers for a single
|
1507
|
-
request; this effectively ignores the headers
|
1508
|
-
in the spec for a single request.
|
1509
|
-
:type _headers: dict, optional
|
1510
|
-
:param _host_index: set to override the host_index for a single
|
1511
|
-
request; this effectively ignores the host_index
|
1512
|
-
in the spec for a single request.
|
1513
|
-
:type _host_index: int, optional
|
1514
|
-
:return: Returns the result object.
|
1515
|
-
""" # noqa: E501
|
1516
|
-
|
1517
|
-
_param = self._get_active_project_in_console_serialize(
|
1518
|
-
_request_auth=_request_auth,
|
1519
|
-
_content_type=_content_type,
|
1520
|
-
_headers=_headers,
|
1521
|
-
_host_index=_host_index
|
1522
|
-
)
|
1523
|
-
|
1524
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1525
|
-
'200': "ActiveProjectInConsole",
|
1526
|
-
'401': "GenericError",
|
1527
|
-
}
|
1528
|
-
response_data = self.api_client.call_api(
|
1529
|
-
*_param,
|
1530
|
-
_request_timeout=_request_timeout
|
1531
|
-
)
|
1532
|
-
response_data.read()
|
1533
|
-
return self.api_client.response_deserialize(
|
1534
|
-
response_data=response_data,
|
1535
|
-
response_types_map=_response_types_map,
|
1536
|
-
).data
|
1537
|
-
|
1538
|
-
|
1539
|
-
@validate_call
|
1540
|
-
def get_active_project_in_console_with_http_info(
|
1541
|
-
self,
|
1542
|
-
_request_timeout: Union[
|
1543
|
-
None,
|
1544
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1545
|
-
Tuple[
|
1546
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1547
|
-
Annotated[StrictFloat, Field(gt=0)]
|
1548
|
-
]
|
1549
|
-
] = None,
|
1550
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1551
|
-
_content_type: Optional[StrictStr] = None,
|
1552
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1553
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1554
|
-
) -> ApiResponse[ActiveProjectInConsole]:
|
1555
|
-
"""Returns the Ory Network Project selected in the Ory Network Console
|
1556
|
-
|
1557
|
-
Use this API to get your active project in the Ory Network Console UI.
|
1558
|
-
|
1559
|
-
:param _request_timeout: timeout setting for this request. If one
|
1560
|
-
number provided, it will be total request
|
1561
|
-
timeout. It can also be a pair (tuple) of
|
1562
|
-
(connection, read) timeouts.
|
1563
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1564
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1565
|
-
request; this effectively ignores the
|
1566
|
-
authentication in the spec for a single request.
|
1567
|
-
:type _request_auth: dict, optional
|
1568
|
-
:param _content_type: force content-type for the request.
|
1569
|
-
:type _content_type: str, Optional
|
1570
|
-
:param _headers: set to override the headers for a single
|
1571
|
-
request; this effectively ignores the headers
|
1572
|
-
in the spec for a single request.
|
1573
|
-
:type _headers: dict, optional
|
1574
|
-
:param _host_index: set to override the host_index for a single
|
1575
|
-
request; this effectively ignores the host_index
|
1576
|
-
in the spec for a single request.
|
1577
|
-
:type _host_index: int, optional
|
1578
|
-
:return: Returns the result object.
|
1579
|
-
""" # noqa: E501
|
1580
|
-
|
1581
|
-
_param = self._get_active_project_in_console_serialize(
|
1582
|
-
_request_auth=_request_auth,
|
1583
|
-
_content_type=_content_type,
|
1584
|
-
_headers=_headers,
|
1585
|
-
_host_index=_host_index
|
1586
|
-
)
|
1587
|
-
|
1588
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1589
|
-
'200': "ActiveProjectInConsole",
|
1590
|
-
'401': "GenericError",
|
1591
|
-
}
|
1592
|
-
response_data = self.api_client.call_api(
|
1593
|
-
*_param,
|
1594
|
-
_request_timeout=_request_timeout
|
1595
|
-
)
|
1596
|
-
response_data.read()
|
1597
|
-
return self.api_client.response_deserialize(
|
1598
|
-
response_data=response_data,
|
1599
|
-
response_types_map=_response_types_map,
|
1600
|
-
)
|
1601
|
-
|
1602
|
-
|
1603
|
-
@validate_call
|
1604
|
-
def get_active_project_in_console_without_preload_content(
|
1605
|
-
self,
|
1606
|
-
_request_timeout: Union[
|
1607
|
-
None,
|
1608
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1609
|
-
Tuple[
|
1610
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1611
|
-
Annotated[StrictFloat, Field(gt=0)]
|
1612
|
-
]
|
1613
|
-
] = None,
|
1614
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1615
|
-
_content_type: Optional[StrictStr] = None,
|
1616
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1617
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1618
|
-
) -> RESTResponseType:
|
1619
|
-
"""Returns the Ory Network Project selected in the Ory Network Console
|
1620
|
-
|
1621
|
-
Use this API to get your active project in the Ory Network Console UI.
|
1622
|
-
|
1623
|
-
:param _request_timeout: timeout setting for this request. If one
|
1624
|
-
number provided, it will be total request
|
1625
|
-
timeout. It can also be a pair (tuple) of
|
1626
|
-
(connection, read) timeouts.
|
1627
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1628
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1629
|
-
request; this effectively ignores the
|
1630
|
-
authentication in the spec for a single request.
|
1631
|
-
:type _request_auth: dict, optional
|
1632
|
-
:param _content_type: force content-type for the request.
|
1633
|
-
:type _content_type: str, Optional
|
1634
|
-
:param _headers: set to override the headers for a single
|
1635
|
-
request; this effectively ignores the headers
|
1636
|
-
in the spec for a single request.
|
1637
|
-
:type _headers: dict, optional
|
1638
|
-
:param _host_index: set to override the host_index for a single
|
1639
|
-
request; this effectively ignores the host_index
|
1640
|
-
in the spec for a single request.
|
1641
|
-
:type _host_index: int, optional
|
1642
|
-
:return: Returns the result object.
|
1643
|
-
""" # noqa: E501
|
1644
|
-
|
1645
|
-
_param = self._get_active_project_in_console_serialize(
|
1646
|
-
_request_auth=_request_auth,
|
1647
|
-
_content_type=_content_type,
|
1648
|
-
_headers=_headers,
|
1649
|
-
_host_index=_host_index
|
1650
|
-
)
|
1651
|
-
|
1652
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1653
|
-
'200': "ActiveProjectInConsole",
|
1654
|
-
'401': "GenericError",
|
1655
|
-
}
|
1656
|
-
response_data = self.api_client.call_api(
|
1657
|
-
*_param,
|
1658
|
-
_request_timeout=_request_timeout
|
1659
|
-
)
|
1660
|
-
return response_data.response
|
1661
|
-
|
1662
|
-
|
1663
|
-
def _get_active_project_in_console_serialize(
|
1664
|
-
self,
|
1665
|
-
_request_auth,
|
1666
|
-
_content_type,
|
1667
|
-
_headers,
|
1668
|
-
_host_index,
|
1669
|
-
) -> RequestSerialized:
|
1670
|
-
|
1671
|
-
_host = None
|
1672
|
-
|
1673
|
-
_collection_formats: Dict[str, str] = {
|
1674
|
-
}
|
1675
|
-
|
1676
|
-
_path_params: Dict[str, str] = {}
|
1677
|
-
_query_params: List[Tuple[str, str]] = []
|
1678
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1679
|
-
_form_params: List[Tuple[str, str]] = []
|
1680
|
-
_files: Dict[str, str] = {}
|
1681
|
-
_body_params: Optional[bytes] = None
|
1682
|
-
|
1683
|
-
# process the path parameters
|
1684
|
-
# process the query parameters
|
1685
|
-
# process the header parameters
|
1686
|
-
# process the form parameters
|
1687
|
-
# process the body parameter
|
1688
|
-
|
1689
|
-
|
1690
|
-
# set the HTTP header `Accept`
|
1691
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
1692
|
-
[
|
1693
|
-
'application/json'
|
1694
|
-
]
|
1695
|
-
)
|
1696
|
-
|
1697
|
-
|
1698
|
-
# authentication setting
|
1699
|
-
_auth_settings: List[str] = [
|
1700
|
-
'oryAccessToken'
|
1701
|
-
]
|
1702
|
-
|
1703
|
-
return self.api_client.param_serialize(
|
1704
|
-
method='GET',
|
1705
|
-
resource_path='/console/active/project',
|
1706
|
-
path_params=_path_params,
|
1707
|
-
query_params=_query_params,
|
1708
|
-
header_params=_header_params,
|
1709
|
-
body=_body_params,
|
1710
|
-
post_params=_form_params,
|
1711
|
-
files=_files,
|
1712
|
-
auth_settings=_auth_settings,
|
1713
|
-
collection_formats=_collection_formats,
|
1714
|
-
_host=_host,
|
1715
|
-
_request_auth=_request_auth
|
1716
|
-
)
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
1489
|
@validate_call
|
1722
1490
|
def get_organization(
|
1723
1491
|
self,
|
@@ -1734,9 +1502,9 @@ class ProjectApi:
|
|
1734
1502
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1735
1503
|
_content_type: Optional[StrictStr] = None,
|
1736
1504
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1737
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1505
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1738
1506
|
) -> GetOrganizationResponse:
|
1739
|
-
"""Returns a B2B SSO Organization for a project by
|
1507
|
+
"""Returns a B2B SSO Organization for a project by its ID
|
1740
1508
|
|
1741
1509
|
|
1742
1510
|
:param project_id: Project ID The project's ID. (required)
|
@@ -1806,9 +1574,9 @@ class ProjectApi:
|
|
1806
1574
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1807
1575
|
_content_type: Optional[StrictStr] = None,
|
1808
1576
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1809
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1577
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1810
1578
|
) -> ApiResponse[GetOrganizationResponse]:
|
1811
|
-
"""Returns a B2B SSO Organization for a project by
|
1579
|
+
"""Returns a B2B SSO Organization for a project by its ID
|
1812
1580
|
|
1813
1581
|
|
1814
1582
|
:param project_id: Project ID The project's ID. (required)
|
@@ -1878,9 +1646,9 @@ class ProjectApi:
|
|
1878
1646
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1879
1647
|
_content_type: Optional[StrictStr] = None,
|
1880
1648
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1881
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1649
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
1882
1650
|
) -> RESTResponseType:
|
1883
|
-
"""Returns a B2B SSO Organization for a project by
|
1651
|
+
"""Returns a B2B SSO Organization for a project by its ID
|
1884
1652
|
|
1885
1653
|
|
1886
1654
|
:param project_id: Project ID The project's ID. (required)
|
@@ -1940,7 +1708,10 @@ class ProjectApi:
|
|
1940
1708
|
_host_index,
|
1941
1709
|
) -> RequestSerialized:
|
1942
1710
|
|
1943
|
-
|
1711
|
+
_hosts = [
|
1712
|
+
'https://api.console.ory.sh'
|
1713
|
+
]
|
1714
|
+
_host = _hosts[_host_index]
|
1944
1715
|
|
1945
1716
|
_collection_formats: Dict[str, str] = {
|
1946
1717
|
}
|
@@ -1973,7 +1744,7 @@ class ProjectApi:
|
|
1973
1744
|
|
1974
1745
|
# authentication setting
|
1975
1746
|
_auth_settings: List[str] = [
|
1976
|
-
'
|
1747
|
+
'oryNetworkCookie'
|
1977
1748
|
]
|
1978
1749
|
|
1979
1750
|
return self.api_client.param_serialize(
|
@@ -2009,7 +1780,7 @@ class ProjectApi:
|
|
2009
1780
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2010
1781
|
_content_type: Optional[StrictStr] = None,
|
2011
1782
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2012
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1783
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2013
1784
|
) -> Project:
|
2014
1785
|
"""Get a Project
|
2015
1786
|
|
@@ -2079,7 +1850,7 @@ class ProjectApi:
|
|
2079
1850
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2080
1851
|
_content_type: Optional[StrictStr] = None,
|
2081
1852
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2082
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1853
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2083
1854
|
) -> ApiResponse[Project]:
|
2084
1855
|
"""Get a Project
|
2085
1856
|
|
@@ -2149,7 +1920,7 @@ class ProjectApi:
|
|
2149
1920
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2150
1921
|
_content_type: Optional[StrictStr] = None,
|
2151
1922
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2152
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
1923
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2153
1924
|
) -> RESTResponseType:
|
2154
1925
|
"""Get a Project
|
2155
1926
|
|
@@ -2209,7 +1980,10 @@ class ProjectApi:
|
|
2209
1980
|
_host_index,
|
2210
1981
|
) -> RequestSerialized:
|
2211
1982
|
|
2212
|
-
|
1983
|
+
_hosts = [
|
1984
|
+
'https://api.console.ory.sh'
|
1985
|
+
]
|
1986
|
+
_host = _hosts[_host_index]
|
2213
1987
|
|
2214
1988
|
_collection_formats: Dict[str, str] = {
|
2215
1989
|
}
|
@@ -2240,7 +2014,7 @@ class ProjectApi:
|
|
2240
2014
|
|
2241
2015
|
# authentication setting
|
2242
2016
|
_auth_settings: List[str] = [
|
2243
|
-
'
|
2017
|
+
'oryNetworkCookie'
|
2244
2018
|
]
|
2245
2019
|
|
2246
2020
|
return self.api_client.param_serialize(
|
@@ -2276,7 +2050,7 @@ class ProjectApi:
|
|
2276
2050
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2277
2051
|
_content_type: Optional[StrictStr] = None,
|
2278
2052
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2279
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2053
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2280
2054
|
) -> List[ProjectMember]:
|
2281
2055
|
"""Get all members associated with this project
|
2282
2056
|
|
@@ -2345,7 +2119,7 @@ class ProjectApi:
|
|
2345
2119
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2346
2120
|
_content_type: Optional[StrictStr] = None,
|
2347
2121
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2348
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2122
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2349
2123
|
) -> ApiResponse[List[ProjectMember]]:
|
2350
2124
|
"""Get all members associated with this project
|
2351
2125
|
|
@@ -2414,7 +2188,7 @@ class ProjectApi:
|
|
2414
2188
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2415
2189
|
_content_type: Optional[StrictStr] = None,
|
2416
2190
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2417
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2418
2192
|
) -> RESTResponseType:
|
2419
2193
|
"""Get all members associated with this project
|
2420
2194
|
|
@@ -2473,7 +2247,10 @@ class ProjectApi:
|
|
2473
2247
|
_host_index,
|
2474
2248
|
) -> RequestSerialized:
|
2475
2249
|
|
2476
|
-
|
2250
|
+
_hosts = [
|
2251
|
+
'https://api.console.ory.sh'
|
2252
|
+
]
|
2253
|
+
_host = _hosts[_host_index]
|
2477
2254
|
|
2478
2255
|
_collection_formats: Dict[str, str] = {
|
2479
2256
|
}
|
@@ -2488,357 +2265,7 @@ class ProjectApi:
|
|
2488
2265
|
# process the path parameters
|
2489
2266
|
if project is not None:
|
2490
2267
|
_path_params['project'] = project
|
2491
|
-
# process the query parameters
|
2492
|
-
# process the header parameters
|
2493
|
-
# process the form parameters
|
2494
|
-
# process the body parameter
|
2495
|
-
|
2496
|
-
|
2497
|
-
# set the HTTP header `Accept`
|
2498
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2499
|
-
[
|
2500
|
-
'application/json'
|
2501
|
-
]
|
2502
|
-
)
|
2503
|
-
|
2504
|
-
|
2505
|
-
# authentication setting
|
2506
|
-
_auth_settings: List[str] = [
|
2507
|
-
'oryAccessToken'
|
2508
|
-
]
|
2509
|
-
|
2510
|
-
return self.api_client.param_serialize(
|
2511
|
-
method='GET',
|
2512
|
-
resource_path='/projects/{project}/members',
|
2513
|
-
path_params=_path_params,
|
2514
|
-
query_params=_query_params,
|
2515
|
-
header_params=_header_params,
|
2516
|
-
body=_body_params,
|
2517
|
-
post_params=_form_params,
|
2518
|
-
files=_files,
|
2519
|
-
auth_settings=_auth_settings,
|
2520
|
-
collection_formats=_collection_formats,
|
2521
|
-
_host=_host,
|
2522
|
-
_request_auth=_request_auth
|
2523
|
-
)
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
@validate_call
|
2529
|
-
def get_project_metrics(
|
2530
|
-
self,
|
2531
|
-
project_id: Annotated[StrictStr, Field(description="Project ID")],
|
2532
|
-
event_type: Annotated[StrictStr, Field(description="The event type to query for")],
|
2533
|
-
resolution: Annotated[str, Field(strict=True, description="The resolution of the buckets The minimum resolution is 1 minute.")],
|
2534
|
-
var_from: Annotated[datetime, Field(description="The start RFC3339 date of the time window")],
|
2535
|
-
to: Annotated[datetime, Field(description="The end RFC3339 date of the time window")],
|
2536
|
-
_request_timeout: Union[
|
2537
|
-
None,
|
2538
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2539
|
-
Tuple[
|
2540
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2541
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2542
|
-
]
|
2543
|
-
] = None,
|
2544
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2545
|
-
_content_type: Optional[StrictStr] = None,
|
2546
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2547
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2548
|
-
) -> GetProjectMetricsResponse:
|
2549
|
-
"""get_project_metrics
|
2550
|
-
|
2551
|
-
Retrieves project metrics for the specified event type and time range
|
2552
|
-
|
2553
|
-
:param project_id: Project ID (required)
|
2554
|
-
:type project_id: str
|
2555
|
-
:param event_type: The event type to query for (required)
|
2556
|
-
:type event_type: str
|
2557
|
-
:param resolution: The resolution of the buckets The minimum resolution is 1 minute. (required)
|
2558
|
-
:type resolution: str
|
2559
|
-
:param var_from: The start RFC3339 date of the time window (required)
|
2560
|
-
:type var_from: datetime
|
2561
|
-
:param to: The end RFC3339 date of the time window (required)
|
2562
|
-
:type to: datetime
|
2563
|
-
:param _request_timeout: timeout setting for this request. If one
|
2564
|
-
number provided, it will be total request
|
2565
|
-
timeout. It can also be a pair (tuple) of
|
2566
|
-
(connection, read) timeouts.
|
2567
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2568
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2569
|
-
request; this effectively ignores the
|
2570
|
-
authentication in the spec for a single request.
|
2571
|
-
:type _request_auth: dict, optional
|
2572
|
-
:param _content_type: force content-type for the request.
|
2573
|
-
:type _content_type: str, Optional
|
2574
|
-
:param _headers: set to override the headers for a single
|
2575
|
-
request; this effectively ignores the headers
|
2576
|
-
in the spec for a single request.
|
2577
|
-
:type _headers: dict, optional
|
2578
|
-
:param _host_index: set to override the host_index for a single
|
2579
|
-
request; this effectively ignores the host_index
|
2580
|
-
in the spec for a single request.
|
2581
|
-
:type _host_index: int, optional
|
2582
|
-
:return: Returns the result object.
|
2583
|
-
""" # noqa: E501
|
2584
|
-
|
2585
|
-
_param = self._get_project_metrics_serialize(
|
2586
|
-
project_id=project_id,
|
2587
|
-
event_type=event_type,
|
2588
|
-
resolution=resolution,
|
2589
|
-
var_from=var_from,
|
2590
|
-
to=to,
|
2591
|
-
_request_auth=_request_auth,
|
2592
|
-
_content_type=_content_type,
|
2593
|
-
_headers=_headers,
|
2594
|
-
_host_index=_host_index
|
2595
|
-
)
|
2596
|
-
|
2597
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2598
|
-
'200': "GetProjectMetricsResponse",
|
2599
|
-
'400': "GenericError",
|
2600
|
-
'403': "GenericError",
|
2601
|
-
}
|
2602
|
-
response_data = self.api_client.call_api(
|
2603
|
-
*_param,
|
2604
|
-
_request_timeout=_request_timeout
|
2605
|
-
)
|
2606
|
-
response_data.read()
|
2607
|
-
return self.api_client.response_deserialize(
|
2608
|
-
response_data=response_data,
|
2609
|
-
response_types_map=_response_types_map,
|
2610
|
-
).data
|
2611
|
-
|
2612
|
-
|
2613
|
-
@validate_call
|
2614
|
-
def get_project_metrics_with_http_info(
|
2615
|
-
self,
|
2616
|
-
project_id: Annotated[StrictStr, Field(description="Project ID")],
|
2617
|
-
event_type: Annotated[StrictStr, Field(description="The event type to query for")],
|
2618
|
-
resolution: Annotated[str, Field(strict=True, description="The resolution of the buckets The minimum resolution is 1 minute.")],
|
2619
|
-
var_from: Annotated[datetime, Field(description="The start RFC3339 date of the time window")],
|
2620
|
-
to: Annotated[datetime, Field(description="The end RFC3339 date of the time window")],
|
2621
|
-
_request_timeout: Union[
|
2622
|
-
None,
|
2623
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2624
|
-
Tuple[
|
2625
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2626
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2627
|
-
]
|
2628
|
-
] = None,
|
2629
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2630
|
-
_content_type: Optional[StrictStr] = None,
|
2631
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2632
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2633
|
-
) -> ApiResponse[GetProjectMetricsResponse]:
|
2634
|
-
"""get_project_metrics
|
2635
|
-
|
2636
|
-
Retrieves project metrics for the specified event type and time range
|
2637
|
-
|
2638
|
-
:param project_id: Project ID (required)
|
2639
|
-
:type project_id: str
|
2640
|
-
:param event_type: The event type to query for (required)
|
2641
|
-
:type event_type: str
|
2642
|
-
:param resolution: The resolution of the buckets The minimum resolution is 1 minute. (required)
|
2643
|
-
:type resolution: str
|
2644
|
-
:param var_from: The start RFC3339 date of the time window (required)
|
2645
|
-
:type var_from: datetime
|
2646
|
-
:param to: The end RFC3339 date of the time window (required)
|
2647
|
-
:type to: datetime
|
2648
|
-
:param _request_timeout: timeout setting for this request. If one
|
2649
|
-
number provided, it will be total request
|
2650
|
-
timeout. It can also be a pair (tuple) of
|
2651
|
-
(connection, read) timeouts.
|
2652
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2653
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2654
|
-
request; this effectively ignores the
|
2655
|
-
authentication in the spec for a single request.
|
2656
|
-
:type _request_auth: dict, optional
|
2657
|
-
:param _content_type: force content-type for the request.
|
2658
|
-
:type _content_type: str, Optional
|
2659
|
-
:param _headers: set to override the headers for a single
|
2660
|
-
request; this effectively ignores the headers
|
2661
|
-
in the spec for a single request.
|
2662
|
-
:type _headers: dict, optional
|
2663
|
-
:param _host_index: set to override the host_index for a single
|
2664
|
-
request; this effectively ignores the host_index
|
2665
|
-
in the spec for a single request.
|
2666
|
-
:type _host_index: int, optional
|
2667
|
-
:return: Returns the result object.
|
2668
|
-
""" # noqa: E501
|
2669
|
-
|
2670
|
-
_param = self._get_project_metrics_serialize(
|
2671
|
-
project_id=project_id,
|
2672
|
-
event_type=event_type,
|
2673
|
-
resolution=resolution,
|
2674
|
-
var_from=var_from,
|
2675
|
-
to=to,
|
2676
|
-
_request_auth=_request_auth,
|
2677
|
-
_content_type=_content_type,
|
2678
|
-
_headers=_headers,
|
2679
|
-
_host_index=_host_index
|
2680
|
-
)
|
2681
|
-
|
2682
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2683
|
-
'200': "GetProjectMetricsResponse",
|
2684
|
-
'400': "GenericError",
|
2685
|
-
'403': "GenericError",
|
2686
|
-
}
|
2687
|
-
response_data = self.api_client.call_api(
|
2688
|
-
*_param,
|
2689
|
-
_request_timeout=_request_timeout
|
2690
|
-
)
|
2691
|
-
response_data.read()
|
2692
|
-
return self.api_client.response_deserialize(
|
2693
|
-
response_data=response_data,
|
2694
|
-
response_types_map=_response_types_map,
|
2695
|
-
)
|
2696
|
-
|
2697
|
-
|
2698
|
-
@validate_call
|
2699
|
-
def get_project_metrics_without_preload_content(
|
2700
|
-
self,
|
2701
|
-
project_id: Annotated[StrictStr, Field(description="Project ID")],
|
2702
|
-
event_type: Annotated[StrictStr, Field(description="The event type to query for")],
|
2703
|
-
resolution: Annotated[str, Field(strict=True, description="The resolution of the buckets The minimum resolution is 1 minute.")],
|
2704
|
-
var_from: Annotated[datetime, Field(description="The start RFC3339 date of the time window")],
|
2705
|
-
to: Annotated[datetime, Field(description="The end RFC3339 date of the time window")],
|
2706
|
-
_request_timeout: Union[
|
2707
|
-
None,
|
2708
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2709
|
-
Tuple[
|
2710
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2711
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2712
|
-
]
|
2713
|
-
] = None,
|
2714
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2715
|
-
_content_type: Optional[StrictStr] = None,
|
2716
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2717
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2718
|
-
) -> RESTResponseType:
|
2719
|
-
"""get_project_metrics
|
2720
|
-
|
2721
|
-
Retrieves project metrics for the specified event type and time range
|
2722
|
-
|
2723
|
-
:param project_id: Project ID (required)
|
2724
|
-
:type project_id: str
|
2725
|
-
:param event_type: The event type to query for (required)
|
2726
|
-
:type event_type: str
|
2727
|
-
:param resolution: The resolution of the buckets The minimum resolution is 1 minute. (required)
|
2728
|
-
:type resolution: str
|
2729
|
-
:param var_from: The start RFC3339 date of the time window (required)
|
2730
|
-
:type var_from: datetime
|
2731
|
-
:param to: The end RFC3339 date of the time window (required)
|
2732
|
-
:type to: datetime
|
2733
|
-
:param _request_timeout: timeout setting for this request. If one
|
2734
|
-
number provided, it will be total request
|
2735
|
-
timeout. It can also be a pair (tuple) of
|
2736
|
-
(connection, read) timeouts.
|
2737
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2738
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2739
|
-
request; this effectively ignores the
|
2740
|
-
authentication in the spec for a single request.
|
2741
|
-
:type _request_auth: dict, optional
|
2742
|
-
:param _content_type: force content-type for the request.
|
2743
|
-
:type _content_type: str, Optional
|
2744
|
-
:param _headers: set to override the headers for a single
|
2745
|
-
request; this effectively ignores the headers
|
2746
|
-
in the spec for a single request.
|
2747
|
-
:type _headers: dict, optional
|
2748
|
-
:param _host_index: set to override the host_index for a single
|
2749
|
-
request; this effectively ignores the host_index
|
2750
|
-
in the spec for a single request.
|
2751
|
-
:type _host_index: int, optional
|
2752
|
-
:return: Returns the result object.
|
2753
|
-
""" # noqa: E501
|
2754
|
-
|
2755
|
-
_param = self._get_project_metrics_serialize(
|
2756
|
-
project_id=project_id,
|
2757
|
-
event_type=event_type,
|
2758
|
-
resolution=resolution,
|
2759
|
-
var_from=var_from,
|
2760
|
-
to=to,
|
2761
|
-
_request_auth=_request_auth,
|
2762
|
-
_content_type=_content_type,
|
2763
|
-
_headers=_headers,
|
2764
|
-
_host_index=_host_index
|
2765
|
-
)
|
2766
|
-
|
2767
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2768
|
-
'200': "GetProjectMetricsResponse",
|
2769
|
-
'400': "GenericError",
|
2770
|
-
'403': "GenericError",
|
2771
|
-
}
|
2772
|
-
response_data = self.api_client.call_api(
|
2773
|
-
*_param,
|
2774
|
-
_request_timeout=_request_timeout
|
2775
|
-
)
|
2776
|
-
return response_data.response
|
2777
|
-
|
2778
|
-
|
2779
|
-
def _get_project_metrics_serialize(
|
2780
|
-
self,
|
2781
|
-
project_id,
|
2782
|
-
event_type,
|
2783
|
-
resolution,
|
2784
|
-
var_from,
|
2785
|
-
to,
|
2786
|
-
_request_auth,
|
2787
|
-
_content_type,
|
2788
|
-
_headers,
|
2789
|
-
_host_index,
|
2790
|
-
) -> RequestSerialized:
|
2791
|
-
|
2792
|
-
_host = None
|
2793
|
-
|
2794
|
-
_collection_formats: Dict[str, str] = {
|
2795
|
-
}
|
2796
|
-
|
2797
|
-
_path_params: Dict[str, str] = {}
|
2798
|
-
_query_params: List[Tuple[str, str]] = []
|
2799
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2800
|
-
_form_params: List[Tuple[str, str]] = []
|
2801
|
-
_files: Dict[str, str] = {}
|
2802
|
-
_body_params: Optional[bytes] = None
|
2803
|
-
|
2804
|
-
# process the path parameters
|
2805
|
-
if project_id is not None:
|
2806
|
-
_path_params['project_id'] = project_id
|
2807
|
-
# process the query parameters
|
2808
|
-
if event_type is not None:
|
2809
|
-
|
2810
|
-
_query_params.append(('event_type', event_type))
|
2811
|
-
|
2812
|
-
if resolution is not None:
|
2813
|
-
|
2814
|
-
_query_params.append(('resolution', resolution))
|
2815
|
-
|
2816
|
-
if var_from is not None:
|
2817
|
-
if isinstance(var_from, datetime):
|
2818
|
-
_query_params.append(
|
2819
|
-
(
|
2820
|
-
'from',
|
2821
|
-
var_from.strftime(
|
2822
|
-
self.api_client.configuration.datetime_format
|
2823
|
-
)
|
2824
|
-
)
|
2825
|
-
)
|
2826
|
-
else:
|
2827
|
-
_query_params.append(('from', var_from))
|
2828
|
-
|
2829
|
-
if to is not None:
|
2830
|
-
if isinstance(to, datetime):
|
2831
|
-
_query_params.append(
|
2832
|
-
(
|
2833
|
-
'to',
|
2834
|
-
to.strftime(
|
2835
|
-
self.api_client.configuration.datetime_format
|
2836
|
-
)
|
2837
|
-
)
|
2838
|
-
)
|
2839
|
-
else:
|
2840
|
-
_query_params.append(('to', to))
|
2841
|
-
|
2268
|
+
# process the query parameters
|
2842
2269
|
# process the header parameters
|
2843
2270
|
# process the form parameters
|
2844
2271
|
# process the body parameter
|
@@ -2854,12 +2281,12 @@ class ProjectApi:
|
|
2854
2281
|
|
2855
2282
|
# authentication setting
|
2856
2283
|
_auth_settings: List[str] = [
|
2857
|
-
'
|
2284
|
+
'oryNetworkCookie'
|
2858
2285
|
]
|
2859
2286
|
|
2860
2287
|
return self.api_client.param_serialize(
|
2861
2288
|
method='GET',
|
2862
|
-
resource_path='/projects/{
|
2289
|
+
resource_path='/projects/{project}/members',
|
2863
2290
|
path_params=_path_params,
|
2864
2291
|
query_params=_query_params,
|
2865
2292
|
header_params=_header_params,
|
@@ -2879,6 +2306,9 @@ class ProjectApi:
|
|
2879
2306
|
def list_organizations(
|
2880
2307
|
self,
|
2881
2308
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2309
|
+
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,
|
2310
|
+
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,
|
2311
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
2882
2312
|
_request_timeout: Union[
|
2883
2313
|
None,
|
2884
2314
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2890,13 +2320,20 @@ class ProjectApi:
|
|
2890
2320
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2891
2321
|
_content_type: Optional[StrictStr] = None,
|
2892
2322
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2893
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2323
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2894
2324
|
) -> ListOrganizationsResponse:
|
2895
2325
|
"""list_organizations
|
2896
2326
|
|
2327
|
+
List all B2B SSO Organizations for a project
|
2897
2328
|
|
2898
2329
|
:param project_id: Project ID The project's ID. (required)
|
2899
2330
|
:type project_id: str
|
2331
|
+
: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).
|
2332
|
+
:type page_size: int
|
2333
|
+
: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).
|
2334
|
+
:type page_token: str
|
2335
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
2336
|
+
:type domain: str
|
2900
2337
|
:param _request_timeout: timeout setting for this request. If one
|
2901
2338
|
number provided, it will be total request
|
2902
2339
|
timeout. It can also be a pair (tuple) of
|
@@ -2921,6 +2358,9 @@ class ProjectApi:
|
|
2921
2358
|
|
2922
2359
|
_param = self._list_organizations_serialize(
|
2923
2360
|
project_id=project_id,
|
2361
|
+
page_size=page_size,
|
2362
|
+
page_token=page_token,
|
2363
|
+
domain=domain,
|
2924
2364
|
_request_auth=_request_auth,
|
2925
2365
|
_content_type=_content_type,
|
2926
2366
|
_headers=_headers,
|
@@ -2947,6 +2387,9 @@ class ProjectApi:
|
|
2947
2387
|
def list_organizations_with_http_info(
|
2948
2388
|
self,
|
2949
2389
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2390
|
+
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,
|
2391
|
+
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,
|
2392
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
2950
2393
|
_request_timeout: Union[
|
2951
2394
|
None,
|
2952
2395
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -2958,13 +2401,20 @@ class ProjectApi:
|
|
2958
2401
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2959
2402
|
_content_type: Optional[StrictStr] = None,
|
2960
2403
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2961
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2962
2405
|
) -> ApiResponse[ListOrganizationsResponse]:
|
2963
2406
|
"""list_organizations
|
2964
2407
|
|
2408
|
+
List all B2B SSO Organizations for a project
|
2965
2409
|
|
2966
2410
|
:param project_id: Project ID The project's ID. (required)
|
2967
2411
|
:type project_id: str
|
2412
|
+
: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).
|
2413
|
+
:type page_size: int
|
2414
|
+
: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).
|
2415
|
+
:type page_token: str
|
2416
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
2417
|
+
:type domain: str
|
2968
2418
|
:param _request_timeout: timeout setting for this request. If one
|
2969
2419
|
number provided, it will be total request
|
2970
2420
|
timeout. It can also be a pair (tuple) of
|
@@ -2989,6 +2439,9 @@ class ProjectApi:
|
|
2989
2439
|
|
2990
2440
|
_param = self._list_organizations_serialize(
|
2991
2441
|
project_id=project_id,
|
2442
|
+
page_size=page_size,
|
2443
|
+
page_token=page_token,
|
2444
|
+
domain=domain,
|
2992
2445
|
_request_auth=_request_auth,
|
2993
2446
|
_content_type=_content_type,
|
2994
2447
|
_headers=_headers,
|
@@ -3015,6 +2468,9 @@ class ProjectApi:
|
|
3015
2468
|
def list_organizations_without_preload_content(
|
3016
2469
|
self,
|
3017
2470
|
project_id: Annotated[StrictStr, Field(description="Project ID The project's ID.")],
|
2471
|
+
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,
|
2472
|
+
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,
|
2473
|
+
domain: Annotated[Optional[StrictStr], Field(description="Domain If set, only organizations with that domain will be returned.")] = None,
|
3018
2474
|
_request_timeout: Union[
|
3019
2475
|
None,
|
3020
2476
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -3026,13 +2482,20 @@ class ProjectApi:
|
|
3026
2482
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3027
2483
|
_content_type: Optional[StrictStr] = None,
|
3028
2484
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3029
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2485
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3030
2486
|
) -> RESTResponseType:
|
3031
2487
|
"""list_organizations
|
3032
2488
|
|
2489
|
+
List all B2B SSO Organizations for a project
|
3033
2490
|
|
3034
2491
|
:param project_id: Project ID The project's ID. (required)
|
3035
2492
|
:type project_id: str
|
2493
|
+
: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).
|
2494
|
+
:type page_size: int
|
2495
|
+
: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).
|
2496
|
+
:type page_token: str
|
2497
|
+
:param domain: Domain If set, only organizations with that domain will be returned.
|
2498
|
+
:type domain: str
|
3036
2499
|
:param _request_timeout: timeout setting for this request. If one
|
3037
2500
|
number provided, it will be total request
|
3038
2501
|
timeout. It can also be a pair (tuple) of
|
@@ -3057,6 +2520,9 @@ class ProjectApi:
|
|
3057
2520
|
|
3058
2521
|
_param = self._list_organizations_serialize(
|
3059
2522
|
project_id=project_id,
|
2523
|
+
page_size=page_size,
|
2524
|
+
page_token=page_token,
|
2525
|
+
domain=domain,
|
3060
2526
|
_request_auth=_request_auth,
|
3061
2527
|
_content_type=_content_type,
|
3062
2528
|
_headers=_headers,
|
@@ -3078,13 +2544,19 @@ class ProjectApi:
|
|
3078
2544
|
def _list_organizations_serialize(
|
3079
2545
|
self,
|
3080
2546
|
project_id,
|
2547
|
+
page_size,
|
2548
|
+
page_token,
|
2549
|
+
domain,
|
3081
2550
|
_request_auth,
|
3082
2551
|
_content_type,
|
3083
2552
|
_headers,
|
3084
2553
|
_host_index,
|
3085
2554
|
) -> RequestSerialized:
|
3086
2555
|
|
3087
|
-
|
2556
|
+
_hosts = [
|
2557
|
+
'https://api.console.ory.sh'
|
2558
|
+
]
|
2559
|
+
_host = _hosts[_host_index]
|
3088
2560
|
|
3089
2561
|
_collection_formats: Dict[str, str] = {
|
3090
2562
|
}
|
@@ -3100,6 +2572,18 @@ class ProjectApi:
|
|
3100
2572
|
if project_id is not None:
|
3101
2573
|
_path_params['project_id'] = project_id
|
3102
2574
|
# process the query parameters
|
2575
|
+
if page_size is not None:
|
2576
|
+
|
2577
|
+
_query_params.append(('page_size', page_size))
|
2578
|
+
|
2579
|
+
if page_token is not None:
|
2580
|
+
|
2581
|
+
_query_params.append(('page_token', page_token))
|
2582
|
+
|
2583
|
+
if domain is not None:
|
2584
|
+
|
2585
|
+
_query_params.append(('domain', domain))
|
2586
|
+
|
3103
2587
|
# process the header parameters
|
3104
2588
|
# process the form parameters
|
3105
2589
|
# process the body parameter
|
@@ -3115,7 +2599,7 @@ class ProjectApi:
|
|
3115
2599
|
|
3116
2600
|
# authentication setting
|
3117
2601
|
_auth_settings: List[str] = [
|
3118
|
-
'
|
2602
|
+
'oryNetworkCookie'
|
3119
2603
|
]
|
3120
2604
|
|
3121
2605
|
return self.api_client.param_serialize(
|
@@ -3151,7 +2635,7 @@ class ProjectApi:
|
|
3151
2635
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3152
2636
|
_content_type: Optional[StrictStr] = None,
|
3153
2637
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3154
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2638
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3155
2639
|
) -> List[ProjectApiKey]:
|
3156
2640
|
"""List a project's API Tokens
|
3157
2641
|
|
@@ -3218,7 +2702,7 @@ class ProjectApi:
|
|
3218
2702
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3219
2703
|
_content_type: Optional[StrictStr] = None,
|
3220
2704
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3221
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2705
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3222
2706
|
) -> ApiResponse[List[ProjectApiKey]]:
|
3223
2707
|
"""List a project's API Tokens
|
3224
2708
|
|
@@ -3285,7 +2769,7 @@ class ProjectApi:
|
|
3285
2769
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3286
2770
|
_content_type: Optional[StrictStr] = None,
|
3287
2771
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3288
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2772
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3289
2773
|
) -> RESTResponseType:
|
3290
2774
|
"""List a project's API Tokens
|
3291
2775
|
|
@@ -3342,7 +2826,10 @@ class ProjectApi:
|
|
3342
2826
|
_host_index,
|
3343
2827
|
) -> RequestSerialized:
|
3344
2828
|
|
3345
|
-
|
2829
|
+
_hosts = [
|
2830
|
+
'https://api.console.ory.sh'
|
2831
|
+
]
|
2832
|
+
_host = _hosts[_host_index]
|
3346
2833
|
|
3347
2834
|
_collection_formats: Dict[str, str] = {
|
3348
2835
|
}
|
@@ -3373,7 +2860,7 @@ class ProjectApi:
|
|
3373
2860
|
|
3374
2861
|
# authentication setting
|
3375
2862
|
_auth_settings: List[str] = [
|
3376
|
-
'
|
2863
|
+
'oryNetworkCookie'
|
3377
2864
|
]
|
3378
2865
|
|
3379
2866
|
return self.api_client.param_serialize(
|
@@ -3408,7 +2895,7 @@ class ProjectApi:
|
|
3408
2895
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3409
2896
|
_content_type: Optional[StrictStr] = None,
|
3410
2897
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3411
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2898
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3412
2899
|
) -> List[ProjectMetadata]:
|
3413
2900
|
"""List All Projects
|
3414
2901
|
|
@@ -3474,7 +2961,7 @@ class ProjectApi:
|
|
3474
2961
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3475
2962
|
_content_type: Optional[StrictStr] = None,
|
3476
2963
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3477
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2964
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3478
2965
|
) -> ApiResponse[List[ProjectMetadata]]:
|
3479
2966
|
"""List All Projects
|
3480
2967
|
|
@@ -3540,7 +3027,7 @@ class ProjectApi:
|
|
3540
3027
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3541
3028
|
_content_type: Optional[StrictStr] = None,
|
3542
3029
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3543
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3030
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3544
3031
|
) -> RESTResponseType:
|
3545
3032
|
"""List All Projects
|
3546
3033
|
|
@@ -3596,7 +3083,10 @@ class ProjectApi:
|
|
3596
3083
|
_host_index,
|
3597
3084
|
) -> RequestSerialized:
|
3598
3085
|
|
3599
|
-
|
3086
|
+
_hosts = [
|
3087
|
+
'https://api.console.ory.sh'
|
3088
|
+
]
|
3089
|
+
_host = _hosts[_host_index]
|
3600
3090
|
|
3601
3091
|
_collection_formats: Dict[str, str] = {
|
3602
3092
|
}
|
@@ -3625,7 +3115,7 @@ class ProjectApi:
|
|
3625
3115
|
|
3626
3116
|
# authentication setting
|
3627
3117
|
_auth_settings: List[str] = [
|
3628
|
-
'
|
3118
|
+
'oryNetworkCookie'
|
3629
3119
|
]
|
3630
3120
|
|
3631
3121
|
return self.api_client.param_serialize(
|
@@ -3662,7 +3152,7 @@ class ProjectApi:
|
|
3662
3152
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3663
3153
|
_content_type: Optional[StrictStr] = None,
|
3664
3154
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3665
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3155
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3666
3156
|
) -> SuccessfulProjectUpdate:
|
3667
3157
|
"""Patch an Ory Network Project Configuration
|
3668
3158
|
|
@@ -3737,7 +3227,7 @@ class ProjectApi:
|
|
3737
3227
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3738
3228
|
_content_type: Optional[StrictStr] = None,
|
3739
3229
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3740
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3230
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3741
3231
|
) -> ApiResponse[SuccessfulProjectUpdate]:
|
3742
3232
|
"""Patch an Ory Network Project Configuration
|
3743
3233
|
|
@@ -3812,7 +3302,7 @@ class ProjectApi:
|
|
3812
3302
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3813
3303
|
_content_type: Optional[StrictStr] = None,
|
3814
3304
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3815
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3305
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3816
3306
|
) -> RESTResponseType:
|
3817
3307
|
"""Patch an Ory Network Project Configuration
|
3818
3308
|
|
@@ -3877,7 +3367,10 @@ class ProjectApi:
|
|
3877
3367
|
_host_index,
|
3878
3368
|
) -> RequestSerialized:
|
3879
3369
|
|
3880
|
-
|
3370
|
+
_hosts = [
|
3371
|
+
'https://api.console.ory.sh'
|
3372
|
+
]
|
3373
|
+
_host = _hosts[_host_index]
|
3881
3374
|
|
3882
3375
|
_collection_formats: Dict[str, str] = {
|
3883
3376
|
'JsonPatch': '',
|
@@ -3924,7 +3417,7 @@ class ProjectApi:
|
|
3924
3417
|
|
3925
3418
|
# authentication setting
|
3926
3419
|
_auth_settings: List[str] = [
|
3927
|
-
'
|
3420
|
+
'oryNetworkCookie'
|
3928
3421
|
]
|
3929
3422
|
|
3930
3423
|
return self.api_client.param_serialize(
|
@@ -3960,7 +3453,7 @@ class ProjectApi:
|
|
3960
3453
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3961
3454
|
_content_type: Optional[StrictStr] = None,
|
3962
3455
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3963
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3456
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3964
3457
|
) -> None:
|
3965
3458
|
"""Irrecoverably purge a project
|
3966
3459
|
|
@@ -4030,7 +3523,7 @@ class ProjectApi:
|
|
4030
3523
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4031
3524
|
_content_type: Optional[StrictStr] = None,
|
4032
3525
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4033
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3526
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4034
3527
|
) -> ApiResponse[None]:
|
4035
3528
|
"""Irrecoverably purge a project
|
4036
3529
|
|
@@ -4100,7 +3593,7 @@ class ProjectApi:
|
|
4100
3593
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4101
3594
|
_content_type: Optional[StrictStr] = None,
|
4102
3595
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4103
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3596
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4104
3597
|
) -> RESTResponseType:
|
4105
3598
|
"""Irrecoverably purge a project
|
4106
3599
|
|
@@ -4160,7 +3653,10 @@ class ProjectApi:
|
|
4160
3653
|
_host_index,
|
4161
3654
|
) -> RequestSerialized:
|
4162
3655
|
|
4163
|
-
|
3656
|
+
_hosts = [
|
3657
|
+
'https://api.console.ory.sh'
|
3658
|
+
]
|
3659
|
+
_host = _hosts[_host_index]
|
4164
3660
|
|
4165
3661
|
_collection_formats: Dict[str, str] = {
|
4166
3662
|
}
|
@@ -4191,7 +3687,7 @@ class ProjectApi:
|
|
4191
3687
|
|
4192
3688
|
# authentication setting
|
4193
3689
|
_auth_settings: List[str] = [
|
4194
|
-
'
|
3690
|
+
'oryNetworkCookie'
|
4195
3691
|
]
|
4196
3692
|
|
4197
3693
|
return self.api_client.param_serialize(
|
@@ -4228,7 +3724,7 @@ class ProjectApi:
|
|
4228
3724
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4229
3725
|
_content_type: Optional[StrictStr] = None,
|
4230
3726
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4231
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3727
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4232
3728
|
) -> None:
|
4233
3729
|
"""Remove a member associated with this project
|
4234
3730
|
|
@@ -4301,7 +3797,7 @@ class ProjectApi:
|
|
4301
3797
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4302
3798
|
_content_type: Optional[StrictStr] = None,
|
4303
3799
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4304
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3800
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4305
3801
|
) -> ApiResponse[None]:
|
4306
3802
|
"""Remove a member associated with this project
|
4307
3803
|
|
@@ -4374,7 +3870,7 @@ class ProjectApi:
|
|
4374
3870
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4375
3871
|
_content_type: Optional[StrictStr] = None,
|
4376
3872
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4377
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3873
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4378
3874
|
) -> RESTResponseType:
|
4379
3875
|
"""Remove a member associated with this project
|
4380
3876
|
|
@@ -4437,7 +3933,10 @@ class ProjectApi:
|
|
4437
3933
|
_host_index,
|
4438
3934
|
) -> RequestSerialized:
|
4439
3935
|
|
4440
|
-
|
3936
|
+
_hosts = [
|
3937
|
+
'https://api.console.ory.sh'
|
3938
|
+
]
|
3939
|
+
_host = _hosts[_host_index]
|
4441
3940
|
|
4442
3941
|
_collection_formats: Dict[str, str] = {
|
4443
3942
|
}
|
@@ -4470,7 +3969,7 @@ class ProjectApi:
|
|
4470
3969
|
|
4471
3970
|
# authentication setting
|
4472
3971
|
_auth_settings: List[str] = [
|
4473
|
-
'
|
3972
|
+
'oryNetworkCookie'
|
4474
3973
|
]
|
4475
3974
|
|
4476
3975
|
return self.api_client.param_serialize(
|
@@ -4491,280 +3990,6 @@ class ProjectApi:
|
|
4491
3990
|
|
4492
3991
|
|
4493
3992
|
|
4494
|
-
@validate_call
|
4495
|
-
def set_active_project_in_console(
|
4496
|
-
self,
|
4497
|
-
set_active_project_in_console_body: Optional[SetActiveProjectInConsoleBody] = None,
|
4498
|
-
_request_timeout: Union[
|
4499
|
-
None,
|
4500
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4501
|
-
Tuple[
|
4502
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4503
|
-
Annotated[StrictFloat, Field(gt=0)]
|
4504
|
-
]
|
4505
|
-
] = None,
|
4506
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4507
|
-
_content_type: Optional[StrictStr] = None,
|
4508
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4509
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4510
|
-
) -> None:
|
4511
|
-
"""Sets the Ory Network Project active in the Ory Network Console
|
4512
|
-
|
4513
|
-
Use this API to set your active project in the Ory Network Console UI.
|
4514
|
-
|
4515
|
-
:param set_active_project_in_console_body:
|
4516
|
-
:type set_active_project_in_console_body: SetActiveProjectInConsoleBody
|
4517
|
-
:param _request_timeout: timeout setting for this request. If one
|
4518
|
-
number provided, it will be total request
|
4519
|
-
timeout. It can also be a pair (tuple) of
|
4520
|
-
(connection, read) timeouts.
|
4521
|
-
:type _request_timeout: int, tuple(int, int), optional
|
4522
|
-
:param _request_auth: set to override the auth_settings for an a single
|
4523
|
-
request; this effectively ignores the
|
4524
|
-
authentication in the spec for a single request.
|
4525
|
-
:type _request_auth: dict, optional
|
4526
|
-
:param _content_type: force content-type for the request.
|
4527
|
-
:type _content_type: str, Optional
|
4528
|
-
:param _headers: set to override the headers for a single
|
4529
|
-
request; this effectively ignores the headers
|
4530
|
-
in the spec for a single request.
|
4531
|
-
:type _headers: dict, optional
|
4532
|
-
:param _host_index: set to override the host_index for a single
|
4533
|
-
request; this effectively ignores the host_index
|
4534
|
-
in the spec for a single request.
|
4535
|
-
:type _host_index: int, optional
|
4536
|
-
:return: Returns the result object.
|
4537
|
-
""" # noqa: E501
|
4538
|
-
|
4539
|
-
_param = self._set_active_project_in_console_serialize(
|
4540
|
-
set_active_project_in_console_body=set_active_project_in_console_body,
|
4541
|
-
_request_auth=_request_auth,
|
4542
|
-
_content_type=_content_type,
|
4543
|
-
_headers=_headers,
|
4544
|
-
_host_index=_host_index
|
4545
|
-
)
|
4546
|
-
|
4547
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
4548
|
-
'204': None,
|
4549
|
-
'401': "GenericError",
|
4550
|
-
}
|
4551
|
-
response_data = self.api_client.call_api(
|
4552
|
-
*_param,
|
4553
|
-
_request_timeout=_request_timeout
|
4554
|
-
)
|
4555
|
-
response_data.read()
|
4556
|
-
return self.api_client.response_deserialize(
|
4557
|
-
response_data=response_data,
|
4558
|
-
response_types_map=_response_types_map,
|
4559
|
-
).data
|
4560
|
-
|
4561
|
-
|
4562
|
-
@validate_call
|
4563
|
-
def set_active_project_in_console_with_http_info(
|
4564
|
-
self,
|
4565
|
-
set_active_project_in_console_body: Optional[SetActiveProjectInConsoleBody] = None,
|
4566
|
-
_request_timeout: Union[
|
4567
|
-
None,
|
4568
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4569
|
-
Tuple[
|
4570
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4571
|
-
Annotated[StrictFloat, Field(gt=0)]
|
4572
|
-
]
|
4573
|
-
] = None,
|
4574
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4575
|
-
_content_type: Optional[StrictStr] = None,
|
4576
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4577
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4578
|
-
) -> ApiResponse[None]:
|
4579
|
-
"""Sets the Ory Network Project active in the Ory Network Console
|
4580
|
-
|
4581
|
-
Use this API to set your active project in the Ory Network Console UI.
|
4582
|
-
|
4583
|
-
:param set_active_project_in_console_body:
|
4584
|
-
:type set_active_project_in_console_body: SetActiveProjectInConsoleBody
|
4585
|
-
:param _request_timeout: timeout setting for this request. If one
|
4586
|
-
number provided, it will be total request
|
4587
|
-
timeout. It can also be a pair (tuple) of
|
4588
|
-
(connection, read) timeouts.
|
4589
|
-
:type _request_timeout: int, tuple(int, int), optional
|
4590
|
-
:param _request_auth: set to override the auth_settings for an a single
|
4591
|
-
request; this effectively ignores the
|
4592
|
-
authentication in the spec for a single request.
|
4593
|
-
:type _request_auth: dict, optional
|
4594
|
-
:param _content_type: force content-type for the request.
|
4595
|
-
:type _content_type: str, Optional
|
4596
|
-
:param _headers: set to override the headers for a single
|
4597
|
-
request; this effectively ignores the headers
|
4598
|
-
in the spec for a single request.
|
4599
|
-
:type _headers: dict, optional
|
4600
|
-
:param _host_index: set to override the host_index for a single
|
4601
|
-
request; this effectively ignores the host_index
|
4602
|
-
in the spec for a single request.
|
4603
|
-
:type _host_index: int, optional
|
4604
|
-
:return: Returns the result object.
|
4605
|
-
""" # noqa: E501
|
4606
|
-
|
4607
|
-
_param = self._set_active_project_in_console_serialize(
|
4608
|
-
set_active_project_in_console_body=set_active_project_in_console_body,
|
4609
|
-
_request_auth=_request_auth,
|
4610
|
-
_content_type=_content_type,
|
4611
|
-
_headers=_headers,
|
4612
|
-
_host_index=_host_index
|
4613
|
-
)
|
4614
|
-
|
4615
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
4616
|
-
'204': None,
|
4617
|
-
'401': "GenericError",
|
4618
|
-
}
|
4619
|
-
response_data = self.api_client.call_api(
|
4620
|
-
*_param,
|
4621
|
-
_request_timeout=_request_timeout
|
4622
|
-
)
|
4623
|
-
response_data.read()
|
4624
|
-
return self.api_client.response_deserialize(
|
4625
|
-
response_data=response_data,
|
4626
|
-
response_types_map=_response_types_map,
|
4627
|
-
)
|
4628
|
-
|
4629
|
-
|
4630
|
-
@validate_call
|
4631
|
-
def set_active_project_in_console_without_preload_content(
|
4632
|
-
self,
|
4633
|
-
set_active_project_in_console_body: Optional[SetActiveProjectInConsoleBody] = None,
|
4634
|
-
_request_timeout: Union[
|
4635
|
-
None,
|
4636
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4637
|
-
Tuple[
|
4638
|
-
Annotated[StrictFloat, Field(gt=0)],
|
4639
|
-
Annotated[StrictFloat, Field(gt=0)]
|
4640
|
-
]
|
4641
|
-
] = None,
|
4642
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4643
|
-
_content_type: Optional[StrictStr] = None,
|
4644
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4645
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
4646
|
-
) -> RESTResponseType:
|
4647
|
-
"""Sets the Ory Network Project active in the Ory Network Console
|
4648
|
-
|
4649
|
-
Use this API to set your active project in the Ory Network Console UI.
|
4650
|
-
|
4651
|
-
:param set_active_project_in_console_body:
|
4652
|
-
:type set_active_project_in_console_body: SetActiveProjectInConsoleBody
|
4653
|
-
:param _request_timeout: timeout setting for this request. If one
|
4654
|
-
number provided, it will be total request
|
4655
|
-
timeout. It can also be a pair (tuple) of
|
4656
|
-
(connection, read) timeouts.
|
4657
|
-
:type _request_timeout: int, tuple(int, int), optional
|
4658
|
-
:param _request_auth: set to override the auth_settings for an a single
|
4659
|
-
request; this effectively ignores the
|
4660
|
-
authentication in the spec for a single request.
|
4661
|
-
:type _request_auth: dict, optional
|
4662
|
-
:param _content_type: force content-type for the request.
|
4663
|
-
:type _content_type: str, Optional
|
4664
|
-
:param _headers: set to override the headers for a single
|
4665
|
-
request; this effectively ignores the headers
|
4666
|
-
in the spec for a single request.
|
4667
|
-
:type _headers: dict, optional
|
4668
|
-
:param _host_index: set to override the host_index for a single
|
4669
|
-
request; this effectively ignores the host_index
|
4670
|
-
in the spec for a single request.
|
4671
|
-
:type _host_index: int, optional
|
4672
|
-
:return: Returns the result object.
|
4673
|
-
""" # noqa: E501
|
4674
|
-
|
4675
|
-
_param = self._set_active_project_in_console_serialize(
|
4676
|
-
set_active_project_in_console_body=set_active_project_in_console_body,
|
4677
|
-
_request_auth=_request_auth,
|
4678
|
-
_content_type=_content_type,
|
4679
|
-
_headers=_headers,
|
4680
|
-
_host_index=_host_index
|
4681
|
-
)
|
4682
|
-
|
4683
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
4684
|
-
'204': None,
|
4685
|
-
'401': "GenericError",
|
4686
|
-
}
|
4687
|
-
response_data = self.api_client.call_api(
|
4688
|
-
*_param,
|
4689
|
-
_request_timeout=_request_timeout
|
4690
|
-
)
|
4691
|
-
return response_data.response
|
4692
|
-
|
4693
|
-
|
4694
|
-
def _set_active_project_in_console_serialize(
|
4695
|
-
self,
|
4696
|
-
set_active_project_in_console_body,
|
4697
|
-
_request_auth,
|
4698
|
-
_content_type,
|
4699
|
-
_headers,
|
4700
|
-
_host_index,
|
4701
|
-
) -> RequestSerialized:
|
4702
|
-
|
4703
|
-
_host = None
|
4704
|
-
|
4705
|
-
_collection_formats: Dict[str, str] = {
|
4706
|
-
}
|
4707
|
-
|
4708
|
-
_path_params: Dict[str, str] = {}
|
4709
|
-
_query_params: List[Tuple[str, str]] = []
|
4710
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
4711
|
-
_form_params: List[Tuple[str, str]] = []
|
4712
|
-
_files: Dict[str, str] = {}
|
4713
|
-
_body_params: Optional[bytes] = None
|
4714
|
-
|
4715
|
-
# process the path parameters
|
4716
|
-
# process the query parameters
|
4717
|
-
# process the header parameters
|
4718
|
-
# process the form parameters
|
4719
|
-
# process the body parameter
|
4720
|
-
if set_active_project_in_console_body is not None:
|
4721
|
-
_body_params = set_active_project_in_console_body
|
4722
|
-
|
4723
|
-
|
4724
|
-
# set the HTTP header `Accept`
|
4725
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
4726
|
-
[
|
4727
|
-
'application/json'
|
4728
|
-
]
|
4729
|
-
)
|
4730
|
-
|
4731
|
-
# set the HTTP header `Content-Type`
|
4732
|
-
if _content_type:
|
4733
|
-
_header_params['Content-Type'] = _content_type
|
4734
|
-
else:
|
4735
|
-
_default_content_type = (
|
4736
|
-
self.api_client.select_header_content_type(
|
4737
|
-
[
|
4738
|
-
'application/json'
|
4739
|
-
]
|
4740
|
-
)
|
4741
|
-
)
|
4742
|
-
if _default_content_type is not None:
|
4743
|
-
_header_params['Content-Type'] = _default_content_type
|
4744
|
-
|
4745
|
-
# authentication setting
|
4746
|
-
_auth_settings: List[str] = [
|
4747
|
-
'oryAccessToken'
|
4748
|
-
]
|
4749
|
-
|
4750
|
-
return self.api_client.param_serialize(
|
4751
|
-
method='PUT',
|
4752
|
-
resource_path='/console/active/project',
|
4753
|
-
path_params=_path_params,
|
4754
|
-
query_params=_query_params,
|
4755
|
-
header_params=_header_params,
|
4756
|
-
body=_body_params,
|
4757
|
-
post_params=_form_params,
|
4758
|
-
files=_files,
|
4759
|
-
auth_settings=_auth_settings,
|
4760
|
-
collection_formats=_collection_formats,
|
4761
|
-
_host=_host,
|
4762
|
-
_request_auth=_request_auth
|
4763
|
-
)
|
4764
|
-
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
4768
3993
|
@validate_call
|
4769
3994
|
def set_project(
|
4770
3995
|
self,
|
@@ -4781,7 +4006,7 @@ class ProjectApi:
|
|
4781
4006
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4782
4007
|
_content_type: Optional[StrictStr] = None,
|
4783
4008
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4784
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4009
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4785
4010
|
) -> SuccessfulProjectUpdate:
|
4786
4011
|
"""Update an Ory Network Project Configuration
|
4787
4012
|
|
@@ -4856,7 +4081,7 @@ class ProjectApi:
|
|
4856
4081
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4857
4082
|
_content_type: Optional[StrictStr] = None,
|
4858
4083
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4859
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4084
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4860
4085
|
) -> ApiResponse[SuccessfulProjectUpdate]:
|
4861
4086
|
"""Update an Ory Network Project Configuration
|
4862
4087
|
|
@@ -4931,7 +4156,7 @@ class ProjectApi:
|
|
4931
4156
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4932
4157
|
_content_type: Optional[StrictStr] = None,
|
4933
4158
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4934
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4159
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4935
4160
|
) -> RESTResponseType:
|
4936
4161
|
"""Update an Ory Network Project Configuration
|
4937
4162
|
|
@@ -4996,7 +4221,10 @@ class ProjectApi:
|
|
4996
4221
|
_host_index,
|
4997
4222
|
) -> RequestSerialized:
|
4998
4223
|
|
4999
|
-
|
4224
|
+
_hosts = [
|
4225
|
+
'https://api.console.ory.sh'
|
4226
|
+
]
|
4227
|
+
_host = _hosts[_host_index]
|
5000
4228
|
|
5001
4229
|
_collection_formats: Dict[str, str] = {
|
5002
4230
|
}
|
@@ -5042,7 +4270,7 @@ class ProjectApi:
|
|
5042
4270
|
|
5043
4271
|
# authentication setting
|
5044
4272
|
_auth_settings: List[str] = [
|
5045
|
-
'
|
4273
|
+
'oryNetworkCookie'
|
5046
4274
|
]
|
5047
4275
|
|
5048
4276
|
return self.api_client.param_serialize(
|
@@ -5080,10 +4308,11 @@ class ProjectApi:
|
|
5080
4308
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5081
4309
|
_content_type: Optional[StrictStr] = None,
|
5082
4310
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5083
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5084
4312
|
) -> Organization:
|
5085
|
-
"""
|
4313
|
+
"""update_organization
|
5086
4314
|
|
4315
|
+
Update a B2B SSO Organization for a project
|
5087
4316
|
|
5088
4317
|
:param project_id: Project ID The project's ID. (required)
|
5089
4318
|
:type project_id: str
|
@@ -5158,10 +4387,11 @@ class ProjectApi:
|
|
5158
4387
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5159
4388
|
_content_type: Optional[StrictStr] = None,
|
5160
4389
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5161
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4390
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5162
4391
|
) -> ApiResponse[Organization]:
|
5163
|
-
"""
|
4392
|
+
"""update_organization
|
5164
4393
|
|
4394
|
+
Update a B2B SSO Organization for a project
|
5165
4395
|
|
5166
4396
|
:param project_id: Project ID The project's ID. (required)
|
5167
4397
|
:type project_id: str
|
@@ -5236,10 +4466,11 @@ class ProjectApi:
|
|
5236
4466
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5237
4467
|
_content_type: Optional[StrictStr] = None,
|
5238
4468
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5239
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4469
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5240
4470
|
) -> RESTResponseType:
|
5241
|
-
"""
|
4471
|
+
"""update_organization
|
5242
4472
|
|
4473
|
+
Update a B2B SSO Organization for a project
|
5243
4474
|
|
5244
4475
|
:param project_id: Project ID The project's ID. (required)
|
5245
4476
|
:type project_id: str
|
@@ -5304,7 +4535,10 @@ class ProjectApi:
|
|
5304
4535
|
_host_index,
|
5305
4536
|
) -> RequestSerialized:
|
5306
4537
|
|
5307
|
-
|
4538
|
+
_hosts = [
|
4539
|
+
'https://api.console.ory.sh'
|
4540
|
+
]
|
4541
|
+
_host = _hosts[_host_index]
|
5308
4542
|
|
5309
4543
|
_collection_formats: Dict[str, str] = {
|
5310
4544
|
}
|
@@ -5352,7 +4586,7 @@ class ProjectApi:
|
|
5352
4586
|
|
5353
4587
|
# authentication setting
|
5354
4588
|
_auth_settings: List[str] = [
|
5355
|
-
'
|
4589
|
+
'oryNetworkCookie'
|
5356
4590
|
]
|
5357
4591
|
|
5358
4592
|
return self.api_client.param_serialize(
|