ory-oathkeeper-client 0.38.20.beta1 → 0.38.22.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +15 -18
  4. data/docs/ApiApi.md +198 -12
  5. data/docs/InlineResponse500.md +28 -0
  6. data/docs/JsonWebKey.md +12 -12
  7. data/lib/ory-oathkeeper-client/api/api_api.rb +181 -10
  8. data/lib/ory-oathkeeper-client/api_client.rb +4 -4
  9. data/lib/ory-oathkeeper-client/api_error.rb +4 -4
  10. data/lib/ory-oathkeeper-client/configuration.rb +4 -4
  11. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +4 -5
  12. data/lib/ory-oathkeeper-client/models/health_status.rb +4 -5
  13. data/lib/ory-oathkeeper-client/models/{generic_error.rb → inline_response500.rb} +8 -15
  14. data/lib/ory-oathkeeper-client/models/json_web_key.rb +4 -16
  15. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +4 -5
  16. data/lib/ory-oathkeeper-client/models/rule.rb +4 -4
  17. data/lib/ory-oathkeeper-client/models/rule_handler.rb +4 -5
  18. data/lib/ory-oathkeeper-client/models/rule_match.rb +4 -4
  19. data/lib/ory-oathkeeper-client/models/upstream.rb +4 -5
  20. data/lib/ory-oathkeeper-client/models/version.rb +4 -4
  21. data/lib/ory-oathkeeper-client/version.rb +5 -5
  22. data/lib/ory-oathkeeper-client.rb +5 -9
  23. data/ory-oathkeeper-client.gemspec +6 -6
  24. data/spec/api/api_api_spec.rb +40 -7
  25. data/spec/api_client_spec.rb +4 -4
  26. data/spec/configuration_spec.rb +4 -4
  27. data/spec/models/health_not_ready_status_spec.rb +4 -4
  28. data/spec/models/health_status_spec.rb +4 -4
  29. data/spec/models/{generic_error_spec.rb → inline_response500_spec.rb} +10 -10
  30. data/spec/models/json_web_key_set_spec.rb +4 -4
  31. data/spec/models/json_web_key_spec.rb +4 -4
  32. data/spec/models/rule_handler_spec.rb +4 -4
  33. data/spec/models/rule_match_spec.rb +4 -4
  34. data/spec/models/rule_spec.rb +4 -4
  35. data/spec/models/upstream_spec.rb +4 -4
  36. data/spec/models/version_spec.rb +4 -4
  37. data/spec/spec_helper.rb +4 -4
  38. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.1.0.gem +0 -0
  39. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  40. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.5/gem_make.out +2 -2
  41. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  42. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out +2 -2
  43. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/gem_make.out +2 -2
  44. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/stringio-3.0.1/mkmf.log +1 -1
  45. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  46. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  47. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  48. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/LICENSE.txt +0 -0
  49. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/bin/ruby-parse +0 -0
  50. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/bin/ruby-rewrite +0 -0
  51. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/gauntlet_parser.rb +0 -0
  52. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/all.rb +1 -0
  53. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ast/node.rb +0 -0
  54. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ast/processor.rb +0 -0
  55. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/base.rb +0 -0
  56. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/builders/default.rb +0 -0
  57. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/clobbering_error.rb +0 -0
  58. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/color.rb +0 -0
  59. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/context.rb +0 -0
  60. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/current.rb +10 -1
  61. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/current_arg_stack.rb +0 -0
  62. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/deprecation.rb +0 -0
  63. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/diagnostic/engine.rb +0 -0
  64. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/diagnostic.rb +0 -0
  65. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/lexer/dedenter.rb +0 -0
  66. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/lexer/explanation.rb +0 -0
  67. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/lexer/literal.rb +0 -0
  68. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/lexer/stack_state.rb +0 -0
  69. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/lexer.rb +0 -0
  70. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/macruby.rb +0 -0
  71. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/max_numparam_stack.rb +0 -0
  72. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/messages.rb +0 -0
  73. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/meta.rb +0 -0
  74. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/rewriter.rb +0 -0
  75. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby18.rb +0 -0
  76. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby19.rb +0 -0
  77. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby20.rb +0 -0
  78. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby21.rb +0 -0
  79. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby22.rb +0 -0
  80. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby23.rb +0 -0
  81. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby24.rb +0 -0
  82. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby25.rb +0 -0
  83. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby26.rb +0 -0
  84. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby27.rb +0 -0
  85. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby28.rb +0 -0
  86. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby30.rb +0 -0
  87. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/ruby31.rb +0 -0
  88. data/vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/ruby32.rb +8330 -0
  89. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/rubymotion.rb +0 -0
  90. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/runner/ruby_parse.rb +0 -0
  91. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
  92. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/runner.rb +6 -0
  93. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/buffer.rb +0 -0
  94. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/comment/associator.rb +0 -0
  95. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/comment.rb +0 -0
  96. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/collection.rb +0 -0
  97. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/condition.rb +0 -0
  98. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/constant.rb +0 -0
  99. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/definition.rb +0 -0
  100. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/for.rb +0 -0
  101. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/heredoc.rb +0 -0
  102. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/index.rb +0 -0
  103. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/keyword.rb +0 -0
  104. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/method_definition.rb +0 -0
  105. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
  106. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/operator.rb +0 -0
  107. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/rescue_body.rb +0 -0
  108. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/send.rb +0 -0
  109. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/ternary.rb +0 -0
  110. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map/variable.rb +0 -0
  111. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/map.rb +0 -0
  112. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/range.rb +0 -0
  113. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/rewriter/action.rb +0 -0
  114. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/rewriter.rb +0 -0
  115. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
  116. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/source/tree_rewriter.rb +0 -0
  117. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/static_environment.rb +0 -0
  118. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/syntax_error.rb +0 -0
  119. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/tree_rewriter.rb +0 -0
  120. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/variables_stack.rb +0 -0
  121. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser/version.rb +1 -1
  122. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/lib/parser.rb +0 -0
  123. data/vendor/bundle/ruby/2.5.0/gems/{parser-3.1.0.0 → parser-3.1.1.0}/parser.gemspec +0 -0
  124. data/vendor/bundle/ruby/2.5.0/gems/psych-4.0.3/ext/psych/Makefile +2 -2
  125. data/vendor/bundle/ruby/2.5.0/gems/stringio-3.0.1/ext/stringio/Makefile +2 -2
  126. data/vendor/bundle/ruby/2.5.0/specifications/{parser-3.1.0.0.gemspec → parser-3.1.1.0.gemspec} +4 -4
  127. metadata +88 -101
  128. data/docs/GenericError.md +0 -28
  129. data/docs/InlineResponse200.md +0 -18
  130. data/docs/InlineResponse2001.md +0 -18
  131. data/docs/InlineResponse503.md +0 -18
  132. data/docs/MetadataApi.md +0 -193
  133. data/lib/ory-oathkeeper-client/api/metadata_api.rb +0 -193
  134. data/lib/ory-oathkeeper-client/models/inline_response200.rb +0 -224
  135. data/lib/ory-oathkeeper-client/models/inline_response2001.rb +0 -224
  136. data/lib/ory-oathkeeper-client/models/inline_response503.rb +0 -226
  137. data/spec/api/metadata_api_spec.rb +0 -68
  138. data/spec/models/inline_response2001_spec.rb +0 -34
  139. data/spec/models/inline_response200_spec.rb +0 -34
  140. data/spec/models/inline_response503_spec.rb +0 -34
  141. data/vendor/bundle/ruby/2.5.0/cache/parser-3.1.0.0.gem +0 -0
