ory-oathkeeper-client 0.0.0.alpha38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/Gemfile +9 -0
 - data/README.md +184 -0
 - data/Rakefile +10 -0
 - data/docs/ApiApi.md +450 -0
 - data/docs/CreateRuleCreated.md +18 -0
 - data/docs/CreateRuleForbidden.md +18 -0
 - data/docs/CreateRuleForbiddenBody.md +28 -0
 - data/docs/CreateRuleInternalServerError.md +18 -0
 - data/docs/CreateRuleInternalServerErrorBody.md +28 -0
 - data/docs/CreateRuleUnauthorized.md +18 -0
 - data/docs/CreateRuleUnauthorizedBody.md +28 -0
 - data/docs/DecisionsForbidden.md +18 -0
 - data/docs/DecisionsForbiddenBody.md +28 -0
 - data/docs/DecisionsInternalServerError.md +18 -0
 - data/docs/DecisionsInternalServerErrorBody.md +28 -0
 - data/docs/DecisionsNotFound.md +18 -0
 - data/docs/DecisionsNotFoundBody.md +28 -0
 - data/docs/DecisionsUnauthorized.md +18 -0
 - data/docs/DecisionsUnauthorizedBody.md +28 -0
 - data/docs/DeleteRuleForbidden.md +18 -0
 - data/docs/DeleteRuleForbiddenBody.md +28 -0
 - data/docs/DeleteRuleInternalServerError.md +18 -0
 - data/docs/DeleteRuleInternalServerErrorBody.md +28 -0
 - data/docs/DeleteRuleNotFound.md +18 -0
 - data/docs/DeleteRuleNotFoundBody.md +28 -0
 - data/docs/DeleteRuleUnauthorized.md +18 -0
 - data/docs/DeleteRuleUnauthorizedBody.md +28 -0
 - data/docs/GetRuleForbidden.md +18 -0
 - data/docs/GetRuleForbiddenBody.md +28 -0
 - data/docs/GetRuleInternalServerError.md +18 -0
 - data/docs/GetRuleInternalServerErrorBody.md +28 -0
 - data/docs/GetRuleNotFound.md +18 -0
 - data/docs/GetRuleNotFoundBody.md +28 -0
 - data/docs/GetRuleOK.md +18 -0
 - data/docs/GetRuleUnauthorized.md +18 -0
 - data/docs/GetRuleUnauthorizedBody.md +28 -0
 - data/docs/GetWellKnownForbidden.md +18 -0
 - data/docs/GetWellKnownForbiddenBody.md +28 -0
 - data/docs/GetWellKnownJSONWebKeysInternalServerError.md +18 -0
 - data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +28 -0
 - data/docs/GetWellKnownJSONWebKeysOK.md +18 -0
 - data/docs/GetWellKnownOK.md +18 -0
 - data/docs/GetWellKnownUnauthorized.md +18 -0
 - data/docs/GetWellKnownUnauthorizedBody.md +28 -0
 - data/docs/HealthApi.md +96 -0
 - data/docs/HealthNotReadyStatus.md +18 -0
 - data/docs/HealthStatus.md +18 -0
 - data/docs/InlineResponse500.md +28 -0
 - data/docs/IsInstanceAliveInternalServerError.md +18 -0
 - data/docs/IsInstanceAliveInternalServerErrorBody.md +28 -0
 - data/docs/IsInstanceAliveOK.md +18 -0
 - data/docs/JsonWebKey.md +50 -0
 - data/docs/JsonWebKeySet.md +18 -0
 - data/docs/JudgeForbidden.md +18 -0
 - data/docs/JudgeForbiddenBody.md +28 -0
 - data/docs/JudgeInternalServerError.md +18 -0
 - data/docs/JudgeInternalServerErrorBody.md +28 -0
 - data/docs/JudgeNotFound.md +18 -0
 - data/docs/JudgeNotFoundBody.md +28 -0
 - data/docs/JudgeUnauthorized.md +18 -0
 - data/docs/JudgeUnauthorizedBody.md +28 -0
 - data/docs/ListRulesForbidden.md +18 -0
 - data/docs/ListRulesForbiddenBody.md +28 -0
 - data/docs/ListRulesInternalServerError.md +18 -0
 - data/docs/ListRulesInternalServerErrorBody.md +28 -0
 - data/docs/ListRulesOK.md +18 -0
 - data/docs/ListRulesUnauthorized.md +18 -0
 - data/docs/ListRulesUnauthorizedBody.md +28 -0
 - data/docs/Rule.md +30 -0
 - data/docs/RuleHandler.md +20 -0
 - data/docs/RuleMatch.md +20 -0
 - data/docs/SwaggerCreateRuleParameters.md +18 -0
 - data/docs/SwaggerGetRuleParameters.md +18 -0
 - data/docs/SwaggerHealthStatus.md +18 -0
 - data/docs/SwaggerJSONWebKey.md +50 -0
 - data/docs/SwaggerJSONWebKeySet.md +18 -0
 - data/docs/SwaggerListRulesParameters.md +20 -0
 - data/docs/SwaggerNotReadyStatus.md +18 -0
 - data/docs/SwaggerRule.md +30 -0
 - data/docs/SwaggerRuleHandler.md +20 -0
 - data/docs/SwaggerRuleMatch.md +20 -0
 - data/docs/SwaggerRuleResponse.md +18 -0
 - data/docs/SwaggerRulesResponse.md +18 -0
 - data/docs/SwaggerUpdateRuleParameters.md +20 -0
 - data/docs/SwaggerVersion.md +18 -0
 - data/docs/UpdateRuleForbidden.md +18 -0
 - data/docs/UpdateRuleForbiddenBody.md +28 -0
 - data/docs/UpdateRuleInternalServerError.md +18 -0
 - data/docs/UpdateRuleInternalServerErrorBody.md +28 -0
 - data/docs/UpdateRuleNotFound.md +18 -0
 - data/docs/UpdateRuleNotFoundBody.md +28 -0
 - data/docs/UpdateRuleOK.md +18 -0
 - data/docs/UpdateRuleUnauthorized.md +18 -0
 - data/docs/UpdateRuleUnauthorizedBody.md +28 -0
 - data/docs/Upstream.md +22 -0
 - data/docs/Version.md +18 -0
 - data/docs/VersionApi.md +52 -0
 - data/lib/ory-oathkeeper-client.rb +131 -0
 - data/lib/ory-oathkeeper-client/api/api_api.rb +433 -0
 - data/lib/ory-oathkeeper-client/api/health_api.rb +134 -0
 - data/lib/ory-oathkeeper-client/api/version_api.rb +78 -0
 - data/lib/ory-oathkeeper-client/api_client.rb +389 -0
 - data/lib/ory-oathkeeper-client/api_error.rb +57 -0
 - data/lib/ory-oathkeeper-client/configuration.rb +270 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_created.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +221 -0
 - data/lib/ory-oathkeeper-client/models/health_status.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/inline_response500.rb +265 -0
 - data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/json_web_key.rb +369 -0
 - data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +221 -0
 - data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/judge_not_found.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +222 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/rule.rb +280 -0
 - data/lib/ory-oathkeeper-client/models/rule_handler.rb +229 -0
 - data/lib/ory-oathkeeper-client/models/rule_match.rb +231 -0
 - data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +225 -0
 - data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +220 -0
 - data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +382 -0
 - data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +222 -0
 - data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +230 -0
 - data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +222 -0
 - data/lib/ory-oathkeeper-client/models/swagger_rule.rb +280 -0
 - data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +230 -0
 - data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +232 -0
 - data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +222 -0
 - data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +234 -0
 - data/lib/ory-oathkeeper-client/models/swagger_version.rb +220 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +219 -0
 - data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +272 -0
 - data/lib/ory-oathkeeper-client/models/upstream.rb +240 -0
 - data/lib/ory-oathkeeper-client/models/version.rb +219 -0
 - data/lib/ory-oathkeeper-client/version.rb +15 -0
 - data/ory-oathkeeper-client.gemspec +38 -0
 - data/spec/api/api_api_spec.rb +115 -0
 - data/spec/api/health_api_spec.rb +57 -0
 - data/spec/api/version_api_spec.rb +46 -0
 - data/spec/api_client_spec.rb +226 -0
 - data/spec/configuration_spec.rb +42 -0
 - data/spec/models/create_rule_created_spec.rb +41 -0
 - data/spec/models/create_rule_forbidden_body_spec.rb +71 -0
 - data/spec/models/create_rule_forbidden_spec.rb +41 -0
 - data/spec/models/create_rule_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/create_rule_internal_server_error_spec.rb +41 -0
 - data/spec/models/create_rule_unauthorized_body_spec.rb +71 -0
 - data/spec/models/create_rule_unauthorized_spec.rb +41 -0
 - data/spec/models/decisions_forbidden_body_spec.rb +71 -0
 - data/spec/models/decisions_forbidden_spec.rb +41 -0
 - data/spec/models/decisions_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/decisions_internal_server_error_spec.rb +41 -0
 - data/spec/models/decisions_not_found_body_spec.rb +71 -0
 - data/spec/models/decisions_not_found_spec.rb +41 -0
 - data/spec/models/decisions_unauthorized_body_spec.rb +71 -0
 - data/spec/models/decisions_unauthorized_spec.rb +41 -0
 - data/spec/models/delete_rule_forbidden_body_spec.rb +71 -0
 - data/spec/models/delete_rule_forbidden_spec.rb +41 -0
 - data/spec/models/delete_rule_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/delete_rule_internal_server_error_spec.rb +41 -0
 - data/spec/models/delete_rule_not_found_body_spec.rb +71 -0
 - data/spec/models/delete_rule_not_found_spec.rb +41 -0
 - data/spec/models/delete_rule_unauthorized_body_spec.rb +71 -0
 - data/spec/models/delete_rule_unauthorized_spec.rb +41 -0
 - data/spec/models/get_rule_forbidden_body_spec.rb +71 -0
 - data/spec/models/get_rule_forbidden_spec.rb +41 -0
 - data/spec/models/get_rule_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/get_rule_internal_server_error_spec.rb +41 -0
 - data/spec/models/get_rule_not_found_body_spec.rb +71 -0
 - data/spec/models/get_rule_not_found_spec.rb +41 -0
 - data/spec/models/get_rule_ok_spec.rb +41 -0
 - data/spec/models/get_rule_unauthorized_body_spec.rb +71 -0
 - data/spec/models/get_rule_unauthorized_spec.rb +41 -0
 - data/spec/models/get_well_known_forbidden_body_spec.rb +71 -0
 - data/spec/models/get_well_known_forbidden_spec.rb +41 -0
 - data/spec/models/get_well_known_json_web_keys_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/get_well_known_json_web_keys_internal_server_error_spec.rb +41 -0
 - data/spec/models/get_well_known_json_web_keys_ok_spec.rb +41 -0
 - data/spec/models/get_well_known_ok_spec.rb +41 -0
 - data/spec/models/get_well_known_unauthorized_body_spec.rb +71 -0
 - data/spec/models/get_well_known_unauthorized_spec.rb +41 -0
 - data/spec/models/health_not_ready_status_spec.rb +41 -0
 - data/spec/models/health_status_spec.rb +41 -0
 - data/spec/models/inline_response500_spec.rb +71 -0
 - data/spec/models/is_instance_alive_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/is_instance_alive_internal_server_error_spec.rb +41 -0
 - data/spec/models/is_instance_alive_ok_spec.rb +41 -0
 - data/spec/models/json_web_key_set_spec.rb +41 -0
 - data/spec/models/json_web_key_spec.rb +137 -0
 - data/spec/models/judge_forbidden_body_spec.rb +71 -0
 - data/spec/models/judge_forbidden_spec.rb +41 -0
 - data/spec/models/judge_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/judge_internal_server_error_spec.rb +41 -0
 - data/spec/models/judge_not_found_body_spec.rb +71 -0
 - data/spec/models/judge_not_found_spec.rb +41 -0
 - data/spec/models/judge_unauthorized_body_spec.rb +71 -0
 - data/spec/models/judge_unauthorized_spec.rb +41 -0
 - data/spec/models/list_rules_forbidden_body_spec.rb +71 -0
 - data/spec/models/list_rules_forbidden_spec.rb +41 -0
 - data/spec/models/list_rules_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/list_rules_internal_server_error_spec.rb +41 -0
 - data/spec/models/list_rules_ok_spec.rb +41 -0
 - data/spec/models/list_rules_unauthorized_body_spec.rb +71 -0
 - data/spec/models/list_rules_unauthorized_spec.rb +41 -0
 - data/spec/models/rule_handler_spec.rb +47 -0
 - data/spec/models/rule_match_spec.rb +47 -0
 - data/spec/models/rule_spec.rb +77 -0
 - data/spec/models/swagger_create_rule_parameters_spec.rb +41 -0
 - data/spec/models/swagger_get_rule_parameters_spec.rb +41 -0
 - data/spec/models/swagger_health_status_spec.rb +41 -0
 - data/spec/models/swagger_json_web_key_set_spec.rb +41 -0
 - data/spec/models/swagger_json_web_key_spec.rb +137 -0
 - data/spec/models/swagger_list_rules_parameters_spec.rb +47 -0
 - data/spec/models/swagger_not_ready_status_spec.rb +41 -0
 - data/spec/models/swagger_rule_handler_spec.rb +47 -0
 - data/spec/models/swagger_rule_match_spec.rb +47 -0
 - data/spec/models/swagger_rule_response_spec.rb +41 -0
 - data/spec/models/swagger_rule_spec.rb +77 -0
 - data/spec/models/swagger_rules_response_spec.rb +41 -0
 - data/spec/models/swagger_update_rule_parameters_spec.rb +47 -0
 - data/spec/models/swagger_version_spec.rb +41 -0
 - data/spec/models/update_rule_forbidden_body_spec.rb +71 -0
 - data/spec/models/update_rule_forbidden_spec.rb +41 -0
 - data/spec/models/update_rule_internal_server_error_body_spec.rb +71 -0
 - data/spec/models/update_rule_internal_server_error_spec.rb +41 -0
 - data/spec/models/update_rule_not_found_body_spec.rb +71 -0
 - data/spec/models/update_rule_not_found_spec.rb +41 -0
 - data/spec/models/update_rule_ok_spec.rb +41 -0
 - data/spec/models/update_rule_unauthorized_body_spec.rb +71 -0
 - data/spec/models/update_rule_unauthorized_spec.rb +41 -0
 - data/spec/models/upstream_spec.rb +53 -0
 - data/spec/models/version_spec.rb +41 -0
 - data/spec/spec_helper.rb +111 -0
 - metadata +477 -0
 
