ory-kratos-client 0.5.4.alpha1 → 0.5.5.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/docs/AdminApi.md +382 -143
  4. data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +12 -11
  5. data/docs/CompleteSelfServiceRecoveryFlowWithLinkMethod.md +10 -9
  6. data/docs/CompleteSelfServiceSettingsFlowWithPasswordMethod.md +10 -9
  7. data/docs/CompleteSelfServiceVerificationFlowWithLinkMethod.md +10 -9
  8. data/docs/CreateIdentity.md +10 -9
  9. data/docs/CreateRecoveryLink.md +10 -9
  10. data/docs/ErrorContainer.md +10 -9
  11. data/docs/FormField.md +20 -19
  12. data/docs/GenericError.md +8 -7
  13. data/docs/GenericErrorPayload.md +20 -19
  14. data/docs/HealthApi.md +50 -15
  15. data/docs/HealthNotReadyStatus.md +8 -7
  16. data/docs/HealthStatus.md +8 -7
  17. data/docs/Identity.md +18 -17
  18. data/docs/LoginFlow.md +24 -23
  19. data/docs/LoginFlowMethod.md +10 -9
  20. data/docs/LoginFlowMethodConfig.md +16 -15
  21. data/docs/LoginViaApiResponse.md +10 -9
  22. data/docs/Message.md +14 -13
  23. data/docs/PublicApi.md +707 -237
  24. data/docs/RecoveryAddress.md +12 -11
  25. data/docs/RecoveryFlow.md +24 -23
  26. data/docs/RecoveryFlowMethod.md +10 -9
  27. data/docs/RecoveryFlowMethodConfig.md +14 -13
  28. data/docs/RecoveryLink.md +10 -9
  29. data/docs/RegistrationFlow.md +22 -21
  30. data/docs/RegistrationFlowMethod.md +10 -9
  31. data/docs/RegistrationFlowMethodConfig.md +16 -15
  32. data/docs/RegistrationViaApiResponse.md +12 -11
  33. data/docs/RevokeSession.md +8 -7
  34. data/docs/Session.md +18 -17
  35. data/docs/SettingsFlow.md +26 -25
  36. data/docs/SettingsFlowMethod.md +10 -9
  37. data/docs/SettingsFlowMethodConfig.md +14 -13
  38. data/docs/SettingsViaApiResponse.md +10 -9
  39. data/docs/UpdateIdentity.md +10 -9
  40. data/docs/VerifiableAddress.md +18 -17
  41. data/docs/VerificationFlow.md +24 -23
  42. data/docs/VerificationFlowMethod.md +10 -9
  43. data/docs/VerificationFlowMethodConfig.md +14 -13
  44. data/docs/Version.md +8 -7
  45. data/docs/VersionApi.md +26 -9
  46. data/lib/ory-kratos-client.rb +2 -2
  47. data/lib/ory-kratos-client/api/admin_api.rb +58 -44
  48. data/lib/ory-kratos-client/api/health_api.rb +10 -8
  49. data/lib/ory-kratos-client/api/public_api.rb +113 -86
  50. data/lib/ory-kratos-client/api/version_api.rb +6 -5
  51. data/lib/ory-kratos-client/api_client.rb +50 -48
  52. data/lib/ory-kratos-client/api_error.rb +2 -2
  53. data/lib/ory-kratos-client/configuration.rb +34 -7
  54. data/lib/ory-kratos-client/models/complete_self_service_login_flow_with_password_method.rb +20 -8
  55. data/lib/ory-kratos-client/models/complete_self_service_recovery_flow_with_link_method.rb +20 -8
  56. data/lib/ory-kratos-client/models/complete_self_service_settings_flow_with_password_method.rb +20 -8
  57. data/lib/ory-kratos-client/models/complete_self_service_verification_flow_with_link_method.rb +20 -8
  58. data/lib/ory-kratos-client/models/create_identity.rb +20 -8
  59. data/lib/ory-kratos-client/models/create_recovery_link.rb +20 -8
  60. data/lib/ory-kratos-client/models/error_container.rb +20 -8
  61. data/lib/ory-kratos-client/models/form_field.rb +20 -8
  62. data/lib/ory-kratos-client/models/generic_error.rb +20 -8
  63. data/lib/ory-kratos-client/models/generic_error_payload.rb +20 -8
  64. data/lib/ory-kratos-client/models/health_not_ready_status.rb +20 -8
  65. data/lib/ory-kratos-client/models/health_status.rb +20 -8
  66. data/lib/ory-kratos-client/models/identity.rb +20 -8
  67. data/lib/ory-kratos-client/models/login_flow.rb +22 -10
  68. data/lib/ory-kratos-client/models/login_flow_method.rb +20 -8
  69. data/lib/ory-kratos-client/models/login_flow_method_config.rb +20 -8
  70. data/lib/ory-kratos-client/models/login_via_api_response.rb +20 -8
  71. data/lib/ory-kratos-client/models/message.rb +20 -8
  72. data/lib/ory-kratos-client/models/recovery_address.rb +20 -8
  73. data/lib/ory-kratos-client/models/recovery_flow.rb +22 -10
  74. data/lib/ory-kratos-client/models/recovery_flow_method.rb +20 -8
  75. data/lib/ory-kratos-client/models/recovery_flow_method_config.rb +20 -8
  76. data/lib/ory-kratos-client/models/recovery_link.rb +21 -9
  77. data/lib/ory-kratos-client/models/registration_flow.rb +22 -10
  78. data/lib/ory-kratos-client/models/registration_flow_method.rb +20 -8
  79. data/lib/ory-kratos-client/models/registration_flow_method_config.rb +20 -8
  80. data/lib/ory-kratos-client/models/registration_via_api_response.rb +20 -8
  81. data/lib/ory-kratos-client/models/revoke_session.rb +20 -8
  82. data/lib/ory-kratos-client/models/session.rb +23 -11
  83. data/lib/ory-kratos-client/models/settings_flow.rb +22 -10
  84. data/lib/ory-kratos-client/models/settings_flow_method.rb +20 -8
  85. data/lib/ory-kratos-client/models/settings_flow_method_config.rb +20 -8
  86. data/lib/ory-kratos-client/models/settings_via_api_response.rb +20 -8
  87. data/lib/ory-kratos-client/models/update_identity.rb +20 -8
  88. data/lib/ory-kratos-client/models/verifiable_address.rb +21 -9
  89. data/lib/ory-kratos-client/models/verification_flow.rb +22 -10
  90. data/lib/ory-kratos-client/models/verification_flow_method.rb +20 -8
  91. data/lib/ory-kratos-client/models/verification_flow_method_config.rb +20 -8
  92. data/lib/ory-kratos-client/models/version.rb +20 -8
  93. data/lib/ory-kratos-client/version.rb +3 -3
  94. data/ory-kratos-client.gemspec +4 -5
  95. data/spec/api_client_spec.rb +3 -3
  96. data/spec/configuration_spec.rb +2 -2
  97. data/spec/spec_helper.rb +2 -2
  98. metadata +48 -68
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
8
- **identifier** | **String** | Identifier is the email or username of the user trying to log in. | [optional]
9
- **password** | **String** | The user's password. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
8
+ | **identifier** | **String** | Identifier is the email or username of the user trying to log in. | [optional] |
9
+ | **password** | **String** | The user's password. | [optional] |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'OryHydraClient'
14
+ require 'ory-kratos-client'
15
15
 
