ory-kratos-client 0.6.2.alpha1 → 0.6.3.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -24
  3. data/docs/AdminApi.md +15 -13
  4. data/docs/GenericError.md +14 -2
  5. data/docs/Identity.md +6 -2
  6. data/docs/IdentityCredentials.md +5 -1
  7. data/docs/JsonError.md +18 -0
  8. data/docs/LoginFlow.md +5 -1
  9. data/docs/PublicApi.md +216 -210
  10. data/docs/RecoveryAddress.md +4 -0
  11. data/docs/SelfServiceErrorContainer.md +24 -0
  12. data/docs/VerifiableIdentityAddress.md +32 -0
  13. data/lib/ory-kratos-client.rb +4 -4
  14. data/lib/ory-kratos-client/api/admin_api.rb +7 -4
  15. data/lib/ory-kratos-client/api/public_api.rb +171 -162
  16. data/lib/ory-kratos-client/api_client.rb +1 -1
  17. data/lib/ory-kratos-client/api_error.rb +1 -1
  18. data/lib/ory-kratos-client/configuration.rb +15 -22
  19. data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
  20. data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
  21. data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
  22. data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
  23. data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
  24. data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
  25. data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
  26. data/lib/ory-kratos-client/models/create_identity.rb +1 -1
  27. data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
  28. data/lib/ory-kratos-client/models/error_response.rb +1 -1
  29. data/lib/ory-kratos-client/models/generic_error.rb +76 -9
  30. data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
  31. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  32. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  33. data/lib/ory-kratos-client/models/id_response.rb +1 -1
  34. data/lib/ory-kratos-client/models/identity.rb +27 -9
  35. data/lib/ory-kratos-client/models/identity_credentials.rb +25 -5
  36. data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
  37. data/lib/ory-kratos-client/models/image_summary.rb +1 -1
  38. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  39. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  40. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  41. data/lib/ory-kratos-client/models/json_error.rb +224 -0
  42. data/lib/ory-kratos-client/models/login_flow.rb +25 -5
  43. data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
  44. data/lib/ory-kratos-client/models/meta.rb +1 -1
  45. data/lib/ory-kratos-client/models/plugin.rb +1 -1
  46. data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
  47. data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
  48. data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
  49. data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
  50. data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
  51. data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
  52. data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
  53. data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
  54. data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
  55. data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
  56. data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
  57. data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
  58. data/lib/ory-kratos-client/models/port.rb +1 -1
  59. data/lib/ory-kratos-client/models/recovery_address.rb +22 -2
  60. data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
  61. data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
  62. data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
  63. data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
  64. data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
  65. data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
  66. data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
  67. data/lib/ory-kratos-client/models/session.rb +1 -1
  68. data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
  69. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  70. data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
  71. data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  72. data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
  73. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  74. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  75. data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
  76. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
  77. data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
  78. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  79. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  80. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  81. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  82. data/lib/ory-kratos-client/models/ui_node.rb +1 -1
  83. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
  84. data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
  85. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
  86. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
  87. data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
  88. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
  89. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  90. data/lib/ory-kratos-client/models/update_identity.rb +1 -1
  91. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
  92. data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
  93. data/lib/ory-kratos-client/models/version.rb +1 -1
  94. data/lib/ory-kratos-client/models/volume.rb +1 -1
  95. data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
  96. data/lib/ory-kratos-client/version.rb +2 -2
  97. data/ory-kratos-client.gemspec +1 -1
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/models/json_error_spec.rb +34 -0
  101. data/spec/models/self_service_error_container_spec.rb +52 -0
  102. data/spec/models/verifiable_identity_address_spec.rb +76 -0
  103. data/spec/spec_helper.rb +1 -1
  104. metadata +14 -2
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -15,8 +15,14 @@ require 'time'
15
15
 
16
16
  module OryHydraClient
17
17
  class RecoveryAddress
18
+ # CreatedAt is a helper struct field for gobuffalo.pop.
19
+ attr_accessor :created_at
20
+
18
21
  attr_accessor :id
19
22
 
23
+ # UpdatedAt is a helper struct field for gobuffalo.pop.
24
+ attr_accessor :updated_at
25
+
20
26
  attr_accessor :value
21
27
 
22
28
  attr_accessor :via
@@ -24,7 +30,9 @@ module OryHydraClient
24
30
  # Attribute mapping from ruby-style variable name to JSON key.
25
31
  def self.attribute_map
26
32
  {
33
+ :'created_at' => :'created_at',
27
34
  :'id' => :'id',
35
+ :'updated_at' => :'updated_at',
28
36
  :'value' => :'value',
29
37
  :'via' => :'via'
30
38
  }
@@ -38,7 +46,9 @@ module OryHydraClient
38
46
  # Attribute type mapping.
39
47
  def self.openapi_types
40
48
  {
49
+ :'created_at' => :'Time',
41
50
  :'id' => :'String',
51
+ :'updated_at' => :'Time',
42
52
  :'value' => :'String',
43
53
  :'via' => :'String'
44
54
  }