| 
         @@ -0,0 +1,219 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #ORY Oathkeeper
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: v0.0.0-alpha.38
         
     | 
| 
      
 7 
     | 
    
         
            +
            Contact: hi@ory.am
         
     | 
| 
      
 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 OryOathkeeperClient
         
     | 
| 
      
 17 
     | 
    
         
            +
              # The standard error format
         
     | 
| 
      
 18 
     | 
    
         
            +
              class IsInstanceAliveInternalServerError
         
     | 
| 
      
 19 
     | 
    
         
            +
                attr_accessor :payload
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
      
 22 
     | 
    
         
            +
                def self.attribute_map
         
     | 
| 
      
 23 
     | 
    
         
            +
                  {
         
     | 
| 
      
 24 
     | 
    
         
            +
                    :'payload' => :'Payload'
         
     | 
| 
      
 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 
     | 
    
         
            +
                    :'payload' => :'IsInstanceAliveInternalServerErrorBody'
         
     | 
| 
      
 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::IsInstanceAliveInternalServerError` 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::IsInstanceAliveInternalServerError`. 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?(:'payload')
         
     | 
| 
      
 62 
     | 
    
         
            +
                    self.payload = attributes[:'payload']
         
     | 
| 
      
 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 
     | 
    
         
            +
                  invalid_properties
         
     | 
| 
      
 71 
     | 
    
         
            +
                end
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
                # Check to see if the all the properties in the model are valid
         
     | 
| 
      
 74 
     | 
    
         
            +
                # @return true if the model is valid
         
     | 
| 
      
 75 
     | 
    
         
            +
                def valid?
         
     | 
| 
      
 76 
     | 
    
         
            +
                  true
         
     | 
| 
      
 77 
     | 
    
         
            +
                end
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                # Checks equality by comparing each attribute.
         
     | 
| 
      
 80 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 81 
     | 
    
         
            +
                def ==(o)
         
     | 
| 
      
 82 
     | 
    
         
            +
                  return true if self.equal?(o)
         
     | 
| 
      
 83 
     | 
    
         
            +
                  self.class == o.class &&
         
     | 
| 
      
 84 
     | 
    
         
            +
                      payload == o.payload
         
     | 
| 
      
 85 
     | 
    
         
            +
                end
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                # @see the `==` method
         
     | 
| 
      
 88 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 89 
     | 
    
         
            +
                def eql?(o)
         
     | 
| 
      
 90 
     | 
    
         
            +
                  self == o
         
     | 
| 
      
 91 
     | 
    
         
            +
                end
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
      
 93 
     | 
    
         
            +
                # Calculates hash code according to all attributes.
         
     | 
| 
      
 94 
     | 
    
         
            +
                # @return [Integer] Hash code
         
     | 
| 
      
 95 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 96 
     | 
    
         
            +
                  [payload].hash
         
     | 
| 
      
 97 
     | 
    
         
            +
                end
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 100 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 101 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 102 
     | 
    
         
            +
                def self.build_from_hash(attributes)
         
     | 
| 
      
 103 
     | 
    
         
            +
                  new.build_from_hash(attributes)
         
     | 
| 
      
 104 
     | 
    
         
            +
                end
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 107 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 108 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 109 
     | 
    
         
            +
                def build_from_hash(attributes)
         
     | 
| 
      
 110 
     | 
    
         
            +
                  return nil unless attributes.is_a?(Hash)
         
     | 
| 
      
 111 
     | 
    
         
            +
                  self.class.openapi_types.each_pair do |key, type|
         
     | 
| 
      
 112 
     | 
    
         
            +
                    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
         
     | 
| 
      
 113 
     | 
    
         
            +
                      self.send("#{key}=", nil)
         
     | 
| 
      
 114 
     | 
    
         
            +
                    elsif type =~ /\AArray<(.*)>/i
         
     | 
| 
      
 115 
     | 
    
         
            +
                      # check to ensure the input is an array given that the attribute
         
     | 
| 
      
 116 
     | 
    
         
            +
                      # is documented as an array but the input is not
         
     | 
| 
      
 117 
     | 
    
         
            +
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         
     | 
| 
      
 118 
     | 
    
         
            +
                        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
         
     | 
| 
      
 119 
     | 
    
         
            +
                      end
         
     | 
| 
      
 120 
     | 
    
         
            +
                    elsif !attributes[self.class.attribute_map[key]].nil?
         
     | 
| 
      
 121 
     | 
    
         
            +
                      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
         
     | 
| 
      
 122 
     | 
    
         
            +
                    end
         
     | 
| 
      
 123 
     | 
    
         
            +
                  end
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
                  self
         
     | 
| 
      
 126 
     | 
    
         
            +
                end
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                # Deserializes the data based on type
         
     | 
| 
      
 129 
     | 
    
         
            +
                # @param string type Data type
         
     | 
| 
      
 130 
     | 
    
         
            +
                # @param string value Value to be deserialized
         
     | 
| 
      
 131 
     | 
    
         
            +
                # @return [Object] Deserialized data
         
     | 
| 
      
 132 
     | 
    
         
            +
                def _deserialize(type, value)
         
     | 
| 
      
 133 
     | 
    
         
            +
                  case type.to_sym
         
     | 
| 
      
 134 
     | 
    
         
            +
                  when :Time
         
     | 
| 
      
 135 
     | 
    
         
            +
                    Time.parse(value)
         
     | 
| 
      
 136 
     | 
    
         
            +
                  when :Date
         
     | 
| 
      
 137 
     | 
    
         
            +
                    Date.parse(value)
         
     | 
| 
      
 138 
     | 
    
         
            +
                  when :String
         
     | 
| 
      
 139 
     | 
    
         
            +
                    value.to_s
         
     | 
| 
      
 140 
     | 
    
         
            +
                  when :Integer
         
     | 
| 
      
 141 
     | 
    
         
            +
                    value.to_i
         
     | 
| 
      
 142 
     | 
    
         
            +
                  when :Float
         
     | 
| 
      
 143 
     | 
    
         
            +
                    value.to_f
         
     | 
| 
      
 144 
     | 
    
         
            +
                  when :Boolean
         
     | 
| 
      
 145 
     | 
    
         
            +
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         
     | 
| 
      
 146 
     | 
    
         
            +
                      true
         
     | 
| 
      
 147 
     | 
    
         
            +
                    else
         
     | 
| 
      
 148 
     | 
    
         
            +
                      false
         
     | 
| 
      
 149 
     | 
    
         
            +
                    end
         
     | 
| 
      
 150 
     | 
    
         
            +
                  when :Object
         
     | 
| 
      
 151 
     | 
    
         
            +
                    # generic object (usually a Hash), return directly
         
     | 
| 
      
 152 
     | 
    
         
            +
                    value
         
     | 
| 
      
 153 
     | 
    
         
            +
                  when /\AArray<(?<inner_type>.+)>\z/
         
     | 
| 
      
 154 
     | 
    
         
            +
                    inner_type = Regexp.last_match[:inner_type]
         
     | 
| 
      
 155 
     | 
    
         
            +
                    value.map { |v| _deserialize(inner_type, v) }
         
     | 
| 
      
 156 
     | 
    
         
            +
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         
     | 
| 
      
 157 
     | 
    
         
            +
                    k_type = Regexp.last_match[:k_type]
         
     | 
| 
      
 158 
     | 
    
         
            +
                    v_type = Regexp.last_match[:v_type]
         
     | 
| 
      
 159 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 160 
     | 
    
         
            +
                      value.each do |k, v|
         
     | 
| 
      
 161 
     | 
    
         
            +
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         
     | 
| 
      
 162 
     | 
    
         
            +
                      end
         
     | 
| 
      
 163 
     | 
    
         
            +
                    end
         
     | 
| 
      
 164 
     | 
    
         
            +
                  else # model
         
     | 
| 
      
 165 
     | 
    
         
            +
                    # models (e.g. Pet) or oneOf
         
     | 
| 
      
 166 
     | 
    
         
            +
                    klass = OryOathkeeperClient.const_get(type)
         
     | 
| 
      
 167 
     | 
    
         
            +
                    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
         
     | 
| 
      
 168 
     | 
    
         
            +
                  end
         
     | 
| 
      
 169 
     | 
    
         
            +
                end
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
                # Returns the string representation of the object
         
     | 
| 
      
 172 
     | 
    
         
            +
                # @return [String] String presentation of the object
         
     | 
| 
      
 173 
     | 
    
         
            +
                def to_s
         
     | 
| 
      
 174 
     | 
    
         
            +
                  to_hash.to_s
         
     | 
| 
      
 175 
     | 
    
         
            +
                end
         
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
      
 177 
     | 
    
         
            +
                # to_body is an alias to to_hash (backward compatibility)
         
     | 
| 
      
 178 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 179 
     | 
    
         
            +
                def to_body
         
     | 
| 
      
 180 
     | 
    
         
            +
                  to_hash
         
     | 
| 
      
 181 
     | 
    
         
            +
                end
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
                # Returns the object in the form of hash
         
     | 
| 
      
 184 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 185 
     | 
    
         
            +
                def to_hash
         
     | 
| 
      
 186 
     | 
    
         
            +
                  hash = {}
         
     | 
| 
      
 187 
     | 
    
         
            +
                  self.class.attribute_map.each_pair do |attr, param|
         
     | 
| 
      
 188 
     | 
    
         
            +
                    value = self.send(attr)
         
     | 
| 
      
 189 
     | 
    
         
            +
                    if value.nil?
         
     | 
| 
      
 190 
     | 
    
         
            +
                      is_nullable = self.class.openapi_nullable.include?(attr)
         
     | 
| 
      
 191 
     | 
    
         
            +
                      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
         
     | 
| 
      
 192 
     | 
    
         
            +
                    end
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
                    hash[param] = _to_hash(value)
         
     | 
| 
      
 195 
     | 
    
         
            +
                  end
         
     | 
| 
      
 196 
     | 
    
         
            +
                  hash
         
     | 
| 
      
 197 
     | 
    
         
            +
                end
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
                # Outputs non-array value in the form of hash
         
     | 
| 
      
 200 
     | 
    
         
            +
                # For object, use to_hash. Otherwise, just return the value
         
     | 
| 
      
 201 
     | 
    
         
            +
                # @param [Object] value Any valid value
         
     | 
| 
      
 202 
     | 
    
         
            +
                # @return [Hash] Returns the value in the form of hash
         
     | 
| 
      
 203 
     | 
    
         
            +
                def _to_hash(value)
         
     | 
| 
      
 204 
     | 
    
         
            +
                  if value.is_a?(Array)
         
     | 
| 
      
 205 
     | 
    
         
            +
                    value.compact.map { |v| _to_hash(v) }
         
     | 
| 
      
 206 
     | 
    
         
            +
                  elsif value.is_a?(Hash)
         
     | 
| 
      
 207 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 208 
     | 
    
         
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         
     | 
| 
      
 209 
     | 
    
         
            +
                    end
         
     | 
| 
      
 210 
     | 
    
         
            +
                  elsif value.respond_to? :to_hash
         
     | 
| 
      
 211 
     | 
    
         
            +
                    value.to_hash
         
     | 
| 
      
 212 
     | 
    
         
            +
                  else
         
     | 
| 
      
 213 
     | 
    
         
            +
                    value
         
     | 
| 
      
 214 
     | 
    
         
            +
                  end
         
     | 
| 
      
 215 
     | 
    
         
            +
                end
         
     | 
| 
      
 216 
     | 
    
         
            +
             
     | 
| 
      
 217 
     | 
    
         
            +
              end
         
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,272 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #ORY Oathkeeper
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: v0.0.0-alpha.38
         
     | 
| 
      
 7 
     | 
    
         
            +
            Contact: hi@ory.am
         
     | 
| 
      
 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 OryOathkeeperClient
         
     | 
| 
      
 17 
     | 
    
         
            +
              # IsInstanceAliveInternalServerErrorBody IsInstanceAliveInternalServerErrorBody is instance alive internal server error body
         
     | 
| 
      
 18 
     | 
    
         
            +
              class IsInstanceAliveInternalServerErrorBody
         
     | 
| 
      
 19 
     | 
    
         
            +
                # code
         
     | 
| 
      
 20 
     | 
    
         
            +
                attr_accessor :code
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
                # details
         
     | 
| 
      
 23 
     | 
    
         
            +
                attr_accessor :details
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                # message
         
     | 
| 
      
 26 
     | 
    
         
            +
                attr_accessor :message
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                # reason
         
     | 
| 
      
 29 
     | 
    
         
            +
                attr_accessor :reason
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # request
         
     | 
| 
      
 32 
     | 
    
         
            +
                attr_accessor :request
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                # status
         
     | 
| 
      
 35 
     | 
    
         
            +
                attr_accessor :status
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
      
 38 
     | 
    
         
            +
                def self.attribute_map
         
     | 
| 
      
 39 
     | 
    
         
            +
                  {
         
     | 
| 
      
 40 
     | 
    
         
            +
                    :'code' => :'code',
         
     | 
| 
      
 41 
     | 
    
         
            +
                    :'details' => :'details',
         
     | 
| 
      
 42 
     | 
    
         
            +
                    :'message' => :'message',
         
     | 
| 
      
 43 
     | 
    
         
            +
                    :'reason' => :'reason',
         
     | 
| 
      
 44 
     | 
    
         
            +
                    :'request' => :'request',
         
     | 
| 
      
 45 
     | 
    
         
            +
                    :'status' => :'status'
         
     | 
| 
      
 46 
     | 
    
         
            +
                  }
         
     | 
| 
      
 47 
     | 
    
         
            +
                end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                # Returns all the JSON keys this model knows about
         
     | 
| 
      
 50 
     | 
    
         
            +
                def self.acceptable_attributes
         
     | 
| 
      
 51 
     | 
    
         
            +
                  attribute_map.values
         
     | 
| 
      
 52 
     | 
    
         
            +
                end
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
                # Attribute type mapping.
         
     | 
| 
      
 55 
     | 
    
         
            +
                def self.openapi_types
         
     | 
| 
      
 56 
     | 
    
         
            +
                  {
         
     | 
| 
      
 57 
     | 
    
         
            +
                    :'code' => :'Integer',
         
     | 
| 
      
 58 
     | 
    
         
            +
                    :'details' => :'Array<Object>',
         
     | 
| 
      
 59 
     | 
    
         
            +
                    :'message' => :'String',
         
     | 
| 
      
 60 
     | 
    
         
            +
                    :'reason' => :'String',
         
     | 
| 
      
 61 
     | 
    
         
            +
                    :'request' => :'String',
         
     | 
| 
      
 62 
     | 
    
         
            +
                    :'status' => :'String'
         
     | 
| 
      
 63 
     | 
    
         
            +
                  }
         
     | 
| 
      
 64 
     | 
    
         
            +
                end
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
                # List of attributes with nullable: true
         
     | 
| 
      
 67 
     | 
    
         
            +
                def self.openapi_nullable
         
     | 
| 
      
 68 
     | 
    
         
            +
                  Set.new([
         
     | 
| 
      
 69 
     | 
    
         
            +
                  ])
         
     | 
| 
      
 70 
     | 
    
         
            +
                end
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
                # Initializes the object
         
     | 
| 
      
 73 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 74 
     | 
    
         
            +
                def initialize(attributes = {})
         
     | 
| 
      
 75 
     | 
    
         
            +
                  if (!attributes.is_a?(Hash))
         
     | 
| 
      
 76 
     | 
    
         
            +
                    fail ArgumentError, "The input argument (attributes) must be a hash in `OryOathkeeperClient::IsInstanceAliveInternalServerErrorBody` initialize method"
         
     | 
| 
      
 77 
     | 
    
         
            +
                  end
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                  # check to see if the attribute exists and convert string to symbol for hash key
         
     | 
| 
      
 80 
     | 
    
         
            +
                  attributes = attributes.each_with_object({}) { |(k, v), h|
         
     | 
| 
      
 81 
     | 
    
         
            +
                    if (!self.class.attribute_map.key?(k.to_sym))
         
     | 
| 
      
 82 
     | 
    
         
            +
                      fail ArgumentError, "`#{k}` is not a valid attribute in `OryOathkeeperClient::IsInstanceAliveInternalServerErrorBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
         
     | 
| 
      
 83 
     | 
    
         
            +
                    end
         
     | 
| 
      
 84 
     | 
    
         
            +
                    h[k.to_sym] = v
         
     | 
| 
      
 85 
     | 
    
         
            +
                  }
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                  if attributes.key?(:'code')
         
     | 
| 
      
 88 
     | 
    
         
            +
                    self.code = attributes[:'code']
         
     | 
| 
      
 89 
     | 
    
         
            +
                  end
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
                  if attributes.key?(:'details')
         
     | 
| 
      
 92 
     | 
    
         
            +
                    if (value = attributes[:'details']).is_a?(Array)
         
     | 
| 
      
 93 
     | 
    
         
            +
                      self.details = value
         
     | 
| 
      
 94 
     | 
    
         
            +
                    end
         
     | 
| 
      
 95 
     | 
    
         
            +
                  end
         
     | 
| 
      
 96 
     | 
    
         
            +
             
     | 
| 
      
 97 
     | 
    
         
            +
                  if attributes.key?(:'message')
         
     | 
| 
      
 98 
     | 
    
         
            +
                    self.message = attributes[:'message']
         
     | 
| 
      
 99 
     | 
    
         
            +
                  end
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                  if attributes.key?(:'reason')
         
     | 
| 
      
 102 
     | 
    
         
            +
                    self.reason = attributes[:'reason']
         
     | 
| 
      
 103 
     | 
    
         
            +
                  end
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                  if attributes.key?(:'request')
         
     | 
| 
      
 106 
     | 
    
         
            +
                    self.request = attributes[:'request']
         
     | 
| 
      
 107 
     | 
    
         
            +
                  end
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
                  if attributes.key?(:'status')
         
     | 
| 
      
 110 
     | 
    
         
            +
                    self.status = attributes[:'status']
         
     | 
| 
      
 111 
     | 
    
         
            +
                  end
         
     | 
| 
      
 112 
     | 
    
         
            +
                end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                # Show invalid properties with the reasons. Usually used together with valid?
         
     | 
| 
      
 115 
     | 
    
         
            +
                # @return Array for valid properties with the reasons
         
     | 
| 
      
 116 
     | 
    
         
            +
                def list_invalid_properties
         
     | 
| 
      
 117 
     | 
    
         
            +
                  invalid_properties = Array.new
         
     | 
| 
      
 118 
     | 
    
         
            +
                  invalid_properties
         
     | 
| 
      
 119 
     | 
    
         
            +
                end
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
                # Check to see if the all the properties in the model are valid
         
     | 
| 
      
 122 
     | 
    
         
            +
                # @return true if the model is valid
         
     | 
| 
      
 123 
     | 
    
         
            +
                def valid?
         
     | 
| 
      
 124 
     | 
    
         
            +
                  true
         
     | 
| 
      
 125 
     | 
    
         
            +
                end
         
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
                # Checks equality by comparing each attribute.
         
     | 
| 
      
 128 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 129 
     | 
    
         
            +
                def ==(o)
         
     | 
| 
      
 130 
     | 
    
         
            +
                  return true if self.equal?(o)
         
     | 
| 
      
 131 
     | 
    
         
            +
                  self.class == o.class &&
         
     | 
| 
      
 132 
     | 
    
         
            +
                      code == o.code &&
         
     | 
| 
      
 133 
     | 
    
         
            +
                      details == o.details &&
         
     | 
| 
      
 134 
     | 
    
         
            +
                      message == o.message &&
         
     | 
| 
      
 135 
     | 
    
         
            +
                      reason == o.reason &&
         
     | 
| 
      
 136 
     | 
    
         
            +
                      request == o.request &&
         
     | 
| 
      
 137 
     | 
    
         
            +
                      status == o.status
         
     | 
| 
      
 138 
     | 
    
         
            +
                end
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                # @see the `==` method
         
     | 
| 
      
 141 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 142 
     | 
    
         
            +
                def eql?(o)
         
     | 
| 
      
 143 
     | 
    
         
            +
                  self == o
         
     | 
| 
      
 144 
     | 
    
         
            +
                end
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
      
 146 
     | 
    
         
            +
                # Calculates hash code according to all attributes.
         
     | 
| 
      
 147 
     | 
    
         
            +
                # @return [Integer] Hash code
         
     | 
| 
      
 148 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 149 
     | 
    
         
            +
                  [code, details, message, reason, request, status].hash
         
     | 
| 
      
 150 
     | 
    
         
            +
                end
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 153 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 154 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 155 
     | 
    
         
            +
                def self.build_from_hash(attributes)
         
     | 
| 
      
 156 
     | 
    
         
            +
                  new.build_from_hash(attributes)
         
     | 
| 
      
 157 
     | 
    
         
            +
                end
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 160 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 161 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 162 
     | 
    
         
            +
                def build_from_hash(attributes)
         
     | 
| 
      
 163 
     | 
    
         
            +
                  return nil unless attributes.is_a?(Hash)
         
     | 
| 
      
 164 
     | 
    
         
            +
                  self.class.openapi_types.each_pair do |key, type|
         
     | 
| 
      
 165 
     | 
    
         
            +
                    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
         
     | 
| 
      
 166 
     | 
    
         
            +
                      self.send("#{key}=", nil)
         
     | 
| 
      
 167 
     | 
    
         
            +
                    elsif type =~ /\AArray<(.*)>/i
         
     | 
| 
      
 168 
     | 
    
         
            +
                      # check to ensure the input is an array given that the attribute
         
     | 
| 
      
 169 
     | 
    
         
            +
                      # is documented as an array but the input is not
         
     | 
| 
      
 170 
     | 
    
         
            +
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         
     | 
| 
      
 171 
     | 
    
         
            +
                        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
         
     | 
| 
      
 172 
     | 
    
         
            +
                      end
         
     | 
| 
      
 173 
     | 
    
         
            +
                    elsif !attributes[self.class.attribute_map[key]].nil?
         
     | 
| 
      
 174 
     | 
    
         
            +
                      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
         
     | 
| 
      
 175 
     | 
    
         
            +
                    end
         
     | 
| 
      
 176 
     | 
    
         
            +
                  end
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
      
 178 
     | 
    
         
            +
                  self
         
     | 
| 
      
 179 
     | 
    
         
            +
                end
         
     | 
| 
      
 180 
     | 
    
         
            +
             
     | 
| 
      
 181 
     | 
    
         
            +
                # Deserializes the data based on type
         
     | 
| 
      
 182 
     | 
    
         
            +
                # @param string type Data type
         
     | 
| 
      
 183 
     | 
    
         
            +
                # @param string value Value to be deserialized
         
     | 
| 
      
 184 
     | 
    
         
            +
                # @return [Object] Deserialized data
         
     | 
| 
      
 185 
     | 
    
         
            +
                def _deserialize(type, value)
         
     | 
| 
      
 186 
     | 
    
         
            +
                  case type.to_sym
         
     | 
| 
      
 187 
     | 
    
         
            +
                  when :Time
         
     | 
| 
      
 188 
     | 
    
         
            +
                    Time.parse(value)
         
     | 
| 
      
 189 
     | 
    
         
            +
                  when :Date
         
     | 
| 
      
 190 
     | 
    
         
            +
                    Date.parse(value)
         
     | 
| 
      
 191 
     | 
    
         
            +
                  when :String
         
     | 
| 
      
 192 
     | 
    
         
            +
                    value.to_s
         
     | 
| 
      
 193 
     | 
    
         
            +
                  when :Integer
         
     | 
| 
      
 194 
     | 
    
         
            +
                    value.to_i
         
     | 
| 
      
 195 
     | 
    
         
            +
                  when :Float
         
     | 
| 
      
 196 
     | 
    
         
            +
                    value.to_f
         
     | 
| 
      
 197 
     | 
    
         
            +
                  when :Boolean
         
     | 
| 
      
 198 
     | 
    
         
            +
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         
     | 
| 
      
 199 
     | 
    
         
            +
                      true
         
     | 
| 
      
 200 
     | 
    
         
            +
                    else
         
     | 
| 
      
 201 
     | 
    
         
            +
                      false
         
     | 
| 
      
 202 
     | 
    
         
            +
                    end
         
     | 
| 
      
 203 
     | 
    
         
            +
                  when :Object
         
     | 
| 
      
 204 
     | 
    
         
            +
                    # generic object (usually a Hash), return directly
         
     | 
| 
      
 205 
     | 
    
         
            +
                    value
         
     | 
| 
      
 206 
     | 
    
         
            +
                  when /\AArray<(?<inner_type>.+)>\z/
         
     | 
| 
      
 207 
     | 
    
         
            +
                    inner_type = Regexp.last_match[:inner_type]
         
     | 
| 
      
 208 
     | 
    
         
            +
                    value.map { |v| _deserialize(inner_type, v) }
         
     | 
| 
      
 209 
     | 
    
         
            +
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         
     | 
| 
      
 210 
     | 
    
         
            +
                    k_type = Regexp.last_match[:k_type]
         
     | 
| 
      
 211 
     | 
    
         
            +
                    v_type = Regexp.last_match[:v_type]
         
     | 
| 
      
 212 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 213 
     | 
    
         
            +
                      value.each do |k, v|
         
     | 
| 
      
 214 
     | 
    
         
            +
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         
     | 
| 
      
 215 
     | 
    
         
            +
                      end
         
     | 
| 
      
 216 
     | 
    
         
            +
                    end
         
     | 
| 
      
 217 
     | 
    
         
            +
                  else # model
         
     | 
| 
      
 218 
     | 
    
         
            +
                    # models (e.g. Pet) or oneOf
         
     | 
| 
      
 219 
     | 
    
         
            +
                    klass = OryOathkeeperClient.const_get(type)
         
     | 
| 
      
 220 
     | 
    
         
            +
                    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
         
     | 
| 
      
 221 
     | 
    
         
            +
                  end
         
     | 
| 
      
 222 
     | 
    
         
            +
                end
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
                # Returns the string representation of the object
         
     | 
| 
      
 225 
     | 
    
         
            +
                # @return [String] String presentation of the object
         
     | 
| 
      
 226 
     | 
    
         
            +
                def to_s
         
     | 
| 
      
 227 
     | 
    
         
            +
                  to_hash.to_s
         
     | 
| 
      
 228 
     | 
    
         
            +
                end
         
     | 
| 
      
 229 
     | 
    
         
            +
             
     | 
| 
      
 230 
     | 
    
         
            +
                # to_body is an alias to to_hash (backward compatibility)
         
     | 
| 
      
 231 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 232 
     | 
    
         
            +
                def to_body
         
     | 
| 
      
 233 
     | 
    
         
            +
                  to_hash
         
     | 
| 
      
 234 
     | 
    
         
            +
                end
         
     | 
| 
      
 235 
     | 
    
         
            +
             
     | 
| 
      
 236 
     | 
    
         
            +
                # Returns the object in the form of hash
         
     | 
| 
      
 237 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 238 
     | 
    
         
            +
                def to_hash
         
     | 
| 
      
 239 
     | 
    
         
            +
                  hash = {}
         
     | 
| 
      
 240 
     | 
    
         
            +
                  self.class.attribute_map.each_pair do |attr, param|
         
     | 
| 
      
 241 
     | 
    
         
            +
                    value = self.send(attr)
         
     | 
| 
      
 242 
     | 
    
         
            +
                    if value.nil?
         
     | 
| 
      
 243 
     | 
    
         
            +
                      is_nullable = self.class.openapi_nullable.include?(attr)
         
     | 
| 
      
 244 
     | 
    
         
            +
                      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
         
     | 
| 
      
 245 
     | 
    
         
            +
                    end
         
     | 
| 
      
 246 
     | 
    
         
            +
             
     | 
| 
      
 247 
     | 
    
         
            +
                    hash[param] = _to_hash(value)
         
     | 
| 
      
 248 
     | 
    
         
            +
                  end
         
     | 
| 
      
 249 
     | 
    
         
            +
                  hash
         
     | 
| 
      
 250 
     | 
    
         
            +
                end
         
     | 
| 
      
 251 
     | 
    
         
            +
             
     | 
| 
      
 252 
     | 
    
         
            +
                # Outputs non-array value in the form of hash
         
     | 
| 
      
 253 
     | 
    
         
            +
                # For object, use to_hash. Otherwise, just return the value
         
     | 
| 
      
 254 
     | 
    
         
            +
                # @param [Object] value Any valid value
         
     | 
| 
      
 255 
     | 
    
         
            +
                # @return [Hash] Returns the value in the form of hash
         
     | 
| 
      
 256 
     | 
    
         
            +
                def _to_hash(value)
         
     | 
| 
      
 257 
     | 
    
         
            +
                  if value.is_a?(Array)
         
     | 
| 
      
 258 
     | 
    
         
            +
                    value.compact.map { |v| _to_hash(v) }
         
     | 
| 
      
 259 
     | 
    
         
            +
                  elsif value.is_a?(Hash)
         
     | 
| 
      
 260 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 261 
     | 
    
         
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         
     | 
| 
      
 262 
     | 
    
         
            +
                    end
         
     | 
| 
      
 263 
     | 
    
         
            +
                  elsif value.respond_to? :to_hash
         
     | 
| 
      
 264 
     | 
    
         
            +
                    value.to_hash
         
     | 
| 
      
 265 
     | 
    
         
            +
                  else
         
     | 
| 
      
 266 
     | 
    
         
            +
                    value
         
     | 
| 
      
 267 
     | 
    
         
            +
                  end
         
     | 
| 
      
 268 
     | 
    
         
            +
                end
         
     | 
| 
      
 269 
     | 
    
         
            +
             
     | 
| 
      
 270 
     | 
    
         
            +
              end
         
     | 
| 
      
 271 
     | 
    
         
            +
             
     | 
| 
      
 272 
     | 
    
         
            +
            end
         
     |