ory-kratos-client 0.6.2.alpha1 → 0.7.1.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +135 -147
- data/docs/AdminApi.md +15 -13
- data/docs/AdminCreateIdentityBody.md +20 -0
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +20 -0
- data/docs/AdminUpdateIdentityBody.md +22 -0
- data/docs/AuthenticateOKBody.md +2 -2
- data/docs/ContainerChangeResponseItem.md +2 -2
- data/docs/ContainerCreateCreatedBody.md +2 -2
- data/docs/ContainerTopOKBody.md +2 -2
- data/docs/ContainerUpdateOKBody.md +2 -2
- data/docs/ContainerWaitOKBody.md +2 -2
- data/docs/ContainerWaitOKBodyError.md +2 -2
- data/docs/ErrorResponse.md +2 -2
- data/docs/GenericError.md +16 -4
- data/docs/GraphDriverData.md +2 -2
- data/docs/HealthNotReadyStatus.md +2 -2
- data/docs/HealthStatus.md +2 -2
- data/docs/IdResponse.md +2 -2
- data/docs/Identity.md +14 -4
- data/docs/IdentityCredentials.md +7 -3
- data/docs/IdentityState.md +15 -0
- data/docs/ImageDeleteResponseItem.md +2 -2
- data/docs/ImageSummary.md +2 -2
- data/docs/InlineResponse200.md +2 -2
- data/docs/InlineResponse2001.md +2 -2
- data/docs/InlineResponse503.md +2 -2
- data/docs/JsonError.md +18 -0
- data/docs/LoginFlow.md +5 -1
- data/docs/Meta.md +2 -2
- data/docs/MetadataApi.md +254 -0
- data/docs/Plugin.md +2 -2
- data/docs/PluginConfig.md +2 -2
- data/docs/PluginConfigArgs.md +2 -2
- data/docs/PluginConfigInterface.md +2 -2
- data/docs/PluginConfigLinux.md +2 -2
- data/docs/PluginConfigNetwork.md +2 -2
- data/docs/PluginConfigRootfs.md +2 -2
- data/docs/PluginConfigUser.md +2 -2
- data/docs/PluginDevice.md +2 -2
- data/docs/PluginEnv.md +2 -2
- data/docs/PluginInterfaceType.md +2 -2
- data/docs/PluginMount.md +2 -2
- data/docs/PluginSettings.md +2 -2
- data/docs/Port.md +2 -2
- data/docs/PublicApi.md +216 -210
- data/docs/RecoveryAddress.md +6 -2
- data/docs/SelfServiceError.md +24 -0
- data/docs/SelfServiceErrorContainer.md +24 -0
- data/docs/SelfServiceLoginFlow.md +36 -0
- data/docs/SelfServiceLogoutUrl.md +18 -0
- data/docs/SelfServiceRecoveryFlow.md +32 -0
- data/docs/SelfServiceRecoveryFlowState.md +15 -0
- data/docs/SelfServiceRecoveryLink.md +20 -0
- data/docs/SelfServiceRegistrationFlow.md +30 -0
- data/docs/SelfServiceSettingsFlow.md +34 -0
- data/docs/SelfServiceSettingsFlowState.md +15 -0
- data/docs/SelfServiceVerificationFlow.md +32 -0
- data/docs/SelfServiceVerificationFlowState.md +15 -0
- data/docs/ServiceUpdateResponse.md +2 -2
- data/docs/Session.md +6 -6
- data/docs/SettingsProfileFormConfig.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowBody.md +76 -0
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +24 -0
- data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +18 -0
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +75 -0
- data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowBody.md +76 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowBody.md +79 -0
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +22 -0
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +22 -0
- data/docs/SubmitSelfServiceVerificationFlowBody.md +75 -0
- data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +22 -0
- data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +20 -0
- data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +22 -0
- data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +20 -0
- data/docs/UiContainer.md +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +2 -2
- data/docs/UiNodeAttributes.md +4 -4
- data/docs/UiNodeImageAttributes.md +2 -2
- data/docs/UiNodeInputAttributes.md +3 -3
- data/docs/UiNodeTextAttributes.md +2 -2
- data/docs/UiText.md +2 -2
- data/docs/V0alpha1Api.md +2167 -0
- data/docs/VerifiableIdentityAddress.md +32 -0
- data/docs/Version.md +2 -2
- data/docs/Volume.md +2 -2
- data/docs/VolumeUsageData.md +2 -2
- data/lib/ory-kratos-client/api/admin_api.rb +7 -4
- data/lib/ory-kratos-client/api/metadata_api.rb +248 -0
- data/lib/ory-kratos-client/api/public_api.rb +171 -162
- data/lib/ory-kratos-client/api/v0alpha1_api.rb +2054 -0
- data/lib/ory-kratos-client/api_client.rb +4 -4
- data/lib/ory-kratos-client/api_error.rb +3 -3
- data/lib/ory-kratos-client/configuration.rb +11 -32
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +239 -0
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +250 -0
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +248 -0
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_change_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/container_create_created_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +6 -6
- data/lib/ory-kratos-client/models/create_identity.rb +1 -1
- data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/error_response.rb +6 -6
- data/lib/ory-kratos-client/models/generic_error.rb +81 -14
- data/lib/ory-kratos-client/models/graph_driver_data.rb +6 -6
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +6 -6
- data/lib/ory-kratos-client/models/health_status.rb +6 -6
- data/lib/ory-kratos-client/models/id_response.rb +6 -6
- data/lib/ory-kratos-client/models/identity.rb +62 -14
- data/lib/ory-kratos-client/models/identity_credentials.rb +30 -10
- data/lib/ory-kratos-client/models/identity_state.rb +37 -0
- data/lib/ory-kratos-client/models/image_delete_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/image_summary.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response200.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response2001.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response503.rb +6 -6
- data/lib/ory-kratos-client/models/json_error.rb +224 -0
- data/lib/ory-kratos-client/models/login_flow.rb +25 -5
- data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/meta.rb +6 -6
- data/lib/ory-kratos-client/models/plugin.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_args.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_network.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_user.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_device.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_env.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_interface_type.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_mount.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_settings.rb +6 -6
- data/lib/ory-kratos-client/models/port.rb +6 -6
- data/lib/ory-kratos-client/models/recovery_address.rb +27 -7
- data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
- data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_error.rb +252 -0
- data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +338 -0
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +219 -0
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +317 -0
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +38 -0
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +234 -0
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +302 -0
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +331 -0
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +37 -0
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +307 -0
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +38 -0
- data/lib/ory-kratos-client/models/service_update_response.rb +6 -6
- data/lib/ory-kratos-client/models/session.rb +11 -21
- data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +6 -6
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +250 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +298 -0
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +225 -0
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +53 -0
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +283 -0
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +250 -0
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +299 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +56 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +255 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +283 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +250 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +54 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +283 -0
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +234 -0
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +243 -0
- data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +238 -0
- data/lib/ory-kratos-client/models/ui_container.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +4 -4
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +9 -7
- data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_text.rb +6 -6
- data/lib/ory-kratos-client/models/update_identity.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
- data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
- data/lib/ory-kratos-client/models/version.rb +6 -6
- data/lib/ory-kratos-client/models/volume.rb +6 -6
- data/lib/ory-kratos-client/models/volume_usage_data.rb +6 -6
- data/lib/ory-kratos-client/version.rb +4 -4
- data/lib/ory-kratos-client.rb +41 -33
- data/ory-kratos-client.gemspec +3 -3
- data/spec/api/metadata_api_spec.rb +79 -0
- data/spec/api/v0alpha1_api_spec.rb +429 -0
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +8 -8
- data/spec/models/admin_create_identity_body_spec.rb +40 -0
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +40 -0
- data/spec/models/admin_update_identity_body_spec.rb +46 -0
- data/spec/models/identity_state_spec.rb +28 -0
- data/spec/models/json_error_spec.rb +34 -0
- data/spec/models/self_service_error_container_spec.rb +52 -0
- data/spec/models/self_service_error_spec.rb +52 -0
- data/spec/models/self_service_login_flow_spec.rb +88 -0
- data/spec/models/self_service_logout_url_spec.rb +34 -0
- data/spec/models/self_service_recovery_flow_spec.rb +76 -0
- data/spec/models/self_service_recovery_flow_state_spec.rb +28 -0
- data/spec/models/self_service_recovery_link_spec.rb +40 -0
- data/spec/models/self_service_registration_flow_spec.rb +70 -0
- data/spec/models/self_service_settings_flow_spec.rb +82 -0
- data/spec/models/self_service_settings_flow_state_spec.rb +28 -0
- data/spec/models/self_service_verification_flow_spec.rb +76 -0
- data/spec/models/self_service_verification_flow_state_spec.rb +28 -0
- data/spec/models/submit_self_service_login_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +56 -0
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +34 -0
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +50 -0
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +56 -0
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +50 -0
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +43 -0
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +50 -0
- data/spec/models/successful_self_service_login_without_browser_spec.rb +40 -0
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +46 -0
- data/spec/models/successful_self_service_settings_without_browser_spec.rb +40 -0
- data/spec/models/verifiable_identity_address_spec.rb +76 -0
- data/spec/spec_helper.rb +2 -2
- metadata +154 -2
@@ -0,0 +1,248 @@
|
|
1
|
+
=begin
|
2
|
+
#Ory Kratos API
|
3
|
+
|
4
|
+
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
|
+
Contact: hi@ory.sh
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OryKratosClient
|
17
|
+
class AdminUpdateIdentityBody
|
18
|
+
# SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID.
|
19
|
+
attr_accessor :schema_id
|
20
|
+
|
21
|
+
attr_accessor :state
|
22
|
+
|
23
|
+
# Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`.
|
24
|
+
attr_accessor :traits
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'schema_id' => :'schema_id',
|
30
|
+
:'state' => :'state',
|
31
|
+
:'traits' => :'traits'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Returns all the JSON keys this model knows about
|
36
|
+
def self.acceptable_attributes
|
37
|
+
attribute_map.values
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'schema_id' => :'String',
|
44
|
+
:'state' => :'IdentityState',
|
45
|
+
:'traits' => :'Object'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
if (!attributes.is_a?(Hash))
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::AdminUpdateIdentityBody` initialize method"
|
60
|
+
end
|
61
|
+
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::AdminUpdateIdentityBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
|
+
end
|
67
|
+
h[k.to_sym] = v
|
68
|
+
}
|
69
|
+
|
70
|
+
if attributes.key?(:'schema_id')
|
71
|
+
self.schema_id = attributes[:'schema_id']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'state')
|
75
|
+
self.state = attributes[:'state']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'traits')
|
79
|
+
self.traits = attributes[:'traits']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
if @state.nil?
|
88
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @traits.nil?
|
92
|
+
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
return false if @state.nil?
|
102
|
+
return false if @traits.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
schema_id == o.schema_id &&
|
112
|
+
state == o.state &&
|
113
|
+
traits == o.traits
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Integer] Hash code
|
124
|
+
def hash
|
125
|
+
[schema_id, state, traits].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def self.build_from_hash(attributes)
|
132
|
+
new.build_from_hash(attributes)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the object from hash
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
# @return [Object] Returns the model itself
|
138
|
+
def build_from_hash(attributes)
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
141
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
142
|
+
self.send("#{key}=", nil)
|
143
|
+
elsif type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def _deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :Time
|
164
|
+
Time.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
# models (e.g. Pet) or oneOf
|
195
|
+
klass = OryKratosClient.const_get(type)
|
196
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the string representation of the object
|
201
|
+
# @return [String] String presentation of the object
|
202
|
+
def to_s
|
203
|
+
to_hash.to_s
|
204
|
+
end
|
205
|
+
|
206
|
+
# to_body is an alias to to_hash (backward compatibility)
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_body
|
209
|
+
to_hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the object in the form of hash
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_hash
|
215
|
+
hash = {}
|
216
|
+
self.class.attribute_map.each_pair do |attr, param|
|
217
|
+
value = self.send(attr)
|
218
|
+
if value.nil?
|
219
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
220
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
221
|
+
end
|
222
|
+
|
223
|
+
hash[param] = _to_hash(value)
|
224
|
+
end
|
225
|
+
hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Outputs non-array value in the form of hash
|
229
|
+
# For object, use to_hash. Otherwise, just return the value
|
230
|
+
# @param [Object] value Any valid value
|
231
|
+
# @return [Hash] Returns the value in the form of hash
|
232
|
+
def _to_hash(value)
|
233
|
+
if value.is_a?(Array)
|
234
|
+
value.compact.map { |v| _to_hash(v) }
|
235
|
+
elsif value.is_a?(Hash)
|
236
|
+
{}.tap do |hash|
|
237
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
238
|
+
end
|
239
|
+
elsif value.respond_to? :to_hash
|
240
|
+
value.to_hash
|
241
|
+
else
|
242
|
+
value
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryKratosClient
|
17
17
|
# AuthenticateOKBody authenticate o k body
|
18
18
|
class AuthenticateOKBody
|
19
19
|
# An opaque token used to authenticate a user after a successful login
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::AuthenticateOKBody` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::AuthenticateOKBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -184,7 +184,7 @@ module OryHydraClient
|
|
184
184
|
end
|
185
185
|
else # model
|
186
186
|
# models (e.g. Pet) or oneOf
|
187
|
-
klass =
|
187
|
+
klass = OryKratosClient.const_get(type)
|
188
188
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
189
|
end
|
190
190
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryKratosClient
|
17
17
|
# ContainerChangeResponseItem change item in response to ContainerChanges operation
|
18
18
|
class ContainerChangeResponseItem
|
19
19
|
# Kind of change
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::ContainerChangeResponseItem` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::ContainerChangeResponseItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -184,7 +184,7 @@ module OryHydraClient
|
|
184
184
|
end
|
185
185
|
else # model
|
186
186
|
# models (e.g. Pet) or oneOf
|
187
|
-
klass =
|
187
|
+
klass = OryKratosClient.const_get(type)
|
188
188
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
189
|
end
|
190
190
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryKratosClient
|
17
17
|
# ContainerCreateCreatedBody OK response to ContainerCreate operation
|
18
18
|
class ContainerCreateCreatedBody
|
19
19
|
# The ID of the created container
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::ContainerCreateCreatedBody` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::ContainerCreateCreatedBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -186,7 +186,7 @@ module OryHydraClient
|
|
186
186
|
end
|
187
187
|
else # model
|
188
188
|
# models (e.g. Pet) or oneOf
|
189
|
-
klass =
|
189
|
+
klass = OryKratosClient.const_get(type)
|
190
190
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
191
191
|
end
|
192
192
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryKratosClient
|
17
17
|
# ContainerTopOKBody OK response to ContainerTop operation
|
18
18
|
class ContainerTopOKBody
|
19
19
|
# Each process running in the container, where each is process is an array of values corresponding to the titles
|
@@ -53,13 +53,13 @@ module OryHydraClient
|
|
53
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
54
|
def initialize(attributes = {})
|
55
55
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::ContainerTopOKBody` initialize method"
|
57
57
|
end
|
58
58
|
|
59
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::ContainerTopOKBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
63
|
end
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
@@ -188,7 +188,7 @@ module OryHydraClient
|
|
188
188
|
end
|
189
189
|
else # model
|
190
190
|
# models (e.g. Pet) or oneOf
|
191
|
-
klass =
|
191
|
+
klass = OryKratosClient.const_get(type)
|
192
192
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
193
193
|
end
|
194
194
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.
|
6
|
+
The version of the OpenAPI document: v0.7.1-alpha.2
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OryKratosClient
|
17
17
|
# ContainerUpdateOKBody OK response to ContainerUpdate operation
|
18
18
|
class ContainerUpdateOKBody
|
19
19
|
# warnings
|
@@ -48,13 +48,13 @@ module OryHydraClient
|
|
48
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
49
|
def initialize(attributes = {})
|
50
50
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryKratosClient::ContainerUpdateOKBody` initialize method"
|
52
52
|
end
|
53
53
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
55
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
56
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryKratosClient::ContainerUpdateOKBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
@@ -171,7 +171,7 @@ module OryHydraClient
|
|
171
171
|
end
|
172
172
|
else # model
|
173
173
|
# models (e.g. Pet) or oneOf
|
174
|
-
klass =
|
174
|
+
klass = OryKratosClient.const_get(type)
|
175
175
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
176
176
|
end
|
177
177
|
end
|