ory-client 1.11.6__py3-none-any.whl → 1.11.10__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 +151 -968
- 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 +1 -1
- ory_client/models/create_project_branding.py +1 -1
- ory_client/models/create_project_member_invite_body.py +1 -1
- ory_client/models/create_project_normalized_payload.py +15 -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 +1 -1
- 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 +1 -1
- 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 +11 -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 +2 -2
- 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.6.dist-info → ory_client-1.11.10.dist-info}/METADATA +1 -1
- ory_client-1.11.10.dist-info/RECORD +288 -0
- ory_client-1.11.6.dist-info/RECORD +0 -278
- {ory_client-1.11.6.dist-info → ory_client-1.11.10.dist-info}/LICENSE +0 -0
- {ory_client-1.11.6.dist-info → ory_client-1.11.10.dist-info}/WHEEL +0 -0
- {ory_client-1.11.6.dist-info → ory_client-1.11.10.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.10
|
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,323 +2247,10 @@ class ProjectApi:
|
|
2473
2247
|
_host_index,
|
2474
2248
|
) -> RequestSerialized:
|
2475
2249
|
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
_path_params: Dict[str, str] = {}
|
2482
|
-
_query_params: List[Tuple[str, str]] = []
|
2483
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2484
|
-
_form_params: List[Tuple[str, str]] = []
|
2485
|
-
_files: Dict[str, str] = {}
|
2486
|
-
_body_params: Optional[bytes] = None
|
2487
|
-
|
2488
|
-
# process the path parameters
|
2489
|
-
if project is not None:
|
2490
|
-
_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
|
2250
|
+
_hosts = [
|
2251
|
+
'https://api.console.ory.sh'
|
2252
|
+
]
|
2253
|
+
_host = _hosts[_host_index]
|
2793
2254
|
|
2794
2255
|
_collection_formats: Dict[str, str] = {
|
2795
2256
|
}
|
@@ -2802,43 +2263,9 @@ class ProjectApi:
|
|
2802
2263
|
_body_params: Optional[bytes] = None
|
2803
2264
|
|
2804
2265
|
# process the path parameters
|
2805
|
-
if
|
2806
|
-
_path_params['
|
2266
|
+
if project is not None:
|
2267
|
+
_path_params['project'] = project
|
2807
2268
|
# 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
|
-
|
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,
|
@@ -2890,10 +2317,11 @@ class ProjectApi:
|
|
2890
2317
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2891
2318
|
_content_type: Optional[StrictStr] = None,
|
2892
2319
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2893
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2320
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2894
2321
|
) -> ListOrganizationsResponse:
|
2895
2322
|
"""list_organizations
|
2896
2323
|
|
2324
|
+
List all B2B SSO Organizations for a project
|
2897
2325
|
|
2898
2326
|
:param project_id: Project ID The project's ID. (required)
|
2899
2327
|
:type project_id: str
|
@@ -2958,10 +2386,11 @@ class ProjectApi:
|
|
2958
2386
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2959
2387
|
_content_type: Optional[StrictStr] = None,
|
2960
2388
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2961
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2389
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
2962
2390
|
) -> ApiResponse[ListOrganizationsResponse]:
|
2963
2391
|
"""list_organizations
|
2964
2392
|
|
2393
|
+
List all B2B SSO Organizations for a project
|
2965
2394
|
|
2966
2395
|
:param project_id: Project ID The project's ID. (required)
|
2967
2396
|
:type project_id: str
|
@@ -3026,10 +2455,11 @@ class ProjectApi:
|
|
3026
2455
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3027
2456
|
_content_type: Optional[StrictStr] = None,
|
3028
2457
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3029
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2458
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3030
2459
|
) -> RESTResponseType:
|
3031
2460
|
"""list_organizations
|
3032
2461
|
|
2462
|
+
List all B2B SSO Organizations for a project
|
3033
2463
|
|
3034
2464
|
:param project_id: Project ID The project's ID. (required)
|
3035
2465
|
:type project_id: str
|
@@ -3084,7 +2514,10 @@ class ProjectApi:
|
|
3084
2514
|
_host_index,
|
3085
2515
|
) -> RequestSerialized:
|
3086
2516
|
|
3087
|
-
|
2517
|
+
_hosts = [
|
2518
|
+
'https://api.console.ory.sh'
|
2519
|
+
]
|
2520
|
+
_host = _hosts[_host_index]
|
3088
2521
|
|
3089
2522
|
_collection_formats: Dict[str, str] = {
|
3090
2523
|
}
|
@@ -3115,7 +2548,7 @@ class ProjectApi:
|
|
3115
2548
|
|
3116
2549
|
# authentication setting
|
3117
2550
|
_auth_settings: List[str] = [
|
3118
|
-
'
|
2551
|
+
'oryNetworkCookie'
|
3119
2552
|
]
|
3120
2553
|
|
3121
2554
|
return self.api_client.param_serialize(
|
@@ -3151,7 +2584,7 @@ class ProjectApi:
|
|
3151
2584
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3152
2585
|
_content_type: Optional[StrictStr] = None,
|
3153
2586
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3154
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2587
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3155
2588
|
) -> List[ProjectApiKey]:
|
3156
2589
|
"""List a project's API Tokens
|
3157
2590
|
|
@@ -3218,7 +2651,7 @@ class ProjectApi:
|
|
3218
2651
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3219
2652
|
_content_type: Optional[StrictStr] = None,
|
3220
2653
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3221
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2654
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3222
2655
|
) -> ApiResponse[List[ProjectApiKey]]:
|
3223
2656
|
"""List a project's API Tokens
|
3224
2657
|
|
@@ -3285,7 +2718,7 @@ class ProjectApi:
|
|
3285
2718
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3286
2719
|
_content_type: Optional[StrictStr] = None,
|
3287
2720
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3288
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2721
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3289
2722
|
) -> RESTResponseType:
|
3290
2723
|
"""List a project's API Tokens
|
3291
2724
|
|
@@ -3342,7 +2775,10 @@ class ProjectApi:
|
|
3342
2775
|
_host_index,
|
3343
2776
|
) -> RequestSerialized:
|
3344
2777
|
|
3345
|
-
|
2778
|
+
_hosts = [
|
2779
|
+
'https://api.console.ory.sh'
|
2780
|
+
]
|
2781
|
+
_host = _hosts[_host_index]
|
3346
2782
|
|
3347
2783
|
_collection_formats: Dict[str, str] = {
|
3348
2784
|
}
|
@@ -3373,7 +2809,7 @@ class ProjectApi:
|
|
3373
2809
|
|
3374
2810
|
# authentication setting
|
3375
2811
|
_auth_settings: List[str] = [
|
3376
|
-
'
|
2812
|
+
'oryNetworkCookie'
|
3377
2813
|
]
|
3378
2814
|
|
3379
2815
|
return self.api_client.param_serialize(
|
@@ -3408,7 +2844,7 @@ class ProjectApi:
|
|
3408
2844
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3409
2845
|
_content_type: Optional[StrictStr] = None,
|
3410
2846
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3411
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2847
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3412
2848
|
) -> List[ProjectMetadata]:
|
3413
2849
|
"""List All Projects
|
3414
2850
|
|
@@ -3474,7 +2910,7 @@ class ProjectApi:
|
|
3474
2910
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3475
2911
|
_content_type: Optional[StrictStr] = None,
|
3476
2912
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3477
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2913
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3478
2914
|
) -> ApiResponse[List[ProjectMetadata]]:
|
3479
2915
|
"""List All Projects
|
3480
2916
|
|
@@ -3540,7 +2976,7 @@ class ProjectApi:
|
|
3540
2976
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3541
2977
|
_content_type: Optional[StrictStr] = None,
|
3542
2978
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3543
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
2979
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3544
2980
|
) -> RESTResponseType:
|
3545
2981
|
"""List All Projects
|
3546
2982
|
|
@@ -3596,7 +3032,10 @@ class ProjectApi:
|
|
3596
3032
|
_host_index,
|
3597
3033
|
) -> RequestSerialized:
|
3598
3034
|
|
3599
|
-
|
3035
|
+
_hosts = [
|
3036
|
+
'https://api.console.ory.sh'
|
3037
|
+
]
|
3038
|
+
_host = _hosts[_host_index]
|
3600
3039
|
|
3601
3040
|
_collection_formats: Dict[str, str] = {
|
3602
3041
|
}
|
@@ -3625,7 +3064,7 @@ class ProjectApi:
|
|
3625
3064
|
|
3626
3065
|
# authentication setting
|
3627
3066
|
_auth_settings: List[str] = [
|
3628
|
-
'
|
3067
|
+
'oryNetworkCookie'
|
3629
3068
|
]
|
3630
3069
|
|
3631
3070
|
return self.api_client.param_serialize(
|
@@ -3662,7 +3101,7 @@ class ProjectApi:
|
|
3662
3101
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3663
3102
|
_content_type: Optional[StrictStr] = None,
|
3664
3103
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3665
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3104
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3666
3105
|
) -> SuccessfulProjectUpdate:
|
3667
3106
|
"""Patch an Ory Network Project Configuration
|
3668
3107
|
|
@@ -3737,7 +3176,7 @@ class ProjectApi:
|
|
3737
3176
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3738
3177
|
_content_type: Optional[StrictStr] = None,
|
3739
3178
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3740
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3179
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3741
3180
|
) -> ApiResponse[SuccessfulProjectUpdate]:
|
3742
3181
|
"""Patch an Ory Network Project Configuration
|
3743
3182
|
|
@@ -3812,7 +3251,7 @@ class ProjectApi:
|
|
3812
3251
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3813
3252
|
_content_type: Optional[StrictStr] = None,
|
3814
3253
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3815
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3254
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3816
3255
|
) -> RESTResponseType:
|
3817
3256
|
"""Patch an Ory Network Project Configuration
|
3818
3257
|
|
@@ -3877,7 +3316,10 @@ class ProjectApi:
|
|
3877
3316
|
_host_index,
|
3878
3317
|
) -> RequestSerialized:
|
3879
3318
|
|
3880
|
-
|
3319
|
+
_hosts = [
|
3320
|
+
'https://api.console.ory.sh'
|
3321
|
+
]
|
3322
|
+
_host = _hosts[_host_index]
|
3881
3323
|
|
3882
3324
|
_collection_formats: Dict[str, str] = {
|
3883
3325
|
'JsonPatch': '',
|
@@ -3924,7 +3366,7 @@ class ProjectApi:
|
|
3924
3366
|
|
3925
3367
|
# authentication setting
|
3926
3368
|
_auth_settings: List[str] = [
|
3927
|
-
'
|
3369
|
+
'oryNetworkCookie'
|
3928
3370
|
]
|
3929
3371
|
|
3930
3372
|
return self.api_client.param_serialize(
|
@@ -3960,7 +3402,7 @@ class ProjectApi:
|
|
3960
3402
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
3961
3403
|
_content_type: Optional[StrictStr] = None,
|
3962
3404
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
3963
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3405
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
3964
3406
|
) -> None:
|
3965
3407
|
"""Irrecoverably purge a project
|
3966
3408
|
|
@@ -4030,7 +3472,7 @@ class ProjectApi:
|
|
4030
3472
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4031
3473
|
_content_type: Optional[StrictStr] = None,
|
4032
3474
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4033
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3475
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4034
3476
|
) -> ApiResponse[None]:
|
4035
3477
|
"""Irrecoverably purge a project
|
4036
3478
|
|
@@ -4100,7 +3542,7 @@ class ProjectApi:
|
|
4100
3542
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4101
3543
|
_content_type: Optional[StrictStr] = None,
|
4102
3544
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4103
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3545
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4104
3546
|
) -> RESTResponseType:
|
4105
3547
|
"""Irrecoverably purge a project
|
4106
3548
|
|
@@ -4160,7 +3602,10 @@ class ProjectApi:
|
|
4160
3602
|
_host_index,
|
4161
3603
|
) -> RequestSerialized:
|
4162
3604
|
|
4163
|
-
|
3605
|
+
_hosts = [
|
3606
|
+
'https://api.console.ory.sh'
|
3607
|
+
]
|
3608
|
+
_host = _hosts[_host_index]
|
4164
3609
|
|
4165
3610
|
_collection_formats: Dict[str, str] = {
|
4166
3611
|
}
|
@@ -4191,7 +3636,7 @@ class ProjectApi:
|
|
4191
3636
|
|
4192
3637
|
# authentication setting
|
4193
3638
|
_auth_settings: List[str] = [
|
4194
|
-
'
|
3639
|
+
'oryNetworkCookie'
|
4195
3640
|
]
|
4196
3641
|
|
4197
3642
|
return self.api_client.param_serialize(
|
@@ -4228,7 +3673,7 @@ class ProjectApi:
|
|
4228
3673
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4229
3674
|
_content_type: Optional[StrictStr] = None,
|
4230
3675
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4231
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3676
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4232
3677
|
) -> None:
|
4233
3678
|
"""Remove a member associated with this project
|
4234
3679
|
|
@@ -4301,7 +3746,7 @@ class ProjectApi:
|
|
4301
3746
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4302
3747
|
_content_type: Optional[StrictStr] = None,
|
4303
3748
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4304
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3749
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4305
3750
|
) -> ApiResponse[None]:
|
4306
3751
|
"""Remove a member associated with this project
|
4307
3752
|
|
@@ -4374,7 +3819,7 @@ class ProjectApi:
|
|
4374
3819
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4375
3820
|
_content_type: Optional[StrictStr] = None,
|
4376
3821
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4377
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3822
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4378
3823
|
) -> RESTResponseType:
|
4379
3824
|
"""Remove a member associated with this project
|
4380
3825
|
|
@@ -4437,7 +3882,10 @@ class ProjectApi:
|
|
4437
3882
|
_host_index,
|
4438
3883
|
) -> RequestSerialized:
|
4439
3884
|
|
4440
|
-
|
3885
|
+
_hosts = [
|
3886
|
+
'https://api.console.ory.sh'
|
3887
|
+
]
|
3888
|
+
_host = _hosts[_host_index]
|
4441
3889
|
|
4442
3890
|
_collection_formats: Dict[str, str] = {
|
4443
3891
|
}
|
@@ -4470,7 +3918,7 @@ class ProjectApi:
|
|
4470
3918
|
|
4471
3919
|
# authentication setting
|
4472
3920
|
_auth_settings: List[str] = [
|
4473
|
-
'
|
3921
|
+
'oryNetworkCookie'
|
4474
3922
|
]
|
4475
3923
|
|
4476
3924
|
return self.api_client.param_serialize(
|
@@ -4491,280 +3939,6 @@ class ProjectApi:
|
|
4491
3939
|
|
4492
3940
|
|
4493
3941
|
|
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
3942
|
@validate_call
|
4769
3943
|
def set_project(
|
4770
3944
|
self,
|
@@ -4781,7 +3955,7 @@ class ProjectApi:
|
|
4781
3955
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4782
3956
|
_content_type: Optional[StrictStr] = None,
|
4783
3957
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4784
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
3958
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4785
3959
|
) -> SuccessfulProjectUpdate:
|
4786
3960
|
"""Update an Ory Network Project Configuration
|
4787
3961
|
|
@@ -4856,7 +4030,7 @@ class ProjectApi:
|
|
4856
4030
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4857
4031
|
_content_type: Optional[StrictStr] = None,
|
4858
4032
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4859
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4033
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4860
4034
|
) -> ApiResponse[SuccessfulProjectUpdate]:
|
4861
4035
|
"""Update an Ory Network Project Configuration
|
4862
4036
|
|
@@ -4931,7 +4105,7 @@ class ProjectApi:
|
|
4931
4105
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
4932
4106
|
_content_type: Optional[StrictStr] = None,
|
4933
4107
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
4934
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4108
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
4935
4109
|
) -> RESTResponseType:
|
4936
4110
|
"""Update an Ory Network Project Configuration
|
4937
4111
|
|
@@ -4996,7 +4170,10 @@ class ProjectApi:
|
|
4996
4170
|
_host_index,
|
4997
4171
|
) -> RequestSerialized:
|
4998
4172
|
|
4999
|
-
|
4173
|
+
_hosts = [
|
4174
|
+
'https://api.console.ory.sh'
|
4175
|
+
]
|
4176
|
+
_host = _hosts[_host_index]
|
5000
4177
|
|
5001
4178
|
_collection_formats: Dict[str, str] = {
|
5002
4179
|
}
|
@@ -5042,7 +4219,7 @@ class ProjectApi:
|
|
5042
4219
|
|
5043
4220
|
# authentication setting
|
5044
4221
|
_auth_settings: List[str] = [
|
5045
|
-
'
|
4222
|
+
'oryNetworkCookie'
|
5046
4223
|
]
|
5047
4224
|
|
5048
4225
|
return self.api_client.param_serialize(
|
@@ -5080,10 +4257,11 @@ class ProjectApi:
|
|
5080
4257
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5081
4258
|
_content_type: Optional[StrictStr] = None,
|
5082
4259
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5083
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4260
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5084
4261
|
) -> Organization:
|
5085
|
-
"""
|
4262
|
+
"""update_organization
|
5086
4263
|
|
4264
|
+
Update a B2B SSO Organization for a project
|
5087
4265
|
|
5088
4266
|
:param project_id: Project ID The project's ID. (required)
|
5089
4267
|
:type project_id: str
|
@@ -5158,10 +4336,11 @@ class ProjectApi:
|
|
5158
4336
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5159
4337
|
_content_type: Optional[StrictStr] = None,
|
5160
4338
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5161
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4339
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5162
4340
|
) -> ApiResponse[Organization]:
|
5163
|
-
"""
|
4341
|
+
"""update_organization
|
5164
4342
|
|
4343
|
+
Update a B2B SSO Organization for a project
|
5165
4344
|
|
5166
4345
|
:param project_id: Project ID The project's ID. (required)
|
5167
4346
|
:type project_id: str
|
@@ -5236,10 +4415,11 @@ class ProjectApi:
|
|
5236
4415
|
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
5237
4416
|
_content_type: Optional[StrictStr] = None,
|
5238
4417
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
5239
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=
|
4418
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=1)] = 0,
|
5240
4419
|
) -> RESTResponseType:
|
5241
|
-
"""
|
4420
|
+
"""update_organization
|
5242
4421
|
|
4422
|
+
Update a B2B SSO Organization for a project
|
5243
4423
|
|
5244
4424
|
:param project_id: Project ID The project's ID. (required)
|
5245
4425
|
:type project_id: str
|
@@ -5304,7 +4484,10 @@ class ProjectApi:
|
|
5304
4484
|
_host_index,
|
5305
4485
|
) -> RequestSerialized:
|
5306
4486
|
|
5307
|
-
|
4487
|
+
_hosts = [
|
4488
|
+
'https://api.console.ory.sh'
|
4489
|
+
]
|
4490
|
+
_host = _hosts[_host_index]
|
5308
4491
|
|
5309
4492
|
_collection_formats: Dict[str, str] = {
|
5310
4493
|
}
|
@@ -5352,7 +4535,7 @@ class ProjectApi:
|
|
5352
4535
|
|
5353
4536
|
# authentication setting
|
5354
4537
|
_auth_settings: List[str] = [
|
5355
|
-
'
|
4538
|
+
'oryNetworkCookie'
|
5356
4539
|
]
|
5357
4540
|
|
5358
4541
|
return self.api_client.param_serialize(
|