16
- instance = OryHydraClient::CompleteSelfServiceLoginFlowWithPasswordMethod.new(csrf_token: null,
17
- identifier: null,
18
- password: null)
16
+ instance = OryHydraClient::CompleteSelfServiceLoginFlowWithPasswordMethod.new(
17
+ csrf_token: null,
18
+ identifier: null,
19
+ password: null
20
+ )
19
21
  ```
20
22
 
21
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
8
- **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
8
+ | **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional] |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::CompleteSelfServiceRecoveryFlowWithLinkMethod.new(csrf_token: null,
16
- email: null)
15
+ instance = OryHydraClient::CompleteSelfServiceRecoveryFlowWithLinkMethod.new(
16
+ csrf_token: null,
17
+ email: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **csrf_token** | **String** | CSRFToken is the anti-CSRF token type: string | [optional]
8
- **password** | **String** | Password is the updated password type: string |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **csrf_token** | **String** | CSRFToken is the anti-CSRF token type: string | [optional] |
8
+ | **password** | **String** | Password is the updated password type: string | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::CompleteSelfServiceSettingsFlowWithPasswordMethod.new(csrf_token: null,
16
- password: null)
15
+ instance = OryHydraClient::CompleteSelfServiceSettingsFlowWithPasswordMethod.new(
16
+ csrf_token: null,
17
+ password: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
8
- **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
8
+ | **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional] |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::CompleteSelfServiceVerificationFlowWithLinkMethod.new(csrf_token: null,
16
- email: null)
15
+ instance = OryHydraClient::CompleteSelfServiceVerificationFlowWithLinkMethod.new(
16
+ csrf_token: null,
17
+ email: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. |
8
- **traits** | [**Object**](.md) | 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_url`. |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | |
8
+ | **traits** | **Object** | 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_url`. | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::CreateIdentity.new(schema_id: null,
16
- traits: null)
15
+ instance = OryHydraClient::CreateIdentity.new(
16
+ schema_id: null,
17
+ traits: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **expires_in** | **String** | Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`. | [optional]
8
- **identity_id** | **String** | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **expires_in** | **String** | Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`. | [optional] |
8
+ | **identity_id** | **String** | | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::CreateRecoveryLink.new(expires_in: null,
16
- identity_id: null)
15
+ instance = OryHydraClient::CreateRecoveryLink.new(
16
+ expires_in: null,
17
+ identity_id: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **errors** | [**Object**](.md) | Errors in the container |
8
- **id** | **String** | |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **errors** | **Object** | Errors in the container | |
8
+ | **id** | **String** | | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'OryHydraClient'
13
+ require 'ory-kratos-client'
14
14
 
15
- instance = OryHydraClient::ErrorContainer.new(errors: null,
16
- id: null)
15
+ instance = OryHydraClient::ErrorContainer.new(
16
+ errors: null,
17
+ id: null
18
+ )
17
19
  ```
