ory-kratos-client 0.5.5.alpha2 → 0.6.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +85 -36
- data/docs/AdminApi.md +206 -20
- data/docs/AuthenticateOKBody.md +20 -0
- data/docs/ContainerChangeResponseItem.md +20 -0
- data/docs/ContainerCreateCreatedBody.md +20 -0
- data/docs/ContainerTopOKBody.md +20 -0
- data/docs/ContainerUpdateOKBody.md +18 -0
- data/docs/ContainerWaitOKBody.md +20 -0
- data/docs/ContainerWaitOKBodyError.md +18 -0
- data/docs/ErrorContainer.md +1 -1
- data/docs/ErrorResponse.md +18 -0
- data/docs/GenericErrorPayload.md +1 -1
- data/docs/GraphDriverData.md +20 -0
- data/docs/IdResponse.md +18 -0
- data/docs/IdentityCredentials.md +22 -0
- data/docs/ImageDeleteResponseItem.md +20 -0
- data/docs/ImageSummary.md +36 -0
- data/docs/InlineResponse200.md +18 -0
- data/docs/InlineResponse2001.md +18 -0
- data/docs/InlineResponse503.md +18 -0
- data/docs/LoginFlow.md +5 -7
- data/docs/Meta.md +18 -0
- data/docs/Plugin.md +28 -0
- data/docs/PluginConfig.md +48 -0
- data/docs/PluginConfigArgs.md +24 -0
- data/docs/PluginConfigInterface.md +20 -0
- data/docs/PluginConfigLinux.md +22 -0
- data/docs/PluginConfigNetwork.md +18 -0
- data/docs/PluginConfigRootfs.md +20 -0
- data/docs/PluginConfigUser.md +20 -0
- data/docs/PluginDevice.md +24 -0
- data/docs/PluginEnv.md +24 -0
- data/docs/PluginInterfaceType.md +22 -0
- data/docs/PluginMount.md +30 -0
- data/docs/PluginSettings.md +24 -0
- data/docs/Port.md +24 -0
- data/docs/PublicApi.md +481 -552
- data/docs/RecoveryFlow.md +4 -6
- data/docs/RegistrationFlow.md +4 -6
- data/docs/ServiceUpdateResponse.md +18 -0
- data/docs/SettingsFlow.md +4 -6
- data/docs/{RecoveryFlowMethodConfig.md → SettingsProfileFormConfig.md} +6 -6
- data/docs/SubmitSelfServiceBrowserSettingsOIDCFlowPayload.md +22 -0
- data/docs/SubmitSelfServiceLoginFlow.md +47 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethod.md +24 -0
- data/docs/{CompleteSelfServiceRecoveryFlowWithLinkMethod.md → SubmitSelfServiceRecoveryFlowWithLinkMethod.md} +2 -2
- data/docs/SubmitSelfServiceRegistrationFlow.md +47 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethod.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlow.md +49 -0
- data/docs/{CompleteSelfServiceSettingsFlowWithPasswordMethod.md → SubmitSelfServiceSettingsFlowWithPasswordMethod.md} +4 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethod.md +22 -0
- data/docs/{CompleteSelfServiceVerificationFlowWithLinkMethod.md → SubmitSelfServiceVerificationFlowWithLinkMethod.md} +2 -2
- data/docs/{SettingsFlowMethodConfig.md → UiContainer.md} +6 -6
- data/docs/UiNode.md +26 -0
- data/docs/UiNodeAnchorAttributes.md +20 -0
- data/docs/UiNodeAttributes.md +53 -0
- data/docs/UiNodeImageAttributes.md +18 -0
- data/docs/UiNodeInputAttributes.md +30 -0
- data/docs/UiNodeInputAttributesValue.md +51 -0
- data/docs/UiNodeTextAttributes.md +18 -0
- data/docs/UiText.md +24 -0
- data/docs/VerificationFlow.md +6 -8
- data/docs/Volume.md +34 -0
- data/docs/VolumeUsageData.md +20 -0
- data/lib/ory-kratos-client.rb +59 -23
- data/lib/ory-kratos-client/api/admin_api.rb +207 -36
- data/lib/ory-kratos-client/api/public_api.rb +494 -538
- data/lib/ory-kratos-client/api_client.rb +6 -6
- data/lib/ory-kratos-client/api_error.rb +5 -5
- data/lib/ory-kratos-client/configuration.rb +36 -13
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +240 -0
- data/lib/ory-kratos-client/models/container_change_response_item.rb +240 -0
- data/lib/ory-kratos-client/models/container_create_created_body.rb +242 -0
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +244 -0
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +227 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +239 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +220 -0
- data/lib/ory-kratos-client/models/create_identity.rb +5 -5
- data/lib/ory-kratos-client/models/create_recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/error_container.rb +9 -7
- data/lib/ory-kratos-client/models/{registration_flow_method.rb → error_response.rb} +19 -33
- data/lib/ory-kratos-client/models/generic_error.rb +5 -5
- data/lib/ory-kratos-client/models/generic_error_payload.rb +9 -7
- data/lib/ory-kratos-client/models/graph_driver_data.rb +241 -0
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +5 -5
- data/lib/ory-kratos-client/models/health_status.rb +5 -5
- data/lib/ory-kratos-client/models/id_response.rb +225 -0
- data/lib/ory-kratos-client/models/identity.rb +5 -5
- data/lib/ory-kratos-client/models/identity_credentials.rb +241 -0
- data/lib/ory-kratos-client/models/{complete_self_service_login_flow_with_password_method.rb → image_delete_response_item.rb} +24 -33
- data/lib/ory-kratos-client/models/image_summary.rb +366 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method.rb → inline_response200.rb} +19 -33
- data/lib/ory-kratos-client/models/{settings_flow_method.rb → inline_response2001.rb} +19 -33
- data/lib/ory-kratos-client/models/inline_response503.rb +226 -0
- data/lib/ory-kratos-client/models/login_flow.rb +29 -38
- data/lib/ory-kratos-client/models/login_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/meta.rb +219 -0
- data/lib/ory-kratos-client/models/plugin.rb +288 -0
- data/lib/ory-kratos-client/models/plugin_config.rb +434 -0
- data/lib/ory-kratos-client/models/plugin_config_args.rb +274 -0
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +242 -0
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +259 -0
- data/lib/ory-kratos-client/models/{message.rb → plugin_config_network.rb} +17 -38
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +232 -0
- data/lib/ory-kratos-client/models/plugin_config_user.rb +230 -0
- data/lib/ory-kratos-client/models/plugin_device.rb +272 -0
- data/lib/ory-kratos-client/models/plugin_env.rb +272 -0
- data/lib/ory-kratos-client/models/{settings_flow_method_config.rb → plugin_interface_type.rb} +40 -52
- data/lib/ory-kratos-client/models/plugin_mount.rb +319 -0
- data/lib/ory-kratos-client/models/plugin_settings.rb +277 -0
- data/lib/ory-kratos-client/models/port.rb +260 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +5 -5
- data/lib/ory-kratos-client/models/recovery_flow.rb +24 -38
- data/lib/ory-kratos-client/models/recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/registration_flow.rb +24 -38
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/revoke_session.rb +5 -5
- data/lib/ory-kratos-client/models/service_update_response.rb +222 -0
- data/lib/ory-kratos-client/models/session.rb +5 -5
- data/lib/ory-kratos-client/models/settings_flow.rb +24 -38
- data/lib/ory-kratos-client/models/{login_flow_method_config.rb → settings_profile_form_config.rb} +22 -35
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +239 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +104 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +249 -0
- data/lib/ory-kratos-client/models/{complete_self_service_recovery_flow_with_link_method.rb → submit_self_service_recovery_flow_with_link_method.rb} +8 -8
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +104 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method_config.rb → submit_self_service_registration_flow_with_password_method.rb} +38 -50
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +105 -0
- data/lib/ory-kratos-client/models/{complete_self_service_settings_flow_with_password_method.rb → submit_self_service_settings_flow_with_password_method.rb} +19 -9
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +245 -0
- data/lib/ory-kratos-client/models/{complete_self_service_verification_flow_with_link_method.rb → submit_self_service_verification_flow_with_link_method.rb} +9 -8
- data/lib/ory-kratos-client/models/{registration_flow_method_config.rb → ui_container.rb} +23 -35
- data/lib/ory-kratos-client/models/ui_node.rb +282 -0
- data/lib/ory-kratos-client/models/{verification_flow_method.rb → ui_node_anchor_attributes.rb} +28 -28
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +107 -0
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +224 -0
- data/lib/ory-kratos-client/models/{form_field.rb → ui_node_input_attributes.rb} +26 -25
- data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +106 -0
- data/lib/ory-kratos-client/models/{login_flow_method.rb → ui_node_text_attributes.rb} +18 -33
- data/lib/ory-kratos-client/models/{verification_flow_method_config.rb → ui_text.rb} +44 -49
- data/lib/ory-kratos-client/models/update_identity.rb +5 -5
- data/lib/ory-kratos-client/models/verifiable_address.rb +5 -5
- data/lib/ory-kratos-client/models/verification_flow.rb +32 -36
- data/lib/ory-kratos-client/models/version.rb +5 -5
- data/lib/ory-kratos-client/models/volume.rb +335 -0
- data/lib/ory-kratos-client/models/volume_usage_data.rb +240 -0
- data/lib/ory-kratos-client/version.rb +6 -6
- data/ory-kratos-client.gemspec +7 -7
- data/spec/api/admin_api_spec.rb +134 -41
- data/spec/api/public_api_spec.rb +268 -37
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +8 -8
- data/spec/models/authenticate_ok_body_spec.rb +40 -0
- data/spec/models/container_change_response_item_spec.rb +40 -0
- data/spec/models/container_create_created_body_spec.rb +40 -0
- data/spec/models/container_top_ok_body_spec.rb +40 -0
- data/spec/models/container_update_ok_body_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_error_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_spec.rb +40 -0
- data/spec/models/create_identity_spec.rb +8 -15
- data/spec/models/create_recovery_link_spec.rb +8 -15
- data/spec/models/error_container_spec.rb +8 -15
- data/spec/models/error_response_spec.rb +34 -0
- data/spec/models/generic_error_payload_spec.rb +8 -15
- data/spec/models/generic_error_spec.rb +8 -33
- data/spec/models/graph_driver_data_spec.rb +40 -0
- data/spec/models/health_not_ready_status_spec.rb +8 -15
- data/spec/models/health_status_spec.rb +8 -15
- data/spec/models/id_response_spec.rb +34 -0
- data/spec/models/identity_credentials_spec.rb +46 -0
- data/spec/models/identity_spec.rb +27 -16
- data/spec/models/image_delete_response_item_spec.rb +40 -0
- data/spec/models/image_summary_spec.rb +88 -0
- data/spec/models/inline_response2001_spec.rb +34 -0
- data/spec/models/inline_response200_spec.rb +34 -0
- data/spec/models/inline_response503_spec.rb +34 -0
- data/spec/models/login_flow_spec.rb +11 -24
- data/spec/models/login_via_api_response_spec.rb +8 -15
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/plugin_config_args_spec.rb +52 -0
- data/spec/models/plugin_config_interface_spec.rb +40 -0
- data/spec/models/plugin_config_linux_spec.rb +46 -0
- data/spec/models/plugin_config_network_spec.rb +34 -0
- data/spec/models/plugin_config_rootfs_spec.rb +40 -0
- data/spec/models/plugin_config_spec.rb +124 -0
- data/spec/models/plugin_config_user_spec.rb +40 -0
- data/spec/models/plugin_device_spec.rb +52 -0
- data/spec/models/plugin_env_spec.rb +52 -0
- data/spec/models/plugin_interface_type_spec.rb +46 -0
- data/spec/models/{settings_request_spec.rb → plugin_mount_spec.rb} +18 -31
- data/spec/models/plugin_settings_spec.rb +52 -0
- data/spec/models/{registration_request_spec.rb → plugin_spec.rb} +16 -23
- data/spec/models/port_spec.rb +52 -0
- data/spec/models/recovery_address_spec.rb +8 -15
- data/spec/models/recovery_flow_spec.rb +12 -25
- data/spec/models/recovery_link_spec.rb +8 -15
- data/spec/models/registration_flow_spec.rb +11 -24
- data/spec/models/registration_via_api_response_spec.rb +8 -15
- data/spec/models/revoke_session_spec.rb +8 -15
- data/spec/models/service_update_response_spec.rb +34 -0
- data/spec/models/session_spec.rb +17 -18
- data/spec/models/settings_flow_spec.rb +12 -25
- data/spec/models/settings_profile_form_config_spec.rb +52 -0
- data/spec/models/settings_via_api_response_spec.rb +8 -15
- data/spec/models/submit_self_service_browser_settings_oidc_flow_payload_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_login_flow_with_password_method_spec.rb +52 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_spec.rb +40 -0
- data/spec/models/submit_self_service_registration_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_registration_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_settings_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_with_profile_method_spec.rb +46 -0
- data/spec/models/submit_self_service_verification_flow_with_link_method_spec.rb +40 -0
- data/spec/models/{registration_flow_method_config_spec.rb → ui_container_spec.rb} +12 -25
- data/spec/models/ui_node_anchor_attributes_spec.rb +40 -0
- data/spec/models/ui_node_attributes_spec.rb +31 -0
- data/spec/models/ui_node_image_attributes_spec.rb +34 -0
- data/spec/models/{verification_request_spec.rb → ui_node_input_attributes_spec.rb} +18 -25
- data/spec/models/ui_node_input_attributes_value_spec.rb +31 -0
- data/spec/models/{login_flow_method_config_spec.rb → ui_node_spec.rb} +15 -22
- data/spec/models/ui_node_text_attributes_spec.rb +34 -0
- data/spec/models/{message_spec.rb → ui_text_spec.rb} +11 -18
- data/spec/models/update_identity_spec.rb +8 -15
- data/spec/models/verifiable_address_spec.rb +10 -17
- data/spec/models/verification_flow_spec.rb +12 -25
- data/spec/models/version_spec.rb +8 -15
- data/spec/models/{recovery_request_spec.rb → volume_spec.rb} +24 -25
- data/spec/models/volume_usage_data_spec.rb +40 -0
- data/spec/spec_helper.rb +5 -5
- metadata +225 -160
- data/docs/CommonApi.md +0 -345
- data/docs/CompleteSelfServiceBrowserProfileManagementFlowPayload.md +0 -17
- data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +0 -19
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +0 -22
- data/docs/Error.md +0 -17
- data/docs/Form.md +0 -23
- data/docs/FormField.md +0 -30
- data/docs/HealthApi.md +0 -131
- data/docs/LoginFlowMethod.md +0 -20
- data/docs/LoginFlowMethodConfig.md +0 -26
- data/docs/LoginRequest.md +0 -31
- data/docs/LoginRequestMethod.md +0 -19
- data/docs/LoginRequestMethodConfig.md +0 -25
- data/docs/Message.md +0 -24
- data/docs/OidcStrategyCredentialsConfig.md +0 -19
- data/docs/OidcStrategyRequestMethod.md +0 -25
- data/docs/ProfileManagementRequest.md +0 -29
- data/docs/ProviderCredentialsConfig.md +0 -19
- data/docs/RecoveryFlowMethod.md +0 -20
- data/docs/RecoveryRequest.md +0 -31
- data/docs/RecoveryRequestMethod.md +0 -19
- data/docs/RegistrationFlowMethod.md +0 -20
- data/docs/RegistrationFlowMethodConfig.md +0 -26
- data/docs/RegistrationRequest.md +0 -29
- data/docs/RegistrationRequestMethod.md +0 -19
- data/docs/RegistrationRequestMethodConfig.md +0 -25
- data/docs/RequestMethodConfig.md +0 -23
- data/docs/SettingsFlowMethod.md +0 -20
- data/docs/SettingsRequest.md +0 -33
- data/docs/SettingsRequestMethod.md +0 -19
- data/docs/VerificationFlowMethod.md +0 -20
- data/docs/VerificationFlowMethodConfig.md +0 -24
- data/docs/VerificationRequest.md +0 -31
- data/docs/VersionApi.md +0 -69
- data/lib/ory-kratos-client/api/common_api.rb +0 -456
- data/lib/ory-kratos-client/api/health_api.rb +0 -136
- data/lib/ory-kratos-client/api/version_api.rb +0 -79
- data/lib/ory-kratos-client/models/complete_self_service_browser_profile_management_flow_payload.rb +0 -212
- data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +0 -222
- data/lib/ory-kratos-client/models/error.rb +0 -207
- data/lib/ory-kratos-client/models/form.rb +0 -256
- data/lib/ory-kratos-client/models/login_request.rb +0 -304
- data/lib/ory-kratos-client/models/login_request_method.rb +0 -226
- data/lib/ory-kratos-client/models/login_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/oidc_strategy_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/oidc_strategy_request_method.rb +0 -252
- data/lib/ory-kratos-client/models/profile_management_request.rb +0 -300
- data/lib/ory-kratos-client/models/provider_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/recovery_request.rb +0 -309
- data/lib/ory-kratos-client/models/recovery_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request.rb +0 -294
- data/lib/ory-kratos-client/models/registration_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/request_method_config.rb +0 -255
- data/lib/ory-kratos-client/models/settings_request.rb +0 -323
- data/lib/ory-kratos-client/models/settings_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/verification_request.rb +0 -276
- data/spec/api/common_api_spec.rb +0 -83
- data/spec/api/health_api_spec.rb +0 -57
- data/spec/api/version_api_spec.rb +0 -46
- data/spec/models/complete_self_service_browser_profile_management_flow_payload_spec.rb +0 -41
- data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +0 -47
- data/spec/models/complete_self_service_login_flow_with_password_method_spec.rb +0 -53
- data/spec/models/complete_self_service_recovery_flow_with_link_method_spec.rb +0 -47
- data/spec/models/complete_self_service_settings_flow_with_password_method_spec.rb +0 -47
- data/spec/models/complete_self_service_verification_flow_with_link_method_spec.rb +0 -47
- data/spec/models/error_spec.rb +0 -41
- data/spec/models/form_field_spec.rb +0 -65
- data/spec/models/form_spec.rb +0 -59
- data/spec/models/login_flow_method_spec.rb +0 -47
- data/spec/models/login_request_method_config_spec.rb +0 -35
- data/spec/models/login_request_method_spec.rb +0 -47
- data/spec/models/login_request_spec.rb +0 -71
- data/spec/models/oidc_strategy_credentials_config_spec.rb +0 -47
- data/spec/models/oidc_strategy_request_method_spec.rb +0 -65
- data/spec/models/profile_management_request_spec.rb +0 -77
- data/spec/models/provider_credentials_config_spec.rb +0 -47
- data/spec/models/recovery_flow_method_config_spec.rb +0 -59
- data/spec/models/recovery_flow_method_spec.rb +0 -47
- data/spec/models/recovery_request_method_spec.rb +0 -47
- data/spec/models/registration_flow_method_spec.rb +0 -47
- data/spec/models/registration_request_method_config_spec.rb +0 -35
- data/spec/models/registration_request_method_spec.rb +0 -47
- data/spec/models/request_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_spec.rb +0 -47
- data/spec/models/settings_request_method_spec.rb +0 -47
- data/spec/models/verification_flow_method_config_spec.rb +0 -59
- data/spec/models/verification_flow_method_spec.rb +0 -47
@@ -1,215 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Ory Kratos
|
3
|
-
|
4
|
-
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module OryHydraClient
|
16
|
-
class ProviderCredentialsConfig
|
17
|
-
attr_accessor :provider
|
18
|
-
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
-
def self.attribute_map
|
23
|
-
{
|
24
|
-
:'provider' => :'provider',
|
25
|
-
:'subject' => :'subject'
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Attribute type mapping.
|
30
|
-
def self.openapi_types
|
31
|
-
{
|
32
|
-
:'provider' => :'String',
|
33
|
-
:'subject' => :'String'
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
# List of attributes with nullable: true
|
38
|
-
def self.openapi_nullable
|
39
|
-
Set.new([
|
40
|
-
])
|
41
|
-
end
|
42
|
-
|
43
|
-
# Initializes the object
|
44
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
-
def initialize(attributes = {})
|
46
|
-
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::ProviderCredentialsConfig` initialize method"
|
48
|
-
end
|
49
|
-
|
50
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::ProviderCredentialsConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
-
end
|
55
|
-
h[k.to_sym] = v
|
56
|
-
}
|
57
|
-
|
58
|
-
if attributes.key?(:'provider')
|
59
|
-
self.provider = attributes[:'provider']
|
60
|
-
end
|
61
|
-
|
62
|
-
if attributes.key?(:'subject')
|
63
|
-
self.subject = attributes[:'subject']
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
-
# @return Array for valid properties with the reasons
|
69
|
-
def list_invalid_properties
|
70
|
-
invalid_properties = Array.new
|
71
|
-
invalid_properties
|
72
|
-
end
|
73
|
-
|
74
|
-
# Check to see if the all the properties in the model are valid
|
75
|
-
# @return true if the model is valid
|
76
|
-
def valid?
|
77
|
-
true
|
78
|
-
end
|
79
|
-
|
80
|
-
# Checks equality by comparing each attribute.
|
81
|
-
# @param [Object] Object to be compared
|
82
|
-
def ==(o)
|
83
|
-
return true if self.equal?(o)
|
84
|
-
self.class == o.class &&
|
85
|
-
provider == o.provider &&
|
86
|
-
subject == o.subject
|
87
|
-
end
|
88
|
-
|
89
|
-
# @see the `==` method
|
90
|
-
# @param [Object] Object to be compared
|
91
|
-
def eql?(o)
|
92
|
-
self == o
|
93
|
-
end
|
94
|
-
|
95
|
-
# Calculates hash code according to all attributes.
|
96
|
-
# @return [Integer] Hash code
|
97
|
-
def hash
|
98
|
-
[provider, subject].hash
|
99
|
-
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def self.build_from_hash(attributes)
|
105
|
-
new.build_from_hash(attributes)
|
106
|
-
end
|
107
|
-
|
108
|
-
# Builds the object from hash
|
109
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
-
# @return [Object] Returns the model itself
|
111
|
-
def build_from_hash(attributes)
|
112
|
-
return nil unless attributes.is_a?(Hash)
|
113
|
-
self.class.openapi_types.each_pair do |key, type|
|
114
|
-
if type =~ /\AArray<(.*)>/i
|
115
|
-
# check to ensure the input is an array given that the attribute
|
116
|
-
# is documented as an array but the input is not
|
117
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
-
end
|
120
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
-
end
|
124
|
-
|
125
|
-
self
|
126
|
-
end
|
127
|
-
|
128
|
-
# Deserializes the data based on type
|
129
|
-
# @param string type Data type
|
130
|
-
# @param string value Value to be deserialized
|
131
|
-
# @return [Object] Deserialized data
|
132
|
-
def _deserialize(type, value)
|
133
|
-
case type.to_sym
|
134
|
-
when :DateTime
|
135
|
-
DateTime.parse(value)
|
136
|
-
when :Date
|
137
|
-
Date.parse(value)
|
138
|
-
when :String
|
139
|
-
value.to_s
|
140
|
-
when :Integer
|
141
|
-
value.to_i
|
142
|
-
when :Float
|
143
|
-
value.to_f
|
144
|
-
when :Boolean
|
145
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
-
true
|
147
|
-
else
|
148
|
-
false
|
149
|
-
end
|
150
|
-
when :Object
|
151
|
-
# generic object (usually a Hash), return directly
|
152
|
-
value
|
153
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
-
inner_type = Regexp.last_match[:inner_type]
|
155
|
-
value.map { |v| _deserialize(inner_type, v) }
|
156
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
-
k_type = Regexp.last_match[:k_type]
|
158
|
-
v_type = Regexp.last_match[:v_type]
|
159
|
-
{}.tap do |hash|
|
160
|
-
value.each do |k, v|
|
161
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
else # model
|
165
|
-
OryHydraClient.const_get(type).build_from_hash(value)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
# Returns the string representation of the object
|
170
|
-
# @return [String] String presentation of the object
|
171
|
-
def to_s
|
172
|
-
to_hash.to_s
|
173
|
-
end
|
174
|
-
|
175
|
-
# to_body is an alias to to_hash (backward compatibility)
|
176
|
-
# @return [Hash] Returns the object in the form of hash
|
177
|
-
def to_body
|
178
|
-
to_hash
|
179
|
-
end
|
180
|
-
|
181
|
-
# Returns the object in the form of hash
|
182
|
-
# @return [Hash] Returns the object in the form of hash
|
183
|
-
def to_hash
|
184
|
-
hash = {}
|
185
|
-
self.class.attribute_map.each_pair do |attr, param|
|
186
|
-
value = self.send(attr)
|
187
|
-
if value.nil?
|
188
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
-
end
|
191
|
-
|
192
|
-
hash[param] = _to_hash(value)
|
193
|
-
end
|
194
|
-
hash
|
195
|
-
end
|
196
|
-
|
197
|
-
# Outputs non-array value in the form of hash
|
198
|
-
# For object, use to_hash. Otherwise, just return the value
|
199
|
-
# @param [Object] value Any valid value
|
200
|
-
# @return [Hash] Returns the value in the form of hash
|
201
|
-
def _to_hash(value)
|
202
|
-
if value.is_a?(Array)
|
203
|
-
value.compact.map { |v| _to_hash(v) }
|
204
|
-
elsif value.is_a?(Hash)
|
205
|
-
{}.tap do |hash|
|
206
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
-
end
|
208
|
-
elsif value.respond_to? :to_hash
|
209
|
-
value.to_hash
|
210
|
-
else
|
211
|
-
value
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
@@ -1,309 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Ory Kratos
|
3
|
-
|
4
|
-
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module OryHydraClient
|
16
|
-
# This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery)
|
17
|
-
class RecoveryRequest
|
18
|
-
# Active, if set, contains the registration method that is being used. It is initially not set.
|
19
|
-
attr_accessor :active
|
20
|
-
|
21
|
-
# ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
|
22
|
-
attr_accessor :expires_at
|
23
|
-
|
24
|
-
attr_accessor :id
|
25
|
-
|
26
|
-
# IssuedAt is the time (UTC) when the request occurred.
|
27
|
-
attr_accessor :issued_at
|
28
|
-
|
29
|
-
attr_accessor :messages
|
30
|
-
|
31
|
-
# Methods contains context for all account recovery methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages.
|
32
|
-
attr_accessor :methods
|
33
|
-
|
34
|
-
# RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example.
|
35
|
-
attr_accessor :request_url
|
36
|
-
|
37
|
-
attr_accessor :state
|
38
|
-
|
39
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
-
def self.attribute_map
|
41
|
-
{
|
42
|
-
:'active' => :'active',
|
43
|
-
:'expires_at' => :'expires_at',
|
44
|
-
:'id' => :'id',
|
45
|
-
:'issued_at' => :'issued_at',
|
46
|
-
:'messages' => :'messages',
|
47
|
-
:'methods' => :'methods',
|
48
|
-
:'request_url' => :'request_url',
|
49
|
-
:'state' => :'state'
|
50
|
-
}
|
51
|
-
end
|
52
|
-
|
53
|
-
# Attribute type mapping.
|
54
|
-
def self.openapi_types
|
55
|
-
{
|
56
|
-
:'active' => :'String',
|
57
|
-
:'expires_at' => :'DateTime',
|
58
|
-
:'id' => :'String',
|
59
|
-
:'issued_at' => :'DateTime',
|
60
|
-
:'messages' => :'Array<Message>',
|
61
|
-
:'methods' => :'Hash<String, RecoveryRequestMethod>',
|
62
|
-
:'request_url' => :'String',
|
63
|
-
:'state' => :'String'
|
64
|
-
}
|
65
|
-
end
|
66
|
-
|
67
|
-
# List of attributes with nullable: true
|
68
|
-
def self.openapi_nullable
|
69
|
-
Set.new([
|
70
|
-
])
|
71
|
-
end
|
72
|
-
|
73
|
-
# Initializes the object
|
74
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
-
def initialize(attributes = {})
|
76
|
-
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::RecoveryRequest` initialize method"
|
78
|
-
end
|
79
|
-
|
80
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::RecoveryRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
-
end
|
85
|
-
h[k.to_sym] = v
|
86
|
-
}
|
87
|
-
|
88
|
-
if attributes.key?(:'active')
|
89
|
-
self.active = attributes[:'active']
|
90
|
-
end
|
91
|
-
|
92
|
-
if attributes.key?(:'expires_at')
|
93
|
-
self.expires_at = attributes[:'expires_at']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'id')
|
97
|
-
self.id = attributes[:'id']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'issued_at')
|
101
|
-
self.issued_at = attributes[:'issued_at']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.key?(:'messages')
|
105
|
-
if (value = attributes[:'messages']).is_a?(Array)
|
106
|
-
self.messages = value
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'methods')
|
111
|
-
if (value = attributes[:'methods']).is_a?(Hash)
|
112
|
-
self.methods = value
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'request_url')
|
117
|
-
self.request_url = attributes[:'request_url']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'state')
|
121
|
-
self.state = attributes[:'state']
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
126
|
-
# @return Array for valid properties with the reasons
|
127
|
-
def list_invalid_properties
|
128
|
-
invalid_properties = Array.new
|
129
|
-
if @expires_at.nil?
|
130
|
-
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
131
|
-
end
|
132
|
-
|
133
|
-
if @id.nil?
|
134
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
135
|
-
end
|
136
|
-
|
137
|
-
if @issued_at.nil?
|
138
|
-
invalid_properties.push('invalid value for "issued_at", issued_at cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
|
-
if @methods.nil?
|
142
|
-
invalid_properties.push('invalid value for "methods", methods cannot be nil.')
|
143
|
-
end
|
144
|
-
|
145
|
-
if @request_url.nil?
|
146
|
-
invalid_properties.push('invalid value for "request_url", request_url cannot be nil.')
|
147
|
-
end
|
148
|
-
|
149
|
-
if @state.nil?
|
150
|
-
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
151
|
-
end
|
152
|
-
|
153
|
-
invalid_properties
|
154
|
-
end
|
155
|
-
|
156
|
-
# Check to see if the all the properties in the model are valid
|
157
|
-
# @return true if the model is valid
|
158
|
-
def valid?
|
159
|
-
return false if @expires_at.nil?
|
160
|
-
return false if @id.nil?
|
161
|
-
return false if @issued_at.nil?
|
162
|
-
return false if @methods.nil?
|
163
|
-
return false if @request_url.nil?
|
164
|
-
return false if @state.nil?
|
165
|
-
true
|
166
|
-
end
|
167
|
-
|
168
|
-
# Checks equality by comparing each attribute.
|
169
|
-
# @param [Object] Object to be compared
|
170
|
-
def ==(o)
|
171
|
-
return true if self.equal?(o)
|
172
|
-
self.class == o.class &&
|
173
|
-
active == o.active &&
|
174
|
-
expires_at == o.expires_at &&
|
175
|
-
id == o.id &&
|
176
|
-
issued_at == o.issued_at &&
|
177
|
-
messages == o.messages &&
|
178
|
-
methods == o.methods &&
|
179
|
-
request_url == o.request_url &&
|
180
|
-
state == o.state
|
181
|
-
end
|
182
|
-
|
183
|
-
# @see the `==` method
|
184
|
-
# @param [Object] Object to be compared
|
185
|
-
def eql?(o)
|
186
|
-
self == o
|
187
|
-
end
|
188
|
-
|
189
|
-
# Calculates hash code according to all attributes.
|
190
|
-
# @return [Integer] Hash code
|
191
|
-
def hash
|
192
|
-
[active, expires_at, id, issued_at, messages, methods, request_url, state].hash
|
193
|
-
end
|
194
|
-
|
195
|
-
# Builds the object from hash
|
196
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
-
# @return [Object] Returns the model itself
|
198
|
-
def self.build_from_hash(attributes)
|
199
|
-
new.build_from_hash(attributes)
|
200
|
-
end
|
201
|
-
|
202
|
-
# Builds the object from hash
|
203
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
-
# @return [Object] Returns the model itself
|
205
|
-
def build_from_hash(attributes)
|
206
|
-
return nil unless attributes.is_a?(Hash)
|
207
|
-
self.class.openapi_types.each_pair do |key, type|
|
208
|
-
if type =~ /\AArray<(.*)>/i
|
209
|
-
# check to ensure the input is an array given that the attribute
|
210
|
-
# is documented as an array but the input is not
|
211
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
|
-
end
|
214
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
216
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
217
|
-
end
|
218
|
-
|
219
|
-
self
|
220
|
-
end
|
221
|
-
|
222
|
-
# Deserializes the data based on type
|
223
|
-
# @param string type Data type
|
224
|
-
# @param string value Value to be deserialized
|
225
|
-
# @return [Object] Deserialized data
|
226
|
-
def _deserialize(type, value)
|
227
|
-
case type.to_sym
|
228
|
-
when :DateTime
|
229
|
-
DateTime.parse(value)
|
230
|
-
when :Date
|
231
|
-
Date.parse(value)
|
232
|
-
when :String
|
233
|
-
value.to_s
|
234
|
-
when :Integer
|
235
|
-
value.to_i
|
236
|
-
when :Float
|
237
|
-
value.to_f
|
238
|
-
when :Boolean
|
239
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
240
|
-
true
|
241
|
-
else
|
242
|
-
false
|
243
|
-
end
|
244
|
-
when :Object
|
245
|
-
# generic object (usually a Hash), return directly
|
246
|
-
value
|
247
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
248
|
-
inner_type = Regexp.last_match[:inner_type]
|
249
|
-
value.map { |v| _deserialize(inner_type, v) }
|
250
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
251
|
-
k_type = Regexp.last_match[:k_type]
|
252
|
-
v_type = Regexp.last_match[:v_type]
|
253
|
-
{}.tap do |hash|
|
254
|
-
value.each do |k, v|
|
255
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
256
|
-
end
|
257
|
-
end
|
258
|
-
else # model
|
259
|
-
OryHydraClient.const_get(type).build_from_hash(value)
|
260
|
-
end
|
261
|
-
end
|
262
|
-
|
263
|
-
# Returns the string representation of the object
|
264
|
-
# @return [String] String presentation of the object
|
265
|
-
def to_s
|
266
|
-
to_hash.to_s
|
267
|
-
end
|
268
|
-
|
269
|
-
# to_body is an alias to to_hash (backward compatibility)
|
270
|
-
# @return [Hash] Returns the object in the form of hash
|
271
|
-
def to_body
|
272
|
-
to_hash
|
273
|
-
end
|
274
|
-
|
275
|
-
# Returns the object in the form of hash
|
276
|
-
# @return [Hash] Returns the object in the form of hash
|
277
|
-
def to_hash
|
278
|
-
hash = {}
|
279
|
-
self.class.attribute_map.each_pair do |attr, param|
|
280
|
-
value = self.send(attr)
|
281
|
-
if value.nil?
|
282
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
283
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
284
|
-
end
|
285
|
-
|
286
|
-
hash[param] = _to_hash(value)
|
287
|
-
end
|
288
|
-
hash
|
289
|
-
end
|
290
|
-
|
291
|
-
# Outputs non-array value in the form of hash
|
292
|
-
# For object, use to_hash. Otherwise, just return the value
|
293
|
-
# @param [Object] value Any valid value
|
294
|
-
# @return [Hash] Returns the value in the form of hash
|
295
|
-
def _to_hash(value)
|
296
|
-
if value.is_a?(Array)
|
297
|
-
value.compact.map { |v| _to_hash(v) }
|
298
|
-
elsif value.is_a?(Hash)
|
299
|
-
{}.tap do |hash|
|
300
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
301
|
-
end
|
302
|
-
elsif value.respond_to? :to_hash
|
303
|
-
value.to_hash
|
304
|
-
else
|
305
|
-
value
|
306
|
-
end
|
307
|
-
end
|
308
|
-
end
|
309
|
-
end
|