From becfc7682768b38ca2b641377efb819a747b4432 Mon Sep 17 00:00:00 2001 From: ory-bot <60093411+ory-bot@users.noreply.github.com> Date: Wed, 14 Sep 2022 07:53:22 +0000 Subject: [PATCH] autogen(openapi): regenerate swagger spec and internal client [skip ci] --- internal/httpclient/client/api/api_client.go | 31 +++++++++---------- .../client/api/decisions_parameters.go | 8 ++--- .../client/api/decisions_responses.go | 15 +++------ .../client/api/get_rule_parameters.go | 8 ++--- .../client/api/get_rule_responses.go | 9 ++---- .../client/api/get_version_parameters.go | 8 ++--- .../client/api/get_version_responses.go | 3 +- ...get_well_known_json_web_keys_parameters.go | 8 ++--- .../get_well_known_json_web_keys_responses.go | 6 ++-- .../api/is_instance_alive_parameters.go | 8 ++--- .../client/api/is_instance_alive_responses.go | 6 ++-- .../api/is_instance_ready_parameters.go | 8 ++--- .../client/api/is_instance_ready_responses.go | 6 ++-- .../client/api/list_rules_parameters.go | 8 ++--- .../client/api/list_rules_responses.go | 6 ++-- 15 files changed, 52 insertions(+), 86 deletions(-) diff --git a/internal/httpclient/client/api/api_client.go b/internal/httpclient/client/api/api_client.go index 0c85c1c592..68f716e7dc 100644 --- a/internal/httpclient/client/api/api_client.go +++ b/internal/httpclient/client/api/api_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - Decisions accesses control decision API + Decisions accesses control decision API - > This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. + > This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. This endpoint mirrors the proxy capability of ORY Oathkeeper's proxy functionality but instead of forwarding the request to the upstream server, returns 200 (request should be allowed), 401 (unauthorized), or 403 (forbidden) @@ -92,9 +92,9 @@ func (a *Client) Decisions(params *DecisionsParams, opts ...ClientOption) (*Deci } /* -GetRule retrieves a rule + GetRule retrieves a rule -Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error. + Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error. */ func (a *Client) GetRule(params *GetRuleParams, opts ...ClientOption) (*GetRuleOK, error) { // TODO: Validate the params before sending @@ -132,9 +132,9 @@ func (a *Client) GetRule(params *GetRuleParams, opts ...ClientOption) (*GetRuleO } /* - GetVersion gets service version + GetVersion gets service version - This endpoint returns the service version typically notated using semantic versioning. + This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. @@ -178,9 +178,9 @@ func (a *Client) GetVersion(params *GetVersionParams, opts ...ClientOption) (*Ge } /* -GetWellKnownJSONWebKeys lists cryptographic keys + GetWellKnownJSONWebKeys lists cryptographic keys -This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens. + This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens. */ func (a *Client) GetWellKnownJSONWebKeys(params *GetWellKnownJSONWebKeysParams, opts ...ClientOption) (*GetWellKnownJSONWebKeysOK, error) { // TODO: Validate the params before sending @@ -218,10 +218,9 @@ func (a *Client) GetWellKnownJSONWebKeys(params *GetWellKnownJSONWebKeysParams, } /* - IsInstanceAlive checks alive status - - This endpoint returns a 200 status code when the HTTP server is up running. + IsInstanceAlive checks alive status + This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the @@ -266,10 +265,9 @@ func (a *Client) IsInstanceAlive(params *IsInstanceAliveParams, opts ...ClientOp } /* - IsInstanceReady checks readiness status - - This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. + IsInstanceReady checks readiness status + This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the @@ -314,10 +312,9 @@ func (a *Client) IsInstanceReady(params *IsInstanceReadyParams, opts ...ClientOp } /* - ListRules lists all rules - - This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full + ListRules lists all rules + This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place. */ func (a *Client) ListRules(params *ListRulesParams, opts ...ClientOption) (*ListRulesOK, error) { diff --git a/internal/httpclient/client/api/decisions_parameters.go b/internal/httpclient/client/api/decisions_parameters.go index 6950d28a66..c14089e2ce 100644 --- a/internal/httpclient/client/api/decisions_parameters.go +++ b/internal/httpclient/client/api/decisions_parameters.go @@ -52,12 +52,10 @@ func NewDecisionsParamsWithHTTPClient(client *http.Client) *DecisionsParams { } } -/* -DecisionsParams contains all the parameters to send to the API endpoint +/* DecisionsParams contains all the parameters to send to the API endpoint + for the decisions operation. - for the decisions operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type DecisionsParams struct { timeout time.Duration diff --git a/internal/httpclient/client/api/decisions_responses.go b/internal/httpclient/client/api/decisions_responses.go index 9819ecaec4..628e6ab110 100644 --- a/internal/httpclient/client/api/decisions_responses.go +++ b/internal/httpclient/client/api/decisions_responses.go @@ -63,8 +63,7 @@ func NewDecisionsOK() *DecisionsOK { return &DecisionsOK{} } -/* - DecisionsOK describes a response with status code 200, with default header values. +/* DecisionsOK describes a response with status code 200, with default header values. An empty response */ @@ -114,8 +113,7 @@ func NewDecisionsUnauthorized() *DecisionsUnauthorized { return &DecisionsUnauthorized{} } -/* - DecisionsUnauthorized describes a response with status code 401, with default header values. +/* DecisionsUnauthorized describes a response with status code 401, with default header values. genericError */ @@ -177,8 +175,7 @@ func NewDecisionsForbidden() *DecisionsForbidden { return &DecisionsForbidden{} } -/* - DecisionsForbidden describes a response with status code 403, with default header values. +/* DecisionsForbidden describes a response with status code 403, with default header values. genericError */ @@ -240,8 +237,7 @@ func NewDecisionsNotFound() *DecisionsNotFound { return &DecisionsNotFound{} } -/* - DecisionsNotFound describes a response with status code 404, with default header values. +/* DecisionsNotFound describes a response with status code 404, with default header values. genericError */ @@ -303,8 +299,7 @@ func NewDecisionsInternalServerError() *DecisionsInternalServerError { return &DecisionsInternalServerError{} } -/* - DecisionsInternalServerError describes a response with status code 500, with default header values. +/* DecisionsInternalServerError describes a response with status code 500, with default header values. genericError */ diff --git a/internal/httpclient/client/api/get_rule_parameters.go b/internal/httpclient/client/api/get_rule_parameters.go index cb20665919..f4d8bdd78a 100644 --- a/internal/httpclient/client/api/get_rule_parameters.go +++ b/internal/httpclient/client/api/get_rule_parameters.go @@ -52,12 +52,10 @@ func NewGetRuleParamsWithHTTPClient(client *http.Client) *GetRuleParams { } } -/* -GetRuleParams contains all the parameters to send to the API endpoint +/* GetRuleParams contains all the parameters to send to the API endpoint + for the get rule operation. - for the get rule operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type GetRuleParams struct { diff --git a/internal/httpclient/client/api/get_rule_responses.go b/internal/httpclient/client/api/get_rule_responses.go index fc03ffcc99..42b5fb8ad0 100644 --- a/internal/httpclient/client/api/get_rule_responses.go +++ b/internal/httpclient/client/api/get_rule_responses.go @@ -51,8 +51,7 @@ func NewGetRuleOK() *GetRuleOK { return &GetRuleOK{} } -/* - GetRuleOK describes a response with status code 200, with default header values. +/* GetRuleOK describes a response with status code 200, with default header values. A rule */ @@ -114,8 +113,7 @@ func NewGetRuleNotFound() *GetRuleNotFound { return &GetRuleNotFound{} } -/* - GetRuleNotFound describes a response with status code 404, with default header values. +/* GetRuleNotFound describes a response with status code 404, with default header values. genericError */ @@ -177,8 +175,7 @@ func NewGetRuleInternalServerError() *GetRuleInternalServerError { return &GetRuleInternalServerError{} } -/* - GetRuleInternalServerError describes a response with status code 500, with default header values. +/* GetRuleInternalServerError describes a response with status code 500, with default header values. genericError */ diff --git a/internal/httpclient/client/api/get_version_parameters.go b/internal/httpclient/client/api/get_version_parameters.go index cc91b5a58b..8391443439 100644 --- a/internal/httpclient/client/api/get_version_parameters.go +++ b/internal/httpclient/client/api/get_version_parameters.go @@ -52,12 +52,10 @@ func NewGetVersionParamsWithHTTPClient(client *http.Client) *GetVersionParams { } } -/* -GetVersionParams contains all the parameters to send to the API endpoint +/* GetVersionParams contains all the parameters to send to the API endpoint + for the get version operation. - for the get version operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type GetVersionParams struct { timeout time.Duration diff --git a/internal/httpclient/client/api/get_version_responses.go b/internal/httpclient/client/api/get_version_responses.go index de92143f3e..e9f3834d7b 100644 --- a/internal/httpclient/client/api/get_version_responses.go +++ b/internal/httpclient/client/api/get_version_responses.go @@ -39,8 +39,7 @@ func NewGetVersionOK() *GetVersionOK { return &GetVersionOK{} } -/* - GetVersionOK describes a response with status code 200, with default header values. +/* GetVersionOK describes a response with status code 200, with default header values. version */ diff --git a/internal/httpclient/client/api/get_well_known_json_web_keys_parameters.go b/internal/httpclient/client/api/get_well_known_json_web_keys_parameters.go index eb69470d96..774e913633 100644 --- a/internal/httpclient/client/api/get_well_known_json_web_keys_parameters.go +++ b/internal/httpclient/client/api/get_well_known_json_web_keys_parameters.go @@ -52,12 +52,10 @@ func NewGetWellKnownJSONWebKeysParamsWithHTTPClient(client *http.Client) *GetWel } } -/* -GetWellKnownJSONWebKeysParams contains all the parameters to send to the API endpoint +/* GetWellKnownJSONWebKeysParams contains all the parameters to send to the API endpoint + for the get well known JSON web keys operation. - for the get well known JSON web keys operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type GetWellKnownJSONWebKeysParams struct { timeout time.Duration diff --git a/internal/httpclient/client/api/get_well_known_json_web_keys_responses.go b/internal/httpclient/client/api/get_well_known_json_web_keys_responses.go index a50ad00962..cfa2487e0b 100644 --- a/internal/httpclient/client/api/get_well_known_json_web_keys_responses.go +++ b/internal/httpclient/client/api/get_well_known_json_web_keys_responses.go @@ -45,8 +45,7 @@ func NewGetWellKnownJSONWebKeysOK() *GetWellKnownJSONWebKeysOK { return &GetWellKnownJSONWebKeysOK{} } -/* - GetWellKnownJSONWebKeysOK describes a response with status code 200, with default header values. +/* GetWellKnownJSONWebKeysOK describes a response with status code 200, with default header values. jsonWebKeySet */ @@ -108,8 +107,7 @@ func NewGetWellKnownJSONWebKeysInternalServerError() *GetWellKnownJSONWebKeysInt return &GetWellKnownJSONWebKeysInternalServerError{} } -/* - GetWellKnownJSONWebKeysInternalServerError describes a response with status code 500, with default header values. +/* GetWellKnownJSONWebKeysInternalServerError describes a response with status code 500, with default header values. genericError */ diff --git a/internal/httpclient/client/api/is_instance_alive_parameters.go b/internal/httpclient/client/api/is_instance_alive_parameters.go index 0718f0f274..78943c489f 100644 --- a/internal/httpclient/client/api/is_instance_alive_parameters.go +++ b/internal/httpclient/client/api/is_instance_alive_parameters.go @@ -52,12 +52,10 @@ func NewIsInstanceAliveParamsWithHTTPClient(client *http.Client) *IsInstanceAliv } } -/* -IsInstanceAliveParams contains all the parameters to send to the API endpoint +/* IsInstanceAliveParams contains all the parameters to send to the API endpoint + for the is instance alive operation. - for the is instance alive operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type IsInstanceAliveParams struct { timeout time.Duration diff --git a/internal/httpclient/client/api/is_instance_alive_responses.go b/internal/httpclient/client/api/is_instance_alive_responses.go index 5ceea9faa3..3502acf7a2 100644 --- a/internal/httpclient/client/api/is_instance_alive_responses.go +++ b/internal/httpclient/client/api/is_instance_alive_responses.go @@ -45,8 +45,7 @@ func NewIsInstanceAliveOK() *IsInstanceAliveOK { return &IsInstanceAliveOK{} } -/* - IsInstanceAliveOK describes a response with status code 200, with default header values. +/* IsInstanceAliveOK describes a response with status code 200, with default header values. healthStatus */ @@ -108,8 +107,7 @@ func NewIsInstanceAliveInternalServerError() *IsInstanceAliveInternalServerError return &IsInstanceAliveInternalServerError{} } -/* - IsInstanceAliveInternalServerError describes a response with status code 500, with default header values. +/* IsInstanceAliveInternalServerError describes a response with status code 500, with default header values. genericError */ diff --git a/internal/httpclient/client/api/is_instance_ready_parameters.go b/internal/httpclient/client/api/is_instance_ready_parameters.go index 459fac0ff0..bf3a8a9b34 100644 --- a/internal/httpclient/client/api/is_instance_ready_parameters.go +++ b/internal/httpclient/client/api/is_instance_ready_parameters.go @@ -52,12 +52,10 @@ func NewIsInstanceReadyParamsWithHTTPClient(client *http.Client) *IsInstanceRead } } -/* -IsInstanceReadyParams contains all the parameters to send to the API endpoint +/* IsInstanceReadyParams contains all the parameters to send to the API endpoint + for the is instance ready operation. - for the is instance ready operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type IsInstanceReadyParams struct { timeout time.Duration diff --git a/internal/httpclient/client/api/is_instance_ready_responses.go b/internal/httpclient/client/api/is_instance_ready_responses.go index 5adb780477..d5633c3312 100644 --- a/internal/httpclient/client/api/is_instance_ready_responses.go +++ b/internal/httpclient/client/api/is_instance_ready_responses.go @@ -45,8 +45,7 @@ func NewIsInstanceReadyOK() *IsInstanceReadyOK { return &IsInstanceReadyOK{} } -/* - IsInstanceReadyOK describes a response with status code 200, with default header values. +/* IsInstanceReadyOK describes a response with status code 200, with default header values. healthStatus */ @@ -108,8 +107,7 @@ func NewIsInstanceReadyServiceUnavailable() *IsInstanceReadyServiceUnavailable { return &IsInstanceReadyServiceUnavailable{} } -/* - IsInstanceReadyServiceUnavailable describes a response with status code 503, with default header values. +/* IsInstanceReadyServiceUnavailable describes a response with status code 503, with default header values. healthNotReadyStatus */ diff --git a/internal/httpclient/client/api/list_rules_parameters.go b/internal/httpclient/client/api/list_rules_parameters.go index 3bf4624d07..c9dfe18d4e 100644 --- a/internal/httpclient/client/api/list_rules_parameters.go +++ b/internal/httpclient/client/api/list_rules_parameters.go @@ -53,12 +53,10 @@ func NewListRulesParamsWithHTTPClient(client *http.Client) *ListRulesParams { } } -/* -ListRulesParams contains all the parameters to send to the API endpoint +/* ListRulesParams contains all the parameters to send to the API endpoint + for the list rules operation. - for the list rules operation. - - Typically these are written to a http.Request. + Typically these are written to a http.Request. */ type ListRulesParams struct { diff --git a/internal/httpclient/client/api/list_rules_responses.go b/internal/httpclient/client/api/list_rules_responses.go index 1187992bd3..8918859d7b 100644 --- a/internal/httpclient/client/api/list_rules_responses.go +++ b/internal/httpclient/client/api/list_rules_responses.go @@ -45,8 +45,7 @@ func NewListRulesOK() *ListRulesOK { return &ListRulesOK{} } -/* - ListRulesOK describes a response with status code 200, with default header values. +/* ListRulesOK describes a response with status code 200, with default header values. A list of rules */ @@ -106,8 +105,7 @@ func NewListRulesInternalServerError() *ListRulesInternalServerError { return &ListRulesInternalServerError{} } -/* - ListRulesInternalServerError describes a response with status code 500, with default header values. +/* ListRulesInternalServerError describes a response with status code 500, with default header values. genericError */