@@ -65,10 +75,18 @@ module OryHydraClient
65
75
  h[k.to_sym] = v
66
76
  }
67
77
 
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
+ end
81
+
68
82
  if attributes.key?(:'id')
69
83
  self.id = attributes[:'id']
70
84
  end
71
85
 
86
+ if attributes.key?(:'updated_at')
87
+ self.updated_at = attributes[:'updated_at']
88
+ end
89
+
72
90
  if attributes.key?(:'value')
73
91
  self.value = attributes[:'value']
74
92
  end
@@ -111,7 +129,9 @@ module OryHydraClient
111
129
  def ==(o)
112
130
  return true if self.equal?(o)
113
131
  self.class == o.class &&
132
+ created_at == o.created_at &&
114
133
  id == o.id &&
134
+ updated_at == o.updated_at &&
115
135
  value == o.value &&
116
136
  via == o.via
117
137
  end
@@ -125,7 +145,7 @@ module OryHydraClient
125
145
  # Calculates hash code according to all attributes.
126
146
  # @return [Integer] Hash code
127
147
  def hash
128
- [id, value, via].hash
148
+ [created_at, id, updated_at, value, via].hash
129
149
  end
130
150
 
131
151
  # Builds the object from hash
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
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.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -0,0 +1,260 @@
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.6.3-alpha.1
7
+ Contact: hi@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module OryHydraClient
17
+ class SelfServiceErrorContainer
18
+ # CreatedAt is a helper struct field for gobuffalo.pop.
19
+ attr_accessor :created_at
20
+
21
+ # Errors in the container
22
+ attr_accessor :errors
23
+
24
+ attr_accessor :id
25
+
26
+ # UpdatedAt is a helper struct field for gobuffalo.pop.
27
+ attr_accessor :updated_at
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'created_at' => :'created_at',
33
+ :'errors' => :'errors',
34
+ :'id' => :'id',
35
+ :'updated_at' => :'updated_at'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'created_at' => :'Time',
48
+ :'errors' => :'Array<Object>',
49
+ :'id' => :'String',
50
+ :'updated_at' => :'Time'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::SelfServiceErrorContainer` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::SelfServiceErrorContainer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'created_at')
76
+ self.created_at = attributes[:'created_at']
77
+ end
78
+
79
+ if attributes.key?(:'errors')
80
+ if (value = attributes[:'errors']).is_a?(Array)
81
+ self.errors = value
82
+ end
83
+ end
84
+
85
+ if attributes.key?(:'id')
86
+ self.id = attributes[:'id']
87
+ end
88
+
89
+ if attributes.key?(:'updated_at')
90
+ self.updated_at = attributes[:'updated_at']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ if @errors.nil?
99
+ invalid_properties.push('invalid value for "errors", errors cannot be nil.')
100
+ end
101
+
102
+ if @id.nil?
103
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
104
+ end
105
+
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ return false if @errors.nil?
113
+ return false if @id.nil?
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ created_at == o.created_at &&
123
+ errors == o.errors &&
124
+ id == o.id &&
125
+ updated_at == o.updated_at
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Integer] Hash code
136
+ def hash
137
+ [created_at, errors, id, updated_at].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def self.build_from_hash(attributes)
144
+ new.build_from_hash(attributes)
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
154
+ self.send("#{key}=", nil)
155
+ elsif type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ end
161
+ elsif !attributes[self.class.attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ end
164
+ end
165
+
166
+ self
167
+ end
168
+
169
+ # Deserializes the data based on type
170
+ # @param string type Data type
171
+ # @param string value Value to be deserialized
172
+ # @return [Object] Deserialized data
173
+ def _deserialize(type, value)
174
+ case type.to_sym
175
+ when :Time
176
+ Time.parse(value)
177
+ when :Date
178
+ Date.parse(value)
179
+ when :String
180
+ value.to_s
181
+ when :Integer
182
+ value.to_i
183
+ when :Float
184
+ value.to_f
185
+ when :Boolean
186
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
187
+ true
188
+ else
189
+ false
190
+ end
191
+ when :Object
192
+ # generic object (usually a Hash), return directly
193
+ value
194
+ when /\AArray<(?<inner_type>.+)>\z/
195
+ inner_type = Regexp.last_match[:inner_type]
196
+ value.map { |v| _deserialize(inner_type, v) }
197
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
198
+ k_type = Regexp.last_match[:k_type]
199
+ v_type = Regexp.last_match[:v_type]
200
+ {}.tap do |hash|
201
+ value.each do |k, v|
202
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ end
204
+ end
205
+ else # model
206
+ # models (e.g. Pet) or oneOf
207
+ klass = OryHydraClient.const_get(type)
208
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ # Returns the string representation of the object
213
+ # @return [String] String presentation of the object
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_hash (backward compatibility)
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_body
221
+ to_hash
222
+ end
223
+
224
+ # Returns the object in the form of hash
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ if value.nil?
231
+ is_nullable = self.class.openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+
260
+ end