diff --git a/client.yml b/client.yml index 662e998..f0c991a 100644 --- a/client.yml +++ b/client.yml @@ -15,7 +15,7 @@ info: license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html - version: 0.26.33 + version: 0.26.34 host: demo.ziti.dev basePath: /edge/client/v1 paths: @@ -2399,25 +2399,6 @@ paths: meta: apiEnrollmentVersion: 0.0.1 apiVersion: 0.0.1 - "401": - description: The supplied session does not have the correct access rights - to request this resource - schema: - $ref: '#/definitions/apiErrorEnvelope' - examples: - application/json: - error: - args: - urlVars: {} - cause: "" - causeMessage: "" - code: UNAUTHORIZED - message: The request could not be completed. The session is not authorized - or the credentials are invalid - requestId: 0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f - meta: - apiEnrollmentVersion: 0.0.1 - apiVersion: 0.0.1 "429": description: The resource requested is rate limited and the rate limit has been exceeded diff --git a/management.yml b/management.yml index 4ebae87..1b226f3 100644 --- a/management.yml +++ b/management.yml @@ -15,7 +15,7 @@ info: license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html - version: 0.26.33 + version: 0.26.34 host: demo.ziti.dev basePath: /edge/management/v1 paths: @@ -10146,25 +10146,6 @@ paths: meta: apiEnrollmentVersion: 0.0.1 apiVersion: 0.0.1 - "401": - description: The supplied session does not have the correct access rights - to request this resource - schema: - $ref: '#/definitions/apiErrorEnvelope' - examples: - application/json: - error: - args: - urlVars: {} - cause: "" - causeMessage: "" - code: UNAUTHORIZED - message: The request could not be completed. The session is not authorized - or the credentials are invalid - requestId: 0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f - meta: - apiEnrollmentVersion: 0.0.1 - apiVersion: 0.0.1 "429": description: The resource requested is rate limited and the rate limit has been exceeded diff --git a/rest_client_api_client/enrollment/list_network_j_w_ts_responses.go b/rest_client_api_client/enrollment/list_network_j_w_ts_responses.go index efb8523..1beee10 100644 --- a/rest_client_api_client/enrollment/list_network_j_w_ts_responses.go +++ b/rest_client_api_client/enrollment/list_network_j_w_ts_responses.go @@ -59,12 +59,6 @@ func (o *ListNetworkJWTsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return nil, result - case 401: - result := NewListNetworkJWTsUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result case 429: result := NewListNetworkJWTsTooManyRequests() if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -140,38 +134,6 @@ func (o *ListNetworkJWTsBadRequest) readResponse(response runtime.ClientResponse return nil } -// NewListNetworkJWTsUnauthorized creates a ListNetworkJWTsUnauthorized with default headers values -func NewListNetworkJWTsUnauthorized() *ListNetworkJWTsUnauthorized { - return &ListNetworkJWTsUnauthorized{} -} - -/* ListNetworkJWTsUnauthorized describes a response with status code 401, with default header values. - -The supplied session does not have the correct access rights to request this resource -*/ -type ListNetworkJWTsUnauthorized struct { - Payload *rest_model.APIErrorEnvelope -} - -func (o *ListNetworkJWTsUnauthorized) Error() string { - return fmt.Sprintf("[GET /network-jwts][%d] listNetworkJWTsUnauthorized %+v", 401, o.Payload) -} -func (o *ListNetworkJWTsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope { - return o.Payload -} - -func (o *ListNetworkJWTsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(rest_model.APIErrorEnvelope) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - // NewListNetworkJWTsTooManyRequests creates a ListNetworkJWTsTooManyRequests with default headers values func NewListNetworkJWTsTooManyRequests() *ListNetworkJWTsTooManyRequests { return &ListNetworkJWTsTooManyRequests{} diff --git a/rest_client_api_server/doc.go b/rest_client_api_server/doc.go index 239385a..238fcc5 100644 --- a/rest_client_api_server/doc.go +++ b/rest_client_api_server/doc.go @@ -30,7 +30,7 @@ // https // Host: demo.ziti.dev // BasePath: /edge/client/v1 -// Version: 0.26.33 +// Version: 0.26.34 // License: Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0.html // Contact: OpenZiti https://openziti.discourse.group // diff --git a/rest_client_api_server/embedded_spec.go b/rest_client_api_server/embedded_spec.go index 0362ef8..a506028 100644 --- a/rest_client_api_server/embedded_spec.go +++ b/rest_client_api_server/embedded_spec.go @@ -64,7 +64,7 @@ func init() { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "0.26.33" + "version": "0.26.34" }, "host": "demo.ziti.dev", "basePath": "/edge/client/v1", @@ -3252,30 +3252,6 @@ func init() { } } }, - "401": { - "description": "The supplied session does not have the correct access rights to request this resource", - "schema": { - "$ref": "#/definitions/apiErrorEnvelope" - }, - "examples": { - "application/json": { - "error": { - "args": { - "urlVars": {} - }, - "cause": "", - "causeMessage": "", - "code": "UNAUTHORIZED", - "message": "The request could not be completed. The session is not authorized or the credentials are invalid", - "requestId": "0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f" - }, - "meta": { - "apiEnrollmentVersion": "0.0.1", - "apiVersion": "0.0.1" - } - } - } - }, "429": { "description": "The resource requested is rate limited and the rate limit has been exceeded", "schema": { @@ -7837,7 +7813,7 @@ func init() { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "0.26.33" + "version": "0.26.34" }, "host": "demo.ziti.dev", "basePath": "/edge/client/v1", @@ -11025,30 +11001,6 @@ func init() { } } }, - "401": { - "description": "The supplied session does not have the correct access rights to request this resource", - "schema": { - "$ref": "#/definitions/apiErrorEnvelope" - }, - "examples": { - "application/json": { - "error": { - "args": { - "urlVars": {} - }, - "cause": "", - "causeMessage": "", - "code": "UNAUTHORIZED", - "message": "The request could not be completed. The session is not authorized or the credentials are invalid", - "requestId": "0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f" - }, - "meta": { - "apiEnrollmentVersion": "0.0.1", - "apiVersion": "0.0.1" - } - } - } - }, "429": { "description": "The resource requested is rate limited and the rate limit has been exceeded", "schema": { diff --git a/rest_client_api_server/operations/enrollment/list_network_j_w_ts_responses.go b/rest_client_api_server/operations/enrollment/list_network_j_w_ts_responses.go index e61e850..e57bb78 100644 --- a/rest_client_api_server/operations/enrollment/list_network_j_w_ts_responses.go +++ b/rest_client_api_server/operations/enrollment/list_network_j_w_ts_responses.go @@ -125,50 +125,6 @@ func (o *ListNetworkJWTsBadRequest) WriteResponse(rw http.ResponseWriter, produc } } -// ListNetworkJWTsUnauthorizedCode is the HTTP code returned for type ListNetworkJWTsUnauthorized -const ListNetworkJWTsUnauthorizedCode int = 401 - -/*ListNetworkJWTsUnauthorized The supplied session does not have the correct access rights to request this resource - -swagger:response listNetworkJWTsUnauthorized -*/ -type ListNetworkJWTsUnauthorized struct { - - /* - In: Body - */ - Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` -} - -// NewListNetworkJWTsUnauthorized creates ListNetworkJWTsUnauthorized with default headers values -func NewListNetworkJWTsUnauthorized() *ListNetworkJWTsUnauthorized { - - return &ListNetworkJWTsUnauthorized{} -} - -// WithPayload adds the payload to the list network j w ts unauthorized response -func (o *ListNetworkJWTsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListNetworkJWTsUnauthorized { - o.Payload = payload - return o -} - -// SetPayload sets the payload to the list network j w ts unauthorized response -func (o *ListNetworkJWTsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope) { - o.Payload = payload -} - -// WriteResponse to the client -func (o *ListNetworkJWTsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { - - rw.WriteHeader(401) - if o.Payload != nil { - payload := o.Payload - if err := producer.Produce(rw, payload); err != nil { - panic(err) // let the recovery middleware deal with this - } - } -} - // ListNetworkJWTsTooManyRequestsCode is the HTTP code returned for type ListNetworkJWTsTooManyRequests const ListNetworkJWTsTooManyRequestsCode int = 429 diff --git a/rest_management_api_client/enrollment/list_network_j_w_ts_responses.go b/rest_management_api_client/enrollment/list_network_j_w_ts_responses.go index efb8523..1beee10 100644 --- a/rest_management_api_client/enrollment/list_network_j_w_ts_responses.go +++ b/rest_management_api_client/enrollment/list_network_j_w_ts_responses.go @@ -59,12 +59,6 @@ func (o *ListNetworkJWTsReader) ReadResponse(response runtime.ClientResponse, co return nil, err } return nil, result - case 401: - result := NewListNetworkJWTsUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result case 429: result := NewListNetworkJWTsTooManyRequests() if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -140,38 +134,6 @@ func (o *ListNetworkJWTsBadRequest) readResponse(response runtime.ClientResponse return nil } -// NewListNetworkJWTsUnauthorized creates a ListNetworkJWTsUnauthorized with default headers values -func NewListNetworkJWTsUnauthorized() *ListNetworkJWTsUnauthorized { - return &ListNetworkJWTsUnauthorized{} -} - -/* ListNetworkJWTsUnauthorized describes a response with status code 401, with default header values. - -The supplied session does not have the correct access rights to request this resource -*/ -type ListNetworkJWTsUnauthorized struct { - Payload *rest_model.APIErrorEnvelope -} - -func (o *ListNetworkJWTsUnauthorized) Error() string { - return fmt.Sprintf("[GET /network-jwts][%d] listNetworkJWTsUnauthorized %+v", 401, o.Payload) -} -func (o *ListNetworkJWTsUnauthorized) GetPayload() *rest_model.APIErrorEnvelope { - return o.Payload -} - -func (o *ListNetworkJWTsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(rest_model.APIErrorEnvelope) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - // NewListNetworkJWTsTooManyRequests creates a ListNetworkJWTsTooManyRequests with default headers values func NewListNetworkJWTsTooManyRequests() *ListNetworkJWTsTooManyRequests { return &ListNetworkJWTsTooManyRequests{} diff --git a/rest_management_api_server/doc.go b/rest_management_api_server/doc.go index 89b07cd..354fb72 100644 --- a/rest_management_api_server/doc.go +++ b/rest_management_api_server/doc.go @@ -30,7 +30,7 @@ // https // Host: demo.ziti.dev // BasePath: /edge/management/v1 -// Version: 0.26.33 +// Version: 0.26.34 // License: Apache 2.0 https://www.apache.org/licenses/LICENSE-2.0.html // Contact: OpenZiti https://openziti.discourse.group // diff --git a/rest_management_api_server/embedded_spec.go b/rest_management_api_server/embedded_spec.go index eca0f72..d3180dd 100644 --- a/rest_management_api_server/embedded_spec.go +++ b/rest_management_api_server/embedded_spec.go @@ -64,7 +64,7 @@ func init() { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "0.26.33" + "version": "0.26.34" }, "host": "demo.ziti.dev", "basePath": "/edge/management/v1", @@ -13987,30 +13987,6 @@ func init() { } } }, - "401": { - "description": "The supplied session does not have the correct access rights to request this resource", - "schema": { - "$ref": "#/definitions/apiErrorEnvelope" - }, - "examples": { - "application/json": { - "error": { - "args": { - "urlVars": {} - }, - "cause": "", - "causeMessage": "", - "code": "UNAUTHORIZED", - "message": "The request could not be completed. The session is not authorized or the credentials are invalid", - "requestId": "0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f" - }, - "meta": { - "apiEnrollmentVersion": "0.0.1", - "apiVersion": "0.0.1" - } - } - } - }, "429": { "description": "The resource requested is rate limited and the rate limit has been exceeded", "schema": { @@ -28682,7 +28658,7 @@ func init() { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "0.26.33" + "version": "0.26.34" }, "host": "demo.ziti.dev", "basePath": "/edge/management/v1", @@ -42605,30 +42581,6 @@ func init() { } } }, - "401": { - "description": "The supplied session does not have the correct access rights to request this resource", - "schema": { - "$ref": "#/definitions/apiErrorEnvelope" - }, - "examples": { - "application/json": { - "error": { - "args": { - "urlVars": {} - }, - "cause": "", - "causeMessage": "", - "code": "UNAUTHORIZED", - "message": "The request could not be completed. The session is not authorized or the credentials are invalid", - "requestId": "0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f" - }, - "meta": { - "apiEnrollmentVersion": "0.0.1", - "apiVersion": "0.0.1" - } - } - } - }, "429": { "description": "The resource requested is rate limited and the rate limit has been exceeded", "schema": { diff --git a/rest_management_api_server/operations/enrollment/list_network_j_w_ts_responses.go b/rest_management_api_server/operations/enrollment/list_network_j_w_ts_responses.go index e61e850..e57bb78 100644 --- a/rest_management_api_server/operations/enrollment/list_network_j_w_ts_responses.go +++ b/rest_management_api_server/operations/enrollment/list_network_j_w_ts_responses.go @@ -125,50 +125,6 @@ func (o *ListNetworkJWTsBadRequest) WriteResponse(rw http.ResponseWriter, produc } } -// ListNetworkJWTsUnauthorizedCode is the HTTP code returned for type ListNetworkJWTsUnauthorized -const ListNetworkJWTsUnauthorizedCode int = 401 - -/*ListNetworkJWTsUnauthorized The supplied session does not have the correct access rights to request this resource - -swagger:response listNetworkJWTsUnauthorized -*/ -type ListNetworkJWTsUnauthorized struct { - - /* - In: Body - */ - Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"` -} - -// NewListNetworkJWTsUnauthorized creates ListNetworkJWTsUnauthorized with default headers values -func NewListNetworkJWTsUnauthorized() *ListNetworkJWTsUnauthorized { - - return &ListNetworkJWTsUnauthorized{} -} - -// WithPayload adds the payload to the list network j w ts unauthorized response -func (o *ListNetworkJWTsUnauthorized) WithPayload(payload *rest_model.APIErrorEnvelope) *ListNetworkJWTsUnauthorized { - o.Payload = payload - return o -} - -// SetPayload sets the payload to the list network j w ts unauthorized response -func (o *ListNetworkJWTsUnauthorized) SetPayload(payload *rest_model.APIErrorEnvelope) { - o.Payload = payload -} - -// WriteResponse to the client -func (o *ListNetworkJWTsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { - - rw.WriteHeader(401) - if o.Payload != nil { - payload := o.Payload - if err := producer.Produce(rw, payload); err != nil { - panic(err) // let the recovery middleware deal with this - } - } -} - // ListNetworkJWTsTooManyRequestsCode is the HTTP code returned for type ListNetworkJWTsTooManyRequests const ListNetworkJWTsTooManyRequestsCode int = 429 diff --git a/source/client.yml b/source/client.yml index a6c953e..695c52f 100644 --- a/source/client.yml +++ b/source/client.yml @@ -1,7 +1,7 @@ --- swagger: '2.0' info: - version: 0.26.33 + version: 0.26.34 title: Ziti Edge Client description: OpenZiti Edge Client API contact: diff --git a/source/management.yml b/source/management.yml index d27d627..8e42fbf 100644 --- a/source/management.yml +++ b/source/management.yml @@ -1,7 +1,7 @@ --- swagger: '2.0' info: - version: 0.26.33 + version: 0.26.34 title: Ziti Edge Management description: OpenZiti Edge Management API contact: diff --git a/source/shared/network-jwt.yml b/source/shared/network-jwt.yml index 13950bc..42fd956 100644 --- a/source/shared/network-jwt.yml +++ b/source/shared/network-jwt.yml @@ -10,8 +10,6 @@ paths: responses: '200': $ref: '#/responses/listNetworkJWTs' - '401': - $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse' '400': $ref: '../shared/standard-responses.yml#/responses/badRequestResponse' '429':