diff --git a/.gitignore b/.gitignore index 5ff2759e..80a5673c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ node_modules/ # work .kind/ .work/ +.vscode/ # Crossplane package /package/crossplane.yaml diff --git a/apis/exoscale/v1/iam_types.go b/apis/exoscale/v1/iam_types.go index b241512f..f6ec0fcd 100644 --- a/apis/exoscale/v1/iam_types.go +++ b/apis/exoscale/v1/iam_types.go @@ -1,11 +1,12 @@ package v1 import ( + "reflect" + xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" - "reflect" ) const ( @@ -65,6 +66,9 @@ type IAMKeyObservation struct { // KeyID is the observed unique ID as generated by exoscale.com. KeyID string `json:"keyID,omitempty"` + // RoleID is the observed unique ID as generated by exoscale.com. + RoleID string `json:"roleID,omitempty"` + // KeyName is the observed key name as generated by exoscale.com. KeyName string `json:"keyName,omitempty"` diff --git a/go.mod b/go.mod index 854c4cb6..27cbca99 100644 --- a/go.mod +++ b/go.mod @@ -6,13 +6,13 @@ require ( github.com/ccremer/go-command-pipeline v0.20.0 github.com/crossplane/crossplane-runtime v0.18.0 github.com/crossplane/crossplane-tools v0.0.0-20220901191540-806c0b01097b - github.com/exoscale/egoscale v0.90.1 + github.com/exoscale/egoscale v0.100.1 github.com/go-logr/logr v1.2.3 github.com/go-logr/zapr v1.2.3 github.com/google/go-cmp v0.5.8 github.com/hashicorp/go-version v1.6.0 github.com/minio/minio-go/v7 v7.0.45 - github.com/stretchr/testify v1.8.0 + github.com/stretchr/testify v1.8.1 github.com/urfave/cli/v2 v2.19.2 github.com/vektra/mockery/v2 v2.14.1 go.uber.org/zap v1.23.0 @@ -88,7 +88,7 @@ require ( github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/viper v1.12.0 // indirect - github.com/stretchr/objx v0.4.0 // indirect + github.com/stretchr/objx v0.5.0 // indirect github.com/subosito/gotenv v1.4.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect go.uber.org/atomic v1.9.0 // indirect diff --git a/go.sum b/go.sum index cbdb8613..9fbe8b87 100644 --- a/go.sum +++ b/go.sum @@ -105,8 +105,8 @@ github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMi github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= github.com/evanphx/json-patch/v5 v5.6.0 h1:b91NhWfaz02IuVxO9faSllyAtNXHMPkC5J8sJCLunww= github.com/evanphx/json-patch/v5 v5.6.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= -github.com/exoscale/egoscale v0.90.1 h1:G/Uyz3Yjdvo3H2oOFS5DhnzEZARLh77IhN58xHHFOpI= -github.com/exoscale/egoscale v0.90.1/go.mod h1:NDhQbdGNKwnLVC2YGTB6ds9WIPw+V5ckvEEV8ho7pFE= +github.com/exoscale/egoscale v0.100.1 h1:iXsV1Ei7daqe/6FYSCSDyrFs1iUG1l1X9qNh2uMw6z0= +github.com/exoscale/egoscale v0.100.1/go.mod h1:BAb9p4rmyU+Wl400CJZO5270H2sXtdsZjLcm5xMKkz4= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0= @@ -406,8 +406,9 @@ github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiu github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0 h1:M2gUjqZET1qApGOWNSnZ49BAIMX4F/1plDv3+l31EJ4= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -416,8 +417,9 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= -github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/subosito/gotenv v1.4.0 h1:yAzM1+SmVcz5R4tXGsNMu1jUl2aOJXoiWUCEwwnGrvs= github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= diff --git a/internal/operatortest/egoscale.go b/internal/operatortest/egoscale.go index c5b67ddb..381c1d89 100644 --- a/internal/operatortest/egoscale.go +++ b/internal/operatortest/egoscale.go @@ -586,8 +586,8 @@ func (_m *ClientWithResponsesInterface) CreateAntiAffinityGroupWithResponse(ctx return r0, r1 } -// CreateDbaasIntegrationWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasIntegrationResponse, error) { +// CreateApiKeyWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateApiKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -597,12 +597,12 @@ func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithBodyWithRespon _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasIntegrationResponse); ok { + var r0 *oapi.CreateApiKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateApiKeyResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.CreateApiKeyResponse) } } @@ -616,8 +616,8 @@ func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithBodyWithRespon return r0, r1 } -// CreateDbaasIntegrationWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithResponse(ctx context.Context, body oapi.CreateDbaasIntegrationJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasIntegrationResponse, error) { +// CreateApiKeyWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateApiKeyWithResponse(ctx context.Context, body oapi.CreateApiKeyJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateApiKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -627,17 +627,17 @@ func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithResponse(ctx c _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasIntegrationResponse); ok { + var r0 *oapi.CreateApiKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateApiKeyJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateApiKeyResponse); ok { r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.CreateApiKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateApiKeyJSONRequestBody, ...oapi.RequestEditorFn) error); ok { r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) @@ -646,29 +646,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithResponse(ctx c return r0, r1 } -// CreateDbaasServiceKafkaWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceKafkaResponse, error) { +// CreateDbaasIntegrationWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasIntegrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, ctx, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceKafkaResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceKafkaResponse); ok { - r0 = rf(ctx, name, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasIntegrationResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceKafkaResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasIntegrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -676,29 +676,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithBodyWithRespo return r0, r1 } -// CreateDbaasServiceKafkaWithResponse provides a mock function with given fields: ctx, name, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceKafkaJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceKafkaResponse, error) { +// CreateDbaasIntegrationWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasIntegrationWithResponse(ctx context.Context, body oapi.CreateDbaasIntegrationJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasIntegrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, body) + _ca = append(_ca, ctx, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceKafkaResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceKafkaJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceKafkaResponse); ok { - r0 = rf(ctx, name, body, reqEditors...) + var r0 *oapi.CreateDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasIntegrationResponse); ok { + r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceKafkaResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasIntegrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceKafkaJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -706,8 +706,8 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithResponse(ctx return r0, r1 } -// CreateDbaasServiceMysqlWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceMysqlResponse, error) { +// CreateDbaasKafkaSchemaRegistryAclConfigWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaSchemaRegistryAclConfigWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -717,12 +717,12 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithBodyWithRespo _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceMysqlResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceMysqlResponse); ok { + var r0 *oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse); ok { r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceMysqlResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse) } } @@ -736,8 +736,8 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithBodyWithRespo return r0, r1 } -// CreateDbaasServiceMysqlWithResponse provides a mock function with given fields: ctx, name, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceMysqlJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceMysqlResponse, error) { +// CreateDbaasKafkaSchemaRegistryAclConfigWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaSchemaRegistryAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasKafkaSchemaRegistryAclConfigJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -747,17 +747,17 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithResponse(ctx _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceMysqlResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceMysqlJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceMysqlResponse); ok { + var r0 *oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaSchemaRegistryAclConfigJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse); ok { r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceMysqlResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaSchemaRegistryAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceMysqlJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaSchemaRegistryAclConfigJSONRequestBody, ...oapi.RequestEditorFn) error); ok { r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) @@ -766,8 +766,8 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithResponse(ctx return r0, r1 } -// CreateDbaasServiceOpensearchWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceOpensearchResponse, error) { +// CreateDbaasKafkaTopicAclConfigWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaTopicAclConfigWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaTopicAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -777,12 +777,12 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithBodyWith _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceOpensearchResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceOpensearchResponse); ok { + var r0 *oapi.CreateDbaasKafkaTopicAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaTopicAclConfigResponse); ok { r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceOpensearchResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaTopicAclConfigResponse) } } @@ -796,8 +796,8 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithBodyWith return r0, r1 } -// CreateDbaasServiceOpensearchWithResponse provides a mock function with given fields: ctx, name, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceOpensearchJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceOpensearchResponse, error) { +// CreateDbaasKafkaTopicAclConfigWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaTopicAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasKafkaTopicAclConfigJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaTopicAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -807,17 +807,17 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithResponse _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceOpensearchResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceOpensearchJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceOpensearchResponse); ok { + var r0 *oapi.CreateDbaasKafkaTopicAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaTopicAclConfigJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaTopicAclConfigResponse); ok { r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceOpensearchResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaTopicAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceOpensearchJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaTopicAclConfigJSONRequestBody, ...oapi.RequestEditorFn) error); ok { r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) @@ -826,29 +826,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithResponse return r0, r1 } -// CreateDbaasServicePgWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServicePgResponse, error) { +// CreateDbaasKafkaUserWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaUserWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServicePgResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServicePgResponse); ok { - r0 = rf(ctx, name, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasKafkaUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaUserResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServicePgResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaUserResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, contentType, body, reqEditors...) + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -856,29 +856,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithBodyWithResponse return r0, r1 } -// CreateDbaasServicePgWithResponse provides a mock function with given fields: ctx, name, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServicePgJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServicePgResponse, error) { +// CreateDbaasKafkaUserWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasKafkaUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, body oapi.CreateDbaasKafkaUserJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasKafkaUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, body) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServicePgResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServicePgJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServicePgResponse); ok { - r0 = rf(ctx, name, body, reqEditors...) + var r0 *oapi.CreateDbaasKafkaUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaUserJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasKafkaUserResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServicePgResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasKafkaUserResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServicePgJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasKafkaUserJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -886,29 +886,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithResponse(ctx con return r0, r1 } -// CreateDbaasServiceRedisWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceRedisResponse, error) { +// CreateDbaasMysqlUserWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasMysqlUserWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasMysqlUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceRedisResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceRedisResponse); ok { - r0 = rf(ctx, name, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasMysqlUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasMysqlUserResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceRedisResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasMysqlUserResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, contentType, body, reqEditors...) + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -916,29 +916,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithBodyWithRespo return r0, r1 } -// CreateDbaasServiceRedisWithResponse provides a mock function with given fields: ctx, name, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceRedisJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceRedisResponse, error) { +// CreateDbaasMysqlUserWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasMysqlUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, body oapi.CreateDbaasMysqlUserJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasMysqlUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name, body) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasServiceRedisResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceRedisJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceRedisResponse); ok { - r0 = rf(ctx, name, body, reqEditors...) + var r0 *oapi.CreateDbaasMysqlUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasMysqlUserJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasMysqlUserResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasServiceRedisResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasMysqlUserResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceRedisJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasMysqlUserJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -946,29 +946,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithResponse(ctx return r0, r1 } -// CreateDbaasTaskMigrationCheckWithBodyWithResponse provides a mock function with given fields: ctx, service, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithBodyWithResponse(ctx context.Context, service oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasTaskMigrationCheckResponse, error) { +// CreateDbaasOpensearchUserWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasOpensearchUserWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasOpensearchUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, service, contentType, body) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasTaskMigrationCheckResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasTaskMigrationCheckResponse); ok { - r0 = rf(ctx, service, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasOpensearchUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasOpensearchUserResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasTaskMigrationCheckResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasOpensearchUserResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, service, contentType, body, reqEditors...) + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -976,29 +976,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithBodyWit return r0, r1 } -// CreateDbaasTaskMigrationCheckWithResponse provides a mock function with given fields: ctx, service, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithResponse(ctx context.Context, service oapi.DbaasServiceName, body oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasTaskMigrationCheckResponse, error) { +// CreateDbaasOpensearchUserWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasOpensearchUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, body oapi.CreateDbaasOpensearchUserJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasOpensearchUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, service, body) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDbaasTaskMigrationCheckResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasTaskMigrationCheckResponse); ok { - r0 = rf(ctx, service, body, reqEditors...) + var r0 *oapi.CreateDbaasOpensearchUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasOpensearchUserJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasOpensearchUserResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDbaasTaskMigrationCheckResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasOpensearchUserResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, service, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasOpensearchUserJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1006,29 +1006,29 @@ func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithRespons return r0, r1 } -// CreateDnsDomainRecordWithBodyWithResponse provides a mock function with given fields: ctx, domainId, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithBodyWithResponse(ctx context.Context, domainId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainRecordResponse, error) { +// CreateDbaasPgConnectionPoolWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasPgConnectionPoolWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasPgConnectionPoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, domainId, contentType, body) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDnsDomainRecordResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainRecordResponse); ok { - r0 = rf(ctx, domainId, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasPgConnectionPoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasPgConnectionPoolResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDnsDomainRecordResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasPgConnectionPoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, domainId, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1036,29 +1036,29 @@ func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithBodyWithRespons return r0, r1 } -// CreateDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithResponse(ctx context.Context, domainId string, body oapi.CreateDnsDomainRecordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainRecordResponse, error) { +// CreateDbaasPgConnectionPoolWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasPgConnectionPoolWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, body oapi.CreateDbaasPgConnectionPoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasPgConnectionPoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, domainId, body) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDnsDomainRecordResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.CreateDnsDomainRecordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainRecordResponse); ok { - r0 = rf(ctx, domainId, body, reqEditors...) + var r0 *oapi.CreateDbaasPgConnectionPoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasPgConnectionPoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasPgConnectionPoolResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDnsDomainRecordResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasPgConnectionPoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.CreateDnsDomainRecordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, domainId, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasPgConnectionPoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1066,29 +1066,29 @@ func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithResponse(ctx co return r0, r1 } -// CreateDnsDomainWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDnsDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainResponse, error) { +// CreateDbaasPostgresUserWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasPostgresUserWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasPostgresUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDnsDomainResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasPostgresUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasPostgresUserResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDnsDomainResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasPostgresUserResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1096,29 +1096,29 @@ func (_m *ClientWithResponsesInterface) CreateDnsDomainWithBodyWithResponse(ctx return r0, r1 } -// CreateDnsDomainWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateDnsDomainWithResponse(ctx context.Context, body oapi.CreateDnsDomainJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainResponse, error) { +// CreateDbaasPostgresUserWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasPostgresUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, body oapi.CreateDbaasPostgresUserJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasPostgresUserResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateDnsDomainResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateDnsDomainJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.CreateDbaasPostgresUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasPostgresUserJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasPostgresUserResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateDnsDomainResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasPostgresUserResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateDnsDomainJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasPostgresUserJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1126,29 +1126,29 @@ func (_m *ClientWithResponsesInterface) CreateDnsDomainWithResponse(ctx context. return r0, r1 } -// CreateElasticIpWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateElasticIpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateElasticIpResponse, error) { +// CreateDbaasServiceGrafanaWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceGrafanaWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, name, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateElasticIpResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateElasticIpResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasServiceGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1156,29 +1156,29 @@ func (_m *ClientWithResponsesInterface) CreateElasticIpWithBodyWithResponse(ctx return r0, r1 } -// CreateElasticIpWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateElasticIpWithResponse(ctx context.Context, body oapi.CreateElasticIpJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateElasticIpResponse, error) { +// CreateDbaasServiceGrafanaWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceGrafanaWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceGrafanaJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, name, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateElasticIpJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateElasticIpResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.CreateDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceGrafanaJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateElasticIpResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasServiceGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateElasticIpJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceGrafanaJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1186,29 +1186,29 @@ func (_m *ClientWithResponsesInterface) CreateElasticIpWithResponse(ctx context. return r0, r1 } -// CreateInstancePoolWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateInstancePoolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstancePoolResponse, error) { +// CreateDbaasServiceKafkaWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceKafkaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, name, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateInstancePoolResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.CreateDbaasServiceKafkaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceKafkaResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateInstancePoolResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasServiceKafkaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1216,29 +1216,29 @@ func (_m *ClientWithResponsesInterface) CreateInstancePoolWithBodyWithResponse(c return r0, r1 } -// CreateInstancePoolWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateInstancePoolWithResponse(ctx context.Context, body oapi.CreateInstancePoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstancePoolResponse, error) { +// CreateDbaasServiceKafkaWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceKafkaWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceKafkaJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceKafkaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, name, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateInstancePoolResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.CreateDbaasServiceKafkaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceKafkaJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceKafkaResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateInstancePoolResponse) + r0 = ret.Get(0).(*oapi.CreateDbaasServiceKafkaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceKafkaJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1246,29 +1246,1919 @@ func (_m *ClientWithResponsesInterface) CreateInstancePoolWithResponse(ctx conte return r0, r1 } -// CreateInstanceWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstanceResponse, error) { +// CreateDbaasServiceMysqlWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceMysqlResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, name, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateInstanceResponse + var r0 *oapi.CreateDbaasServiceMysqlResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceMysqlResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceMysqlResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServiceMysqlWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceMysqlWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceMysqlJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceMysqlResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServiceMysqlResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceMysqlJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceMysqlResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceMysqlResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceMysqlJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServiceOpensearchWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceOpensearchResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServiceOpensearchResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceOpensearchResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceOpensearchResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServiceOpensearchWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceOpensearchWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceOpensearchJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceOpensearchResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServiceOpensearchResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceOpensearchJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceOpensearchResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceOpensearchResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceOpensearchJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServicePgWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServicePgResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServicePgResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServicePgResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServicePgResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServicePgWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServicePgWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServicePgJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServicePgResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServicePgResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServicePgJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServicePgResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServicePgResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServicePgJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServiceRedisWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceRedisResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServiceRedisResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceRedisResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceRedisResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasServiceRedisWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasServiceRedisWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.CreateDbaasServiceRedisJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasServiceRedisResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasServiceRedisResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceRedisJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasServiceRedisResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasServiceRedisResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasServiceRedisJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasTaskMigrationCheckWithBodyWithResponse provides a mock function with given fields: ctx, service, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithBodyWithResponse(ctx context.Context, service oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasTaskMigrationCheckResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, service, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasTaskMigrationCheckResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDbaasTaskMigrationCheckResponse); ok { + r0 = rf(ctx, service, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasTaskMigrationCheckResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, service, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDbaasTaskMigrationCheckWithResponse provides a mock function with given fields: ctx, service, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDbaasTaskMigrationCheckWithResponse(ctx context.Context, service oapi.DbaasServiceName, body oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDbaasTaskMigrationCheckResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, service, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDbaasTaskMigrationCheckResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDbaasTaskMigrationCheckResponse); ok { + r0 = rf(ctx, service, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDbaasTaskMigrationCheckResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.CreateDbaasTaskMigrationCheckJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, service, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDnsDomainRecordWithBodyWithResponse provides a mock function with given fields: ctx, domainId, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithBodyWithResponse(ctx context.Context, domainId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainRecordResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, domainId, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDnsDomainRecordResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainRecordResponse); ok { + r0 = rf(ctx, domainId, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDnsDomainRecordResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, domainId, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDnsDomainRecordWithResponse(ctx context.Context, domainId string, body oapi.CreateDnsDomainRecordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainRecordResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, domainId, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDnsDomainRecordResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.CreateDnsDomainRecordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainRecordResponse); ok { + r0 = rf(ctx, domainId, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDnsDomainRecordResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.CreateDnsDomainRecordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, domainId, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDnsDomainWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDnsDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDnsDomainResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDnsDomainResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDnsDomainWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateDnsDomainWithResponse(ctx context.Context, body oapi.CreateDnsDomainJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateDnsDomainResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateDnsDomainResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateDnsDomainJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateDnsDomainResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateDnsDomainResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateDnsDomainJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateElasticIpWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateElasticIpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateElasticIpResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateElasticIpResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateElasticIpResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateElasticIpWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateElasticIpWithResponse(ctx context.Context, body oapi.CreateElasticIpJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateElasticIpResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateElasticIpJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateElasticIpResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateElasticIpResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateElasticIpJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateIamRoleWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateIamRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateIamRoleResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateIamRoleResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateIamRoleResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateIamRoleWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateIamRoleWithResponse(ctx context.Context, body oapi.CreateIamRoleJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateIamRoleResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateIamRoleJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateIamRoleResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateIamRoleResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateIamRoleJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstancePoolWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateInstancePoolWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstancePoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateInstancePoolResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateInstancePoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstancePoolWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateInstancePoolWithResponse(ctx context.Context, body oapi.CreateInstancePoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstancePoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateInstancePoolResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateInstancePoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstanceWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstanceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateInstanceResponse if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateInstanceResponse); ok { r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateInstanceResponse) + r0 = ret.Get(0).(*oapi.CreateInstanceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateInstanceWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateInstanceWithResponse(ctx context.Context, body oapi.CreateInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstanceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateInstanceResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateInstanceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLoadBalancerWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateLoadBalancerResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateLoadBalancerResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateLoadBalancerResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateLoadBalancerResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLoadBalancerWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithResponse(ctx context.Context, body oapi.CreateLoadBalancerJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateLoadBalancerResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateLoadBalancerResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateLoadBalancerJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateLoadBalancerResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateLoadBalancerResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateLoadBalancerJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreatePrivateNetworkWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreatePrivateNetworkResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreatePrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreatePrivateNetworkResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreatePrivateNetworkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreatePrivateNetworkWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithResponse(ctx context.Context, body oapi.CreatePrivateNetworkJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreatePrivateNetworkResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreatePrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreatePrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreatePrivateNetworkResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreatePrivateNetworkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreatePrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSecurityGroupResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSecurityGroupWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithResponse(ctx context.Context, body oapi.CreateSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSecurityGroupResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSksClusterWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSksClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksClusterResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSksClusterResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSksClusterResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSksClusterResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSksClusterWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSksClusterWithResponse(ctx context.Context, body oapi.CreateSksClusterJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksClusterResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSksClusterResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateSksClusterJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSksClusterResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSksClusterResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateSksClusterJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSksNodepoolWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksNodepoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSksNodepoolResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSksNodepoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSksNodepoolWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithResponse(ctx context.Context, id string, body oapi.CreateSksNodepoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksNodepoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.CreateSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSksNodepoolResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSksNodepoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.CreateSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) CreateSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSnapshotResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.CreateSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.CreateSnapshotResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.CreateSnapshotResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteAntiAffinityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteAntiAffinityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteAntiAffinityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteAntiAffinityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteAntiAffinityGroupResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteAntiAffinityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteApiKeyWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteApiKeyWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteApiKeyResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteApiKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteApiKeyResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteApiKeyResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasIntegrationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasIntegrationResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasIntegrationResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasIntegrationResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasKafkaSchemaRegistryAclConfigWithResponse provides a mock function with given fields: ctx, name, aclId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasKafkaSchemaRegistryAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, aclId oapi.DbaasKafkaAclId, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasKafkaSchemaRegistryAclConfigResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, aclId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasKafkaSchemaRegistryAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasKafkaAclId, ...oapi.RequestEditorFn) *oapi.DeleteDbaasKafkaSchemaRegistryAclConfigResponse); ok { + r0 = rf(ctx, name, aclId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasKafkaSchemaRegistryAclConfigResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasKafkaAclId, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, aclId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasKafkaTopicAclConfigWithResponse provides a mock function with given fields: ctx, name, aclId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasKafkaTopicAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, aclId oapi.DbaasKafkaAclId, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasKafkaTopicAclConfigResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name, aclId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasKafkaTopicAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasKafkaAclId, ...oapi.RequestEditorFn) *oapi.DeleteDbaasKafkaTopicAclConfigResponse); ok { + r0 = rf(ctx, name, aclId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasKafkaTopicAclConfigResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasKafkaAclId, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, aclId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasKafkaUserWithResponse provides a mock function with given fields: ctx, serviceName, username, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasKafkaUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasKafkaUserResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, serviceName, username) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasKafkaUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) *oapi.DeleteDbaasKafkaUserResponse); ok { + r0 = rf(ctx, serviceName, username, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasKafkaUserResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasMysqlUserWithResponse provides a mock function with given fields: ctx, serviceName, username, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasMysqlUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasMysqlUserResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, serviceName, username) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasMysqlUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) *oapi.DeleteDbaasMysqlUserResponse); ok { + r0 = rf(ctx, serviceName, username, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasMysqlUserResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasOpensearchUserWithResponse provides a mock function with given fields: ctx, serviceName, username, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasOpensearchUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasOpensearchUserResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, serviceName, username) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasOpensearchUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) *oapi.DeleteDbaasOpensearchUserResponse); ok { + r0 = rf(ctx, serviceName, username, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasOpensearchUserResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasPgConnectionPoolWithResponse provides a mock function with given fields: ctx, serviceName, connectionPoolName, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasPgConnectionPoolWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, connectionPoolName oapi.DbaasPgPoolName, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasPgConnectionPoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, serviceName, connectionPoolName) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasPgConnectionPoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, ...oapi.RequestEditorFn) *oapi.DeleteDbaasPgConnectionPoolResponse); ok { + r0 = rf(ctx, serviceName, connectionPoolName, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasPgConnectionPoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, connectionPoolName, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasPostgresUserWithResponse provides a mock function with given fields: ctx, serviceName, username, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasPostgresUserWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasPostgresUserResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, serviceName, username) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasPostgresUserResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) *oapi.DeleteDbaasPostgresUserResponse); ok { + r0 = rf(ctx, serviceName, username, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasPostgresUserResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceGrafanaWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceGrafanaWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceGrafanaResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceGrafanaResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceKafkaWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceKafkaWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceKafkaResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceKafkaResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceKafkaResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceKafkaResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceMysqlWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceMysqlWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceMysqlResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceMysqlResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceMysqlResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceMysqlResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceOpensearchWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceOpensearchWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceOpensearchResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceOpensearchResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceOpensearchResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceOpensearchResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServicePgWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServicePgWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServicePgResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServicePgResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServicePgResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServicePgResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceRedisWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceRedisWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceRedisResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceRedisResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceRedisResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceRedisResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDbaasServiceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDbaasServiceWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, name) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDbaasServiceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceResponse); ok { + r0 = rf(ctx, name, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDbaasServiceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, recordId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDnsDomainRecordWithResponse(ctx context.Context, domainId string, recordId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDnsDomainRecordResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, domainId, recordId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDnsDomainRecordResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteDnsDomainRecordResponse); ok { + r0 = rf(ctx, domainId, recordId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDnsDomainRecordResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, domainId, recordId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDnsDomainWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteDnsDomainWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDnsDomainResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteDnsDomainResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDnsDomainResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteDnsDomainResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteElasticIpResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteElasticIpResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteElasticIpResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteIamRoleWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteIamRoleWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteIamRoleResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteIamRoleResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteIamRoleResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteInstancePoolWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteInstancePoolWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteInstancePoolResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteInstancePoolResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteInstancePoolResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteInstanceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteInstanceResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteInstanceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLoadBalancerServiceWithResponse provides a mock function with given fields: ctx, id, serviceId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteLoadBalancerServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteLoadBalancerServiceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, serviceId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteLoadBalancerServiceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteLoadBalancerServiceResponse); ok { + r0 = rf(ctx, id, serviceId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteLoadBalancerServiceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, serviceId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLoadBalancerWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteLoadBalancerWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteLoadBalancerResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteLoadBalancerResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteLoadBalancerResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteLoadBalancerResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePrivateNetworkWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeletePrivateNetworkWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeletePrivateNetworkResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeletePrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeletePrivateNetworkResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeletePrivateNetworkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteReverseDnsElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteReverseDnsElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteReverseDnsElasticIpResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteReverseDnsElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteReverseDnsElasticIpResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteReverseDnsElasticIpResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteReverseDnsInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteReverseDnsInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteReverseDnsInstanceResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteReverseDnsInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteReverseDnsInstanceResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteReverseDnsInstanceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteRuleFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, ruleId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteRuleFromSecurityGroupWithResponse(ctx context.Context, id string, ruleId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteRuleFromSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, ruleId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteRuleFromSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteRuleFromSecurityGroupResponse); ok { + r0 = rf(ctx, id, ruleId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteRuleFromSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, ruleId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSecurityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteSecurityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSecurityGroupResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteSksClusterWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteSksClusterWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSksClusterResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DeleteSksClusterResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSksClusterResponse); ok { + r0 = rf(ctx, id, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DeleteSksClusterResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1276,29 +3166,29 @@ func (_m *ClientWithResponsesInterface) CreateInstanceWithBodyWithResponse(ctx c return r0, r1 } -// CreateInstanceWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateInstanceWithResponse(ctx context.Context, body oapi.CreateInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateInstanceResponse, error) { +// DeleteSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, reqEditors +func (_m *ClientWithResponsesInterface) DeleteSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSksNodepoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, sksNodepoolId) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateInstanceResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.DeleteSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteSksNodepoolResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateInstanceResponse) + r0 = ret.Get(0).(*oapi.DeleteSksNodepoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, reqEditors...) } else { r1 = ret.Error(1) } @@ -1306,29 +3196,29 @@ func (_m *ClientWithResponsesInterface) CreateInstanceWithResponse(ctx context.C return r0, r1 } -// CreateLoadBalancerWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateLoadBalancerResponse, error) { +// DeleteSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSnapshotResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateLoadBalancerResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateLoadBalancerResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.DeleteSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSnapshotResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateLoadBalancerResponse) + r0 = ret.Get(0).(*oapi.DeleteSnapshotResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1336,29 +3226,29 @@ func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithBodyWithResponse(c return r0, r1 } -// CreateLoadBalancerWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithResponse(ctx context.Context, body oapi.CreateLoadBalancerJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateLoadBalancerResponse, error) { +// DeleteSshKeyWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) DeleteSshKeyWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSshKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateLoadBalancerResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateLoadBalancerJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateLoadBalancerResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.DeleteSshKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSshKeyResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateLoadBalancerResponse) + r0 = ret.Get(0).(*oapi.DeleteSshKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateLoadBalancerJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1366,29 +3256,29 @@ func (_m *ClientWithResponsesInterface) CreateLoadBalancerWithResponse(ctx conte return r0, r1 } -// CreatePrivateNetworkWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreatePrivateNetworkResponse, error) { +// DeleteTemplateWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) DeleteTemplateWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreatePrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreatePrivateNetworkResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.DeleteTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteTemplateResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreatePrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.DeleteTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1396,29 +3286,29 @@ func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithBodyWithResponse return r0, r1 } -// CreatePrivateNetworkWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithResponse(ctx context.Context, body oapi.CreatePrivateNetworkJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreatePrivateNetworkResponse, error) { +// DetachInstanceFromElasticIpWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromElasticIpResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreatePrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreatePrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreatePrivateNetworkResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.DetachInstanceFromElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromElasticIpResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreatePrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.DetachInstanceFromElasticIpResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreatePrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1426,29 +3316,29 @@ func (_m *ClientWithResponsesInterface) CreatePrivateNetworkWithResponse(ctx con return r0, r1 } -// CreateSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSecurityGroupResponse, error) { +// DetachInstanceFromElasticIpWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromElasticIpJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromElasticIpResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSecurityGroupResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.DetachInstanceFromElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromElasticIpJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromElasticIpResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.DetachInstanceFromElasticIpResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromElasticIpJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1456,29 +3346,149 @@ func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithBodyWithResponse( return r0, r1 } -// CreateSecurityGroupWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithResponse(ctx context.Context, body oapi.CreateSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSecurityGroupResponse, error) { +// DetachInstanceFromPrivateNetworkWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromPrivateNetworkResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSecurityGroupResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.DetachInstanceFromPrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromPrivateNetworkResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.DetachInstanceFromPrivateNetworkResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachInstanceFromPrivateNetworkWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromPrivateNetworkResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DetachInstanceFromPrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromPrivateNetworkResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DetachInstanceFromPrivateNetworkResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachInstanceFromSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DetachInstanceFromSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromSecurityGroupResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DetachInstanceFromSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DetachInstanceFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromSecurityGroupResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.DetachInstanceFromSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromSecurityGroupResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.DetachInstanceFromSecurityGroupResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EvictInstancePoolMembersWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictInstancePoolMembersResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.EvictInstancePoolMembersResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.EvictInstancePoolMembersResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.EvictInstancePoolMembersResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1486,29 +3496,29 @@ func (_m *ClientWithResponsesInterface) CreateSecurityGroupWithResponse(ctx cont return r0, r1 } -// CreateSksClusterWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSksClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksClusterResponse, error) { +// EvictInstancePoolMembersWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithResponse(ctx context.Context, id string, body oapi.EvictInstancePoolMembersJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictInstancePoolMembersResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSksClusterResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSksClusterResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.EvictInstancePoolMembersResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.EvictInstancePoolMembersJSONRequestBody, ...oapi.RequestEditorFn) *oapi.EvictInstancePoolMembersResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSksClusterResponse) + r0 = ret.Get(0).(*oapi.EvictInstancePoolMembersResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.EvictInstancePoolMembersJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1516,29 +3526,29 @@ func (_m *ClientWithResponsesInterface) CreateSksClusterWithBodyWithResponse(ctx return r0, r1 } -// CreateSksClusterWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSksClusterWithResponse(ctx context.Context, body oapi.CreateSksClusterJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksClusterResponse, error) { +// EvictSksNodepoolMembersWithBodyWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithBodyWithResponse(ctx context.Context, id string, sksNodepoolId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictSksNodepoolMembersResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, sksNodepoolId, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSksClusterResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.CreateSksClusterJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSksClusterResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.EvictSksNodepoolMembersResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.EvictSksNodepoolMembersResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSksClusterResponse) + r0 = ret.Get(0).(*oapi.EvictSksNodepoolMembersResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.CreateSksClusterJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1546,29 +3556,29 @@ func (_m *ClientWithResponsesInterface) CreateSksClusterWithResponse(ctx context return r0, r1 } -// CreateSksNodepoolWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksNodepoolResponse, error) { +// EvictSksNodepoolMembersWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, body, reqEditors +func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithResponse(ctx context.Context, id string, sksNodepoolId string, body oapi.EvictSksNodepoolMembersJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictSksNodepoolMembersResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, id, sksNodepoolId, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.CreateSksNodepoolResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.EvictSksNodepoolMembersResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.EvictSksNodepoolMembersJSONRequestBody, ...oapi.RequestEditorFn) *oapi.EvictSksNodepoolMembersResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.EvictSksNodepoolMembersResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.EvictSksNodepoolMembersJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1576,29 +3586,29 @@ func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithBodyWithResponse(ct return r0, r1 } -// CreateSksNodepoolWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithResponse(ctx context.Context, id string, body oapi.CreateSksNodepoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSksNodepoolResponse, error) { +// ExportSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) ExportSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.ExportSnapshotResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.CreateSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.CreateSksNodepoolResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.ExportSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ExportSnapshotResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.ExportSnapshotResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.CreateSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1606,29 +3616,29 @@ func (_m *ClientWithResponsesInterface) CreateSksNodepoolWithResponse(ctx contex return r0, r1 } -// CreateSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) CreateSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.CreateSnapshotResponse, error) { +// GenerateSksClusterKubeconfigWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GenerateSksClusterKubeconfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.CreateSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.CreateSnapshotResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GenerateSksClusterKubeconfigResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GenerateSksClusterKubeconfigResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.CreateSnapshotResponse) + r0 = ret.Get(0).(*oapi.GenerateSksClusterKubeconfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1636,29 +3646,29 @@ func (_m *ClientWithResponsesInterface) CreateSnapshotWithResponse(ctx context.C return r0, r1 } -// DeleteAntiAffinityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteAntiAffinityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteAntiAffinityGroupResponse, error) { +// GenerateSksClusterKubeconfigWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithResponse(ctx context.Context, id string, body oapi.GenerateSksClusterKubeconfigJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GenerateSksClusterKubeconfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteAntiAffinityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteAntiAffinityGroupResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GenerateSksClusterKubeconfigResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GenerateSksClusterKubeconfigJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GenerateSksClusterKubeconfigResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteAntiAffinityGroupResponse) + r0 = ret.Get(0).(*oapi.GenerateSksClusterKubeconfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GenerateSksClusterKubeconfigJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1666,29 +3676,29 @@ func (_m *ClientWithResponsesInterface) DeleteAntiAffinityGroupWithResponse(ctx return r0, r1 } -// DeleteDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteDbaasIntegrationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasIntegrationResponse, error) { +// GetAccessKeyWithResponse provides a mock function with given fields: ctx, key, reqEditors +func (_m *ClientWithResponsesInterface) GetAccessKeyWithResponse(ctx context.Context, key string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetAccessKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, key) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasIntegrationResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetAccessKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetAccessKeyResponse); ok { + r0 = rf(ctx, key, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.GetAccessKeyResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + r1 = rf(ctx, key, reqEditors...) } else { r1 = ret.Error(1) } @@ -1696,29 +3706,29 @@ func (_m *ClientWithResponsesInterface) DeleteDbaasIntegrationWithResponse(ctx c return r0, r1 } -// DeleteDbaasServiceWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) DeleteDbaasServiceWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDbaasServiceResponse, error) { +// GetAntiAffinityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetAntiAffinityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetAntiAffinityGroupResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteDbaasServiceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDbaasServiceResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetAntiAffinityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetAntiAffinityGroupResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteDbaasServiceResponse) + r0 = ret.Get(0).(*oapi.GetAntiAffinityGroupResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1726,29 +3736,29 @@ func (_m *ClientWithResponsesInterface) DeleteDbaasServiceWithResponse(ctx conte return r0, r1 } -// DeleteDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, recordId, reqEditors -func (_m *ClientWithResponsesInterface) DeleteDnsDomainRecordWithResponse(ctx context.Context, domainId string, recordId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDnsDomainRecordResponse, error) { +// GetApiKeyWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetApiKeyWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetApiKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, domainId, recordId) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteDnsDomainRecordResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteDnsDomainRecordResponse); ok { - r0 = rf(ctx, domainId, recordId, reqEditors...) + var r0 *oapi.GetApiKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetApiKeyResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteDnsDomainRecordResponse) + r0 = ret.Get(0).(*oapi.GetApiKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, domainId, recordId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -1756,29 +3766,29 @@ func (_m *ClientWithResponsesInterface) DeleteDnsDomainRecordWithResponse(ctx co return r0, r1 } -// DeleteDnsDomainWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteDnsDomainWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteDnsDomainResponse, error) { +// GetDbaasCaCertificateWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasCaCertificateWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasCaCertificateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteDnsDomainResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteDnsDomainResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasCaCertificateResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasCaCertificateResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteDnsDomainResponse) + r0 = ret.Get(0).(*oapi.GetDbaasCaCertificateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -1786,8 +3796,8 @@ func (_m *ClientWithResponsesInterface) DeleteDnsDomainWithResponse(ctx context. return r0, r1 } -// DeleteElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteElasticIpResponse, error) { +// GetDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasIntegrationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasIntegrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -1797,12 +3807,12 @@ func (_m *ClientWithResponsesInterface) DeleteElasticIpWithResponse(ctx context. _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteElasticIpResponse); ok { + var r0 *oapi.GetDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDbaasIntegrationResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteElasticIpResponse) + r0 = ret.Get(0).(*oapi.GetDbaasIntegrationResponse) } } @@ -1816,29 +3826,29 @@ func (_m *ClientWithResponsesInterface) DeleteElasticIpWithResponse(ctx context. return r0, r1 } -// DeleteInstancePoolWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteInstancePoolWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteInstancePoolResponse, error) { +// GetDbaasKafkaAclConfigWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasKafkaAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasKafkaAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteInstancePoolResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasKafkaAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasKafkaAclConfigResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteInstancePoolResponse) + r0 = ret.Get(0).(*oapi.GetDbaasKafkaAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1846,29 +3856,29 @@ func (_m *ClientWithResponsesInterface) DeleteInstancePoolWithResponse(ctx conte return r0, r1 } -// DeleteInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteInstanceResponse, error) { +// GetDbaasMigrationStatusWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasMigrationStatusWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasMigrationStatusResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasMigrationStatusResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasMigrationStatusResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteInstanceResponse) + r0 = ret.Get(0).(*oapi.GetDbaasMigrationStatusResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1876,29 +3886,29 @@ func (_m *ClientWithResponsesInterface) DeleteInstanceWithResponse(ctx context.C return r0, r1 } -// DeleteLoadBalancerServiceWithResponse provides a mock function with given fields: ctx, id, serviceId, reqEditors -func (_m *ClientWithResponsesInterface) DeleteLoadBalancerServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteLoadBalancerServiceResponse, error) { +// GetDbaasOpensearchAclConfigWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasOpensearchAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasOpensearchAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, serviceId) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteLoadBalancerServiceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteLoadBalancerServiceResponse); ok { - r0 = rf(ctx, id, serviceId, reqEditors...) + var r0 *oapi.GetDbaasOpensearchAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasOpensearchAclConfigResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteLoadBalancerServiceResponse) + r0 = ret.Get(0).(*oapi.GetDbaasOpensearchAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, serviceId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1906,29 +3916,29 @@ func (_m *ClientWithResponsesInterface) DeleteLoadBalancerServiceWithResponse(ct return r0, r1 } -// DeleteLoadBalancerWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteLoadBalancerWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteLoadBalancerResponse, error) { +// GetDbaasServiceGrafanaWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceGrafanaWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteLoadBalancerResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteLoadBalancerResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteLoadBalancerResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1936,29 +3946,29 @@ func (_m *ClientWithResponsesInterface) DeleteLoadBalancerWithResponse(ctx conte return r0, r1 } -// DeletePrivateNetworkWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeletePrivateNetworkWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeletePrivateNetworkResponse, error) { +// GetDbaasServiceKafkaWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceKafkaWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceKafkaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeletePrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeletePrivateNetworkResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceKafkaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceKafkaResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeletePrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceKafkaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -1966,29 +3976,29 @@ func (_m *ClientWithResponsesInterface) DeletePrivateNetworkWithResponse(ctx con return r0, r1 } -// DeleteReverseDnsElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteReverseDnsElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteReverseDnsElasticIpResponse, error) { +// GetDbaasServiceLogsWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithBodyWithResponse(ctx context.Context, serviceName string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceLogsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteReverseDnsElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteReverseDnsElasticIpResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceLogsResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteReverseDnsElasticIpResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceLogsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -1996,29 +4006,29 @@ func (_m *ClientWithResponsesInterface) DeleteReverseDnsElasticIpWithResponse(ct return r0, r1 } -// DeleteReverseDnsInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteReverseDnsInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteReverseDnsInstanceResponse, error) { +// GetDbaasServiceLogsWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithResponse(ctx context.Context, serviceName string, body oapi.GetDbaasServiceLogsJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceLogsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteReverseDnsInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteReverseDnsInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetDbaasServiceLogsJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceLogsResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteReverseDnsInstanceResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceLogsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetDbaasServiceLogsJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -2026,29 +4036,29 @@ func (_m *ClientWithResponsesInterface) DeleteReverseDnsInstanceWithResponse(ctx return r0, r1 } -// DeleteRuleFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, ruleId, reqEditors -func (_m *ClientWithResponsesInterface) DeleteRuleFromSecurityGroupWithResponse(ctx context.Context, id string, ruleId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteRuleFromSecurityGroupResponse, error) { +// GetDbaasServiceMetricsWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceMetricsWithBodyWithResponse(ctx context.Context, serviceName string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMetricsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, ruleId) + _ca = append(_ca, ctx, serviceName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteRuleFromSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteRuleFromSecurityGroupResponse); ok { - r0 = rf(ctx, id, ruleId, reqEditors...) + var r0 *oapi.GetDbaasServiceMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMetricsResponse); ok { + r0 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteRuleFromSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceMetricsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, ruleId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -2056,29 +4066,29 @@ func (_m *ClientWithResponsesInterface) DeleteRuleFromSecurityGroupWithResponse( return r0, r1 } -// DeleteSecurityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteSecurityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSecurityGroupResponse, error) { +// GetDbaasServiceMetricsWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceMetricsWithResponse(ctx context.Context, serviceName string, body oapi.GetDbaasServiceMetricsJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMetricsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSecurityGroupResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetDbaasServiceMetricsJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMetricsResponse); ok { + r0 = rf(ctx, serviceName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceMetricsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetDbaasServiceMetricsJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -2086,29 +4096,29 @@ func (_m *ClientWithResponsesInterface) DeleteSecurityGroupWithResponse(ctx cont return r0, r1 } -// DeleteSksClusterWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteSksClusterWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSksClusterResponse, error) { +// GetDbaasServiceMysqlWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceMysqlWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMysqlResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteSksClusterResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSksClusterResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceMysqlResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMysqlResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteSksClusterResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceMysqlResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -2116,29 +4126,29 @@ func (_m *ClientWithResponsesInterface) DeleteSksClusterWithResponse(ctx context return r0, r1 } -// DeleteSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, reqEditors -func (_m *ClientWithResponsesInterface) DeleteSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSksNodepoolResponse, error) { +// GetDbaasServiceOpensearchWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceOpensearchWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceOpensearchResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.DeleteSksNodepoolResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, reqEditors...) + var r0 *oapi.GetDbaasServiceOpensearchResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceOpensearchResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceOpensearchResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -2146,29 +4156,29 @@ func (_m *ClientWithResponsesInterface) DeleteSksNodepoolWithResponse(ctx contex return r0, r1 } -// DeleteSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSnapshotResponse, error) { +// GetDbaasServicePgWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServicePgWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServicePgResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSnapshotResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServicePgResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServicePgResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteSnapshotResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServicePgResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -2176,8 +4186,8 @@ func (_m *ClientWithResponsesInterface) DeleteSnapshotWithResponse(ctx context.C return r0, r1 } -// DeleteSshKeyWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) DeleteSshKeyWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteSshKeyResponse, error) { +// GetDbaasServiceRedisWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceRedisWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceRedisResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -2187,17 +4197,17 @@ func (_m *ClientWithResponsesInterface) DeleteSshKeyWithResponse(ctx context.Con _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteSshKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteSshKeyResponse); ok { + var r0 *oapi.GetDbaasServiceRedisResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceRedisResponse); ok { r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteSshKeyResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceRedisResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) @@ -2206,29 +4216,29 @@ func (_m *ClientWithResponsesInterface) DeleteSshKeyWithResponse(ctx context.Con return r0, r1 } -// DeleteTemplateWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) DeleteTemplateWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.DeleteTemplateResponse, error) { +// GetDbaasServiceTypeWithResponse provides a mock function with given fields: ctx, serviceTypeName, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasServiceTypeWithResponse(ctx context.Context, serviceTypeName string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceTypeResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceTypeName) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DeleteTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.DeleteTemplateResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.GetDbaasServiceTypeResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceTypeResponse); ok { + r0 = rf(ctx, serviceTypeName, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DeleteTemplateResponse) + r0 = ret.Get(0).(*oapi.GetDbaasServiceTypeResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + r1 = rf(ctx, serviceTypeName, reqEditors...) } else { r1 = ret.Error(1) } @@ -2236,29 +4246,29 @@ func (_m *ClientWithResponsesInterface) DeleteTemplateWithResponse(ctx context.C return r0, r1 } -// DetachInstanceFromElasticIpWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromElasticIpResponse, error) { +// GetDbaasSettingsGrafanaWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsGrafanaWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromElasticIpResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsGrafanaResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromElasticIpResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2266,29 +4276,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithBodyWithR return r0, r1 } -// DetachInstanceFromElasticIpWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromElasticIpJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromElasticIpResponse, error) { +// GetDbaasSettingsKafkaWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsKafkaWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsKafkaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromElasticIpJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromElasticIpResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsKafkaResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsKafkaResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromElasticIpResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsKafkaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromElasticIpJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2296,29 +4306,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromElasticIpWithResponse( return r0, r1 } -// DetachInstanceFromPrivateNetworkWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromPrivateNetworkResponse, error) { +// GetDbaasSettingsMysqlWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsMysqlWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsMysqlResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromPrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromPrivateNetworkResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsMysqlResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsMysqlResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromPrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsMysqlResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2326,29 +4336,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithBody return r0, r1 } -// DetachInstanceFromPrivateNetworkWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromPrivateNetworkResponse, error) { +// GetDbaasSettingsOpensearchWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsOpensearchWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsOpensearchResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromPrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromPrivateNetworkResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsOpensearchResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsOpensearchResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromPrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsOpensearchResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromPrivateNetworkJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2356,29 +4366,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromPrivateNetworkWithResp return r0, r1 } -// DetachInstanceFromSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromSecurityGroupResponse, error) { +// GetDbaasSettingsPgWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsPgWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsPgResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromSecurityGroupResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsPgResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsPgResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsPgResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2386,29 +4396,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithBodyW return r0, r1 } -// DetachInstanceFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithResponse(ctx context.Context, id string, body oapi.DetachInstanceFromSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.DetachInstanceFromSecurityGroupResponse, error) { +// GetDbaasSettingsRedisWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasSettingsRedisWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsRedisResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.DetachInstanceFromSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.DetachInstanceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.DetachInstanceFromSecurityGroupResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.GetDbaasSettingsRedisResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsRedisResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.DetachInstanceFromSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.GetDbaasSettingsRedisResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.DetachInstanceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2416,29 +4426,29 @@ func (_m *ClientWithResponsesInterface) DetachInstanceFromSecurityGroupWithRespo return r0, r1 } -// EvictInstancePoolMembersWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictInstancePoolMembersResponse, error) { +// GetDbaasTaskWithResponse provides a mock function with given fields: ctx, service, id, reqEditors +func (_m *ClientWithResponsesInterface) GetDbaasTaskWithResponse(ctx context.Context, service oapi.DbaasServiceName, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasTaskResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, service, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.EvictInstancePoolMembersResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.EvictInstancePoolMembersResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.GetDbaasTaskResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, ...oapi.RequestEditorFn) *oapi.GetDbaasTaskResponse); ok { + r0 = rf(ctx, service, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.EvictInstancePoolMembersResponse) + r0 = ret.Get(0).(*oapi.GetDbaasTaskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, service, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2446,29 +4456,29 @@ func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithBodyWithResp return r0, r1 } -// EvictInstancePoolMembersWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithResponse(ctx context.Context, id string, body oapi.EvictInstancePoolMembersJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictInstancePoolMembersResponse, error) { +// GetDeployTargetWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetDeployTargetWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDeployTargetResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.EvictInstancePoolMembersResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.EvictInstancePoolMembersJSONRequestBody, ...oapi.RequestEditorFn) *oapi.EvictInstancePoolMembersResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.GetDeployTargetResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDeployTargetResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.EvictInstancePoolMembersResponse) + r0 = ret.Get(0).(*oapi.GetDeployTargetResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.EvictInstancePoolMembersJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2476,29 +4486,29 @@ func (_m *ClientWithResponsesInterface) EvictInstancePoolMembersWithResponse(ctx return r0, r1 } -// EvictSksNodepoolMembersWithBodyWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithBodyWithResponse(ctx context.Context, id string, sksNodepoolId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictSksNodepoolMembersResponse, error) { +// GetDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, recordId, reqEditors +func (_m *ClientWithResponsesInterface) GetDnsDomainRecordWithResponse(ctx context.Context, domainId string, recordId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainRecordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId, contentType, body) + _ca = append(_ca, ctx, domainId, recordId) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.EvictSksNodepoolMembersResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.EvictSksNodepoolMembersResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) + var r0 *oapi.GetDnsDomainRecordResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainRecordResponse); ok { + r0 = rf(ctx, domainId, recordId, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.EvictSksNodepoolMembersResponse) + r0 = ret.Get(0).(*oapi.GetDnsDomainRecordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, domainId, recordId, reqEditors...) } else { r1 = ret.Error(1) } @@ -2506,29 +4516,29 @@ func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithBodyWithRespo return r0, r1 } -// EvictSksNodepoolMembersWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, body, reqEditors -func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithResponse(ctx context.Context, id string, sksNodepoolId string, body oapi.EvictSksNodepoolMembersJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.EvictSksNodepoolMembersResponse, error) { +// GetDnsDomainWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetDnsDomainWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.EvictSksNodepoolMembersResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.EvictSksNodepoolMembersJSONRequestBody, ...oapi.RequestEditorFn) *oapi.EvictSksNodepoolMembersResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, body, reqEditors...) + var r0 *oapi.GetDnsDomainResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.EvictSksNodepoolMembersResponse) + r0 = ret.Get(0).(*oapi.GetDnsDomainResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.EvictSksNodepoolMembersJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2536,8 +4546,8 @@ func (_m *ClientWithResponsesInterface) EvictSksNodepoolMembersWithResponse(ctx return r0, r1 } -// ExportSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) ExportSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.ExportSnapshotResponse, error) { +// GetDnsDomainZoneFileWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetDnsDomainZoneFileWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainZoneFileResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -2547,12 +4557,12 @@ func (_m *ClientWithResponsesInterface) ExportSnapshotWithResponse(ctx context.C _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ExportSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ExportSnapshotResponse); ok { + var r0 *oapi.GetDnsDomainZoneFileResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainZoneFileResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ExportSnapshotResponse) + r0 = ret.Get(0).(*oapi.GetDnsDomainZoneFileResponse) } } @@ -2566,29 +4576,29 @@ func (_m *ClientWithResponsesInterface) ExportSnapshotWithResponse(ctx context.C return r0, r1 } -// GenerateSksClusterKubeconfigWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GenerateSksClusterKubeconfigResponse, error) { +// GetElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetElasticIpResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GenerateSksClusterKubeconfigResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GenerateSksClusterKubeconfigResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.GetElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetElasticIpResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GenerateSksClusterKubeconfigResponse) + r0 = ret.Get(0).(*oapi.GetElasticIpResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2596,29 +4606,29 @@ func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithBodyWith return r0, r1 } -// GenerateSksClusterKubeconfigWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithResponse(ctx context.Context, id string, body oapi.GenerateSksClusterKubeconfigJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GenerateSksClusterKubeconfigResponse, error) { +// GetIamOrganizationPolicyWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) GetIamOrganizationPolicyWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetIamOrganizationPolicyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GenerateSksClusterKubeconfigResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GenerateSksClusterKubeconfigJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GenerateSksClusterKubeconfigResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.GetIamOrganizationPolicyResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetIamOrganizationPolicyResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GenerateSksClusterKubeconfigResponse) + r0 = ret.Get(0).(*oapi.GetIamOrganizationPolicyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GenerateSksClusterKubeconfigJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -2626,29 +4636,29 @@ func (_m *ClientWithResponsesInterface) GenerateSksClusterKubeconfigWithResponse return r0, r1 } -// GetAccessKeyWithResponse provides a mock function with given fields: ctx, key, reqEditors -func (_m *ClientWithResponsesInterface) GetAccessKeyWithResponse(ctx context.Context, key string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetAccessKeyResponse, error) { +// GetIamRoleWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetIamRoleWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetIamRoleResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, key) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetAccessKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetAccessKeyResponse); ok { - r0 = rf(ctx, key, reqEditors...) + var r0 *oapi.GetIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetIamRoleResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetAccessKeyResponse) + r0 = ret.Get(0).(*oapi.GetIamRoleResponse) } } var r1 error if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, key, reqEditors...) + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2656,8 +4666,8 @@ func (_m *ClientWithResponsesInterface) GetAccessKeyWithResponse(ctx context.Con return r0, r1 } -// GetAntiAffinityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetAntiAffinityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetAntiAffinityGroupResponse, error) { +// GetInstancePoolWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetInstancePoolWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstancePoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -2667,12 +4677,12 @@ func (_m *ClientWithResponsesInterface) GetAntiAffinityGroupWithResponse(ctx con _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetAntiAffinityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetAntiAffinityGroupResponse); ok { + var r0 *oapi.GetInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstancePoolResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetAntiAffinityGroupResponse) + r0 = ret.Get(0).(*oapi.GetInstancePoolResponse) } } @@ -2686,29 +4696,29 @@ func (_m *ClientWithResponsesInterface) GetAntiAffinityGroupWithResponse(ctx con return r0, r1 } -// GetDbaasCaCertificateWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasCaCertificateWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasCaCertificateResponse, error) { +// GetInstanceTypeWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetInstanceTypeWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstanceTypeResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasCaCertificateResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasCaCertificateResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.GetInstanceTypeResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstanceTypeResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasCaCertificateResponse) + r0 = ret.Get(0).(*oapi.GetInstanceTypeResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2716,8 +4726,8 @@ func (_m *ClientWithResponsesInterface) GetDbaasCaCertificateWithResponse(ctx co return r0, r1 } -// GetDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasIntegrationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasIntegrationResponse, error) { +// GetInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -2727,12 +4737,12 @@ func (_m *ClientWithResponsesInterface) GetDbaasIntegrationWithResponse(ctx cont _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDbaasIntegrationResponse); ok { + var r0 *oapi.GetInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstanceResponse); ok { r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.GetInstanceResponse) } } @@ -2746,29 +4756,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasIntegrationWithResponse(ctx cont return r0, r1 } -// GetDbaasMigrationStatusWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasMigrationStatusWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasMigrationStatusResponse, error) { +// GetLoadBalancerServiceWithResponse provides a mock function with given fields: ctx, id, serviceId, reqEditors +func (_m *ClientWithResponsesInterface) GetLoadBalancerServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetLoadBalancerServiceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id, serviceId) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasMigrationStatusResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasMigrationStatusResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetLoadBalancerServiceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetLoadBalancerServiceResponse); ok { + r0 = rf(ctx, id, serviceId, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasMigrationStatusResponse) + r0 = ret.Get(0).(*oapi.GetLoadBalancerServiceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, serviceId, reqEditors...) } else { r1 = ret.Error(1) } @@ -2776,29 +4786,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasMigrationStatusWithResponse(ctx return r0, r1 } -// GetDbaasServiceKafkaWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceKafkaWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceKafkaResponse, error) { +// GetLoadBalancerWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetLoadBalancerWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetLoadBalancerResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceKafkaResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceKafkaResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetLoadBalancerResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetLoadBalancerResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceKafkaResponse) + r0 = ret.Get(0).(*oapi.GetLoadBalancerResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2806,29 +4816,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceKafkaWithResponse(ctx con return r0, r1 } -// GetDbaasServiceLogsWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithBodyWithResponse(ctx context.Context, serviceName string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceLogsResponse, error) { +// GetOperationWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetOperationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetOperationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, serviceName, contentType, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceLogsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceLogsResponse); ok { - r0 = rf(ctx, serviceName, contentType, body, reqEditors...) + var r0 *oapi.GetOperationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetOperationResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceLogsResponse) + r0 = ret.Get(0).(*oapi.GetOperationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, serviceName, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2836,29 +4846,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithBodyWithResponse( return r0, r1 } -// GetDbaasServiceLogsWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithResponse(ctx context.Context, serviceName string, body oapi.GetDbaasServiceLogsJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceLogsResponse, error) { +// GetPrivateNetworkWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetPrivateNetworkWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetPrivateNetworkResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, serviceName, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceLogsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetDbaasServiceLogsJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceLogsResponse); ok { - r0 = rf(ctx, serviceName, body, reqEditors...) + var r0 *oapi.GetPrivateNetworkResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetPrivateNetworkResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceLogsResponse) + r0 = ret.Get(0).(*oapi.GetPrivateNetworkResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetDbaasServiceLogsJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, serviceName, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2866,59 +4876,59 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceLogsWithResponse(ctx cont return r0, r1 } -// GetDbaasServiceMetricsWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceMetricsWithBodyWithResponse(ctx context.Context, serviceName string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMetricsResponse, error) { +// GetQuotaWithResponse provides a mock function with given fields: ctx, entity, reqEditors +func (_m *ClientWithResponsesInterface) GetQuotaWithResponse(ctx context.Context, entity string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetQuotaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, serviceName, contentType, body) + _ca = append(_ca, ctx, entity) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceMetricsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMetricsResponse); ok { - r0 = rf(ctx, serviceName, contentType, body, reqEditors...) + var r0 *oapi.GetQuotaResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetQuotaResponse); ok { + r0 = rf(ctx, entity, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceMetricsResponse) + r0 = ret.Get(0).(*oapi.GetQuotaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, serviceName, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, entity, reqEditors...) } else { r1 = ret.Error(1) } return r0, r1 } - -// GetDbaasServiceMetricsWithResponse provides a mock function with given fields: ctx, serviceName, body, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceMetricsWithResponse(ctx context.Context, serviceName string, body oapi.GetDbaasServiceMetricsJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMetricsResponse, error) { + +// GetReverseDnsElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetReverseDnsElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetReverseDnsElasticIpResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, serviceName, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceMetricsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetDbaasServiceMetricsJSONRequestBody, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMetricsResponse); ok { - r0 = rf(ctx, serviceName, body, reqEditors...) + var r0 *oapi.GetReverseDnsElasticIpResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetReverseDnsElasticIpResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceMetricsResponse) + r0 = ret.Get(0).(*oapi.GetReverseDnsElasticIpResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetDbaasServiceMetricsJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, serviceName, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2926,29 +4936,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceMetricsWithResponse(ctx c return r0, r1 } -// GetDbaasServiceMysqlWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceMysqlWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceMysqlResponse, error) { +// GetReverseDnsInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetReverseDnsInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetReverseDnsInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceMysqlResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceMysqlResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetReverseDnsInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetReverseDnsInstanceResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceMysqlResponse) + r0 = ret.Get(0).(*oapi.GetReverseDnsInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2956,29 +4966,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceMysqlWithResponse(ctx con return r0, r1 } -// GetDbaasServiceOpensearchWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceOpensearchWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceOpensearchResponse, error) { +// GetSecurityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetSecurityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSecurityGroupResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceOpensearchResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceOpensearchResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSecurityGroupResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceOpensearchResponse) + r0 = ret.Get(0).(*oapi.GetSecurityGroupResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -2986,29 +4996,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceOpensearchWithResponse(ct return r0, r1 } -// GetDbaasServicePgWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServicePgWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServicePgResponse, error) { +// GetSksClusterAuthorityCertWithResponse provides a mock function with given fields: ctx, id, authority, reqEditors +func (_m *ClientWithResponsesInterface) GetSksClusterAuthorityCertWithResponse(ctx context.Context, id string, authority oapi.GetSksClusterAuthorityCertParamsAuthority, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksClusterAuthorityCertResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id, authority) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServicePgResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServicePgResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetSksClusterAuthorityCertResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetSksClusterAuthorityCertParamsAuthority, ...oapi.RequestEditorFn) *oapi.GetSksClusterAuthorityCertResponse); ok { + r0 = rf(ctx, id, authority, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServicePgResponse) + r0 = ret.Get(0).(*oapi.GetSksClusterAuthorityCertResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetSksClusterAuthorityCertParamsAuthority, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, authority, reqEditors...) } else { r1 = ret.Error(1) } @@ -3016,29 +5026,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServicePgWithResponse(ctx contex return r0, r1 } -// GetDbaasServiceRedisWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceRedisWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceRedisResponse, error) { +// GetSksClusterWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetSksClusterWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksClusterResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceRedisResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceRedisResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.GetSksClusterResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSksClusterResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceRedisResponse) + r0 = ret.Get(0).(*oapi.GetSksClusterResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -3046,29 +5056,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceRedisWithResponse(ctx con return r0, r1 } -// GetDbaasServiceTypeWithResponse provides a mock function with given fields: ctx, serviceTypeName, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasServiceTypeWithResponse(ctx context.Context, serviceTypeName string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasServiceTypeResponse, error) { +// GetSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, reqEditors +func (_m *ClientWithResponsesInterface) GetSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksNodepoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, serviceTypeName) + _ca = append(_ca, ctx, id, sksNodepoolId) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasServiceTypeResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDbaasServiceTypeResponse); ok { - r0 = rf(ctx, serviceTypeName, reqEditors...) + var r0 *oapi.GetSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetSksNodepoolResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasServiceTypeResponse) + r0 = ret.Get(0).(*oapi.GetSksNodepoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, serviceTypeName, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, reqEditors...) } else { r1 = ret.Error(1) } @@ -3076,29 +5086,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasServiceTypeWithResponse(ctx cont return r0, r1 } -// GetDbaasSettingsKafkaWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasSettingsKafkaWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsKafkaResponse, error) { +// GetSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSnapshotResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasSettingsKafkaResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsKafkaResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.GetSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSnapshotResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasSettingsKafkaResponse) + r0 = ret.Get(0).(*oapi.GetSnapshotResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -3106,29 +5116,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsKafkaWithResponse(ctx co return r0, r1 } -// GetDbaasSettingsMysqlWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasSettingsMysqlWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsMysqlResponse, error) { +// GetSosPresignedUrlWithResponse provides a mock function with given fields: ctx, bucket, params, reqEditors +func (_m *ClientWithResponsesInterface) GetSosPresignedUrlWithResponse(ctx context.Context, bucket string, params *oapi.GetSosPresignedUrlParams, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSosPresignedUrlResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, bucket, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasSettingsMysqlResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsMysqlResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.GetSosPresignedUrlResponse + if rf, ok := ret.Get(0).(func(context.Context, string, *oapi.GetSosPresignedUrlParams, ...oapi.RequestEditorFn) *oapi.GetSosPresignedUrlResponse); ok { + r0 = rf(ctx, bucket, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasSettingsMysqlResponse) + r0 = ret.Get(0).(*oapi.GetSosPresignedUrlResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, *oapi.GetSosPresignedUrlParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, bucket, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -3136,29 +5146,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsMysqlWithResponse(ctx co return r0, r1 } -// GetDbaasSettingsOpensearchWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasSettingsOpensearchWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsOpensearchResponse, error) { +// GetSshKeyWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) GetSshKeyWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSshKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasSettingsOpensearchResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsOpensearchResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.GetSshKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSshKeyResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasSettingsOpensearchResponse) + r0 = ret.Get(0).(*oapi.GetSshKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -3166,29 +5176,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsOpensearchWithResponse(c return r0, r1 } -// GetDbaasSettingsPgWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasSettingsPgWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsPgResponse, error) { +// GetTemplateWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) GetTemplateWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasSettingsPgResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsPgResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.GetTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetTemplateResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasSettingsPgResponse) + r0 = ret.Get(0).(*oapi.GetTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -3196,8 +5206,8 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsPgWithResponse(ctx conte return r0, r1 } -// GetDbaasSettingsRedisWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasSettingsRedisWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasSettingsRedisResponse, error) { +// ListAccessKeyKnownOperationsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListAccessKeyKnownOperationsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeyKnownOperationsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -3207,12 +5217,12 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsRedisWithResponse(ctx co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasSettingsRedisResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.GetDbaasSettingsRedisResponse); ok { + var r0 *oapi.ListAccessKeyKnownOperationsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeyKnownOperationsResponse); ok { r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasSettingsRedisResponse) + r0 = ret.Get(0).(*oapi.ListAccessKeyKnownOperationsResponse) } } @@ -3226,29 +5236,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasSettingsRedisWithResponse(ctx co return r0, r1 } -// GetDbaasTaskWithResponse provides a mock function with given fields: ctx, service, id, reqEditors -func (_m *ClientWithResponsesInterface) GetDbaasTaskWithResponse(ctx context.Context, service oapi.DbaasServiceName, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDbaasTaskResponse, error) { +// ListAccessKeyOperationsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListAccessKeyOperationsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeyOperationsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, service, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDbaasTaskResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, ...oapi.RequestEditorFn) *oapi.GetDbaasTaskResponse); ok { - r0 = rf(ctx, service, id, reqEditors...) + var r0 *oapi.ListAccessKeyOperationsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeyOperationsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDbaasTaskResponse) + r0 = ret.Get(0).(*oapi.ListAccessKeyOperationsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, service, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3256,29 +5266,29 @@ func (_m *ClientWithResponsesInterface) GetDbaasTaskWithResponse(ctx context.Con return r0, r1 } -// GetDeployTargetWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetDeployTargetWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDeployTargetResponse, error) { +// ListAccessKeysWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListAccessKeysWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeysResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDeployTargetResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDeployTargetResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListAccessKeysResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeysResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDeployTargetResponse) + r0 = ret.Get(0).(*oapi.ListAccessKeysResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3286,29 +5296,29 @@ func (_m *ClientWithResponsesInterface) GetDeployTargetWithResponse(ctx context. return r0, r1 } -// GetDnsDomainRecordWithResponse provides a mock function with given fields: ctx, domainId, recordId, reqEditors -func (_m *ClientWithResponsesInterface) GetDnsDomainRecordWithResponse(ctx context.Context, domainId string, recordId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainRecordResponse, error) { +// ListAntiAffinityGroupsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListAntiAffinityGroupsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAntiAffinityGroupsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, domainId, recordId) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDnsDomainRecordResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainRecordResponse); ok { - r0 = rf(ctx, domainId, recordId, reqEditors...) + var r0 *oapi.ListAntiAffinityGroupsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAntiAffinityGroupsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDnsDomainRecordResponse) + r0 = ret.Get(0).(*oapi.ListAntiAffinityGroupsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, domainId, recordId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3316,29 +5326,29 @@ func (_m *ClientWithResponsesInterface) GetDnsDomainRecordWithResponse(ctx conte return r0, r1 } -// GetDnsDomainWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetDnsDomainWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainResponse, error) { +// ListApiKeysWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListApiKeysWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListApiKeysResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDnsDomainResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListApiKeysResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListApiKeysResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDnsDomainResponse) + r0 = ret.Get(0).(*oapi.ListApiKeysResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3346,29 +5356,29 @@ func (_m *ClientWithResponsesInterface) GetDnsDomainWithResponse(ctx context.Con return r0, r1 } -// GetDnsDomainZoneFileWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetDnsDomainZoneFileWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetDnsDomainZoneFileResponse, error) { +// ListDbaasIntegrationSettingsWithResponse provides a mock function with given fields: ctx, integrationType, sourceType, destType, reqEditors +func (_m *ClientWithResponsesInterface) ListDbaasIntegrationSettingsWithResponse(ctx context.Context, integrationType string, sourceType string, destType string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasIntegrationSettingsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, integrationType, sourceType, destType) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetDnsDomainZoneFileResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetDnsDomainZoneFileResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDbaasIntegrationSettingsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...oapi.RequestEditorFn) *oapi.ListDbaasIntegrationSettingsResponse); ok { + r0 = rf(ctx, integrationType, sourceType, destType, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetDnsDomainZoneFileResponse) + r0 = ret.Get(0).(*oapi.ListDbaasIntegrationSettingsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, integrationType, sourceType, destType, reqEditors...) } else { r1 = ret.Error(1) } @@ -3376,29 +5386,29 @@ func (_m *ClientWithResponsesInterface) GetDnsDomainZoneFileWithResponse(ctx con return r0, r1 } -// GetElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetElasticIpResponse, error) { +// ListDbaasIntegrationTypesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListDbaasIntegrationTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasIntegrationTypesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetElasticIpResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDbaasIntegrationTypesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasIntegrationTypesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetElasticIpResponse) + r0 = ret.Get(0).(*oapi.ListDbaasIntegrationTypesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3406,29 +5416,29 @@ func (_m *ClientWithResponsesInterface) GetElasticIpWithResponse(ctx context.Con return r0, r1 } -// GetInstancePoolWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetInstancePoolWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstancePoolResponse, error) { +// ListDbaasServiceTypesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListDbaasServiceTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasServiceTypesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstancePoolResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDbaasServiceTypesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasServiceTypesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetInstancePoolResponse) + r0 = ret.Get(0).(*oapi.ListDbaasServiceTypesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3436,29 +5446,29 @@ func (_m *ClientWithResponsesInterface) GetInstancePoolWithResponse(ctx context. return r0, r1 } -// GetInstanceTypeWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetInstanceTypeWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstanceTypeResponse, error) { +// ListDbaasServicesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListDbaasServicesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasServicesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetInstanceTypeResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstanceTypeResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDbaasServicesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasServicesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetInstanceTypeResponse) + r0 = ret.Get(0).(*oapi.ListDbaasServicesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3466,29 +5476,29 @@ func (_m *ClientWithResponsesInterface) GetInstanceTypeWithResponse(ctx context. return r0, r1 } -// GetInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetInstanceResponse, error) { +// ListDeployTargetsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListDeployTargetsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDeployTargetsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDeployTargetsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDeployTargetsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetInstanceResponse) + r0 = ret.Get(0).(*oapi.ListDeployTargetsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3496,29 +5506,29 @@ func (_m *ClientWithResponsesInterface) GetInstanceWithResponse(ctx context.Cont return r0, r1 } -// GetLoadBalancerServiceWithResponse provides a mock function with given fields: ctx, id, serviceId, reqEditors -func (_m *ClientWithResponsesInterface) GetLoadBalancerServiceWithResponse(ctx context.Context, id string, serviceId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetLoadBalancerServiceResponse, error) { +// ListDnsDomainRecordsWithResponse provides a mock function with given fields: ctx, domainId, reqEditors +func (_m *ClientWithResponsesInterface) ListDnsDomainRecordsWithResponse(ctx context.Context, domainId string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDnsDomainRecordsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, serviceId) + _ca = append(_ca, ctx, domainId) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetLoadBalancerServiceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetLoadBalancerServiceResponse); ok { - r0 = rf(ctx, id, serviceId, reqEditors...) + var r0 *oapi.ListDnsDomainRecordsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ListDnsDomainRecordsResponse); ok { + r0 = rf(ctx, domainId, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetLoadBalancerServiceResponse) + r0 = ret.Get(0).(*oapi.ListDnsDomainRecordsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, serviceId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, domainId, reqEditors...) } else { r1 = ret.Error(1) } @@ -3526,29 +5536,29 @@ func (_m *ClientWithResponsesInterface) GetLoadBalancerServiceWithResponse(ctx c return r0, r1 } -// GetLoadBalancerWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetLoadBalancerWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetLoadBalancerResponse, error) { +// ListDnsDomainsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListDnsDomainsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDnsDomainsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetLoadBalancerResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetLoadBalancerResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListDnsDomainsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDnsDomainsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetLoadBalancerResponse) + r0 = ret.Get(0).(*oapi.ListDnsDomainsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3556,29 +5566,29 @@ func (_m *ClientWithResponsesInterface) GetLoadBalancerWithResponse(ctx context. return r0, r1 } -// GetOperationWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetOperationWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetOperationResponse, error) { +// ListElasticIpsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListElasticIpsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListElasticIpsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetOperationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetOperationResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListElasticIpsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListElasticIpsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetOperationResponse) + r0 = ret.Get(0).(*oapi.ListElasticIpsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3586,29 +5596,29 @@ func (_m *ClientWithResponsesInterface) GetOperationWithResponse(ctx context.Con return r0, r1 } -// GetPrivateNetworkWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetPrivateNetworkWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetPrivateNetworkResponse, error) { +// ListEventsWithResponse provides a mock function with given fields: ctx, params, reqEditors +func (_m *ClientWithResponsesInterface) ListEventsWithResponse(ctx context.Context, params *oapi.ListEventsParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListEventsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetPrivateNetworkResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetPrivateNetworkResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListEventsResponse + if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListEventsParams, ...oapi.RequestEditorFn) *oapi.ListEventsResponse); ok { + r0 = rf(ctx, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetPrivateNetworkResponse) + r0 = ret.Get(0).(*oapi.ListEventsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListEventsParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -3616,29 +5626,29 @@ func (_m *ClientWithResponsesInterface) GetPrivateNetworkWithResponse(ctx contex return r0, r1 } -// GetQuotaWithResponse provides a mock function with given fields: ctx, entity, reqEditors -func (_m *ClientWithResponsesInterface) GetQuotaWithResponse(ctx context.Context, entity string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetQuotaResponse, error) { +// ListIamRolesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListIamRolesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListIamRolesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, entity) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetQuotaResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetQuotaResponse); ok { - r0 = rf(ctx, entity, reqEditors...) + var r0 *oapi.ListIamRolesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListIamRolesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetQuotaResponse) + r0 = ret.Get(0).(*oapi.ListIamRolesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, entity, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3646,29 +5656,29 @@ func (_m *ClientWithResponsesInterface) GetQuotaWithResponse(ctx context.Context return r0, r1 } -// GetReverseDnsElasticIpWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetReverseDnsElasticIpWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetReverseDnsElasticIpResponse, error) { +// ListInstancePoolsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListInstancePoolsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstancePoolsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetReverseDnsElasticIpResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetReverseDnsElasticIpResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListInstancePoolsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListInstancePoolsResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetReverseDnsElasticIpResponse) + r0 = ret.Get(0).(*oapi.ListInstancePoolsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3676,29 +5686,29 @@ func (_m *ClientWithResponsesInterface) GetReverseDnsElasticIpWithResponse(ctx c return r0, r1 } -// GetReverseDnsInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetReverseDnsInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetReverseDnsInstanceResponse, error) { +// ListInstanceTypesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListInstanceTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstanceTypesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetReverseDnsInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetReverseDnsInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListInstanceTypesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListInstanceTypesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetReverseDnsInstanceResponse) + r0 = ret.Get(0).(*oapi.ListInstanceTypesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3706,29 +5716,29 @@ func (_m *ClientWithResponsesInterface) GetReverseDnsInstanceWithResponse(ctx co return r0, r1 } -// GetSecurityGroupWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetSecurityGroupWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSecurityGroupResponse, error) { +// ListInstancesWithResponse provides a mock function with given fields: ctx, params, reqEditors +func (_m *ClientWithResponsesInterface) ListInstancesWithResponse(ctx context.Context, params *oapi.ListInstancesParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstancesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSecurityGroupResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListInstancesResponse + if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListInstancesParams, ...oapi.RequestEditorFn) *oapi.ListInstancesResponse); ok { + r0 = rf(ctx, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.ListInstancesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListInstancesParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -3736,29 +5746,29 @@ func (_m *ClientWithResponsesInterface) GetSecurityGroupWithResponse(ctx context return r0, r1 } -// GetSksClusterAuthorityCertWithResponse provides a mock function with given fields: ctx, id, authority, reqEditors -func (_m *ClientWithResponsesInterface) GetSksClusterAuthorityCertWithResponse(ctx context.Context, id string, authority oapi.GetSksClusterAuthorityCertParamsAuthority, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksClusterAuthorityCertResponse, error) { +// ListLoadBalancersWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListLoadBalancersWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListLoadBalancersResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, authority) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSksClusterAuthorityCertResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.GetSksClusterAuthorityCertParamsAuthority, ...oapi.RequestEditorFn) *oapi.GetSksClusterAuthorityCertResponse); ok { - r0 = rf(ctx, id, authority, reqEditors...) + var r0 *oapi.ListLoadBalancersResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListLoadBalancersResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSksClusterAuthorityCertResponse) + r0 = ret.Get(0).(*oapi.ListLoadBalancersResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.GetSksClusterAuthorityCertParamsAuthority, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, authority, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3766,29 +5776,29 @@ func (_m *ClientWithResponsesInterface) GetSksClusterAuthorityCertWithResponse(c return r0, r1 } -// GetSksClusterWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetSksClusterWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksClusterResponse, error) { +// ListPrivateNetworksWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListPrivateNetworksWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListPrivateNetworksResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSksClusterResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSksClusterResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListPrivateNetworksResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListPrivateNetworksResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSksClusterResponse) + r0 = ret.Get(0).(*oapi.ListPrivateNetworksResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3796,29 +5806,29 @@ func (_m *ClientWithResponsesInterface) GetSksClusterWithResponse(ctx context.Co return r0, r1 } -// GetSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, reqEditors -func (_m *ClientWithResponsesInterface) GetSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSksNodepoolResponse, error) { +// ListQuotasWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListQuotasWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListQuotasResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, ...oapi.RequestEditorFn) *oapi.GetSksNodepoolResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, reqEditors...) + var r0 *oapi.ListQuotasResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListQuotasResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.ListQuotasResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3826,29 +5836,29 @@ func (_m *ClientWithResponsesInterface) GetSksNodepoolWithResponse(ctx context.C return r0, r1 } -// GetSnapshotWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetSnapshotWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSnapshotResponse, error) { +// ListSecurityGroupsWithResponse provides a mock function with given fields: ctx, params, reqEditors +func (_m *ClientWithResponsesInterface) ListSecurityGroupsWithResponse(ctx context.Context, params *oapi.ListSecurityGroupsParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSecurityGroupsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSnapshotResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListSecurityGroupsResponse + if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListSecurityGroupsParams, ...oapi.RequestEditorFn) *oapi.ListSecurityGroupsResponse); ok { + r0 = rf(ctx, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSnapshotResponse) + r0 = ret.Get(0).(*oapi.ListSecurityGroupsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListSecurityGroupsParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -3856,29 +5866,29 @@ func (_m *ClientWithResponsesInterface) GetSnapshotWithResponse(ctx context.Cont return r0, r1 } -// GetSosPresignedUrlWithResponse provides a mock function with given fields: ctx, bucket, params, reqEditors -func (_m *ClientWithResponsesInterface) GetSosPresignedUrlWithResponse(ctx context.Context, bucket string, params *oapi.GetSosPresignedUrlParams, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSosPresignedUrlResponse, error) { +// ListSksClusterDeprecatedResourcesWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) ListSksClusterDeprecatedResourcesWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClusterDeprecatedResourcesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, bucket, params) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSosPresignedUrlResponse - if rf, ok := ret.Get(0).(func(context.Context, string, *oapi.GetSosPresignedUrlParams, ...oapi.RequestEditorFn) *oapi.GetSosPresignedUrlResponse); ok { - r0 = rf(ctx, bucket, params, reqEditors...) + var r0 *oapi.ListSksClusterDeprecatedResourcesResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ListSksClusterDeprecatedResourcesResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSosPresignedUrlResponse) + r0 = ret.Get(0).(*oapi.ListSksClusterDeprecatedResourcesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, *oapi.GetSosPresignedUrlParams, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, bucket, params, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -3886,29 +5896,29 @@ func (_m *ClientWithResponsesInterface) GetSosPresignedUrlWithResponse(ctx conte return r0, r1 } -// GetSshKeyWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) GetSshKeyWithResponse(ctx context.Context, name string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetSshKeyResponse, error) { +// ListSksClusterVersionsWithResponse provides a mock function with given fields: ctx, params, reqEditors +func (_m *ClientWithResponsesInterface) ListSksClusterVersionsWithResponse(ctx context.Context, params *oapi.ListSksClusterVersionsParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClusterVersionsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetSshKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetSshKeyResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.ListSksClusterVersionsResponse + if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListSksClusterVersionsParams, ...oapi.RequestEditorFn) *oapi.ListSksClusterVersionsResponse); ok { + r0 = rf(ctx, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetSshKeyResponse) + r0 = ret.Get(0).(*oapi.ListSksClusterVersionsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListSksClusterVersionsParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -3916,29 +5926,29 @@ func (_m *ClientWithResponsesInterface) GetSshKeyWithResponse(ctx context.Contex return r0, r1 } -// GetTemplateWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) GetTemplateWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.GetTemplateResponse, error) { +// ListSksClustersWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListSksClustersWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClustersResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.GetTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.GetTemplateResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ListSksClustersResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSksClustersResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.GetTemplateResponse) + r0 = ret.Get(0).(*oapi.ListSksClustersResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -3946,8 +5956,8 @@ func (_m *ClientWithResponsesInterface) GetTemplateWithResponse(ctx context.Cont return r0, r1 } -// ListAccessKeyKnownOperationsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListAccessKeyKnownOperationsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeyKnownOperationsResponse, error) { +// ListSnapshotsWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListSnapshotsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSnapshotsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -3957,12 +5967,12 @@ func (_m *ClientWithResponsesInterface) ListAccessKeyKnownOperationsWithResponse _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListAccessKeyKnownOperationsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeyKnownOperationsResponse); ok { + var r0 *oapi.ListSnapshotsResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSnapshotsResponse); ok { r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListAccessKeyKnownOperationsResponse) + r0 = ret.Get(0).(*oapi.ListSnapshotsResponse) } } @@ -3976,8 +5986,8 @@ func (_m *ClientWithResponsesInterface) ListAccessKeyKnownOperationsWithResponse return r0, r1 } -// ListAccessKeyOperationsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListAccessKeyOperationsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeyOperationsResponse, error) { +// ListSosBucketsUsageWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListSosBucketsUsageWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSosBucketsUsageResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -3987,12 +5997,12 @@ func (_m *ClientWithResponsesInterface) ListAccessKeyOperationsWithResponse(ctx _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListAccessKeyOperationsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeyOperationsResponse); ok { + var r0 *oapi.ListSosBucketsUsageResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSosBucketsUsageResponse); ok { r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListAccessKeyOperationsResponse) + r0 = ret.Get(0).(*oapi.ListSosBucketsUsageResponse) } } @@ -4006,8 +6016,8 @@ func (_m *ClientWithResponsesInterface) ListAccessKeyOperationsWithResponse(ctx return r0, r1 } -// ListAccessKeysWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListAccessKeysWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAccessKeysResponse, error) { +// ListSshKeysWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListSshKeysWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSshKeysResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -4017,12 +6027,12 @@ func (_m *ClientWithResponsesInterface) ListAccessKeysWithResponse(ctx context.C _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListAccessKeysResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAccessKeysResponse); ok { + var r0 *oapi.ListSshKeysResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSshKeysResponse); ok { r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListAccessKeysResponse) + r0 = ret.Get(0).(*oapi.ListSshKeysResponse) } } @@ -4036,29 +6046,29 @@ func (_m *ClientWithResponsesInterface) ListAccessKeysWithResponse(ctx context.C return r0, r1 } -// ListAntiAffinityGroupsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListAntiAffinityGroupsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListAntiAffinityGroupsResponse, error) { +// ListTemplatesWithResponse provides a mock function with given fields: ctx, params, reqEditors +func (_m *ClientWithResponsesInterface) ListTemplatesWithResponse(ctx context.Context, params *oapi.ListTemplatesParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListTemplatesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, params) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListAntiAffinityGroupsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListAntiAffinityGroupsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ListTemplatesResponse + if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListTemplatesParams, ...oapi.RequestEditorFn) *oapi.ListTemplatesResponse); ok { + r0 = rf(ctx, params, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListAntiAffinityGroupsResponse) + r0 = ret.Get(0).(*oapi.ListTemplatesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListTemplatesParams, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) } else { r1 = ret.Error(1) } @@ -4066,29 +6076,29 @@ func (_m *ClientWithResponsesInterface) ListAntiAffinityGroupsWithResponse(ctx c return r0, r1 } -// ListDbaasIntegrationSettingsWithResponse provides a mock function with given fields: ctx, integrationType, sourceType, destType, reqEditors -func (_m *ClientWithResponsesInterface) ListDbaasIntegrationSettingsWithResponse(ctx context.Context, integrationType string, sourceType string, destType string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasIntegrationSettingsResponse, error) { +// ListZonesWithResponse provides a mock function with given fields: ctx, reqEditors +func (_m *ClientWithResponsesInterface) ListZonesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListZonesResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, integrationType, sourceType, destType) + _ca = append(_ca, ctx) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDbaasIntegrationSettingsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, string, ...oapi.RequestEditorFn) *oapi.ListDbaasIntegrationSettingsResponse); ok { - r0 = rf(ctx, integrationType, sourceType, destType, reqEditors...) + var r0 *oapi.ListZonesResponse + if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListZonesResponse); ok { + r0 = rf(ctx, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDbaasIntegrationSettingsResponse) + r0 = ret.Get(0).(*oapi.ListZonesResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, integrationType, sourceType, destType, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) } else { r1 = ret.Error(1) } @@ -4096,29 +6106,29 @@ func (_m *ClientWithResponsesInterface) ListDbaasIntegrationSettingsWithResponse return r0, r1 } -// ListDbaasIntegrationTypesWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListDbaasIntegrationTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasIntegrationTypesResponse, error) { +// PromoteSnapshotToTemplateWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.PromoteSnapshotToTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDbaasIntegrationTypesResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasIntegrationTypesResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.PromoteSnapshotToTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.PromoteSnapshotToTemplateResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDbaasIntegrationTypesResponse) + r0 = ret.Get(0).(*oapi.PromoteSnapshotToTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4126,29 +6136,29 @@ func (_m *ClientWithResponsesInterface) ListDbaasIntegrationTypesWithResponse(ct return r0, r1 } -// ListDbaasServiceTypesWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListDbaasServiceTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasServiceTypesResponse, error) { +// PromoteSnapshotToTemplateWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithResponse(ctx context.Context, id string, body oapi.PromoteSnapshotToTemplateJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.PromoteSnapshotToTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDbaasServiceTypesResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasServiceTypesResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.PromoteSnapshotToTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.PromoteSnapshotToTemplateJSONRequestBody, ...oapi.RequestEditorFn) *oapi.PromoteSnapshotToTemplateResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDbaasServiceTypesResponse) + r0 = ret.Get(0).(*oapi.PromoteSnapshotToTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.PromoteSnapshotToTemplateJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4156,29 +6166,29 @@ func (_m *ClientWithResponsesInterface) ListDbaasServiceTypesWithResponse(ctx co return r0, r1 } -// ListDbaasServicesWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListDbaasServicesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDbaasServicesResponse, error) { +// RebootInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) RebootInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RebootInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDbaasServicesResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDbaasServicesResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RebootInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RebootInstanceResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDbaasServicesResponse) + r0 = ret.Get(0).(*oapi.RebootInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -4186,29 +6196,29 @@ func (_m *ClientWithResponsesInterface) ListDbaasServicesWithResponse(ctx contex return r0, r1 } -// ListDeployTargetsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListDeployTargetsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDeployTargetsResponse, error) { +// RegisterSshKeyWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) RegisterSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterSshKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDeployTargetsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDeployTargetsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RegisterSshKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RegisterSshKeyResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDeployTargetsResponse) + r0 = ret.Get(0).(*oapi.RegisterSshKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4216,29 +6226,29 @@ func (_m *ClientWithResponsesInterface) ListDeployTargetsWithResponse(ctx contex return r0, r1 } -// ListDnsDomainRecordsWithResponse provides a mock function with given fields: ctx, domainId, reqEditors -func (_m *ClientWithResponsesInterface) ListDnsDomainRecordsWithResponse(ctx context.Context, domainId string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDnsDomainRecordsResponse, error) { +// RegisterSshKeyWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) RegisterSshKeyWithResponse(ctx context.Context, body oapi.RegisterSshKeyJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterSshKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, domainId) + _ca = append(_ca, ctx, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDnsDomainRecordsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ListDnsDomainRecordsResponse); ok { - r0 = rf(ctx, domainId, reqEditors...) + var r0 *oapi.RegisterSshKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.RegisterSshKeyJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RegisterSshKeyResponse); ok { + r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDnsDomainRecordsResponse) + r0 = ret.Get(0).(*oapi.RegisterSshKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, domainId, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.RegisterSshKeyJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4246,29 +6256,29 @@ func (_m *ClientWithResponsesInterface) ListDnsDomainRecordsWithResponse(ctx con return r0, r1 } -// ListDnsDomainsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListDnsDomainsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListDnsDomainsResponse, error) { +// RegisterTemplateWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) RegisterTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListDnsDomainsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListDnsDomainsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RegisterTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RegisterTemplateResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListDnsDomainsResponse) + r0 = ret.Get(0).(*oapi.RegisterTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4276,29 +6286,29 @@ func (_m *ClientWithResponsesInterface) ListDnsDomainsWithResponse(ctx context.C return r0, r1 } -// ListElasticIpsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListElasticIpsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListElasticIpsResponse, error) { +// RegisterTemplateWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) RegisterTemplateWithResponse(ctx context.Context, body oapi.RegisterTemplateJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterTemplateResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListElasticIpsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListElasticIpsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RegisterTemplateResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.RegisterTemplateJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RegisterTemplateResponse); ok { + r0 = rf(ctx, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListElasticIpsResponse) + r0 = ret.Get(0).(*oapi.RegisterTemplateResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.RegisterTemplateJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4306,29 +6316,29 @@ func (_m *ClientWithResponsesInterface) ListElasticIpsWithResponse(ctx context.C return r0, r1 } -// ListEventsWithResponse provides a mock function with given fields: ctx, params, reqEditors -func (_m *ClientWithResponsesInterface) ListEventsWithResponse(ctx context.Context, params *oapi.ListEventsParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListEventsResponse, error) { +// RemoveExternalSourceFromSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveExternalSourceFromSecurityGroupResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, params) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListEventsResponse - if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListEventsParams, ...oapi.RequestEditorFn) *oapi.ListEventsResponse); ok { - r0 = rf(ctx, params, reqEditors...) + var r0 *oapi.RemoveExternalSourceFromSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RemoveExternalSourceFromSecurityGroupResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListEventsResponse) + r0 = ret.Get(0).(*oapi.RemoveExternalSourceFromSecurityGroupResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListEventsParams, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, params, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4336,29 +6346,29 @@ func (_m *ClientWithResponsesInterface) ListEventsWithResponse(ctx context.Conte return r0, r1 } -// ListInstancePoolsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListInstancePoolsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstancePoolsResponse, error) { +// RemoveExternalSourceFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWithResponse(ctx context.Context, id string, body oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveExternalSourceFromSecurityGroupResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListInstancePoolsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListInstancePoolsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RemoveExternalSourceFromSecurityGroupResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RemoveExternalSourceFromSecurityGroupResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListInstancePoolsResponse) + r0 = ret.Get(0).(*oapi.RemoveExternalSourceFromSecurityGroupResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4366,29 +6376,29 @@ func (_m *ClientWithResponsesInterface) ListInstancePoolsWithResponse(ctx contex return r0, r1 } -// ListInstanceTypesWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListInstanceTypesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstanceTypesResponse, error) { +// RemoveInstanceProtectionWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) RemoveInstanceProtectionWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveInstanceProtectionResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListInstanceTypesResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListInstanceTypesResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.RemoveInstanceProtectionResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RemoveInstanceProtectionResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListInstanceTypesResponse) + r0 = ret.Get(0).(*oapi.RemoveInstanceProtectionResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -4396,29 +6406,29 @@ func (_m *ClientWithResponsesInterface) ListInstanceTypesWithResponse(ctx contex return r0, r1 } -// ListInstancesWithResponse provides a mock function with given fields: ctx, params, reqEditors -func (_m *ClientWithResponsesInterface) ListInstancesWithResponse(ctx context.Context, params *oapi.ListInstancesParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListInstancesResponse, error) { +// ResetDbaasKafkaUserPasswordWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, username, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasKafkaUserPasswordWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasKafkaUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, params) + _ca = append(_ca, ctx, serviceName, username, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListInstancesResponse - if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListInstancesParams, ...oapi.RequestEditorFn) *oapi.ListInstancesResponse); ok { - r0 = rf(ctx, params, reqEditors...) + var r0 *oapi.ResetDbaasKafkaUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetDbaasKafkaUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListInstancesResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasKafkaUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListInstancesParams, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, params, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4426,29 +6436,29 @@ func (_m *ClientWithResponsesInterface) ListInstancesWithResponse(ctx context.Co return r0, r1 } -// ListLoadBalancersWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListLoadBalancersWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListLoadBalancersResponse, error) { +// ResetDbaasKafkaUserPasswordWithResponse provides a mock function with given fields: ctx, serviceName, username, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasKafkaUserPasswordWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, body oapi.ResetDbaasKafkaUserPasswordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasKafkaUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, serviceName, username, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListLoadBalancersResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListLoadBalancersResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetDbaasKafkaUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasKafkaUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetDbaasKafkaUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListLoadBalancersResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasKafkaUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasKafkaUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4456,29 +6466,29 @@ func (_m *ClientWithResponsesInterface) ListLoadBalancersWithResponse(ctx contex return r0, r1 } -// ListPrivateNetworksWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListPrivateNetworksWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListPrivateNetworksResponse, error) { +// ResetDbaasMysqlUserPasswordWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, username, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasMysqlUserPasswordWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasMysqlUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, serviceName, username, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListPrivateNetworksResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListPrivateNetworksResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetDbaasMysqlUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetDbaasMysqlUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListPrivateNetworksResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasMysqlUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4486,29 +6496,29 @@ func (_m *ClientWithResponsesInterface) ListPrivateNetworksWithResponse(ctx cont return r0, r1 } -// ListQuotasWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListQuotasWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListQuotasResponse, error) { +// ResetDbaasMysqlUserPasswordWithResponse provides a mock function with given fields: ctx, serviceName, username, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasMysqlUserPasswordWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, body oapi.ResetDbaasMysqlUserPasswordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasMysqlUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, serviceName, username, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListQuotasResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListQuotasResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetDbaasMysqlUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasMysqlUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetDbaasMysqlUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListQuotasResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasMysqlUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasMysqlUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4516,29 +6526,29 @@ func (_m *ClientWithResponsesInterface) ListQuotasWithResponse(ctx context.Conte return r0, r1 } -// ListSecurityGroupsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListSecurityGroupsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSecurityGroupsResponse, error) { +// ResetDbaasOpensearchUserPasswordWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, username, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasOpensearchUserPasswordWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasOpensearchUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, serviceName, username, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSecurityGroupsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSecurityGroupsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetDbaasOpensearchUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetDbaasOpensearchUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSecurityGroupsResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasOpensearchUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4546,29 +6556,29 @@ func (_m *ClientWithResponsesInterface) ListSecurityGroupsWithResponse(ctx conte return r0, r1 } -// ListSksClusterDeprecatedResourcesWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) ListSksClusterDeprecatedResourcesWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClusterDeprecatedResourcesResponse, error) { +// ResetDbaasOpensearchUserPasswordWithResponse provides a mock function with given fields: ctx, serviceName, username, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasOpensearchUserPasswordWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, body oapi.ResetDbaasOpensearchUserPasswordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasOpensearchUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceName, username, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSksClusterDeprecatedResourcesResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.ListSksClusterDeprecatedResourcesResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ResetDbaasOpensearchUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasOpensearchUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetDbaasOpensearchUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSksClusterDeprecatedResourcesResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasOpensearchUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasOpensearchUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4576,29 +6586,29 @@ func (_m *ClientWithResponsesInterface) ListSksClusterDeprecatedResourcesWithRes return r0, r1 } -// ListSksClusterVersionsWithResponse provides a mock function with given fields: ctx, params, reqEditors -func (_m *ClientWithResponsesInterface) ListSksClusterVersionsWithResponse(ctx context.Context, params *oapi.ListSksClusterVersionsParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClusterVersionsResponse, error) { +// ResetDbaasPostgresUserPasswordWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, username, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasPostgresUserPasswordWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasPostgresUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, params) + _ca = append(_ca, ctx, serviceName, username, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSksClusterVersionsResponse - if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListSksClusterVersionsParams, ...oapi.RequestEditorFn) *oapi.ListSksClusterVersionsResponse); ok { - r0 = rf(ctx, params, reqEditors...) + var r0 *oapi.ResetDbaasPostgresUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetDbaasPostgresUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSksClusterVersionsResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasPostgresUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListSksClusterVersionsParams, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, params, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4606,29 +6616,29 @@ func (_m *ClientWithResponsesInterface) ListSksClusterVersionsWithResponse(ctx c return r0, r1 } -// ListSksClustersWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListSksClustersWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSksClustersResponse, error) { +// ResetDbaasPostgresUserPasswordWithResponse provides a mock function with given fields: ctx, serviceName, username, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetDbaasPostgresUserPasswordWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, body oapi.ResetDbaasPostgresUserPasswordJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetDbaasPostgresUserPasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, serviceName, username, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSksClustersResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSksClustersResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetDbaasPostgresUserPasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasPostgresUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetDbaasPostgresUserPasswordResponse); ok { + r0 = rf(ctx, serviceName, username, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSksClustersResponse) + r0 = ret.Get(0).(*oapi.ResetDbaasPostgresUserPasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.ResetDbaasPostgresUserPasswordJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4636,29 +6646,29 @@ func (_m *ClientWithResponsesInterface) ListSksClustersWithResponse(ctx context. return r0, r1 } -// ListSnapshotsWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListSnapshotsWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSnapshotsResponse, error) { +// ResetElasticIpFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetElasticIpFieldWithResponse(ctx context.Context, id string, field oapi.ResetElasticIpFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetElasticIpFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSnapshotsResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSnapshotsResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetElasticIpFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetElasticIpFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetElasticIpFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSnapshotsResponse) + r0 = ret.Get(0).(*oapi.ResetElasticIpFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetElasticIpFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4666,29 +6676,29 @@ func (_m *ClientWithResponsesInterface) ListSnapshotsWithResponse(ctx context.Co return r0, r1 } -// ListSosBucketsUsageWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListSosBucketsUsageWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSosBucketsUsageResponse, error) { +// ResetInstanceFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetInstanceFieldWithResponse(ctx context.Context, id string, field oapi.ResetInstanceFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSosBucketsUsageResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSosBucketsUsageResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetInstanceFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstanceFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetInstanceFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSosBucketsUsageResponse) + r0 = ret.Get(0).(*oapi.ResetInstanceFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstanceFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4696,29 +6706,29 @@ func (_m *ClientWithResponsesInterface) ListSosBucketsUsageWithResponse(ctx cont return r0, r1 } -// ListSshKeysWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListSshKeysWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListSshKeysResponse, error) { +// ResetInstancePoolFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetInstancePoolFieldWithResponse(ctx context.Context, id string, field oapi.ResetInstancePoolFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstancePoolFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListSshKeysResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListSshKeysResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetInstancePoolFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstancePoolFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetInstancePoolFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListSshKeysResponse) + r0 = ret.Get(0).(*oapi.ResetInstancePoolFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstancePoolFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4726,29 +6736,29 @@ func (_m *ClientWithResponsesInterface) ListSshKeysWithResponse(ctx context.Cont return r0, r1 } -// ListTemplatesWithResponse provides a mock function with given fields: ctx, params, reqEditors -func (_m *ClientWithResponsesInterface) ListTemplatesWithResponse(ctx context.Context, params *oapi.ListTemplatesParams, reqEditors ...oapi.RequestEditorFn) (*oapi.ListTemplatesResponse, error) { +// ResetInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, params) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListTemplatesResponse - if rf, ok := ret.Get(0).(func(context.Context, *oapi.ListTemplatesParams, ...oapi.RequestEditorFn) *oapi.ListTemplatesResponse); ok { - r0 = rf(ctx, params, reqEditors...) + var r0 *oapi.ResetInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetInstanceResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListTemplatesResponse) + r0 = ret.Get(0).(*oapi.ResetInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *oapi.ListTemplatesParams, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, params, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4756,29 +6766,29 @@ func (_m *ClientWithResponsesInterface) ListTemplatesWithResponse(ctx context.Co return r0, r1 } -// ListZonesWithResponse provides a mock function with given fields: ctx, reqEditors -func (_m *ClientWithResponsesInterface) ListZonesWithResponse(ctx context.Context, reqEditors ...oapi.RequestEditorFn) (*oapi.ListZonesResponse, error) { +// ResetInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) ResetInstanceWithResponse(ctx context.Context, id string, body oapi.ResetInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ListZonesResponse - if rf, ok := ret.Get(0).(func(context.Context, ...oapi.RequestEditorFn) *oapi.ListZonesResponse); ok { - r0 = rf(ctx, reqEditors...) + var r0 *oapi.ResetInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetInstanceResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ListZonesResponse) + r0 = ret.Get(0).(*oapi.ResetInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4786,29 +6796,29 @@ func (_m *ClientWithResponsesInterface) ListZonesWithResponse(ctx context.Contex return r0, r1 } -// PromoteSnapshotToTemplateWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.PromoteSnapshotToTemplateResponse, error) { +// ResetLoadBalancerFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetLoadBalancerFieldWithResponse(ctx context.Context, id string, field oapi.ResetLoadBalancerFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetLoadBalancerFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.PromoteSnapshotToTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.PromoteSnapshotToTemplateResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.ResetLoadBalancerFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetLoadBalancerFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetLoadBalancerFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.PromoteSnapshotToTemplateResponse) + r0 = ret.Get(0).(*oapi.ResetLoadBalancerFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetLoadBalancerFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4816,29 +6826,29 @@ func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithBodyWithRes return r0, r1 } -// PromoteSnapshotToTemplateWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithResponse(ctx context.Context, id string, body oapi.PromoteSnapshotToTemplateJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.PromoteSnapshotToTemplateResponse, error) { +// ResetLoadBalancerServiceFieldWithResponse provides a mock function with given fields: ctx, id, serviceId, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetLoadBalancerServiceFieldWithResponse(ctx context.Context, id string, serviceId string, field oapi.ResetLoadBalancerServiceFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetLoadBalancerServiceFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, id, serviceId, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.PromoteSnapshotToTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.PromoteSnapshotToTemplateJSONRequestBody, ...oapi.RequestEditorFn) *oapi.PromoteSnapshotToTemplateResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.ResetLoadBalancerServiceFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ResetLoadBalancerServiceFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetLoadBalancerServiceFieldResponse); ok { + r0 = rf(ctx, id, serviceId, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.PromoteSnapshotToTemplateResponse) + r0 = ret.Get(0).(*oapi.ResetLoadBalancerServiceFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.PromoteSnapshotToTemplateJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ResetLoadBalancerServiceFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, serviceId, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4846,29 +6856,29 @@ func (_m *ClientWithResponsesInterface) PromoteSnapshotToTemplateWithResponse(ct return r0, r1 } -// RebootInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) RebootInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RebootInstanceResponse, error) { +// ResetPrivateNetworkFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetPrivateNetworkFieldWithResponse(ctx context.Context, id string, field oapi.ResetPrivateNetworkFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetPrivateNetworkFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RebootInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RebootInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.ResetPrivateNetworkFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetPrivateNetworkFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetPrivateNetworkFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RebootInstanceResponse) + r0 = ret.Get(0).(*oapi.ResetPrivateNetworkFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetPrivateNetworkFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4876,29 +6886,29 @@ func (_m *ClientWithResponsesInterface) RebootInstanceWithResponse(ctx context.C return r0, r1 } -// RegisterSshKeyWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) RegisterSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterSshKeyResponse, error) { +// ResetSksClusterFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetSksClusterFieldWithResponse(ctx context.Context, id string, field oapi.ResetSksClusterFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetSksClusterFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RegisterSshKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RegisterSshKeyResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.ResetSksClusterFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetSksClusterFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetSksClusterFieldResponse); ok { + r0 = rf(ctx, id, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RegisterSshKeyResponse) + r0 = ret.Get(0).(*oapi.ResetSksClusterFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetSksClusterFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4906,29 +6916,29 @@ func (_m *ClientWithResponsesInterface) RegisterSshKeyWithBodyWithResponse(ctx c return r0, r1 } -// RegisterSshKeyWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) RegisterSshKeyWithResponse(ctx context.Context, body oapi.RegisterSshKeyJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterSshKeyResponse, error) { +// ResetSksNodepoolFieldWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, field, reqEditors +func (_m *ClientWithResponsesInterface) ResetSksNodepoolFieldWithResponse(ctx context.Context, id string, sksNodepoolId string, field oapi.ResetSksNodepoolFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetSksNodepoolFieldResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, sksNodepoolId, field) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RegisterSshKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.RegisterSshKeyJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RegisterSshKeyResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.ResetSksNodepoolFieldResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ResetSksNodepoolFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetSksNodepoolFieldResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, field, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RegisterSshKeyResponse) + r0 = ret.Get(0).(*oapi.ResetSksNodepoolFieldResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.RegisterSshKeyJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ResetSksNodepoolFieldParamsField, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, field, reqEditors...) } else { r1 = ret.Error(1) } @@ -4936,29 +6946,29 @@ func (_m *ClientWithResponsesInterface) RegisterSshKeyWithResponse(ctx context.C return r0, r1 } -// RegisterTemplateWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) RegisterTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterTemplateResponse, error) { +// ResizeInstanceDiskWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResizeInstanceDiskResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RegisterTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RegisterTemplateResponse); ok { - r0 = rf(ctx, contentType, body, reqEditors...) + var r0 *oapi.ResizeInstanceDiskResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResizeInstanceDiskResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RegisterTemplateResponse) + r0 = ret.Get(0).(*oapi.ResizeInstanceDiskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4966,29 +6976,29 @@ func (_m *ClientWithResponsesInterface) RegisterTemplateWithBodyWithResponse(ctx return r0, r1 } -// RegisterTemplateWithResponse provides a mock function with given fields: ctx, body, reqEditors -func (_m *ClientWithResponsesInterface) RegisterTemplateWithResponse(ctx context.Context, body oapi.RegisterTemplateJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RegisterTemplateResponse, error) { +// ResizeInstanceDiskWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithResponse(ctx context.Context, id string, body oapi.ResizeInstanceDiskJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResizeInstanceDiskResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, body) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RegisterTemplateResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.RegisterTemplateJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RegisterTemplateResponse); ok { - r0 = rf(ctx, body, reqEditors...) + var r0 *oapi.ResizeInstanceDiskResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResizeInstanceDiskJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResizeInstanceDiskResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RegisterTemplateResponse) + r0 = ret.Get(0).(*oapi.ResizeInstanceDiskResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.RegisterTemplateJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResizeInstanceDiskJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -4996,29 +7006,29 @@ func (_m *ClientWithResponsesInterface) RegisterTemplateWithResponse(ctx context return r0, r1 } -// RemoveExternalSourceFromSecurityGroupWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveExternalSourceFromSecurityGroupResponse, error) { +// RevealInstancePasswordWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) RevealInstancePasswordWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RevealInstancePasswordResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RemoveExternalSourceFromSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RemoveExternalSourceFromSecurityGroupResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.RevealInstancePasswordResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RevealInstancePasswordResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RemoveExternalSourceFromSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.RevealInstancePasswordResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -5026,29 +7036,29 @@ func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWit return r0, r1 } -// RemoveExternalSourceFromSecurityGroupWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWithResponse(ctx context.Context, id string, body oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveExternalSourceFromSecurityGroupResponse, error) { +// RevertInstanceToSnapshotWithBodyWithResponse provides a mock function with given fields: ctx, instanceId, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RevertInstanceToSnapshotResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, instanceId, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RemoveExternalSourceFromSecurityGroupResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RemoveExternalSourceFromSecurityGroupResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.RevertInstanceToSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RevertInstanceToSnapshotResponse); ok { + r0 = rf(ctx, instanceId, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RemoveExternalSourceFromSecurityGroupResponse) + r0 = ret.Get(0).(*oapi.RevertInstanceToSnapshotResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.RemoveExternalSourceFromSecurityGroupJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, instanceId, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5056,29 +7066,29 @@ func (_m *ClientWithResponsesInterface) RemoveExternalSourceFromSecurityGroupWit return r0, r1 } -// RemoveInstanceProtectionWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) RemoveInstanceProtectionWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RemoveInstanceProtectionResponse, error) { +// RevertInstanceToSnapshotWithResponse provides a mock function with given fields: ctx, instanceId, body, reqEditors +func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithResponse(ctx context.Context, instanceId string, body oapi.RevertInstanceToSnapshotJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RevertInstanceToSnapshotResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, instanceId, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RemoveInstanceProtectionResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RemoveInstanceProtectionResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.RevertInstanceToSnapshotResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.RevertInstanceToSnapshotJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RevertInstanceToSnapshotResponse); ok { + r0 = rf(ctx, instanceId, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RemoveInstanceProtectionResponse) + r0 = ret.Get(0).(*oapi.RevertInstanceToSnapshotResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.RevertInstanceToSnapshotJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, instanceId, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5086,29 +7096,29 @@ func (_m *ClientWithResponsesInterface) RemoveInstanceProtectionWithResponse(ctx return r0, r1 } -// ResetElasticIpFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetElasticIpFieldWithResponse(ctx context.Context, id string, field oapi.ResetElasticIpFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetElasticIpFieldResponse, error) { +// RevokeAccessKeyWithResponse provides a mock function with given fields: ctx, key, reqEditors +func (_m *ClientWithResponsesInterface) RevokeAccessKeyWithResponse(ctx context.Context, key string, reqEditors ...oapi.RequestEditorFn) (*oapi.RevokeAccessKeyResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, key) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetElasticIpFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetElasticIpFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetElasticIpFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.RevokeAccessKeyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RevokeAccessKeyResponse); ok { + r0 = rf(ctx, key, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetElasticIpFieldResponse) + r0 = ret.Get(0).(*oapi.RevokeAccessKeyResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetElasticIpFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, key, reqEditors...) } else { r1 = ret.Error(1) } @@ -5116,29 +7126,29 @@ func (_m *ClientWithResponsesInterface) ResetElasticIpFieldWithResponse(ctx cont return r0, r1 } -// ResetInstanceFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetInstanceFieldWithResponse(ctx context.Context, id string, field oapi.ResetInstanceFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceFieldResponse, error) { +// RotateSksCcmCredentialsWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) RotateSksCcmCredentialsWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RotateSksCcmCredentialsResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetInstanceFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstanceFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetInstanceFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.RotateSksCcmCredentialsResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RotateSksCcmCredentialsResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetInstanceFieldResponse) + r0 = ret.Get(0).(*oapi.RotateSksCcmCredentialsResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstanceFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -5146,29 +7156,29 @@ func (_m *ClientWithResponsesInterface) ResetInstanceFieldWithResponse(ctx conte return r0, r1 } -// ResetInstancePoolFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetInstancePoolFieldWithResponse(ctx context.Context, id string, field oapi.ResetInstancePoolFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstancePoolFieldResponse, error) { +// RotateSksOperatorsCaWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) RotateSksOperatorsCaWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RotateSksOperatorsCaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetInstancePoolFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstancePoolFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetInstancePoolFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.RotateSksOperatorsCaResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RotateSksOperatorsCaResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetInstancePoolFieldResponse) + r0 = ret.Get(0).(*oapi.RotateSksOperatorsCaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstancePoolFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -5176,8 +7186,8 @@ func (_m *ClientWithResponsesInterface) ResetInstancePoolFieldWithResponse(ctx c return r0, r1 } -// ResetInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) ResetInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceResponse, error) { +// ScaleInstancePoolWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstancePoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -5187,12 +7197,12 @@ func (_m *ClientWithResponsesInterface) ResetInstanceWithBodyWithResponse(ctx co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResetInstanceResponse); ok { + var r0 *oapi.ScaleInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleInstancePoolResponse); ok { r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetInstanceResponse) + r0 = ret.Get(0).(*oapi.ScaleInstancePoolResponse) } } @@ -5206,8 +7216,8 @@ func (_m *ClientWithResponsesInterface) ResetInstanceWithBodyWithResponse(ctx co return r0, r1 } -// ResetInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) ResetInstanceWithResponse(ctx context.Context, id string, body oapi.ResetInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetInstanceResponse, error) { +// ScaleInstancePoolWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithResponse(ctx context.Context, id string, body oapi.ScaleInstancePoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstancePoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] @@ -5217,17 +7227,17 @@ func (_m *ClientWithResponsesInterface) ResetInstanceWithResponse(ctx context.Co _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResetInstanceResponse); ok { + var r0 *oapi.ScaleInstancePoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ScaleInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleInstancePoolResponse); ok { r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetInstanceResponse) + r0 = ret.Get(0).(*oapi.ScaleInstancePoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ScaleInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) @@ -5236,29 +7246,29 @@ func (_m *ClientWithResponsesInterface) ResetInstanceWithResponse(ctx context.Co return r0, r1 } -// ResetLoadBalancerFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetLoadBalancerFieldWithResponse(ctx context.Context, id string, field oapi.ResetLoadBalancerFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetLoadBalancerFieldResponse, error) { +// ScaleInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetLoadBalancerFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetLoadBalancerFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetLoadBalancerFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.ScaleInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleInstanceResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetLoadBalancerFieldResponse) + r0 = ret.Get(0).(*oapi.ScaleInstanceResponse) } } - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetLoadBalancerFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5266,29 +7276,29 @@ func (_m *ClientWithResponsesInterface) ResetLoadBalancerFieldWithResponse(ctx c return r0, r1 } -// ResetLoadBalancerServiceFieldWithResponse provides a mock function with given fields: ctx, id, serviceId, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetLoadBalancerServiceFieldWithResponse(ctx context.Context, id string, serviceId string, field oapi.ResetLoadBalancerServiceFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetLoadBalancerServiceFieldResponse, error) { +// ScaleInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleInstanceWithResponse(ctx context.Context, id string, body oapi.ScaleInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, serviceId, field) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetLoadBalancerServiceFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ResetLoadBalancerServiceFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetLoadBalancerServiceFieldResponse); ok { - r0 = rf(ctx, id, serviceId, field, reqEditors...) + var r0 *oapi.ScaleInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ScaleInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleInstanceResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetLoadBalancerServiceFieldResponse) + r0 = ret.Get(0).(*oapi.ScaleInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ResetLoadBalancerServiceFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, serviceId, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ScaleInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5296,29 +7306,29 @@ func (_m *ClientWithResponsesInterface) ResetLoadBalancerServiceFieldWithRespons return r0, r1 } -// ResetPrivateNetworkFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetPrivateNetworkFieldWithResponse(ctx context.Context, id string, field oapi.ResetPrivateNetworkFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetPrivateNetworkFieldResponse, error) { +// ScaleSksNodepoolWithBodyWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithBodyWithResponse(ctx context.Context, id string, sksNodepoolId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleSksNodepoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, id, sksNodepoolId, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetPrivateNetworkFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetPrivateNetworkFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetPrivateNetworkFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.ScaleSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleSksNodepoolResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetPrivateNetworkFieldResponse) + r0 = ret.Get(0).(*oapi.ScaleSksNodepoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetPrivateNetworkFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5326,29 +7336,29 @@ func (_m *ClientWithResponsesInterface) ResetPrivateNetworkFieldWithResponse(ctx return r0, r1 } -// ResetSksClusterFieldWithResponse provides a mock function with given fields: ctx, id, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetSksClusterFieldWithResponse(ctx context.Context, id string, field oapi.ResetSksClusterFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetSksClusterFieldResponse, error) { +// ScaleSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, body, reqEditors +func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, body oapi.ScaleSksNodepoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleSksNodepoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, field) + _ca = append(_ca, ctx, id, sksNodepoolId, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetSksClusterFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResetSksClusterFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetSksClusterFieldResponse); ok { - r0 = rf(ctx, id, field, reqEditors...) + var r0 *oapi.ScaleSksNodepoolResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ScaleSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleSksNodepoolResponse); ok { + r0 = rf(ctx, id, sksNodepoolId, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetSksClusterFieldResponse) + r0 = ret.Get(0).(*oapi.ScaleSksNodepoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResetSksClusterFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ScaleSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, sksNodepoolId, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5356,29 +7366,29 @@ func (_m *ClientWithResponsesInterface) ResetSksClusterFieldWithResponse(ctx con return r0, r1 } -// ResetSksNodepoolFieldWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, field, reqEditors -func (_m *ClientWithResponsesInterface) ResetSksNodepoolFieldWithResponse(ctx context.Context, id string, sksNodepoolId string, field oapi.ResetSksNodepoolFieldParamsField, reqEditors ...oapi.RequestEditorFn) (*oapi.ResetSksNodepoolFieldResponse, error) { +// StartDbaasGrafanaMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasGrafanaMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasGrafanaMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId, field) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResetSksNodepoolFieldResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ResetSksNodepoolFieldParamsField, ...oapi.RequestEditorFn) *oapi.ResetSksNodepoolFieldResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, field, reqEditors...) + var r0 *oapi.StartDbaasGrafanaMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasGrafanaMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResetSksNodepoolFieldResponse) + r0 = ret.Get(0).(*oapi.StartDbaasGrafanaMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ResetSksNodepoolFieldParamsField, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, field, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5386,29 +7396,29 @@ func (_m *ClientWithResponsesInterface) ResetSksNodepoolFieldWithResponse(ctx co return r0, r1 } -// ResizeInstanceDiskWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ResizeInstanceDiskResponse, error) { +// StartDbaasKafkaMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasKafkaMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasKafkaMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResizeInstanceDiskResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ResizeInstanceDiskResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.StartDbaasKafkaMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasKafkaMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResizeInstanceDiskResponse) + r0 = ret.Get(0).(*oapi.StartDbaasKafkaMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5416,29 +7426,29 @@ func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithBodyWithResponse(c return r0, r1 } -// ResizeInstanceDiskWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithResponse(ctx context.Context, id string, body oapi.ResizeInstanceDiskJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ResizeInstanceDiskResponse, error) { +// StartDbaasMysqlMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasMysqlMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasMysqlMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ResizeInstanceDiskResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ResizeInstanceDiskJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ResizeInstanceDiskResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.StartDbaasMysqlMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasMysqlMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ResizeInstanceDiskResponse) + r0 = ret.Get(0).(*oapi.StartDbaasMysqlMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ResizeInstanceDiskJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5446,29 +7456,29 @@ func (_m *ClientWithResponsesInterface) ResizeInstanceDiskWithResponse(ctx conte return r0, r1 } -// RevertInstanceToSnapshotWithBodyWithResponse provides a mock function with given fields: ctx, instanceId, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.RevertInstanceToSnapshotResponse, error) { +// StartDbaasOpensearchMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasOpensearchMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasOpensearchMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, instanceId, contentType, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RevertInstanceToSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.RevertInstanceToSnapshotResponse); ok { - r0 = rf(ctx, instanceId, contentType, body, reqEditors...) + var r0 *oapi.StartDbaasOpensearchMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasOpensearchMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RevertInstanceToSnapshotResponse) + r0 = ret.Get(0).(*oapi.StartDbaasOpensearchMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, instanceId, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5476,29 +7486,29 @@ func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithBodyWithResp return r0, r1 } -// RevertInstanceToSnapshotWithResponse provides a mock function with given fields: ctx, instanceId, body, reqEditors -func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithResponse(ctx context.Context, instanceId string, body oapi.RevertInstanceToSnapshotJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.RevertInstanceToSnapshotResponse, error) { +// StartDbaasPgMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasPgMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasPgMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, instanceId, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RevertInstanceToSnapshotResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.RevertInstanceToSnapshotJSONRequestBody, ...oapi.RequestEditorFn) *oapi.RevertInstanceToSnapshotResponse); ok { - r0 = rf(ctx, instanceId, body, reqEditors...) + var r0 *oapi.StartDbaasPgMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasPgMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RevertInstanceToSnapshotResponse) + r0 = ret.Get(0).(*oapi.StartDbaasPgMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.RevertInstanceToSnapshotJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, instanceId, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5506,29 +7516,29 @@ func (_m *ClientWithResponsesInterface) RevertInstanceToSnapshotWithResponse(ctx return r0, r1 } -// RevokeAccessKeyWithResponse provides a mock function with given fields: ctx, key, reqEditors -func (_m *ClientWithResponsesInterface) RevokeAccessKeyWithResponse(ctx context.Context, key string, reqEditors ...oapi.RequestEditorFn) (*oapi.RevokeAccessKeyResponse, error) { +// StartDbaasRedisMaintenanceWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StartDbaasRedisMaintenanceWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StartDbaasRedisMaintenanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, key) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RevokeAccessKeyResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RevokeAccessKeyResponse); ok { - r0 = rf(ctx, key, reqEditors...) + var r0 *oapi.StartDbaasRedisMaintenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StartDbaasRedisMaintenanceResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RevokeAccessKeyResponse) + r0 = ret.Get(0).(*oapi.StartDbaasRedisMaintenanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, key, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5536,29 +7546,29 @@ func (_m *ClientWithResponsesInterface) RevokeAccessKeyWithResponse(ctx context. return r0, r1 } -// RotateSksCcmCredentialsWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) RotateSksCcmCredentialsWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RotateSksCcmCredentialsResponse, error) { +// StartInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) StartInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.StartInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RotateSksCcmCredentialsResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RotateSksCcmCredentialsResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.StartInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.StartInstanceResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RotateSksCcmCredentialsResponse) + r0 = ret.Get(0).(*oapi.StartInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5566,29 +7576,29 @@ func (_m *ClientWithResponsesInterface) RotateSksCcmCredentialsWithResponse(ctx return r0, r1 } -// RotateSksOperatorsCaWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) RotateSksOperatorsCaWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.RotateSksOperatorsCaResponse, error) { +// StartInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) StartInstanceWithResponse(ctx context.Context, id string, body oapi.StartInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.StartInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.RotateSksOperatorsCaResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.RotateSksOperatorsCaResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.StartInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.StartInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.StartInstanceResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.RotateSksOperatorsCaResponse) + r0 = ret.Get(0).(*oapi.StartInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.StartInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5596,29 +7606,29 @@ func (_m *ClientWithResponsesInterface) RotateSksOperatorsCaWithResponse(ctx con return r0, r1 } -// ScaleInstancePoolWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstancePoolResponse, error) { +// StopDbaasMysqlMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StopDbaasMysqlMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasMysqlMigrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleInstancePoolResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.StopDbaasMysqlMigrationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasMysqlMigrationResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleInstancePoolResponse) + r0 = ret.Get(0).(*oapi.StopDbaasMysqlMigrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5626,29 +7636,29 @@ func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithBodyWithResponse(ct return r0, r1 } -// ScaleInstancePoolWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithResponse(ctx context.Context, id string, body oapi.ScaleInstancePoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstancePoolResponse, error) { +// StopDbaasPgMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StopDbaasPgMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasPgMigrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleInstancePoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ScaleInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleInstancePoolResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.StopDbaasPgMigrationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasPgMigrationResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleInstancePoolResponse) + r0 = ret.Get(0).(*oapi.StopDbaasPgMigrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ScaleInstancePoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5656,29 +7666,29 @@ func (_m *ClientWithResponsesInterface) ScaleInstancePoolWithResponse(ctx contex return r0, r1 } -// ScaleInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstanceResponse, error) { +// StopDbaasRedisMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors +func (_m *ClientWithResponsesInterface) StopDbaasRedisMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasRedisMigrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, name) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleInstanceResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.StopDbaasRedisMigrationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasRedisMigrationResponse); ok { + r0 = rf(ctx, name, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleInstanceResponse) + r0 = ret.Get(0).(*oapi.StopDbaasRedisMigrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, reqEditors...) } else { r1 = ret.Error(1) } @@ -5686,29 +7696,29 @@ func (_m *ClientWithResponsesInterface) ScaleInstanceWithBodyWithResponse(ctx co return r0, r1 } -// ScaleInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleInstanceWithResponse(ctx context.Context, id string, body oapi.ScaleInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleInstanceResponse, error) { +// StopInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors +func (_m *ClientWithResponsesInterface) StopInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.StopInstanceResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, id) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.ScaleInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleInstanceResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.StopInstanceResponse + if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.StopInstanceResponse); ok { + r0 = rf(ctx, id, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleInstanceResponse) + r0 = ret.Get(0).(*oapi.StopInstanceResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.ScaleInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, reqEditors...) } else { r1 = ret.Error(1) } @@ -5716,29 +7726,29 @@ func (_m *ClientWithResponsesInterface) ScaleInstanceWithResponse(ctx context.Co return r0, r1 } -// ScaleSksNodepoolWithBodyWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithBodyWithResponse(ctx context.Context, id string, sksNodepoolId string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleSksNodepoolResponse, error) { +// UpdateDbaasIntegrationWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasIntegrationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasIntegrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId, contentType, body) + _ca = append(_ca, ctx, id, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.ScaleSksNodepoolResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) + var r0 *oapi.UpdateDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasIntegrationResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasIntegrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5746,29 +7756,29 @@ func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithBodyWithResponse(ctx return r0, r1 } -// ScaleSksNodepoolWithResponse provides a mock function with given fields: ctx, id, sksNodepoolId, body, reqEditors -func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithResponse(ctx context.Context, id string, sksNodepoolId string, body oapi.ScaleSksNodepoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.ScaleSksNodepoolResponse, error) { +// UpdateDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasIntegrationWithResponse(ctx context.Context, id string, body oapi.UpdateDbaasIntegrationJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasIntegrationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, sksNodepoolId, body) + _ca = append(_ca, ctx, id, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.ScaleSksNodepoolResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, oapi.ScaleSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.ScaleSksNodepoolResponse); ok { - r0 = rf(ctx, id, sksNodepoolId, body, reqEditors...) + var r0 *oapi.UpdateDbaasIntegrationResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.UpdateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasIntegrationResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.ScaleSksNodepoolResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasIntegrationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, oapi.ScaleSksNodepoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, sksNodepoolId, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.UpdateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5776,29 +7786,29 @@ func (_m *ClientWithResponsesInterface) ScaleSksNodepoolWithResponse(ctx context return r0, r1 } -// StartInstanceWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) StartInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.StartInstanceResponse, error) { +// UpdateDbaasOpensearchAclConfigWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasOpensearchAclConfigWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasOpensearchAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, name, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StartInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.StartInstanceResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.UpdateDbaasOpensearchAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasOpensearchAclConfigResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StartInstanceResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasOpensearchAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5806,29 +7816,29 @@ func (_m *ClientWithResponsesInterface) StartInstanceWithBodyWithResponse(ctx co return r0, r1 } -// StartInstanceWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) StartInstanceWithResponse(ctx context.Context, id string, body oapi.StartInstanceJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.StartInstanceResponse, error) { +// UpdateDbaasOpensearchAclConfigWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasOpensearchAclConfigWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.UpdateDbaasOpensearchAclConfigJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasOpensearchAclConfigResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, name, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StartInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.StartInstanceJSONRequestBody, ...oapi.RequestEditorFn) *oapi.StartInstanceResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.UpdateDbaasOpensearchAclConfigResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.UpdateDbaasOpensearchAclConfigJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasOpensearchAclConfigResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StartInstanceResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasOpensearchAclConfigResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.StartInstanceJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.UpdateDbaasOpensearchAclConfigJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5836,29 +7846,29 @@ func (_m *ClientWithResponsesInterface) StartInstanceWithResponse(ctx context.Co return r0, r1 } -// StopDbaasMysqlMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) StopDbaasMysqlMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasMysqlMigrationResponse, error) { +// UpdateDbaasPgConnectionPoolWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, connectionPoolName, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasPgConnectionPoolWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, connectionPoolName oapi.DbaasPgPoolName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasPgConnectionPoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, serviceName, connectionPoolName, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StopDbaasMysqlMigrationResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasMysqlMigrationResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.UpdateDbaasPgConnectionPoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasPgConnectionPoolResponse); ok { + r0 = rf(ctx, serviceName, connectionPoolName, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StopDbaasMysqlMigrationResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasPgConnectionPoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, connectionPoolName, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5866,29 +7876,29 @@ func (_m *ClientWithResponsesInterface) StopDbaasMysqlMigrationWithResponse(ctx return r0, r1 } -// StopDbaasPgMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) StopDbaasPgMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasPgMigrationResponse, error) { +// UpdateDbaasPgConnectionPoolWithResponse provides a mock function with given fields: ctx, serviceName, connectionPoolName, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasPgConnectionPoolWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, connectionPoolName oapi.DbaasPgPoolName, body oapi.UpdateDbaasPgConnectionPoolJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasPgConnectionPoolResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, serviceName, connectionPoolName, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StopDbaasPgMigrationResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasPgMigrationResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.UpdateDbaasPgConnectionPoolResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, oapi.UpdateDbaasPgConnectionPoolJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasPgConnectionPoolResponse); ok { + r0 = rf(ctx, serviceName, connectionPoolName, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StopDbaasPgMigrationResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasPgConnectionPoolResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasPgPoolName, oapi.UpdateDbaasPgConnectionPoolJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, connectionPoolName, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5896,29 +7906,29 @@ func (_m *ClientWithResponsesInterface) StopDbaasPgMigrationWithResponse(ctx con return r0, r1 } -// StopDbaasRedisMigrationWithResponse provides a mock function with given fields: ctx, name, reqEditors -func (_m *ClientWithResponsesInterface) StopDbaasRedisMigrationWithResponse(ctx context.Context, name oapi.DbaasServiceName, reqEditors ...oapi.RequestEditorFn) (*oapi.StopDbaasRedisMigrationResponse, error) { +// UpdateDbaasPostgresAllowReplicationWithBodyWithResponse provides a mock function with given fields: ctx, serviceName, username, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasPostgresAllowReplicationWithBodyWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasPostgresAllowReplicationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, name) + _ca = append(_ca, ctx, serviceName, username, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StopDbaasRedisMigrationResponse - if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) *oapi.StopDbaasRedisMigrationResponse); ok { - r0 = rf(ctx, name, reqEditors...) + var r0 *oapi.UpdateDbaasPostgresAllowReplicationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasPostgresAllowReplicationResponse); ok { + r0 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StopDbaasRedisMigrationResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasPostgresAllowReplicationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, name, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5926,29 +7936,29 @@ func (_m *ClientWithResponsesInterface) StopDbaasRedisMigrationWithResponse(ctx return r0, r1 } -// StopInstanceWithResponse provides a mock function with given fields: ctx, id, reqEditors -func (_m *ClientWithResponsesInterface) StopInstanceWithResponse(ctx context.Context, id string, reqEditors ...oapi.RequestEditorFn) (*oapi.StopInstanceResponse, error) { +// UpdateDbaasPostgresAllowReplicationWithResponse provides a mock function with given fields: ctx, serviceName, username, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasPostgresAllowReplicationWithResponse(ctx context.Context, serviceName oapi.DbaasServiceName, username oapi.DbaasUserUsername, body oapi.UpdateDbaasPostgresAllowReplicationJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasPostgresAllowReplicationResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id) + _ca = append(_ca, ctx, serviceName, username, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.StopInstanceResponse - if rf, ok := ret.Get(0).(func(context.Context, string, ...oapi.RequestEditorFn) *oapi.StopInstanceResponse); ok { - r0 = rf(ctx, id, reqEditors...) + var r0 *oapi.UpdateDbaasPostgresAllowReplicationResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.UpdateDbaasPostgresAllowReplicationJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasPostgresAllowReplicationResponse); ok { + r0 = rf(ctx, serviceName, username, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.StopInstanceResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasPostgresAllowReplicationResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.DbaasUserUsername, oapi.UpdateDbaasPostgresAllowReplicationJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, serviceName, username, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5956,29 +7966,29 @@ func (_m *ClientWithResponsesInterface) StopInstanceWithResponse(ctx context.Con return r0, r1 } -// UpdateDbaasIntegrationWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors -func (_m *ClientWithResponsesInterface) UpdateDbaasIntegrationWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasIntegrationResponse, error) { +// UpdateDbaasServiceGrafanaWithBodyWithResponse provides a mock function with given fields: ctx, name, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasServiceGrafanaWithBodyWithResponse(ctx context.Context, name oapi.DbaasServiceName, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasServiceGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, ctx, name, contentType, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.UpdateDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasIntegrationResponse); ok { - r0 = rf(ctx, id, contentType, body, reqEditors...) + var r0 *oapi.UpdateDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, contentType, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.UpdateDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasServiceGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, contentType, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, contentType, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -5986,29 +7996,29 @@ func (_m *ClientWithResponsesInterface) UpdateDbaasIntegrationWithBodyWithRespon return r0, r1 } -// UpdateDbaasIntegrationWithResponse provides a mock function with given fields: ctx, id, body, reqEditors -func (_m *ClientWithResponsesInterface) UpdateDbaasIntegrationWithResponse(ctx context.Context, id string, body oapi.UpdateDbaasIntegrationJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasIntegrationResponse, error) { +// UpdateDbaasServiceGrafanaWithResponse provides a mock function with given fields: ctx, name, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateDbaasServiceGrafanaWithResponse(ctx context.Context, name oapi.DbaasServiceName, body oapi.UpdateDbaasServiceGrafanaJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateDbaasServiceGrafanaResponse, error) { _va := make([]interface{}, len(reqEditors)) for _i := range reqEditors { _va[_i] = reqEditors[_i] } var _ca []interface{} - _ca = append(_ca, ctx, id, body) + _ca = append(_ca, ctx, name, body) _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *oapi.UpdateDbaasIntegrationResponse - if rf, ok := ret.Get(0).(func(context.Context, string, oapi.UpdateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasIntegrationResponse); ok { - r0 = rf(ctx, id, body, reqEditors...) + var r0 *oapi.UpdateDbaasServiceGrafanaResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.DbaasServiceName, oapi.UpdateDbaasServiceGrafanaJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateDbaasServiceGrafanaResponse); ok { + r0 = rf(ctx, name, body, reqEditors...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*oapi.UpdateDbaasIntegrationResponse) + r0 = ret.Get(0).(*oapi.UpdateDbaasServiceGrafanaResponse) } } var r1 error - if rf, ok := ret.Get(1).(func(context.Context, string, oapi.UpdateDbaasIntegrationJSONRequestBody, ...oapi.RequestEditorFn) error); ok { - r1 = rf(ctx, id, body, reqEditors...) + if rf, ok := ret.Get(1).(func(context.Context, oapi.DbaasServiceName, oapi.UpdateDbaasServiceGrafanaJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, name, body, reqEditors...) } else { r1 = ret.Error(1) } @@ -6436,6 +8446,186 @@ func (_m *ClientWithResponsesInterface) UpdateElasticIpWithResponse(ctx context. return r0, r1 } +// UpdateIamOrganizationPolicyWithBodyWithResponse provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamOrganizationPolicyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamOrganizationPolicyResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamOrganizationPolicyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateIamOrganizationPolicyResponse); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamOrganizationPolicyResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateIamOrganizationPolicyWithResponse provides a mock function with given fields: ctx, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamOrganizationPolicyWithResponse(ctx context.Context, body oapi.UpdateIamOrganizationPolicyJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamOrganizationPolicyResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamOrganizationPolicyResponse + if rf, ok := ret.Get(0).(func(context.Context, oapi.UpdateIamOrganizationPolicyJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateIamOrganizationPolicyResponse); ok { + r0 = rf(ctx, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamOrganizationPolicyResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, oapi.UpdateIamOrganizationPolicyJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateIamRolePolicyWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamRolePolicyWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamRolePolicyResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamRolePolicyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateIamRolePolicyResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamRolePolicyResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateIamRolePolicyWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamRolePolicyWithResponse(ctx context.Context, id string, body oapi.UpdateIamRolePolicyJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamRolePolicyResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamRolePolicyResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.UpdateIamRolePolicyJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateIamRolePolicyResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamRolePolicyResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.UpdateIamRolePolicyJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateIamRoleWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamRoleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamRoleResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) *oapi.UpdateIamRoleResponse); ok { + r0 = rf(ctx, id, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamRoleResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateIamRoleWithResponse provides a mock function with given fields: ctx, id, body, reqEditors +func (_m *ClientWithResponsesInterface) UpdateIamRoleWithResponse(ctx context.Context, id string, body oapi.UpdateIamRoleJSONRequestBody, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateIamRoleResponse, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *oapi.UpdateIamRoleResponse + if rf, ok := ret.Get(0).(func(context.Context, string, oapi.UpdateIamRoleJSONRequestBody, ...oapi.RequestEditorFn) *oapi.UpdateIamRoleResponse); ok { + r0 = rf(ctx, id, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*oapi.UpdateIamRoleResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, string, oapi.UpdateIamRoleJSONRequestBody, ...oapi.RequestEditorFn) error); ok { + r1 = rf(ctx, id, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // UpdateInstancePoolWithBodyWithResponse provides a mock function with given fields: ctx, id, contentType, body, reqEditors func (_m *ClientWithResponsesInterface) UpdateInstancePoolWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...oapi.RequestEditorFn) (*oapi.UpdateInstancePoolResponse, error) { _va := make([]interface{}, len(reqEditors)) diff --git a/operator/bucketcontroller/observe.go b/operator/bucketcontroller/observe.go index 23dd616d..6d9c1b49 100644 --- a/operator/bucketcontroller/observe.go +++ b/operator/bucketcontroller/observe.go @@ -26,6 +26,7 @@ func (p *ProvisioningPipeline) Observe(ctx context.Context, mg resource.Managed) bucketName := bucket.GetBucketName() exists, err := bucketExistsFn(ctx, p.minioClient, bucketName) + if err != nil { errResp := minio.ToErrorResponse(err) if errResp.StatusCode == http.StatusForbidden { diff --git a/operator/iamkeycontroller/connector.go b/operator/iamkeycontroller/connector.go index b9fe80c7..21b82a1f 100644 --- a/operator/iamkeycontroller/connector.go +++ b/operator/iamkeycontroller/connector.go @@ -29,5 +29,11 @@ func (c *connector) Connect(ctx context.Context, mg resource.Managed) (managed.E if err != nil { return nil, err } - return NewPipeline(c.Kube, c.Recorder, exo.Exoscale), nil + + apiKey, apiSecret, err := pipelineutil.FetchProviderConfig(ctx, c.Kube, iamKey.GetProviderConfigName()) + if err != nil { + return nil, err + } + + return NewPipeline(c.Kube, c.Recorder, exo.Exoscale, apiKey, apiSecret), nil } diff --git a/operator/iamkeycontroller/create.go b/operator/iamkeycontroller/create.go index 7d760a10..f4096b3b 100644 --- a/operator/iamkeycontroller/create.go +++ b/operator/iamkeycontroller/create.go @@ -2,20 +2,26 @@ package iamkeycontroller import ( "context" + "encoding/json" "fmt" "strings" + "time" pipeline "github.com/ccremer/go-command-pipeline" + xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" "github.com/crossplane/crossplane-runtime/pkg/errors" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" exoscalesdk "github.com/exoscale/egoscale/v2" + exooapi "github.com/exoscale/egoscale/v2/oapi" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" + "github.com/vshn/provider-exoscale/operator/pipelineutil" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" + "k8s.io/utils/pointer" controllerruntime "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" @@ -27,8 +33,10 @@ func (p *IAMKeyPipeline) Create(ctx context.Context, mg resource.Managed) (manag log.Info("Creating resource") iam := fromManaged(mg) + iam.SetConditions(xpv1.Creating()) if iam.Status.AtProvider.KeyID != "" { // IAMKey already exists + log.Info("IAM Key already exists", "keyID", iam.Status.AtProvider.KeyID) return managed.ExternalCreation{}, nil } @@ -42,10 +50,12 @@ func (p *IAMKeyPipeline) Create(ctx context.Context, mg resource.Managed) (manag ) err := pipe.RunWithContext(pctx) if err != nil { + log.Error(err, "Cannot create IAM Key") return managed.ExternalCreation{}, errors.Wrap(err, "cannot create IAM Key") } connDetails, err := toConnectionDetails(pctx.iamExoscaleKey) if err != nil { + log.Error(err, "Cannot parse connection details") return managed.ExternalCreation{}, fmt.Errorf("cannot parse connection details: %w", err) } @@ -54,45 +64,107 @@ func (p *IAMKeyPipeline) Create(ctx context.Context, mg resource.Managed) (manag // createIAMKey creates a new IAMKey in the project associated with the API Key and Secret. func (p *IAMKeyPipeline) createIAMKey(ctx *pipelineContext) error { + iamKey := ctx.iamKey log := controllerruntime.LoggerFrom(ctx) - - var keyResources []exoscalesdk.IAMAccessKeyResource + log.Info("starting creation") + + policyAllow := exooapi.IamServicePolicyRuleActionAllow + policyDeny := exooapi.IamServicePolicyRuleActionDeny + policyRules := exooapi.IamServicePolicyTypeRules + + log.Info("IAM Role doesnt exists, creating", "keyName", ctx.iamKey.Spec.ForProvider.KeyName) + autogeneratedAppcatRole := &exooapi.IamRole{ + Name: &iamKey.Spec.ForProvider.KeyName, + Description: pointer.String("IAM Role for SOS+IAM creation, it was autogenerated by provider-exoscale"), + Permissions: &[]exooapi.IamRolePermissions{ + exooapi.IamRolePermissionsBypassGovernanceRetention, + }, + Editable: pointer.Bool(true), + Policy: &exooapi.IamPolicy{ + DefaultServiceStrategy: exooapi.IamPolicyDefaultServiceStrategyDeny, + Services: exooapi.IamPolicy_Services{ + AdditionalProperties: map[string]exooapi.IamServicePolicy{ + "sos": { + Type: &policyRules, + Rules: &[]exooapi.IamServicePolicyRule{}, + }, + }, + }, + }, + } + // we must first add buckets to deny list and then add the allow rule, otherwise it will not work for _, bucket := range iamKey.Spec.ForProvider.Services.SOS.Buckets { - keyResource := exoscalesdk.IAMAccessKeyResource{ - Domain: SOSResourceDomain, - ResourceName: bucket, - ResourceType: BucketResourceType, + *autogeneratedAppcatRole.Policy.Services.AdditionalProperties["sos"].Rules = append(*autogeneratedAppcatRole.Policy.Services.AdditionalProperties["sos"].Rules, exooapi.IamServicePolicyRule{ + Action: &policyDeny, + Expression: pointer.String("resources.bucket != " + "'" + bucket + "'"), + }) + } + + *autogeneratedAppcatRole.Policy.Services.AdditionalProperties["sos"].Rules = append(*autogeneratedAppcatRole.Policy.Services.AdditionalProperties["sos"].Rules, exooapi.IamServicePolicyRule{ + Action: &policyAllow, + Expression: pointer.String("true"), + }) + + // send request + resp, err := ExecuteRequest(ctx, "POST", ctx.iamKey.Spec.ForProvider.Zone, "/v2/iam-role", p.apiKey, p.apiSecret, autogeneratedAppcatRole) + if err != nil { + return err + } + + iamRole := exooapi.Operation{} + + // unmarshall response to iamRoles + err = json.NewDecoder(resp.Body).Decode(&iamRole) + if err != nil { + log.Error(err, "Cannot unmarshall response to iamRolesResponse") + return err + } + + iamRoleID := *iamRole.Reference.Id + log.Info("IAM Role created", "iamRoleID", iamRoleID) + + log.Info("IAM Key doesnt exists, creating", "keyName", ctx.iamKey.Spec.ForProvider.KeyName) + newIamKey := exooapi.IamApiKey{ + RoleId: &iamRoleID, + Name: &ctx.iamKey.Spec.ForProvider.KeyName, + } + + // since their API is async and it needs a moment to create the IAM Role, we need to wait for it + for i := 0; i < 10; i++ { + // send request + resp, err = ExecuteRequest(ctx, "POST", ctx.iamKey.Spec.ForProvider.Zone, "/v2/api-key", p.apiKey, p.apiSecret, newIamKey) + if err != nil { + time.Sleep(time.Millisecond * 500) + continue } - keyResources = append(keyResources, keyResource) + break } - zone := iamKey.Spec.ForProvider.Zone - iamKeyName := iamKey.GetKeyName() - iamKeyOpts := []exoscalesdk.CreateIAMAccessKeyOpt{ - // Allowed object storage operations on the new IAM key - // Some permissions are excluded such as create and list all sos buckets. - exoscalesdk.CreateIAMAccessKeyWithOperations(IAMKeyAllowedOperations), - // Limit the permissions to the provided object storage resources - exoscalesdk.CreateIAMAccessKeyWithResources(keyResources), + if err != nil { + return err } - exoscaleIAM, err := p.exoscaleClient.CreateIAMAccessKey(ctx, zone, iamKeyName, iamKeyOpts...) + iamKeyCreated := exooapi.IamApiKeyCreated{} + + // unmarshall response to iamRoles + err = json.NewDecoder(resp.Body).Decode(&iamKeyCreated) if err != nil { return err } - // Limitation by crossplane: The interface managed.ExternalClient doesn't allow updating the resource during creation except annotations. - // But we need to somehow store the key ID returned by the creation operation, because exoscale API allows multiple IAM Keys with the same display name. - // So we store it in an annotation since that is the only allowed place to update our resource. - // However, once we observe the spec again, we will copy the key ID from the annotation to the status field, - // and that will become the authoritative source of truth for future reconciliations. - metav1.SetMetaDataAnnotation(&ctx.iamKey.ObjectMeta, KeyIDAnnotationKey, *exoscaleIAM.Key) + ctx.iamExoscaleKey = &exoscalesdk.IAMAccessKey{ + Key: iamKeyCreated.Key, + Name: iamKeyCreated.Name, + Secret: iamKeyCreated.Secret, + } - log.V(1).Info("Created IAM Key in exoscale", "keyID", *exoscaleIAM.Key, "displayName", *exoscaleIAM.Name, "tags", exoscaleIAM.Tags) - ctx.iamExoscaleKey = exoscaleIAM + metav1.SetMetaDataAnnotation(&ctx.iamKey.ObjectMeta, KeyIDAnnotationKey, *ctx.iamExoscaleKey.Key) + metav1.SetMetaDataAnnotation(&ctx.iamKey.ObjectMeta, RoleIDAnnotationKey, iamRoleID) + metav1.SetMetaDataAnnotation(&ctx.iamKey.ObjectMeta, "newKeyType", "true") + log.Info("IAM Key created", "keyName", ctx.iamKey.Spec.ForProvider.KeyName) + defer resp.Body.Close() return nil - } func (p *IAMKeyPipeline) emitCreationEvent(ctx *pipelineContext) error { @@ -102,7 +174,6 @@ func (p *IAMKeyPipeline) emitCreationEvent(ctx *pipelineContext) error { Message: "IAMKey successfully created", }) return nil - } // createCredentialsSecret creates the secret with AIMKey's S3 credentials. @@ -111,6 +182,7 @@ func (p *IAMKeyPipeline) createCredentialsSecret(ctx *pipelineContext) error { secretRef := ctx.iamKey.Spec.WriteConnectionSecretToReference ctx.credentialsSecret = &corev1.Secret{ObjectMeta: metav1.ObjectMeta{Name: secretRef.Name, Namespace: secretRef.Namespace}} + _, err := controllerruntime.CreateOrUpdate(ctx, p.kube, ctx.credentialsSecret, func() error { secret := ctx.credentialsSecret secret.Labels = labels.Merge(secret.Labels, getCommonLabels(ctx.iamKey.Name)) @@ -125,9 +197,17 @@ func (p *IAMKeyPipeline) createCredentialsSecret(ctx *pipelineContext) error { secret.Data[k] = v } secret.Immutable = pointer.Bool(true) - return controllerutil.SetOwnerReference(ctx.iamKey, secret, p.kube.Scheme()) + + err = controllerutil.SetOwnerReference(ctx.iamKey, secret, p.kube.Scheme()) + if err != nil { + + log.Error(err, "Cannot set owner reference") + return err + } + return nil }) if err != nil { + log.Error(err, "Cannot create credential secret", "secretName", fmt.Sprintf("%s/%s", secretRef.Namespace, secretRef.Name), "secretData", ctx.credentialsSecret.Data, "secretLabels", ctx.credentialsSecret.Labels) return err } log.V(1).Info("Created credential secret", "secretName", fmt.Sprintf("%s/%s", secretRef.Namespace, secretRef.Name)) diff --git a/operator/iamkeycontroller/delete.go b/operator/iamkeycontroller/delete.go index 4d0b8ca6..228d1461 100644 --- a/operator/iamkeycontroller/delete.go +++ b/operator/iamkeycontroller/delete.go @@ -2,12 +2,15 @@ package iamkeycontroller import ( "context" + pipeline "github.com/ccremer/go-command-pipeline" "github.com/crossplane/crossplane-runtime/pkg/errors" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/resource" exoscalesdk "github.com/exoscale/egoscale/v2" "github.com/vshn/provider-exoscale/operator/pipelineutil" + + xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" controllerruntime "sigs.k8s.io/controller-runtime" ) @@ -17,6 +20,8 @@ func (p *IAMKeyPipeline) Delete(ctx context.Context, mg resource.Managed) error log.Info("Deleting resource") iamKey := fromManaged(mg) + iamKey.SetConditions(xpv1.Deleting()) + pctx := &pipelineContext{Context: ctx, iamKey: iamKey} pipe := pipeline.NewPipeline[*pipelineContext]() pipe.WithBeforeHooks(pipelineutil.DebugLogger(pctx)). @@ -33,15 +38,34 @@ func (p *IAMKeyPipeline) deleteIAMKey(ctx *pipelineContext) error { log := controllerruntime.LoggerFrom(ctx) iamKey := ctx.iamKey - err := p.exoscaleClient.RevokeIAMAccessKey(ctx, iamKey.Spec.ForProvider.Zone, &exoscalesdk.IAMAccessKey{ - Key: &iamKey.Status.AtProvider.KeyID, - }) - if err != nil { - return err + log.Info("Starting IAM key deletion", "keyName", iamKey.Spec.ForProvider.KeyName) + + if iamKey.Status.AtProvider.RoleID != "" { + + _, err := ExecuteRequest(ctx, "DELETE", ctx.iamKey.Spec.ForProvider.Zone, "/v2/api-key/"+iamKey.Status.AtProvider.KeyID, p.apiKey, p.apiSecret, nil) + if err != nil { + log.Error(err, "Cannot delete apiKey", "keyName", iamKey.Status.AtProvider.KeyID) + return err + } + log.Info("Iam key deleted successfully", "keyName", ctx.iamKey.Spec.ForProvider.KeyName) + + _, err = ExecuteRequest(ctx, "DELETE", ctx.iamKey.Spec.ForProvider.Zone, "/v2/iam-role/"+iamKey.Status.AtProvider.RoleID, p.apiKey, p.apiSecret, nil) + if err != nil { + log.Error(err, "Cannot delete iamRole", "iamrole", iamKey.Status.AtProvider.RoleID) + return err + } + log.Info("Iam role deleted successfully", "roleID", iamKey.Status.AtProvider.RoleID) + + } else { + err := p.exoscaleClient.RevokeIAMAccessKey(ctx, iamKey.Spec.ForProvider.Zone, &exoscalesdk.IAMAccessKey{ + Key: &iamKey.Status.AtProvider.KeyID, + }) + if err != nil { + return err + } } - log.V(1).Info("Deleted IAM key in exoscale", "keyID", iamKey.Status.AtProvider.KeyID) - return nil + return nil } func (p *IAMKeyPipeline) emitDeletionEvent(ctx *pipelineContext) error { diff --git a/operator/iamkeycontroller/observe.go b/operator/iamkeycontroller/observe.go index 684b2cbe..d5c76359 100644 --- a/operator/iamkeycontroller/observe.go +++ b/operator/iamkeycontroller/observe.go @@ -2,15 +2,17 @@ package iamkeycontroller import ( "context" + "encoding/json" + "errors" "fmt" "net/url" pipeline "github.com/ccremer/go-command-pipeline" xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - "github.com/crossplane/crossplane-runtime/pkg/errors" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" exoscalesdk "github.com/exoscale/egoscale/v2" + exooapi "github.com/exoscale/egoscale/v2/oapi" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" "github.com/vshn/provider-exoscale/operator/pipelineutil" corev1 "k8s.io/api/core/v1" @@ -24,25 +26,55 @@ func (p *IAMKeyPipeline) Observe(ctx context.Context, mg resource.Managed) (mana log.V(1).Info("Observing resource") iamKey := fromManaged(mg) + // to manage state of new and old keys I need other variable, this is why this annotation is set + // otherwise observation fails for one of key types + if _, exists := iamKey.Annotations["newKeyType"]; exists { + if iamKey.Status.AtProvider.RoleID == "" { + // get the data generated by Create() via annotations, since in Create() we're not allowed to update the status. + if RoleID, exists := iamKey.Annotations[RoleIDAnnotationKey]; exists { + iamKey.Status.AtProvider.RoleID = RoleID + delete(iamKey.Annotations, RoleIDAnnotationKey) + log.V(1).Info("Deleting annotation", "key", RoleIDAnnotationKey) + } else { + // New resource, create user first + log.V(1).Info("IAM Role not found, returning") + return managed.ExternalObservation{}, nil + } + } + } if iamKey.Status.AtProvider.KeyID == "" { // get the data generated by Create() via annotations, since in Create() we're not allowed to update the status. if KeyId, exists := iamKey.Annotations[KeyIDAnnotationKey]; exists { iamKey.Status.AtProvider.KeyID = KeyId delete(iamKey.Annotations, KeyIDAnnotationKey) + log.V(1).Info("Deleting annotation", "key", KeyIDAnnotationKey) } else { // New resource, create user first + log.V(1).Info("IAM key not found, returning") return managed.ExternalObservation{}, nil } } pctx := &pipelineContext{Context: ctx, iamKey: iamKey} - err := p.getIAMKey(pctx) - if err != nil { - return managed.ExternalObservation{}, resource.Ignore(isNotFound, err) + + // since new create() adds RoleID annotation it's enough to just check whether it exists + if iamKey.Status.AtProvider.RoleID != "" { + err := p.getIAMKey(pctx) + if err != nil { + if iamKey.GetDeletionTimestamp() != nil { + return managed.ExternalObservation{ResourceExists: false}, nil + } + return managed.ExternalObservation{ResourceExists: false}, err + } + } else { + err := p.getLegacyIAMKey(pctx) + if err != nil { + return managed.ExternalObservation{}, resource.Ignore(isNotFound, err) + } } pipe := pipeline.NewPipeline[*pipelineContext]() - err = pipe.WithBeforeHooks(pipelineutil.DebugLogger(pctx)). + err := pipe.WithBeforeHooks(pipelineutil.DebugLogger(pctx)). WithSteps( pipe.NewStep("fetch credentials secret", p.fetchCredentialsSecret), pipe.NewStep("check credentials", p.checkSecret), @@ -54,19 +86,51 @@ func (p *IAMKeyPipeline) Observe(ctx context.Context, mg resource.Managed) (mana } iamKey.Status.AtProvider.KeyName = *pctx.iamExoscaleKey.Name - iamKey.Status.AtProvider.ServicesSpec.SOS.Buckets = getBuckets(*pctx.iamExoscaleKey.Resources) - iamKey.SetConditions(xpv1.Available()) + if iamKey.Status.AtProvider.RoleID == "" { + iamKey.Status.AtProvider.ServicesSpec.SOS.Buckets = getBuckets(*pctx.iamExoscaleKey.Resources) + } + connDetails, err := toConnectionDetails(pctx.iamExoscaleKey) if err != nil { return managed.ExternalObservation{}, fmt.Errorf("cannot parse connection details: %w", err) } + log.Info("Observation successfull", "keyName", iamKey.Status.AtProvider.KeyName) + iamKey.SetConditions(xpv1.Available()) return managed.ExternalObservation{ResourceExists: true, ResourceUpToDate: true, ConnectionDetails: connDetails}, nil } // getIAMKey fetches an existing IAM key from the project associated with the API Key and Secret. func (p *IAMKeyPipeline) getIAMKey(ctx *pipelineContext) error { log := controllerruntime.LoggerFrom(ctx) + keyDetails := exooapi.IamApiKey{} + + // send request + resp, err := ExecuteRequest(ctx, "GET", ctx.iamKey.Spec.ForProvider.Zone, "/v2/api-key/"+ctx.iamKey.Status.AtProvider.KeyID, p.apiKey, p.apiSecret, nil) + if err != nil { + return err + } + + err = json.NewDecoder(resp.Body).Decode(&keyDetails) + if err != nil { + log.Error(err, "Cannot decode response body (IamKeyGet)") + return err + } + + ctx.iamExoscaleKey = &exoscalesdk.IAMAccessKey{ + Key: keyDetails.Key, + Name: keyDetails.Name, + } + + log.Info("IAM key fetched successfully", "keyName", ctx.iamKey.Spec.ForProvider.KeyName, "response", resp.Status) + + return nil + +} + +// getIAMKey fetches an existing IAM key from the project associated with the API Key and Secret. +func (p *IAMKeyPipeline) getLegacyIAMKey(ctx *pipelineContext) error { + log := controllerruntime.LoggerFrom(ctx) exoscaleIAMKey, err := p.exoscaleClient.GetIAMAccessKey(ctx, ctx.iamKey.Spec.ForProvider.Zone, ctx.iamKey.Status.AtProvider.KeyID) if err != nil { @@ -79,19 +143,24 @@ func (p *IAMKeyPipeline) getIAMKey(ctx *pipelineContext) error { } func (p *IAMKeyPipeline) fetchCredentialsSecret(ctx *pipelineContext) error { + log := controllerruntime.LoggerFrom(ctx) secretRef := ctx.iamKey.Spec.WriteConnectionSecretToReference ctx.credentialsSecret = &corev1.Secret{} - return p.kube.Get(ctx, types.NamespacedName{Namespace: secretRef.Namespace, Name: secretRef.Name}, ctx.credentialsSecret) + log.Info("Fetching credentials secret during iamkey observation", secretRef.Namespace, secretRef.Name) + err := p.kube.Get(ctx, types.NamespacedName{Namespace: secretRef.Namespace, Name: secretRef.Name}, ctx.credentialsSecret) + if err != nil { + log.Error(err, "Cannot fetch credentials secret") + return err + } + return nil } func (p *IAMKeyPipeline) checkSecret(ctx *pipelineContext) error { data := ctx.credentialsSecret.Data - if len(data) == 0 { return fmt.Errorf("secret %q does not have any data", fmt.Sprintf("%s/%s", ctx.credentialsSecret.Namespace, ctx.credentialsSecret.Name)) } - // Populate secret key from the secret credentials as exoscale IAM get operation does not return the secret key secret := string(data[exoscalev1.SecretAccessKeyName]) ctx.iamExoscaleKey.Secret = &secret diff --git a/operator/iamkeycontroller/pipeline.go b/operator/iamkeycontroller/pipeline.go index b09bd008..4b03e0b1 100644 --- a/operator/iamkeycontroller/pipeline.go +++ b/operator/iamkeycontroller/pipeline.go @@ -1,50 +1,51 @@ package iamkeycontroller import ( + "bytes" "context" + "crypto/hmac" + "crypto/sha256" + "encoding/base64" + "encoding/json" "errors" + "fmt" + "io" + "net/http" + "net/url" + "sort" + "strings" + "time" exoscalesdk "github.com/exoscale/egoscale/v2" + exooapi "github.com/exoscale/egoscale/v2/oapi" exoscalev1 "github.com/vshn/provider-exoscale/apis/exoscale/v1" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" "github.com/crossplane/crossplane-runtime/pkg/resource" corev1 "k8s.io/api/core/v1" + + controllerruntime "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" ) const ( // KeyIDAnnotationKey is the annotation key where the IAMKey ID is stored. - KeyIDAnnotationKey = "exoscale.crossplane.io/key-id" + KeyIDAnnotationKey = "exoscale.crossplane.io/key-id" + RoleIDAnnotationKey = "exoscale.crossplane.io/role-id" // BucketResourceType is the resource type bucket to which the IAMKey has access to. BucketResourceType = "bucket" //SOSResourceDomain is the resource domain to which the IAMKey has access to. SOSResourceDomain = "sos" ) -var IAMKeyAllowedOperations = []string{ - "abort-sos-multipart-upload", - "delete-sos-object", - "get-sos-bucket-acl", - "get-sos-bucket-cors", - "get-sos-bucket-location", - "get-sos-object", - "get-sos-object-acl", - "get-sos-presigned-url", - "list-sos-bucket", - "list-sos-bucket-multipart-uploads", - "put-sos-object", - "put-sos-object-acl", - "put-sos-bucket-acl", - "put-sos-bucket-cors", -} - // IAMKeyPipeline provisions IAMKeys on exoscale.com type IAMKeyPipeline struct { kube client.Client recorder event.Recorder exoscaleClient *exoscalesdk.Client + apiKey string + apiSecret string } type pipelineContext struct { @@ -54,16 +55,27 @@ type pipelineContext struct { credentialsSecret *corev1.Secret } +type IamRolesList struct { + IamRoles []exooapi.IamRole `json:"iam-roles"` +} + +type IamKeysList struct { + IamKeys []exooapi.IamApiKey `json:"api-keys"` +} + // NewPipeline returns a new instance of IAMKeyPipeline. -func NewPipeline(client client.Client, recorder event.Recorder, exoscaleClient *exoscalesdk.Client) *IAMKeyPipeline { +func NewPipeline(client client.Client, recorder event.Recorder, exoscaleClient *exoscalesdk.Client, apiKey, apiSecret string) *IAMKeyPipeline { return &IAMKeyPipeline{ kube: client, recorder: recorder, exoscaleClient: exoscaleClient, + apiKey: apiKey, + apiSecret: apiSecret, } } func toConnectionDetails(iamKey *exoscalesdk.IAMAccessKey) (managed.ConnectionDetails, error) { + if iamKey.Key == nil { return nil, errors.New("iamKey key not found in connection details") } @@ -79,3 +91,133 @@ func toConnectionDetails(iamKey *exoscalesdk.IAMAccessKey) (managed.ConnectionDe func fromManaged(mg resource.Managed) *exoscalev1.IAMKey { return mg.(*exoscalev1.IAMKey) } + +// https://github.com/exoscale/egoscale/blob/master/v2/api/security.go +// copy-pasted and adjusted to our use case +// this way we will sign all of the requests with the same signature +func signRequest(req *http.Request, expiration time.Time, apiKey, apiSecret string) error { + var ( + sigParts []string + headerParts []string + ) + + // Request method/URL path + sigParts = append(sigParts, fmt.Sprintf("%s %s", req.Method, req.URL.EscapedPath())) + headerParts = append(headerParts, "EXO2-HMAC-SHA256 credential="+apiKey) + + // Request body if present + body := "" + if req.Body != nil { + data, err := io.ReadAll(req.Body) + if err != nil { + return err + } + err = req.Body.Close() + if err != nil { + return err + } + body = string(data) + req.Body = io.NopCloser(bytes.NewReader(data)) + } + sigParts = append(sigParts, body) + + // Request query string parameters + // Important: this is order-sensitive, we have to have to sort parameters alphabetically to ensure signed + // values match the names listed in the "signed-query-args=" signature pragma. + signedParams, paramsValues := extractRequestParameters(req) + sigParts = append(sigParts, paramsValues) + if len(signedParams) > 0 { + headerParts = append(headerParts, "signed-query-args="+strings.Join(signedParams, ";")) + } + + // Request headers -- none at the moment + // Note: the same order-sensitive caution for query string parameters applies to headers. + sigParts = append(sigParts, "") + + // Request expiration date (UNIX timestamp, no line return) + sigParts = append(sigParts, fmt.Sprint(expiration.Unix())) + headerParts = append(headerParts, "expires="+fmt.Sprint(expiration.Unix())) + + h := hmac.New(sha256.New, []byte(apiSecret)) + if _, err := h.Write([]byte(strings.Join(sigParts, "\n"))); err != nil { + return err + } + headerParts = append(headerParts, "signature="+base64.StdEncoding.EncodeToString(h.Sum(nil))) + + req.Header.Set("Authorization", strings.Join(headerParts, ",")) + + return nil +} + +func ExecuteRequest(ctx context.Context, method, host, path, access_key, access_secret string, unMarshalledBody interface{}) (*http.Response, error) { + log := controllerruntime.LoggerFrom(ctx) + req := &http.Request{ + Method: method, + URL: &url.URL{ + Scheme: "https", + Host: fmt.Sprintf("api-%s.exoscale.com", host), + Path: path, + }, + Header: http.Header{ + "Authorization": []string{""}, + }, + } + + if unMarshalledBody != nil { + jsonbt, err := json.Marshal(unMarshalledBody) + if err != nil { + log.Error(err, "Cannot unmarshal body") + return nil, err + } + + req.Body = io.NopCloser(bytes.NewReader(jsonbt)) + } + + if req.Method == "POST" { + req.Header.Set("Content-Type", "application/json") + } + + // sign request + err := signRequest(req, time.Now().Add(5*time.Minute), string(access_key), string(access_secret)) + if err != nil { + log.Error(err, "Cannot sign request") + return nil, err + } + + // send request + resp, err := http.DefaultClient.Do(req) + if err != nil { + log.Error(err, "Cannot send request", "path: ", path, "host: ", host, "method: ", method) + return nil, err + } + + if resp.StatusCode != 200 { + return nil, fmt.Errorf("request failed with status code %d, URL: %s, METHOD: %s, status: %v", resp.StatusCode, req.URL, req.Method, resp.Status) + } + + return resp, nil +} + +// extractRequestParameters returns the list of request URL parameters names +// and a strings concatenating the values of the parameters. +// this function is copy pasted from https://github.com/exoscale/egoscale/blob/master/v2/api/security.go +func extractRequestParameters(req *http.Request) ([]string, string) { + var ( + names []string + values string + ) + + for param, values := range req.URL.Query() { + // Keep only parameters that hold exactly 1 value (i.e. no empty or multi-valued parameters) + if len(values) == 1 { + names = append(names, param) + } + } + sort.Strings(names) + + for _, param := range names { + values += req.URL.Query().Get(param) + } + + return names, values +} diff --git a/operator/iamkeycontroller/webhook.go b/operator/iamkeycontroller/webhook.go index 41082a24..33e150e1 100644 --- a/operator/iamkeycontroller/webhook.go +++ b/operator/iamkeycontroller/webhook.go @@ -3,6 +3,7 @@ package iamkeycontroller import ( "context" "fmt" + "k8s.io/apimachinery/pkg/api/equality" "github.com/go-logr/logr" diff --git a/operator/kafkacontroller/observe_test.go b/operator/kafkacontroller/observe_test.go index 2ffcb7a8..c36c8999 100644 --- a/operator/kafkacontroller/observe_test.go +++ b/operator/kafkacontroller/observe_test.go @@ -435,9 +435,11 @@ func sampleAPIKafka(name string) *oapi.DbaasServiceKafka { "159.100.244.100:21701", "159.100.241.65:21701", } + res.ConnectionInfo = &struct { AccessCert *string "json:\"access-cert,omitempty\"" AccessKey *string "json:\"access-key,omitempty\"" + ConnectUri *string "json:\"connect-uri,omitempty\"" Nodes *[]string "json:\"nodes,omitempty\"" RegistryUri *string "json:\"registry-uri,omitempty\"" RestUri *string "json:\"rest-uri,omitempty\"" diff --git a/operator/kafkacontroller/webhook_test.go b/operator/kafkacontroller/webhook_test.go index e65c135f..c1f4318f 100644 --- a/operator/kafkacontroller/webhook_test.go +++ b/operator/kafkacontroller/webhook_test.go @@ -2,10 +2,11 @@ package kafkacontroller import ( "context" + "testing" + "github.com/exoscale/egoscale/v2/oapi" "github.com/stretchr/testify/mock" "github.com/vshn/provider-exoscale/internal/operatortest" - "testing" "github.com/go-logr/logr" "github.com/stretchr/testify/assert" diff --git a/operator/pipelineutil/exoscale_connector.go b/operator/pipelineutil/exoscale_connector.go index 98d5c8e6..ce95ec1c 100644 --- a/operator/pipelineutil/exoscale_connector.go +++ b/operator/pipelineutil/exoscale_connector.go @@ -76,7 +76,9 @@ func fetchProviderConfig(ctx *connectContext) error { func fetchSecret(ctx *connectContext) error { secretRef := ctx.providerConfig.Spec.Credentials.APISecretRef ctx.credentialSecret = &corev1.Secret{} + err := ctx.kube.Get(ctx, types.NamespacedName{Name: secretRef.Name, Namespace: secretRef.Namespace}, ctx.credentialSecret) + return errors.Wrap(err, "cannot get secret with API token") } @@ -97,3 +99,25 @@ func createExoscaleClient(ctx *connectContext) error { ctx.exoscaleClient = ec return err } + +// FetchProviderConfig returns the apiKey and apiSecret of the given providerConfigRef +func FetchProviderConfig(ctx context.Context, kube client.Client, providerConfigRef string) (string, string, error) { + pctx := &connectContext{ + Context: ctx, + kube: kube, + ProviderConfigName: providerConfigRef, + } + + pipe := pipeline.NewPipeline[*connectContext]() + pipe.WithBeforeHooks(DebugLogger(pctx)). + WithSteps( + pipe.NewStep("fetch provider config", fetchProviderConfig), + pipe.NewStep("fetch secret", fetchSecret), + pipe.NewStep("validate secret", validateSecret), + ) + err := pipe.RunWithContext(pctx) + if err != nil { + return "", "", err + } + return pctx.apiKey, pctx.apiSecret, nil +} diff --git a/operator/pipelineutil/log.go b/operator/pipelineutil/log.go index 5f66b0b6..e6f4458c 100644 --- a/operator/pipelineutil/log.go +++ b/operator/pipelineutil/log.go @@ -12,7 +12,7 @@ import ( func DebugLogger[T context.Context](ctx T) pipeline.Listener[T] { log := controllerruntime.LoggerFrom(ctx) hook := func(step pipeline.Step[T]) { - log.V(2).Info(`Entering step "` + step.Name + `"`) + log.Info(`Entering step "` + step.Name + `"`) } return hook } diff --git a/package/crds/exoscale.crossplane.io_iamkeys.yaml b/package/crds/exoscale.crossplane.io_iamkeys.yaml index 9ff6089f..baafa87b 100644 --- a/package/crds/exoscale.crossplane.io_iamkeys.yaml +++ b/package/crds/exoscale.crossplane.io_iamkeys.yaml @@ -281,6 +281,10 @@ spec: description: KeyName is the observed key name as generated by exoscale.com. type: string + roleID: + description: RoleID is the observed unique ID as generated by + exoscale.com. + type: string services: description: ServicesSpec is the exoscale service to which IAMKey gets access to.