18
20
 
19
-
data/docs/FormField.md CHANGED
@@ -2,28 +2,29 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **disabled** | **Boolean** | Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">` | [optional]
8
- **messages** | [**Array<Message>**](Message.md) | | [optional]
9
- **name** | **String** | Name is the equivalent of `<input name=\"{{.Name}}\">` |
10
- **pattern** | **String** | Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">` | [optional]
11
- **required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` | [optional]
12
- **type** | **String** | Type is the equivalent of `<input type=\"{{.Type}}\">` |
13
- **value** | [**Object**](.md) | Value is the equivalent of `<input value=\"{{.Value}}\">` | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **disabled** | **Boolean** | Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">` | [optional] |
8
+ | **messages** | [**Array<Message>**](Message.md) | | [optional] |
9
+ | **name** | **String** | Name is the equivalent of `<input name=\"{{.Name}}\">` | |
10
+ | **pattern** | **String** | Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">` | [optional] |
11
+ | **required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` | [optional] |
12
+ | **type** | **String** | Type is the equivalent of `<input type=\"{{.Type}}\">` | |
13
+ | **value** | **Object** | Value is the equivalent of `<input value=\"{{.Value}}\">` | [optional] |
14
14
 
15
- ## Code Sample
15
+ ## Example
16
16
 
17
17
  ```ruby
18
- require 'OryHydraClient'
18
+ require 'ory-kratos-client'
19
19
 
20
- instance = OryHydraClient::FormField.new(disabled: null,
21
- messages: null,
22
- name: null,
23
- pattern: null,
24
- required: null,
25
- type: null,
26
- value: null)
20
+ instance = OryHydraClient::FormField.new(
21
+ disabled: null,
22
+ messages: null,
23
+ name: null,
24
+ pattern: null,
25
+ required: null,
26
+ type: null,
27
+ value: null
28
+ )
27
29
  ```
28
30
 
29
-
data/docs/GenericError.md CHANGED
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **error** | [**GenericErrorPayload**](GenericErrorPayload.md) | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**GenericErrorPayload**](GenericErrorPayload.md) | | [optional] |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'OryHydraClient'
12
+ require 'ory-kratos-client'
13
13
 
14
- instance = OryHydraClient::GenericError.new(error: null)
14
+ instance = OryHydraClient::GenericError.new(
15
+ error: null
16
+ )
15
17
  ```
16
18
 
17
-
@@ -2,28 +2,29 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **code** | **Integer** | Code represents the error status code (404, 403, 401, ...). | [optional]
8
- **debug** | **String** | Debug contains debug information. This is usually not available and has to be enabled. | [optional]
9
- **details** | [**Object**](.md) | | [optional]
10
- **message** | **String** | | [optional]
11
- **reason** | **String** | | [optional]
12
- **request** | **String** | | [optional]
13
- **status** | **String** | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | **Integer** | Code represents the error status code (404, 403, 401, ...). | [optional] |
8
+ | **debug** | **String** | Debug contains debug information. This is usually not available and has to be enabled. | [optional] |
9
+ | **details** | **Object** | | [optional] |
10
+ | **message** | **String** | | [optional] |
11
+ | **reason** | **String** | | [optional] |
12
+ | **request** | **String** | | [optional] |
13
+ | **status** | **String** | | [optional] |
14
14
 
15
- ## Code Sample
15
+ ## Example
16
16
 
17
17
  ```ruby