data/docs/MetadataApi.md DELETED
@@ -1,193 +0,0 @@
1
- # OryOathkeeperClient::MetadataApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**get_version**](MetadataApi.md#get_version) | **GET** /version | Return Running Software Version. |
8
- | [**is_alive**](MetadataApi.md#is_alive) | **GET** /health/alive | Check HTTP Server Status |
9
- | [**is_ready**](MetadataApi.md#is_ready) | **GET** /health/ready | Check HTTP Server and Database Status |
10
-
11
-
12
- ## get_version
13
-
14
- > <InlineResponse2001> get_version
15
-
16
- Return Running Software Version.
17
-
18
- This endpoint returns the version of Ory Oathkeeper. 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 version will never refer to the cluster state, only to a single instance.
19
-
20
- ### Examples
21
-
22
- ```ruby
23
- require 'time'
24
- require 'ory-oathkeeper-client'
25
-
26
- api_instance = OryOathkeeperClient::MetadataApi.new
27
-
28
- begin
29
- # Return Running Software Version.
30
- result = api_instance.get_version
31
- p result
32
- rescue OryOathkeeperClient::ApiError => e
33
- puts "Error when calling MetadataApi->get_version: #{e}"
34
- end
35
- ```
36
-
37
- #### Using the get_version_with_http_info variant
38
-
39
- This returns an Array which contains the response data, status code and headers.
40
-
41
- > <Array(<InlineResponse2001>, Integer, Hash)> get_version_with_http_info
42
-
43
- ```ruby
44
- begin
45
- # Return Running Software Version.
46
- data, status_code, headers = api_instance.get_version_with_http_info
47
- p status_code # => 2xx
48
- p headers # => { ... }
49
- p data # => <InlineResponse2001>
50
- rescue OryOathkeeperClient::ApiError => e
51
- puts "Error when calling MetadataApi->get_version_with_http_info: #{e}"
52
- end
53
- ```
54
-
55
- ### Parameters
56
-
57
- This endpoint does not need any parameter.
58
-
59
- ### Return type
60
-
61
- [**InlineResponse2001**](InlineResponse2001.md)
62
-
63
- ### Authorization
64
-
65
- No authorization required
66
-
67
- ### HTTP request headers
68
-
69
- - **Content-Type**: Not defined
70
- - **Accept**: application/json
71
-
72
-
73
- ## is_alive
74
-
75
- > <InlineResponse200> is_alive
76
-
77
- Check HTTP Server Status
78
-
79
- This endpoint returns a HTTP 200 status code when Ory Oathkeeper is accepting incoming HTTP requests. 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.
80
-
81
- ### Examples
82
-
83
- ```ruby
84
- require 'time'
85
- require 'ory-oathkeeper-client'
86
-
87
- api_instance = OryOathkeeperClient::MetadataApi.new
88
-
89
- begin
90
- # Check HTTP Server Status
91
- result = api_instance.is_alive
92
- p result
93
- rescue OryOathkeeperClient::ApiError => e
94
- puts "Error when calling MetadataApi->is_alive: #{e}"
95
- end
96
- ```
97
-
98
- #### Using the is_alive_with_http_info variant
99
-
100
- This returns an Array which contains the response data, status code and headers.
101
-
102
- > <Array(<InlineResponse200>, Integer, Hash)> is_alive_with_http_info
103
-
104
- ```ruby
105
- begin
106
- # Check HTTP Server Status
107
- data, status_code, headers = api_instance.is_alive_with_http_info
108
- p status_code # => 2xx
109
- p headers # => { ... }
110
- p data # => <InlineResponse200>
111
- rescue OryOathkeeperClient::ApiError => e
112
- puts "Error when calling MetadataApi->is_alive_with_http_info: #{e}"
113
- end
114
- ```
115
-
116
- ### Parameters
117
-
118
- This endpoint does not need any parameter.
119
-
120
- ### Return type
121
-
122
- [**InlineResponse200**](InlineResponse200.md)
123
-
124
- ### Authorization
125
-
126
- No authorization required
127
-
128
- ### HTTP request headers
129
-
130
- - **Content-Type**: Not defined
131
- - **Accept**: application/json
132
-
133
-
134
- ## is_ready
135
-
136
- > <InlineResponse200> is_ready
137
-
138
- Check HTTP Server and Database Status
139
-
140
- This endpoint returns a HTTP 200 status code when Ory Oathkeeper 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 Ory Oathkeeper, the health status will never refer to the cluster state, only to a single instance.
141
-
142
- ### Examples
143
-
144
- ```ruby
145
- require 'time'
146
- require 'ory-oathkeeper-client'
147
-
148
- api_instance = OryOathkeeperClient::MetadataApi.new
149
-
150
- begin
151
- # Check HTTP Server and Database Status
152
- result = api_instance.is_ready
153
- p result
154
- rescue OryOathkeeperClient::ApiError => e
155
- puts "Error when calling MetadataApi->is_ready: #{e}"
156
- end
157
- ```
158
-
159
- #### Using the is_ready_with_http_info variant
160
-
161
- This returns an Array which contains the response data, status code and headers.
162
-
163
- > <Array(<InlineResponse200>, Integer, Hash)> is_ready_with_http_info
164
-
165
- ```ruby
166
- begin
167
- # Check HTTP Server and Database Status
168
- data, status_code, headers = api_instance.is_ready_with_http_info
169
- p status_code # => 2xx
170
- p headers # => { ... }
171
- p data # => <InlineResponse200>
172
- rescue OryOathkeeperClient::ApiError => e
173
- puts "Error when calling MetadataApi->is_ready_with_http_info: #{e}"
174
- end
175
- ```
176
-
177
- ### Parameters
178
-
179
- This endpoint does not need any parameter.
180
-
181
- ### Return type
182
-
183
- [**InlineResponse200**](InlineResponse200.md)
184
-
185
- ### Authorization
186
-
187
- No authorization required
188
-
189
- ### HTTP request headers
190
-
191
- - **Content-Type**: Not defined
192
- - **Accept**: application/json
193
-
@@ -1,193 +0,0 @@
1
- =begin
2
- #Ory Oathkeeper API
3
-
4
- #Documentation for all of Ory Oathkeeper's APIs.
5
-
6
- The version of the OpenAPI document: v0.38.20-beta.1
7
- Contact: hi@ory.sh
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module OryOathkeeperClient
16
- class MetadataApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Return Running Software Version.
23
- # This endpoint returns the version of Ory Oathkeeper. 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 version will never refer to the cluster state, only to a single instance.
24
- # @param [Hash] opts the optional parameters
25
- # @return [InlineResponse2001]
26
- def get_version(opts = {})
27
- data, _status_code, _headers = get_version_with_http_info(opts)
28
- data
29
- end
30
-
31
- # Return Running Software Version.
32
- # This endpoint returns the version of Ory Oathkeeper. If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.
33
- # @param [Hash] opts the optional parameters
34
- # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
35
- def get_version_with_http_info(opts = {})
36
- if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: MetadataApi.get_version ...'
38
- end
39
- # resource path
40
- local_var_path = '/version'
41
-
42
- # query parameters
43
- query_params = opts[:query_params] || {}
44
-
45
- # header parameters
46
- header_params = opts[:header_params] || {}
47
- # HTTP header 'Accept' (if needed)
48
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
-
50
- # form parameters
51
- form_params = opts[:form_params] || {}
52
-
53
- # http body (model)
54
- post_body = opts[:debug_body]
55
-
56
- # return_type
57
- return_type = opts[:debug_return_type] || 'InlineResponse2001'
58
-
59
- # auth_names
60
- auth_names = opts[:debug_auth_names] || []
61
-
62
- new_options = opts.merge(
63
- :operation => :"MetadataApi.get_version",
64
- :header_params => header_params,
65
- :query_params => query_params,
66
- :form_params => form_params,
67
- :body => post_body,
68
- :auth_names => auth_names,
69
- :return_type => return_type
70
- )
71
-
72
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
- if @api_client.config.debugging
74
- @api_client.config.logger.debug "API called: MetadataApi#get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
- end
76
- return data, status_code, headers
77
- end
78
-
79
- # Check HTTP Server Status
80
- # This endpoint returns a HTTP 200 status code when Ory Oathkeeper is accepting incoming HTTP requests. 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.
81
- # @param [Hash] opts the optional parameters
82
- # @return [InlineResponse200]
83
- def is_alive(opts = {})
84
- data, _status_code, _headers = is_alive_with_http_info(opts)
85
- data
86
- end
87
-
88
- # Check HTTP Server Status
89
- # This endpoint returns a HTTP 200 status code when Ory Oathkeeper is accepting incoming HTTP requests. 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 &#x60;X-Forwarded-Proto&#x60; 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.
90
- # @param [Hash] opts the optional parameters
91
- # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
92
- def is_alive_with_http_info(opts = {})
93
- if @api_client.config.debugging
94
- @api_client.config.logger.debug 'Calling API: MetadataApi.is_alive ...'
95
- end
96
- # resource path
97
- local_var_path = '/health/alive'
98
-
99
- # query parameters
100
- query_params = opts[:query_params] || {}
101
-
102
- # header parameters
103
- header_params = opts[:header_params] || {}
104
- # HTTP header 'Accept' (if needed)
105
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
106
-
107
- # form parameters
108
- form_params = opts[:form_params] || {}
109
-
110
- # http body (model)
111
- post_body = opts[:debug_body]
112
-
113
- # return_type
114
- return_type = opts[:debug_return_type] || 'InlineResponse200'
115
-
116
- # auth_names
117
- auth_names = opts[:debug_auth_names] || []
118
-
119
- new_options = opts.merge(
120
- :operation => :"MetadataApi.is_alive",
121
- :header_params => header_params,
122
- :query_params => query_params,
123
- :form_params => form_params,
124
- :body => post_body,
125
- :auth_names => auth_names,
126
- :return_type => return_type
127
- )
128
-
129
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
130
- if @api_client.config.debugging
131
- @api_client.config.logger.debug "API called: MetadataApi#is_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
- end
133
- return data, status_code, headers
134
- end
135
-
136
- # Check HTTP Server and Database Status
137
- # This endpoint returns a HTTP 200 status code when Ory Oathkeeper 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 Ory Oathkeeper, the health status will never refer to the cluster state, only to a single instance.
138
- # @param [Hash] opts the optional parameters
139
- # @return [InlineResponse200]
140
- def is_ready(opts = {})
141
- data, _status_code, _headers = is_ready_with_http_info(opts)
142
- data
143
- end
144
-
145
- # Check HTTP Server and Database Status
146
- # This endpoint returns a HTTP 200 status code when Ory Oathkeeper 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 &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of Ory Oathkeeper, the health status will never refer to the cluster state, only to a single instance.
147
- # @param [Hash] opts the optional parameters
148
- # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
149
- def is_ready_with_http_info(opts = {})
150
- if @api_client.config.debugging
151
- @api_client.config.logger.debug 'Calling API: MetadataApi.is_ready ...'
152
- end
153
- # resource path
154
- local_var_path = '/health/ready'
155
-
156
- # query parameters
157
- query_params = opts[:query_params] || {}
158
-
159
- # header parameters
160
- header_params = opts[:header_params] || {}
161
- # HTTP header 'Accept' (if needed)
162
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
-
164
- # form parameters
165
- form_params = opts[:form_params] || {}
166
-
167
- # http body (model)
168
- post_body = opts[:debug_body]
169
-
170
- # return_type
171
- return_type = opts[:debug_return_type] || 'InlineResponse200'
172
-
173
- # auth_names
174
- auth_names = opts[:debug_auth_names] || []
175
-
176
- new_options = opts.merge(
177
- :operation => :"MetadataApi.is_ready",
178
- :header_params => header_params,
179
- :query_params => query_params,
180
- :form_params => form_params,
181
- :body => post_body,
182
- :auth_names => auth_names,
183
- :return_type => return_type
184
- )
185
-
186
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
187
- if @api_client.config.debugging
188
- @api_client.config.logger.debug "API called: MetadataApi#is_ready\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
- end
190
- return data, status_code, headers
191
- end
192
- end
193
- end
@@ -1,224 +0,0 @@
1
- =begin
2
- #Ory Oathkeeper API
3
-
4
- #Documentation for all of Ory Oathkeeper's APIs.
5
-
6
- The version of the OpenAPI document: v0.38.20-beta.1
7
- Contact: hi@ory.sh
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module OryOathkeeperClient
17
- class InlineResponse200
18
- # Always \"ok\".
19
- attr_accessor :status
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'status' => :'status'
25
- }
26
- end
27
-
28
- # Returns all the JSON keys this model knows about
29
- def self.acceptable_attributes
30
- attribute_map.values
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.openapi_types
35
- {
36
- :'status' => :'String'
37
- }
38
- end
39
-
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
- # Initializes the object
47
- # @param [Hash] attributes Model attributes in the form of hash
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryOathkeeperClient::InlineResponse200` initialize method"
51
- end
52
-
53
- # check to see if the attribute exists and convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryOathkeeperClient::InlineResponse200`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
- end
58
- h[k.to_sym] = v
59
- }
60
-
61
- if attributes.key?(:'status')
62
- self.status = attributes[:'status']
63
- end
64
- end
65
-
66
- # Show invalid properties with the reasons. Usually used together with valid?
67
- # @return Array for valid properties with the reasons
68
- def list_invalid_properties
69
- invalid_properties = Array.new
70
- if @status.nil?
71
- invalid_properties.push('invalid value for "status", status cannot be nil.')
72
- end
73
-
74
- invalid_properties
75
- end
76
-
77
- # Check to see if the all the properties in the model are valid
78
- # @return true if the model is valid
79
- def valid?
80
- return false if @status.nil?
81
- true
82
- end
83
-
84
- # Checks equality by comparing each attribute.
85
- # @param [Object] Object to be compared
86
- def ==(o)
87
- return true if self.equal?(o)
88
- self.class == o.class &&
89
- status == o.status
90
- end
91
-
92
- # @see the `==` method
93
- # @param [Object] Object to be compared
94
- def eql?(o)
95
- self == o
96
- end
97
-
98
- # Calculates hash code according to all attributes.
99
- # @return [Integer] Hash code
100
- def hash
101
- [status].hash
102
- end
103
-
104
- # Builds the object from hash
105
- # @param [Hash] attributes Model attributes in the form of hash
106
- # @return [Object] Returns the model itself
107
- def self.build_from_hash(attributes)
108
- new.build_from_hash(attributes)
109
- end
110
-
111
- # Builds the object from hash
112
- # @param [Hash] attributes Model attributes in the form of hash
113
- # @return [Object] Returns the model itself
114
- def build_from_hash(attributes)
115
- return nil unless attributes.is_a?(Hash)
116
- self.class.openapi_types.each_pair do |key, type|
117
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
- self.send("#{key}=", nil)
119
- elsif type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the attribute
121
- # is documented as an array but the input is not
122
- if attributes[self.class.attribute_map[key]].is_a?(Array)
123
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
- end
125
- elsif !attributes[self.class.attribute_map[key]].nil?
126
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
- end
128
- end
129
-
130
- self
131
- end
132
-
133
- # Deserializes the data based on type
134
- # @param string type Data type
135
- # @param string value Value to be deserialized
136
- # @return [Object] Deserialized data
137
- def _deserialize(type, value)
138
- case type.to_sym
139
- when :Time
140
- Time.parse(value)
141
- when :Date
142
- Date.parse(value)
143
- when :String
144
- value.to_s
145
- when :Integer
146
- value.to_i
147
- when :Float
148
- value.to_f
149
- when :Boolean
150
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
- true
152
- else
153
- false
154
- end
155
- when :Object
156
- # generic object (usually a Hash), return directly
157
- value
158
- when /\AArray<(?<inner_type>.+)>\z/
159
- inner_type = Regexp.last_match[:inner_type]
160
- value.map { |v| _deserialize(inner_type, v) }
161
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
- k_type = Regexp.last_match[:k_type]
163
- v_type = Regexp.last_match[:v_type]
164
- {}.tap do |hash|
165
- value.each do |k, v|
166
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
- end
168
- end
169
- else # model
170
- # models (e.g. Pet) or oneOf
171
- klass = OryOathkeeperClient.const_get(type)
172
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
- end
174
- end
175
-
176
- # Returns the string representation of the object
177
- # @return [String] String presentation of the object
178
- def to_s
179
- to_hash.to_s
180
- end
181
-
182
- # to_body is an alias to to_hash (backward compatibility)
183
- # @return [Hash] Returns the object in the form of hash
184
- def to_body
185
- to_hash
186
- end
187
-
188
- # Returns the object in the form of hash
189
- # @return [Hash] Returns the object in the form of hash
190
- def to_hash
191
- hash = {}
192
- self.class.attribute_map.each_pair do |attr, param|
193
- value = self.send(attr)
194
- if value.nil?
195
- is_nullable = self.class.openapi_nullable.include?(attr)
196
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
- end
198
-
199
- hash[param] = _to_hash(value)
200
- end
201
- hash
202
- end
203
-
204
- # Outputs non-array value in the form of hash
205
- # For object, use to_hash. Otherwise, just return the value
206
- # @param [Object] value Any valid value
207
- # @return [Hash] Returns the value in the form of hash
208
- def _to_hash(value)
209
- if value.is_a?(Array)
210
- value.compact.map { |v| _to_hash(v) }
211
- elsif value.is_a?(Hash)
212
- {}.tap do |hash|
213
- value.each { |k, v| hash[k] = _to_hash(v) }
214
- end
215
- elsif value.respond_to? :to_hash
216
- value.to_hash
217
- else
218
- value
219
- end
220
- end
221
-
222
- end
223
-
224
- end