From d45a311e0c459db7a65ec161f14ad6b90c180663 Mon Sep 17 00:00:00 2001 From: metal-stack Date: Tue, 9 Jan 2024 14:22:23 +0000 Subject: [PATCH 1/2] Bump metal-api to version v0.26.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index eaf8bae..332a47b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.26.0 +v0.26.1 From b37cfb50b198129d7e734b6c86d371c3e46f3b7e Mon Sep 17 00:00:00 2001 From: auto-build Date: Tue, 9 Jan 2024 14:23:52 +0000 Subject: [PATCH 2/2] Bump to version v0.26.1 --- .../size/list_size_reservations_parameters.go | 22 +++++++++++++++++++ metal-api.json | 12 +++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/api/client/size/list_size_reservations_parameters.go b/api/client/size/list_size_reservations_parameters.go index 4bc31a9..29ae311 100644 --- a/api/client/size/list_size_reservations_parameters.go +++ b/api/client/size/list_size_reservations_parameters.go @@ -14,6 +14,8 @@ import ( "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" + + "github.com/metal-stack/metal-go/api/models" ) // NewListSizeReservationsParams creates a new ListSizeReservationsParams object, @@ -60,6 +62,10 @@ ListSizeReservationsParams contains all the parameters to send to the API endpoi Typically these are written to a http.Request. */ type ListSizeReservationsParams struct { + + // Body. + Body models.V1EmptyBody + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -113,6 +119,17 @@ func (o *ListSizeReservationsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } +// WithBody adds the body to the list size reservations params +func (o *ListSizeReservationsParams) WithBody(body models.V1EmptyBody) *ListSizeReservationsParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the list size reservations params +func (o *ListSizeReservationsParams) SetBody(body models.V1EmptyBody) { + o.Body = body +} + // WriteToRequest writes these params to a swagger request func (o *ListSizeReservationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -120,6 +137,11 @@ func (o *ListSizeReservationsParams) WriteToRequest(r runtime.ClientRequest, reg return err } var res []error + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } if len(res) > 0 { return errors.CompositeValidationError(res...) diff --git a/metal-api.json b/metal-api.json index ba675b2..7da76a3 100644 --- a/metal-api.json +++ b/metal-api.json @@ -5296,7 +5296,7 @@ "url": "https://www.gnu.org/licenses/agpl-3.0.de.html" }, "title": "metal-api", - "version": "v0.26.0" + "version": "v0.26.1" }, "paths": { "/v1/audit/find": { @@ -8940,6 +8940,16 @@ "application/json" ], "operationId": "listSizeReservations", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.EmptyBody" + } + } + ], "produces": [ "application/json" ],