18
- require 'OryHydraClient'
18
+ require 'ory-kratos-client'
19
19
 
20
- instance = OryHydraClient::GenericErrorPayload.new(code: 404,
21
- debug: The database adapter was unable to find the element,
22
- details: null,
23
- message: null,
24
- reason: null,
25
- request: null,
26
- status: null)
20
+ instance = OryHydraClient::GenericErrorPayload.new(
21
+ code: 404,
22
+ debug: The database adapter was unable to find the element,
23
+ details: null,
24
+ message: null,
25
+ reason: null,
26
+ request: null,
27
+ status: null
28
+ )
27
29
  ```
28
30
 
29
-
data/docs/HealthApi.md CHANGED
@@ -2,35 +2,52 @@
2
2
 
3
3
  All URIs are relative to *http://localhost*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**is_instance_alive**](HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
8
- [**is_instance_ready**](HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
9
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**is_instance_alive**](HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status |
8
+ | [**is_instance_ready**](HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status |
10
9
 
11
10
 
12
11
  ## is_instance_alive
13
12
 
14
- > HealthStatus is_instance_alive
13
+ > <HealthStatus> is_instance_alive
15
14
 
16
15
  Check alive status
17
16
 
18
17
  This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
19
18
 
20
- ### Example
19
+ ### Examples
21
20
 
22
21
  ```ruby
23
- # load the gem
22
+ require 'time'
24
23
  require 'ory-kratos-client'
25
24
 
26
25
  api_instance = OryHydraClient::HealthApi.new
27
26
 
28
27
  begin
29
- #Check alive status
28
+ # Check alive status
30
29
  result = api_instance.is_instance_alive
31
30
  p result
32
31
  rescue OryHydraClient::ApiError => e
33
- puts "Exception when calling HealthApi->is_instance_alive: #{e}"
32
+ puts "Error when calling HealthApi->is_instance_alive: #{e}"
33
+ end
34
+ ```
35
+
36
+ #### Using the is_instance_alive_with_http_info variant
37
+
38
+ This returns an Array which contains the response data, status code and headers.
39
+
40
+ > <Array(<HealthStatus>, Integer, Hash)> is_instance_alive_with_http_info
41
+
42
+ ```ruby
43
+ begin
44
+ # Check alive status
45
+ data, status_code, headers = api_instance.is_instance_alive_with_http_info
46
+ p status_code # => 2xx
47
+ p headers # => { ... }
48
+ p data # => <HealthStatus>
49
+ rescue OryHydraClient::ApiError => e
50
+ puts "Error when calling HealthApi->is_instance_alive_with_http_info: #{e}"
34
51
  end
35
52
  ```
36
53
 
@@ -54,26 +71,44 @@ No authorization required
54
71
 
55
72
  ## is_instance_ready
56
73
 
57
- > HealthStatus is_instance_ready
74
+ > <HealthStatus> is_instance_ready
58
75
 
59
76
  Check readiness status
60
77
 
61
78
  This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
62
79
 
63
- ### Example
80
+ ### Examples
64
81
 
65
82
  ```ruby
66
- # load the gem
83
+ require 'time'
67
84
  require 'ory-kratos-client'
68
85
 
69
86
  api_instance = OryHydraClient::HealthApi.new
70
87
 
71
88
  begin
72
- #Check readiness status
89
+ # Check readiness status
73
90
  result = api_instance.is_instance_ready
74
91
  p result
75
92
  rescue OryHydraClient::ApiError => e
76
- puts "Exception when calling HealthApi->is_instance_ready: #{e}"
93
+ puts "Error when calling HealthApi->is_instance_ready: #{e}"
94
+ end
95
+ ```
96
+
97
+ #### Using the is_instance_ready_with_http_info variant
98
+
99
+ This returns an Array which contains the response data, status code and headers.
100
+
101
+ > <Array(<HealthStatus>, Integer, Hash)> is_instance_ready_with_http_info
102
+
103
+ ```ruby
104
+ begin
105
+ # Check readiness status
106
+ data, status_code, headers = api_instance.is_instance_ready_with_http_info
107
+ p status_code # => 2xx
108
+ p headers # => { ... }
109
+ p data # => <HealthStatus>
110
+ rescue OryHydraClient::ApiError => e
111
+ puts "Error when calling HealthApi->is_instance_ready_with_http_info: #{e}"
77
112
  end
78
113
  ```
79
114