From bb1ba3f72e4062163e48b3919a09c6c3b74925a6 Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 21 Sep 2026 03:00:59 +0000 Subject: [PATCH] chore(update): bump openapi schema (2026-09-21) --- client_mock.go | 39 +++++++++++++------ handler/kafkatopic/kafkatopic.go | 8 +++- .../organizationprojects.go | 11 ++++-- 3 files changed, 41 insertions(+), 17 deletions(-) diff --git a/client_mock.go b/client_mock.go index 487922c..dbe07c8 100644 --- a/client_mock.go +++ b/client_mock.go @@ -8145,8 +8145,14 @@ func (_c *MockClient_OrganizationProjectsGet_Call) RunAndReturn(run func(ctx con } // OrganizationProjectsList provides a mock function for the type MockClient -func (_mock *MockClient) OrganizationProjectsList(ctx context.Context, organizationId string) (*organizationprojects.OrganizationProjectsListOut, error) { - ret := _mock.Called(ctx, organizationId) +func (_mock *MockClient) OrganizationProjectsList(ctx context.Context, organizationId string, query ...[2]string) (*organizationprojects.OrganizationProjectsListOut, error) { + var tmpRet mock.Arguments + if len(query) > 0 { + tmpRet = _mock.Called(ctx, organizationId, query) + } else { + tmpRet = _mock.Called(ctx, organizationId) + } + ret := tmpRet if len(ret) == 0 { panic("no return value specified for OrganizationProjectsList") @@ -8154,18 +8160,18 @@ func (_mock *MockClient) OrganizationProjectsList(ctx context.Context, organizat var r0 *organizationprojects.OrganizationProjectsListOut var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*organizationprojects.OrganizationProjectsListOut, error)); ok { - return returnFunc(ctx, organizationId) + if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...[2]string) (*organizationprojects.OrganizationProjectsListOut, error)); ok { + return returnFunc(ctx, organizationId, query...) } - if returnFunc, ok := ret.Get(0).(func(context.Context, string) *organizationprojects.OrganizationProjectsListOut); ok { - r0 = returnFunc(ctx, organizationId) + if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...[2]string) *organizationprojects.OrganizationProjectsListOut); ok { + r0 = returnFunc(ctx, organizationId, query...) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*organizationprojects.OrganizationProjectsListOut) } } - if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { - r1 = returnFunc(ctx, organizationId) + if returnFunc, ok := ret.Get(1).(func(context.Context, string, ...[2]string) error); ok { + r1 = returnFunc(ctx, organizationId, query...) } else { r1 = ret.Error(1) } @@ -8180,11 +8186,13 @@ type MockClient_OrganizationProjectsList_Call struct { // OrganizationProjectsList is a helper method to define mock.On call // - ctx context.Context // - organizationId string -func (_e *MockClient_Expecter) OrganizationProjectsList(ctx interface{}, organizationId interface{}) *MockClient_OrganizationProjectsList_Call { - return &MockClient_OrganizationProjectsList_Call{Call: _e.mock.On("OrganizationProjectsList", ctx, organizationId)} +// - query ...[2]string +func (_e *MockClient_Expecter) OrganizationProjectsList(ctx interface{}, organizationId interface{}, query ...interface{}) *MockClient_OrganizationProjectsList_Call { + return &MockClient_OrganizationProjectsList_Call{Call: _e.mock.On("OrganizationProjectsList", + append([]interface{}{ctx, organizationId}, query...)...)} } -func (_c *MockClient_OrganizationProjectsList_Call) Run(run func(ctx context.Context, organizationId string)) *MockClient_OrganizationProjectsList_Call { +func (_c *MockClient_OrganizationProjectsList_Call) Run(run func(ctx context.Context, organizationId string, query ...[2]string)) *MockClient_OrganizationProjectsList_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { @@ -8194,9 +8202,16 @@ func (_c *MockClient_OrganizationProjectsList_Call) Run(run func(ctx context.Con if args[1] != nil { arg1 = args[1].(string) } + var arg2 [][2]string + var variadicArgs [][2]string + if len(args) > 2 { + variadicArgs = args[2].([][2]string) + } + arg2 = variadicArgs run( arg0, arg1, + arg2..., ) }) return _c @@ -8207,7 +8222,7 @@ func (_c *MockClient_OrganizationProjectsList_Call) Return(organizationProjectsL return _c } -func (_c *MockClient_OrganizationProjectsList_Call) RunAndReturn(run func(ctx context.Context, organizationId string) (*organizationprojects.OrganizationProjectsListOut, error)) *MockClient_OrganizationProjectsList_Call { +func (_c *MockClient_OrganizationProjectsList_Call) RunAndReturn(run func(ctx context.Context, organizationId string, query ...[2]string) (*organizationprojects.OrganizationProjectsListOut, error)) *MockClient_OrganizationProjectsList_Call { _c.Call.Return(run) return _c } diff --git a/handler/kafkatopic/kafkatopic.go b/handler/kafkatopic/kafkatopic.go index 5903dbd..da0583d 100644 --- a/handler/kafkatopic/kafkatopic.go +++ b/handler/kafkatopic/kafkatopic.go @@ -336,11 +336,13 @@ const ( ConfigMessageFormatVersionType41Iv0 ConfigMessageFormatVersionType = "4.1-IV0" ConfigMessageFormatVersionType42 ConfigMessageFormatVersionType = "4.2" ConfigMessageFormatVersionType42Iv0 ConfigMessageFormatVersionType = "4.2-IV0" + ConfigMessageFormatVersionType43 ConfigMessageFormatVersionType = "4.3" + ConfigMessageFormatVersionType43Iv0 ConfigMessageFormatVersionType = "4.3-IV0" ConfigMessageFormatVersionTypeNone ConfigMessageFormatVersionType = "None" ) func ConfigMessageFormatVersionTypeChoices() []string { - return []string{"0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1", "4.0", "4.0-IV0", "4.1", "4.1-IV0", "4.2", "4.2-IV0", "None"} + return []string{"0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1", "4.0", "4.0-IV0", "4.1", "4.1-IV0", "4.2", "4.2-IV0", "4.3", "4.3-IV0", "None"} } // ConfigOut Kafka topic configuration @@ -615,10 +617,12 @@ const ( MessageFormatVersionType41Iv0 MessageFormatVersionType = "4.1-IV0" MessageFormatVersionType42 MessageFormatVersionType = "4.2" MessageFormatVersionType42Iv0 MessageFormatVersionType = "4.2-IV0" + MessageFormatVersionType43 MessageFormatVersionType = "4.3" + MessageFormatVersionType43Iv0 MessageFormatVersionType = "4.3-IV0" ) func MessageFormatVersionTypeChoices() []string { - return []string{"0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1", "4.0", "4.0-IV0", "4.1", "4.1-IV0", "4.2", "4.2-IV0"} + return []string{"0.10.0", "0.10.0-IV0", "0.10.0-IV1", "0.10.1", "0.10.1-IV0", "0.10.1-IV1", "0.10.1-IV2", "0.10.2", "0.10.2-IV0", "0.11.0", "0.11.0-IV0", "0.11.0-IV1", "0.11.0-IV2", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "1.0", "1.0-IV0", "1.1", "1.1-IV0", "2.0", "2.0-IV0", "2.0-IV1", "2.1", "2.1-IV0", "2.1-IV1", "2.1-IV2", "2.2", "2.2-IV0", "2.2-IV1", "2.3", "2.3-IV0", "2.3-IV1", "2.4", "2.4-IV0", "2.4-IV1", "2.5", "2.5-IV0", "2.6", "2.6-IV0", "2.7", "2.7-IV0", "2.7-IV1", "2.7-IV2", "2.8", "2.8-IV0", "2.8-IV1", "3.0", "3.0-IV0", "3.0-IV1", "3.1", "3.1-IV0", "3.2", "3.2-IV0", "3.3", "3.3-IV0", "3.3-IV1", "3.3-IV2", "3.3-IV3", "3.4", "3.4-IV0", "3.5", "3.5-IV0", "3.5-IV1", "3.5-IV2", "3.6", "3.6-IV0", "3.6-IV1", "3.6-IV2", "3.7", "3.7-IV0", "3.7-IV1", "3.7-IV2", "3.7-IV3", "3.7-IV4", "3.8", "3.8-IV0", "3.9", "3.9-IV0", "3.9-IV1", "4.0", "4.0-IV0", "4.1", "4.1-IV0", "4.2", "4.2-IV0", "4.3", "4.3-IV0"} } type MessageOut struct { diff --git a/handler/organizationprojects/organizationprojects.go b/handler/organizationprojects/organizationprojects.go index 42918b0..3fba862 100644 --- a/handler/organizationprojects/organizationprojects.go +++ b/handler/organizationprojects/organizationprojects.go @@ -30,7 +30,7 @@ type Handler interface { // OrganizationProjectsList list projects under the organization // GET /v1/organization/{organization_id}/projects // https://api.aiven.io/doc/#tag/Organizations/operation/OrganizationProjectsList - OrganizationProjectsList(ctx context.Context, organizationId string) (*OrganizationProjectsListOut, error) + OrganizationProjectsList(ctx context.Context, organizationId string, query ...[2]string) (*OrganizationProjectsListOut, error) // OrganizationProjectsUpdate update project under the organization // PATCH /v1/organization/{organization_id}/project/{project_id} @@ -83,9 +83,14 @@ func (h *OrganizationProjectsHandler) OrganizationProjectsGet(ctx context.Contex } return out, nil } -func (h *OrganizationProjectsHandler) OrganizationProjectsList(ctx context.Context, organizationId string) (*OrganizationProjectsListOut, error) { + +// OrganizationProjectsListBillingGroupId Restrict results to projects assigned to this billing group +func OrganizationProjectsListBillingGroupId(billingGroupId string) [2]string { + return [2]string{"billing_group_id", billingGroupId} +} +func (h *OrganizationProjectsHandler) OrganizationProjectsList(ctx context.Context, organizationId string, query ...[2]string) (*OrganizationProjectsListOut, error) { path := fmt.Sprintf("/v1/organization/%s/projects", url.PathEscape(organizationId)) - b, err := h.doer.Do(ctx, "OrganizationProjectsList", "GET", path, nil) + b, err := h.doer.Do(ctx, "OrganizationProjectsList", "GET", path, nil, query...) if err != nil { return nil, err }