From e750450d0b49bee930aa6b8cf0af0f84a03f1fe6 Mon Sep 17 00:00:00 2001 From: nmccready Date: Thu, 11 Jul 2024 16:49:43 -0400 Subject: [PATCH] chore: save off --- scripts/gen_mocks.sh | 22 + service/accessanalyzer/mocks/IClient.go | 1343 +++++++++++++++++++++ service/account/mocks/IClient.go | 492 ++++++++ service/acm/mocks/IClient.go | 603 ++++++++++ service/acmpca/mocks/IClient.go | 899 ++++++++++++++ service/amp/mocks/IClient.go | 1010 ++++++++++++++++ service/amplify/mocks/IClient.go | 1417 +++++++++++++++++++++++ 7 files changed, 5786 insertions(+) create mode 100755 scripts/gen_mocks.sh create mode 100644 service/accessanalyzer/mocks/IClient.go create mode 100644 service/account/mocks/IClient.go create mode 100644 service/acm/mocks/IClient.go create mode 100644 service/acmpca/mocks/IClient.go create mode 100644 service/amp/mocks/IClient.go create mode 100644 service/amplify/mocks/IClient.go diff --git a/scripts/gen_mocks.sh b/scripts/gen_mocks.sh new file mode 100755 index 00000000..0cb2565a --- /dev/null +++ b/scripts/gen_mocks.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -e + +# get calling Directory +ORIG_DIR="$(pwd)" +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" + +cd "$SCRIPT_DIR" +cd ../ + +# Iterate over each local ./service directory +for service_dir in ./service/*; do + # and not the "internal" directory + if [ -d "$service_dir" ] && [ "$(basename "$service_dir")" != "internal" ]; then + mockery --dir "$service_dir" --name IClient --output "$service_dir/mocks" + fi +done + +echo "Mocks generation complete." + +cd "$ORIG_DIR" diff --git a/service/accessanalyzer/mocks/IClient.go b/service/accessanalyzer/mocks/IClient.go new file mode 100644 index 00000000..d447514f --- /dev/null +++ b/service/accessanalyzer/mocks/IClient.go @@ -0,0 +1,1343 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + accessanalyzer "github.com/aws/aws-sdk-go-v2/service/accessanalyzer" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// ApplyArchiveRule provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ApplyArchiveRule(ctx context.Context, params *accessanalyzer.ApplyArchiveRuleInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ApplyArchiveRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ApplyArchiveRule") + } + + var r0 *accessanalyzer.ApplyArchiveRuleOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ApplyArchiveRuleInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ApplyArchiveRuleOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ApplyArchiveRuleInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ApplyArchiveRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ApplyArchiveRuleOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ApplyArchiveRuleInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CancelPolicyGeneration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CancelPolicyGeneration(ctx context.Context, params *accessanalyzer.CancelPolicyGenerationInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CancelPolicyGenerationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CancelPolicyGeneration") + } + + var r0 *accessanalyzer.CancelPolicyGenerationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CancelPolicyGenerationInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CancelPolicyGenerationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CancelPolicyGenerationInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CancelPolicyGenerationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CancelPolicyGenerationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CancelPolicyGenerationInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CheckAccessNotGranted provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CheckAccessNotGranted(ctx context.Context, params *accessanalyzer.CheckAccessNotGrantedInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckAccessNotGrantedOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CheckAccessNotGranted") + } + + var r0 *accessanalyzer.CheckAccessNotGrantedOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckAccessNotGrantedInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckAccessNotGrantedOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckAccessNotGrantedInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CheckAccessNotGrantedOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CheckAccessNotGrantedOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CheckAccessNotGrantedInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CheckNoNewAccess provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CheckNoNewAccess(ctx context.Context, params *accessanalyzer.CheckNoNewAccessInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckNoNewAccessOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CheckNoNewAccess") + } + + var r0 *accessanalyzer.CheckNoNewAccessOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckNoNewAccessInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckNoNewAccessOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckNoNewAccessInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CheckNoNewAccessOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CheckNoNewAccessOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CheckNoNewAccessInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CheckNoPublicAccess provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CheckNoPublicAccess(ctx context.Context, params *accessanalyzer.CheckNoPublicAccessInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckNoPublicAccessOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CheckNoPublicAccess") + } + + var r0 *accessanalyzer.CheckNoPublicAccessOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckNoPublicAccessInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CheckNoPublicAccessOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CheckNoPublicAccessInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CheckNoPublicAccessOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CheckNoPublicAccessOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CheckNoPublicAccessInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateAccessPreview provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateAccessPreview(ctx context.Context, params *accessanalyzer.CreateAccessPreviewInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateAccessPreviewOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateAccessPreview") + } + + var r0 *accessanalyzer.CreateAccessPreviewOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateAccessPreviewInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateAccessPreviewOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateAccessPreviewInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CreateAccessPreviewOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CreateAccessPreviewOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CreateAccessPreviewInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateAnalyzer provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateAnalyzer(ctx context.Context, params *accessanalyzer.CreateAnalyzerInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateAnalyzerOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateAnalyzer") + } + + var r0 *accessanalyzer.CreateAnalyzerOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateAnalyzerInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateAnalyzerOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateAnalyzerInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CreateAnalyzerOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CreateAnalyzerOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CreateAnalyzerInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateArchiveRule provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateArchiveRule(ctx context.Context, params *accessanalyzer.CreateArchiveRuleInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateArchiveRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateArchiveRule") + } + + var r0 *accessanalyzer.CreateArchiveRuleOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateArchiveRuleInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.CreateArchiveRuleOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.CreateArchiveRuleInput, ...func(*accessanalyzer.Options)) *accessanalyzer.CreateArchiveRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.CreateArchiveRuleOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.CreateArchiveRuleInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteAnalyzer provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteAnalyzer(ctx context.Context, params *accessanalyzer.DeleteAnalyzerInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.DeleteAnalyzerOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteAnalyzer") + } + + var r0 *accessanalyzer.DeleteAnalyzerOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.DeleteAnalyzerInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.DeleteAnalyzerOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.DeleteAnalyzerInput, ...func(*accessanalyzer.Options)) *accessanalyzer.DeleteAnalyzerOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.DeleteAnalyzerOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.DeleteAnalyzerInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteArchiveRule provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteArchiveRule(ctx context.Context, params *accessanalyzer.DeleteArchiveRuleInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.DeleteArchiveRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteArchiveRule") + } + + var r0 *accessanalyzer.DeleteArchiveRuleOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.DeleteArchiveRuleInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.DeleteArchiveRuleOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.DeleteArchiveRuleInput, ...func(*accessanalyzer.Options)) *accessanalyzer.DeleteArchiveRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.DeleteArchiveRuleOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.DeleteArchiveRuleInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GenerateFindingRecommendation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GenerateFindingRecommendation(ctx context.Context, params *accessanalyzer.GenerateFindingRecommendationInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GenerateFindingRecommendationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GenerateFindingRecommendation") + } + + var r0 *accessanalyzer.GenerateFindingRecommendationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GenerateFindingRecommendationInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GenerateFindingRecommendationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GenerateFindingRecommendationInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GenerateFindingRecommendationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GenerateFindingRecommendationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GenerateFindingRecommendationInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAccessPreview provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetAccessPreview(ctx context.Context, params *accessanalyzer.GetAccessPreviewInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAccessPreviewOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAccessPreview") + } + + var r0 *accessanalyzer.GetAccessPreviewOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAccessPreviewInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAccessPreviewOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAccessPreviewInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetAccessPreviewOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetAccessPreviewOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetAccessPreviewInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAnalyzedResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetAnalyzedResource(ctx context.Context, params *accessanalyzer.GetAnalyzedResourceInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAnalyzedResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAnalyzedResource") + } + + var r0 *accessanalyzer.GetAnalyzedResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAnalyzedResourceInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAnalyzedResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAnalyzedResourceInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetAnalyzedResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetAnalyzedResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetAnalyzedResourceInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAnalyzer provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetAnalyzer(ctx context.Context, params *accessanalyzer.GetAnalyzerInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAnalyzerOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAnalyzer") + } + + var r0 *accessanalyzer.GetAnalyzerOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAnalyzerInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetAnalyzerOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetAnalyzerInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetAnalyzerOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetAnalyzerOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetAnalyzerInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetArchiveRule provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetArchiveRule(ctx context.Context, params *accessanalyzer.GetArchiveRuleInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetArchiveRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetArchiveRule") + } + + var r0 *accessanalyzer.GetArchiveRuleOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetArchiveRuleInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetArchiveRuleOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetArchiveRuleInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetArchiveRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetArchiveRuleOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetArchiveRuleInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetFinding provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetFinding(ctx context.Context, params *accessanalyzer.GetFindingInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetFinding") + } + + var r0 *accessanalyzer.GetFindingOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetFindingOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetFindingOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetFindingInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetFindingRecommendation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetFindingRecommendation(ctx context.Context, params *accessanalyzer.GetFindingRecommendationInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingRecommendationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetFindingRecommendation") + } + + var r0 *accessanalyzer.GetFindingRecommendationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingRecommendationInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingRecommendationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingRecommendationInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetFindingRecommendationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetFindingRecommendationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetFindingRecommendationInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetFindingV2 provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetFindingV2(ctx context.Context, params *accessanalyzer.GetFindingV2Input, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingV2Output, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetFindingV2") + } + + var r0 *accessanalyzer.GetFindingV2Output + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingV2Input, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetFindingV2Output, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetFindingV2Input, ...func(*accessanalyzer.Options)) *accessanalyzer.GetFindingV2Output); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetFindingV2Output) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetFindingV2Input, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetGeneratedPolicy provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetGeneratedPolicy(ctx context.Context, params *accessanalyzer.GetGeneratedPolicyInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.GetGeneratedPolicyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetGeneratedPolicy") + } + + var r0 *accessanalyzer.GetGeneratedPolicyOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetGeneratedPolicyInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.GetGeneratedPolicyOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.GetGeneratedPolicyInput, ...func(*accessanalyzer.Options)) *accessanalyzer.GetGeneratedPolicyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.GetGeneratedPolicyOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.GetGeneratedPolicyInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAccessPreviewFindings provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListAccessPreviewFindings(ctx context.Context, params *accessanalyzer.ListAccessPreviewFindingsInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAccessPreviewFindingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListAccessPreviewFindings") + } + + var r0 *accessanalyzer.ListAccessPreviewFindingsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAccessPreviewFindingsInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAccessPreviewFindingsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAccessPreviewFindingsInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListAccessPreviewFindingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListAccessPreviewFindingsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListAccessPreviewFindingsInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAccessPreviews provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListAccessPreviews(ctx context.Context, params *accessanalyzer.ListAccessPreviewsInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAccessPreviewsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListAccessPreviews") + } + + var r0 *accessanalyzer.ListAccessPreviewsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAccessPreviewsInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAccessPreviewsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAccessPreviewsInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListAccessPreviewsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListAccessPreviewsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListAccessPreviewsInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAnalyzedResources provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListAnalyzedResources(ctx context.Context, params *accessanalyzer.ListAnalyzedResourcesInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzedResourcesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListAnalyzedResources") + } + + var r0 *accessanalyzer.ListAnalyzedResourcesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAnalyzedResourcesInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzedResourcesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAnalyzedResourcesInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListAnalyzedResourcesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListAnalyzedResourcesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListAnalyzedResourcesInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListAnalyzers provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListAnalyzers(ctx context.Context, params *accessanalyzer.ListAnalyzersInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListAnalyzers") + } + + var r0 *accessanalyzer.ListAnalyzersOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAnalyzersInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListAnalyzersOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListAnalyzersInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListAnalyzersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListAnalyzersOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListAnalyzersInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListArchiveRules provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListArchiveRules(ctx context.Context, params *accessanalyzer.ListArchiveRulesInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListArchiveRulesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListArchiveRules") + } + + var r0 *accessanalyzer.ListArchiveRulesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListArchiveRulesInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListArchiveRulesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListArchiveRulesInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListArchiveRulesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListArchiveRulesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListArchiveRulesInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListFindings provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListFindings(ctx context.Context, params *accessanalyzer.ListFindingsInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListFindingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListFindings") + } + + var r0 *accessanalyzer.ListFindingsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListFindingsInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListFindingsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListFindingsInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListFindingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListFindingsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListFindingsInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListFindingsV2 provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListFindingsV2(ctx context.Context, params *accessanalyzer.ListFindingsV2Input, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListFindingsV2Output, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListFindingsV2") + } + + var r0 *accessanalyzer.ListFindingsV2Output + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListFindingsV2Input, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListFindingsV2Output, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListFindingsV2Input, ...func(*accessanalyzer.Options)) *accessanalyzer.ListFindingsV2Output); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListFindingsV2Output) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListFindingsV2Input, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListPolicyGenerations provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListPolicyGenerations(ctx context.Context, params *accessanalyzer.ListPolicyGenerationsInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListPolicyGenerationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListPolicyGenerations") + } + + var r0 *accessanalyzer.ListPolicyGenerationsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListPolicyGenerationsInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListPolicyGenerationsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListPolicyGenerationsInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListPolicyGenerationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListPolicyGenerationsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListPolicyGenerationsInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTagsForResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListTagsForResource(ctx context.Context, params *accessanalyzer.ListTagsForResourceInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ListTagsForResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListTagsForResource") + } + + var r0 *accessanalyzer.ListTagsForResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListTagsForResourceInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ListTagsForResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ListTagsForResourceInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ListTagsForResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ListTagsForResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ListTagsForResourceInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() accessanalyzer.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 accessanalyzer.Options + if rf, ok := ret.Get(0).(func() accessanalyzer.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(accessanalyzer.Options) + } + + return r0 +} + +// StartPolicyGeneration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StartPolicyGeneration(ctx context.Context, params *accessanalyzer.StartPolicyGenerationInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.StartPolicyGenerationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StartPolicyGeneration") + } + + var r0 *accessanalyzer.StartPolicyGenerationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.StartPolicyGenerationInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.StartPolicyGenerationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.StartPolicyGenerationInput, ...func(*accessanalyzer.Options)) *accessanalyzer.StartPolicyGenerationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.StartPolicyGenerationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.StartPolicyGenerationInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartResourceScan provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StartResourceScan(ctx context.Context, params *accessanalyzer.StartResourceScanInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.StartResourceScanOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StartResourceScan") + } + + var r0 *accessanalyzer.StartResourceScanOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.StartResourceScanInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.StartResourceScanOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.StartResourceScanInput, ...func(*accessanalyzer.Options)) *accessanalyzer.StartResourceScanOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.StartResourceScanOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.StartResourceScanInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) TagResource(ctx context.Context, params *accessanalyzer.TagResourceInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.TagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for TagResource") + } + + var r0 *accessanalyzer.TagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.TagResourceInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.TagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.TagResourceInput, ...func(*accessanalyzer.Options)) *accessanalyzer.TagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.TagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.TagResourceInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UntagResource(ctx context.Context, params *accessanalyzer.UntagResourceInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.UntagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UntagResource") + } + + var r0 *accessanalyzer.UntagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UntagResourceInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.UntagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UntagResourceInput, ...func(*accessanalyzer.Options)) *accessanalyzer.UntagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.UntagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.UntagResourceInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateArchiveRule provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateArchiveRule(ctx context.Context, params *accessanalyzer.UpdateArchiveRuleInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.UpdateArchiveRuleOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateArchiveRule") + } + + var r0 *accessanalyzer.UpdateArchiveRuleOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UpdateArchiveRuleInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.UpdateArchiveRuleOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UpdateArchiveRuleInput, ...func(*accessanalyzer.Options)) *accessanalyzer.UpdateArchiveRuleOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.UpdateArchiveRuleOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.UpdateArchiveRuleInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateFindings provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateFindings(ctx context.Context, params *accessanalyzer.UpdateFindingsInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.UpdateFindingsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateFindings") + } + + var r0 *accessanalyzer.UpdateFindingsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UpdateFindingsInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.UpdateFindingsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.UpdateFindingsInput, ...func(*accessanalyzer.Options)) *accessanalyzer.UpdateFindingsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.UpdateFindingsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.UpdateFindingsInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ValidatePolicy provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ValidatePolicy(ctx context.Context, params *accessanalyzer.ValidatePolicyInput, optFns ...func(*accessanalyzer.Options)) (*accessanalyzer.ValidatePolicyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ValidatePolicy") + } + + var r0 *accessanalyzer.ValidatePolicyOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ValidatePolicyInput, ...func(*accessanalyzer.Options)) (*accessanalyzer.ValidatePolicyOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *accessanalyzer.ValidatePolicyInput, ...func(*accessanalyzer.Options)) *accessanalyzer.ValidatePolicyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*accessanalyzer.ValidatePolicyOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *accessanalyzer.ValidatePolicyInput, ...func(*accessanalyzer.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/service/account/mocks/IClient.go b/service/account/mocks/IClient.go new file mode 100644 index 00000000..e235f1fa --- /dev/null +++ b/service/account/mocks/IClient.go @@ -0,0 +1,492 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + account "github.com/aws/aws-sdk-go-v2/service/account" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// AcceptPrimaryEmailUpdate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) AcceptPrimaryEmailUpdate(ctx context.Context, params *account.AcceptPrimaryEmailUpdateInput, optFns ...func(*account.Options)) (*account.AcceptPrimaryEmailUpdateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for AcceptPrimaryEmailUpdate") + } + + var r0 *account.AcceptPrimaryEmailUpdateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.AcceptPrimaryEmailUpdateInput, ...func(*account.Options)) (*account.AcceptPrimaryEmailUpdateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.AcceptPrimaryEmailUpdateInput, ...func(*account.Options)) *account.AcceptPrimaryEmailUpdateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.AcceptPrimaryEmailUpdateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.AcceptPrimaryEmailUpdateInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteAlternateContact provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteAlternateContact(ctx context.Context, params *account.DeleteAlternateContactInput, optFns ...func(*account.Options)) (*account.DeleteAlternateContactOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteAlternateContact") + } + + var r0 *account.DeleteAlternateContactOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.DeleteAlternateContactInput, ...func(*account.Options)) (*account.DeleteAlternateContactOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.DeleteAlternateContactInput, ...func(*account.Options)) *account.DeleteAlternateContactOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.DeleteAlternateContactOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.DeleteAlternateContactInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DisableRegion provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DisableRegion(ctx context.Context, params *account.DisableRegionInput, optFns ...func(*account.Options)) (*account.DisableRegionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DisableRegion") + } + + var r0 *account.DisableRegionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.DisableRegionInput, ...func(*account.Options)) (*account.DisableRegionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.DisableRegionInput, ...func(*account.Options)) *account.DisableRegionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.DisableRegionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.DisableRegionInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// EnableRegion provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) EnableRegion(ctx context.Context, params *account.EnableRegionInput, optFns ...func(*account.Options)) (*account.EnableRegionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for EnableRegion") + } + + var r0 *account.EnableRegionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.EnableRegionInput, ...func(*account.Options)) (*account.EnableRegionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.EnableRegionInput, ...func(*account.Options)) *account.EnableRegionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.EnableRegionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.EnableRegionInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAlternateContact provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetAlternateContact(ctx context.Context, params *account.GetAlternateContactInput, optFns ...func(*account.Options)) (*account.GetAlternateContactOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAlternateContact") + } + + var r0 *account.GetAlternateContactOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.GetAlternateContactInput, ...func(*account.Options)) (*account.GetAlternateContactOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.GetAlternateContactInput, ...func(*account.Options)) *account.GetAlternateContactOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.GetAlternateContactOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.GetAlternateContactInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetContactInformation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetContactInformation(ctx context.Context, params *account.GetContactInformationInput, optFns ...func(*account.Options)) (*account.GetContactInformationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetContactInformation") + } + + var r0 *account.GetContactInformationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.GetContactInformationInput, ...func(*account.Options)) (*account.GetContactInformationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.GetContactInformationInput, ...func(*account.Options)) *account.GetContactInformationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.GetContactInformationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.GetContactInformationInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPrimaryEmail provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetPrimaryEmail(ctx context.Context, params *account.GetPrimaryEmailInput, optFns ...func(*account.Options)) (*account.GetPrimaryEmailOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetPrimaryEmail") + } + + var r0 *account.GetPrimaryEmailOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.GetPrimaryEmailInput, ...func(*account.Options)) (*account.GetPrimaryEmailOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.GetPrimaryEmailInput, ...func(*account.Options)) *account.GetPrimaryEmailOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.GetPrimaryEmailOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.GetPrimaryEmailInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetRegionOptStatus provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetRegionOptStatus(ctx context.Context, params *account.GetRegionOptStatusInput, optFns ...func(*account.Options)) (*account.GetRegionOptStatusOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetRegionOptStatus") + } + + var r0 *account.GetRegionOptStatusOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.GetRegionOptStatusInput, ...func(*account.Options)) (*account.GetRegionOptStatusOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.GetRegionOptStatusInput, ...func(*account.Options)) *account.GetRegionOptStatusOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.GetRegionOptStatusOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.GetRegionOptStatusInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListRegions provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListRegions(ctx context.Context, params *account.ListRegionsInput, optFns ...func(*account.Options)) (*account.ListRegionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListRegions") + } + + var r0 *account.ListRegionsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.ListRegionsInput, ...func(*account.Options)) (*account.ListRegionsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.ListRegionsInput, ...func(*account.Options)) *account.ListRegionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.ListRegionsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.ListRegionsInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() account.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 account.Options + if rf, ok := ret.Get(0).(func() account.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(account.Options) + } + + return r0 +} + +// PutAlternateContact provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutAlternateContact(ctx context.Context, params *account.PutAlternateContactInput, optFns ...func(*account.Options)) (*account.PutAlternateContactOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutAlternateContact") + } + + var r0 *account.PutAlternateContactOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.PutAlternateContactInput, ...func(*account.Options)) (*account.PutAlternateContactOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.PutAlternateContactInput, ...func(*account.Options)) *account.PutAlternateContactOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.PutAlternateContactOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.PutAlternateContactInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutContactInformation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutContactInformation(ctx context.Context, params *account.PutContactInformationInput, optFns ...func(*account.Options)) (*account.PutContactInformationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutContactInformation") + } + + var r0 *account.PutContactInformationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.PutContactInformationInput, ...func(*account.Options)) (*account.PutContactInformationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.PutContactInformationInput, ...func(*account.Options)) *account.PutContactInformationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.PutContactInformationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.PutContactInformationInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartPrimaryEmailUpdate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StartPrimaryEmailUpdate(ctx context.Context, params *account.StartPrimaryEmailUpdateInput, optFns ...func(*account.Options)) (*account.StartPrimaryEmailUpdateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StartPrimaryEmailUpdate") + } + + var r0 *account.StartPrimaryEmailUpdateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *account.StartPrimaryEmailUpdateInput, ...func(*account.Options)) (*account.StartPrimaryEmailUpdateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *account.StartPrimaryEmailUpdateInput, ...func(*account.Options)) *account.StartPrimaryEmailUpdateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*account.StartPrimaryEmailUpdateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *account.StartPrimaryEmailUpdateInput, ...func(*account.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/service/acm/mocks/IClient.go b/service/acm/mocks/IClient.go new file mode 100644 index 00000000..69694991 --- /dev/null +++ b/service/acm/mocks/IClient.go @@ -0,0 +1,603 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + acm "github.com/aws/aws-sdk-go-v2/service/acm" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// AddTagsToCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) AddTagsToCertificate(ctx context.Context, params *acm.AddTagsToCertificateInput, optFns ...func(*acm.Options)) (*acm.AddTagsToCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for AddTagsToCertificate") + } + + var r0 *acm.AddTagsToCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.AddTagsToCertificateInput, ...func(*acm.Options)) (*acm.AddTagsToCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.AddTagsToCertificateInput, ...func(*acm.Options)) *acm.AddTagsToCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.AddTagsToCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.AddTagsToCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteCertificate(ctx context.Context, params *acm.DeleteCertificateInput, optFns ...func(*acm.Options)) (*acm.DeleteCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteCertificate") + } + + var r0 *acm.DeleteCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.DeleteCertificateInput, ...func(*acm.Options)) (*acm.DeleteCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.DeleteCertificateInput, ...func(*acm.Options)) *acm.DeleteCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.DeleteCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.DeleteCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeCertificate(ctx context.Context, params *acm.DescribeCertificateInput, optFns ...func(*acm.Options)) (*acm.DescribeCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeCertificate") + } + + var r0 *acm.DescribeCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.DescribeCertificateInput, ...func(*acm.Options)) (*acm.DescribeCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.DescribeCertificateInput, ...func(*acm.Options)) *acm.DescribeCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.DescribeCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.DescribeCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ExportCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ExportCertificate(ctx context.Context, params *acm.ExportCertificateInput, optFns ...func(*acm.Options)) (*acm.ExportCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ExportCertificate") + } + + var r0 *acm.ExportCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.ExportCertificateInput, ...func(*acm.Options)) (*acm.ExportCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.ExportCertificateInput, ...func(*acm.Options)) *acm.ExportCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.ExportCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.ExportCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetAccountConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetAccountConfiguration(ctx context.Context, params *acm.GetAccountConfigurationInput, optFns ...func(*acm.Options)) (*acm.GetAccountConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAccountConfiguration") + } + + var r0 *acm.GetAccountConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.GetAccountConfigurationInput, ...func(*acm.Options)) (*acm.GetAccountConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.GetAccountConfigurationInput, ...func(*acm.Options)) *acm.GetAccountConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.GetAccountConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.GetAccountConfigurationInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetCertificate(ctx context.Context, params *acm.GetCertificateInput, optFns ...func(*acm.Options)) (*acm.GetCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetCertificate") + } + + var r0 *acm.GetCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.GetCertificateInput, ...func(*acm.Options)) (*acm.GetCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.GetCertificateInput, ...func(*acm.Options)) *acm.GetCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.GetCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.GetCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ImportCertificate(ctx context.Context, params *acm.ImportCertificateInput, optFns ...func(*acm.Options)) (*acm.ImportCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ImportCertificate") + } + + var r0 *acm.ImportCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.ImportCertificateInput, ...func(*acm.Options)) (*acm.ImportCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.ImportCertificateInput, ...func(*acm.Options)) *acm.ImportCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.ImportCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.ImportCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCertificates provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListCertificates(ctx context.Context, params *acm.ListCertificatesInput, optFns ...func(*acm.Options)) (*acm.ListCertificatesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListCertificates") + } + + var r0 *acm.ListCertificatesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.ListCertificatesInput, ...func(*acm.Options)) (*acm.ListCertificatesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.ListCertificatesInput, ...func(*acm.Options)) *acm.ListCertificatesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.ListCertificatesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.ListCertificatesInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTagsForCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListTagsForCertificate(ctx context.Context, params *acm.ListTagsForCertificateInput, optFns ...func(*acm.Options)) (*acm.ListTagsForCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListTagsForCertificate") + } + + var r0 *acm.ListTagsForCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.ListTagsForCertificateInput, ...func(*acm.Options)) (*acm.ListTagsForCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.ListTagsForCertificateInput, ...func(*acm.Options)) *acm.ListTagsForCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.ListTagsForCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.ListTagsForCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() acm.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 acm.Options + if rf, ok := ret.Get(0).(func() acm.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(acm.Options) + } + + return r0 +} + +// PutAccountConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutAccountConfiguration(ctx context.Context, params *acm.PutAccountConfigurationInput, optFns ...func(*acm.Options)) (*acm.PutAccountConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutAccountConfiguration") + } + + var r0 *acm.PutAccountConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.PutAccountConfigurationInput, ...func(*acm.Options)) (*acm.PutAccountConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.PutAccountConfigurationInput, ...func(*acm.Options)) *acm.PutAccountConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.PutAccountConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.PutAccountConfigurationInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RemoveTagsFromCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) RemoveTagsFromCertificate(ctx context.Context, params *acm.RemoveTagsFromCertificateInput, optFns ...func(*acm.Options)) (*acm.RemoveTagsFromCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RemoveTagsFromCertificate") + } + + var r0 *acm.RemoveTagsFromCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.RemoveTagsFromCertificateInput, ...func(*acm.Options)) (*acm.RemoveTagsFromCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.RemoveTagsFromCertificateInput, ...func(*acm.Options)) *acm.RemoveTagsFromCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.RemoveTagsFromCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.RemoveTagsFromCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RenewCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) RenewCertificate(ctx context.Context, params *acm.RenewCertificateInput, optFns ...func(*acm.Options)) (*acm.RenewCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RenewCertificate") + } + + var r0 *acm.RenewCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.RenewCertificateInput, ...func(*acm.Options)) (*acm.RenewCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.RenewCertificateInput, ...func(*acm.Options)) *acm.RenewCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.RenewCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.RenewCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RequestCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) RequestCertificate(ctx context.Context, params *acm.RequestCertificateInput, optFns ...func(*acm.Options)) (*acm.RequestCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RequestCertificate") + } + + var r0 *acm.RequestCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.RequestCertificateInput, ...func(*acm.Options)) (*acm.RequestCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.RequestCertificateInput, ...func(*acm.Options)) *acm.RequestCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.RequestCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.RequestCertificateInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ResendValidationEmail provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ResendValidationEmail(ctx context.Context, params *acm.ResendValidationEmailInput, optFns ...func(*acm.Options)) (*acm.ResendValidationEmailOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ResendValidationEmail") + } + + var r0 *acm.ResendValidationEmailOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.ResendValidationEmailInput, ...func(*acm.Options)) (*acm.ResendValidationEmailOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.ResendValidationEmailInput, ...func(*acm.Options)) *acm.ResendValidationEmailOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.ResendValidationEmailOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.ResendValidationEmailInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateCertificateOptions provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateCertificateOptions(ctx context.Context, params *acm.UpdateCertificateOptionsInput, optFns ...func(*acm.Options)) (*acm.UpdateCertificateOptionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateCertificateOptions") + } + + var r0 *acm.UpdateCertificateOptionsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acm.UpdateCertificateOptionsInput, ...func(*acm.Options)) (*acm.UpdateCertificateOptionsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acm.UpdateCertificateOptionsInput, ...func(*acm.Options)) *acm.UpdateCertificateOptionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acm.UpdateCertificateOptionsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acm.UpdateCertificateOptionsInput, ...func(*acm.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/service/acmpca/mocks/IClient.go b/service/acmpca/mocks/IClient.go new file mode 100644 index 00000000..6a8dfd55 --- /dev/null +++ b/service/acmpca/mocks/IClient.go @@ -0,0 +1,899 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + acmpca "github.com/aws/aws-sdk-go-v2/service/acmpca" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// CreateCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateCertificateAuthority(ctx context.Context, params *acmpca.CreateCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.CreateCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateCertificateAuthority") + } + + var r0 *acmpca.CreateCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreateCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.CreateCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreateCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.CreateCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.CreateCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.CreateCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateCertificateAuthorityAuditReport provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateCertificateAuthorityAuditReport(ctx context.Context, params *acmpca.CreateCertificateAuthorityAuditReportInput, optFns ...func(*acmpca.Options)) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateCertificateAuthorityAuditReport") + } + + var r0 *acmpca.CreateCertificateAuthorityAuditReportOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreateCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) (*acmpca.CreateCertificateAuthorityAuditReportOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreateCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) *acmpca.CreateCertificateAuthorityAuditReportOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.CreateCertificateAuthorityAuditReportOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.CreateCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreatePermission provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreatePermission(ctx context.Context, params *acmpca.CreatePermissionInput, optFns ...func(*acmpca.Options)) (*acmpca.CreatePermissionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreatePermission") + } + + var r0 *acmpca.CreatePermissionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreatePermissionInput, ...func(*acmpca.Options)) (*acmpca.CreatePermissionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.CreatePermissionInput, ...func(*acmpca.Options)) *acmpca.CreatePermissionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.CreatePermissionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.CreatePermissionInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteCertificateAuthority(ctx context.Context, params *acmpca.DeleteCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.DeleteCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteCertificateAuthority") + } + + var r0 *acmpca.DeleteCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeleteCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.DeleteCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeleteCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.DeleteCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.DeleteCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.DeleteCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePermission provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeletePermission(ctx context.Context, params *acmpca.DeletePermissionInput, optFns ...func(*acmpca.Options)) (*acmpca.DeletePermissionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeletePermission") + } + + var r0 *acmpca.DeletePermissionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeletePermissionInput, ...func(*acmpca.Options)) (*acmpca.DeletePermissionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeletePermissionInput, ...func(*acmpca.Options)) *acmpca.DeletePermissionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.DeletePermissionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.DeletePermissionInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeletePolicy provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeletePolicy(ctx context.Context, params *acmpca.DeletePolicyInput, optFns ...func(*acmpca.Options)) (*acmpca.DeletePolicyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeletePolicy") + } + + var r0 *acmpca.DeletePolicyOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeletePolicyInput, ...func(*acmpca.Options)) (*acmpca.DeletePolicyOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DeletePolicyInput, ...func(*acmpca.Options)) *acmpca.DeletePolicyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.DeletePolicyOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.DeletePolicyInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeCertificateAuthority(ctx context.Context, params *acmpca.DescribeCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.DescribeCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeCertificateAuthority") + } + + var r0 *acmpca.DescribeCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DescribeCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.DescribeCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DescribeCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.DescribeCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.DescribeCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.DescribeCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeCertificateAuthorityAuditReport provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeCertificateAuthorityAuditReport(ctx context.Context, params *acmpca.DescribeCertificateAuthorityAuditReportInput, optFns ...func(*acmpca.Options)) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeCertificateAuthorityAuditReport") + } + + var r0 *acmpca.DescribeCertificateAuthorityAuditReportOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) (*acmpca.DescribeCertificateAuthorityAuditReportOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) *acmpca.DescribeCertificateAuthorityAuditReportOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.DescribeCertificateAuthorityAuditReportOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.DescribeCertificateAuthorityAuditReportInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetCertificate(ctx context.Context, params *acmpca.GetCertificateInput, optFns ...func(*acmpca.Options)) (*acmpca.GetCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetCertificate") + } + + var r0 *acmpca.GetCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateInput, ...func(*acmpca.Options)) (*acmpca.GetCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateInput, ...func(*acmpca.Options)) *acmpca.GetCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.GetCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.GetCertificateInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCertificateAuthorityCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetCertificateAuthorityCertificate(ctx context.Context, params *acmpca.GetCertificateAuthorityCertificateInput, optFns ...func(*acmpca.Options)) (*acmpca.GetCertificateAuthorityCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetCertificateAuthorityCertificate") + } + + var r0 *acmpca.GetCertificateAuthorityCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) (*acmpca.GetCertificateAuthorityCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) *acmpca.GetCertificateAuthorityCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.GetCertificateAuthorityCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.GetCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetCertificateAuthorityCsr provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetCertificateAuthorityCsr(ctx context.Context, params *acmpca.GetCertificateAuthorityCsrInput, optFns ...func(*acmpca.Options)) (*acmpca.GetCertificateAuthorityCsrOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetCertificateAuthorityCsr") + } + + var r0 *acmpca.GetCertificateAuthorityCsrOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateAuthorityCsrInput, ...func(*acmpca.Options)) (*acmpca.GetCertificateAuthorityCsrOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetCertificateAuthorityCsrInput, ...func(*acmpca.Options)) *acmpca.GetCertificateAuthorityCsrOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.GetCertificateAuthorityCsrOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.GetCertificateAuthorityCsrInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetPolicy provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetPolicy(ctx context.Context, params *acmpca.GetPolicyInput, optFns ...func(*acmpca.Options)) (*acmpca.GetPolicyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetPolicy") + } + + var r0 *acmpca.GetPolicyOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetPolicyInput, ...func(*acmpca.Options)) (*acmpca.GetPolicyOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.GetPolicyInput, ...func(*acmpca.Options)) *acmpca.GetPolicyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.GetPolicyOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.GetPolicyInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ImportCertificateAuthorityCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ImportCertificateAuthorityCertificate(ctx context.Context, params *acmpca.ImportCertificateAuthorityCertificateInput, optFns ...func(*acmpca.Options)) (*acmpca.ImportCertificateAuthorityCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ImportCertificateAuthorityCertificate") + } + + var r0 *acmpca.ImportCertificateAuthorityCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ImportCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) (*acmpca.ImportCertificateAuthorityCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ImportCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) *acmpca.ImportCertificateAuthorityCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.ImportCertificateAuthorityCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.ImportCertificateAuthorityCertificateInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// IssueCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) IssueCertificate(ctx context.Context, params *acmpca.IssueCertificateInput, optFns ...func(*acmpca.Options)) (*acmpca.IssueCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for IssueCertificate") + } + + var r0 *acmpca.IssueCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.IssueCertificateInput, ...func(*acmpca.Options)) (*acmpca.IssueCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.IssueCertificateInput, ...func(*acmpca.Options)) *acmpca.IssueCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.IssueCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.IssueCertificateInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListCertificateAuthorities provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListCertificateAuthorities(ctx context.Context, params *acmpca.ListCertificateAuthoritiesInput, optFns ...func(*acmpca.Options)) (*acmpca.ListCertificateAuthoritiesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListCertificateAuthorities") + } + + var r0 *acmpca.ListCertificateAuthoritiesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListCertificateAuthoritiesInput, ...func(*acmpca.Options)) (*acmpca.ListCertificateAuthoritiesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListCertificateAuthoritiesInput, ...func(*acmpca.Options)) *acmpca.ListCertificateAuthoritiesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.ListCertificateAuthoritiesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.ListCertificateAuthoritiesInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListPermissions provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListPermissions(ctx context.Context, params *acmpca.ListPermissionsInput, optFns ...func(*acmpca.Options)) (*acmpca.ListPermissionsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListPermissions") + } + + var r0 *acmpca.ListPermissionsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListPermissionsInput, ...func(*acmpca.Options)) (*acmpca.ListPermissionsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListPermissionsInput, ...func(*acmpca.Options)) *acmpca.ListPermissionsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.ListPermissionsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.ListPermissionsInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTags provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListTags(ctx context.Context, params *acmpca.ListTagsInput, optFns ...func(*acmpca.Options)) (*acmpca.ListTagsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListTags") + } + + var r0 *acmpca.ListTagsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListTagsInput, ...func(*acmpca.Options)) (*acmpca.ListTagsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.ListTagsInput, ...func(*acmpca.Options)) *acmpca.ListTagsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.ListTagsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.ListTagsInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() acmpca.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 acmpca.Options + if rf, ok := ret.Get(0).(func() acmpca.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(acmpca.Options) + } + + return r0 +} + +// PutPolicy provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutPolicy(ctx context.Context, params *acmpca.PutPolicyInput, optFns ...func(*acmpca.Options)) (*acmpca.PutPolicyOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutPolicy") + } + + var r0 *acmpca.PutPolicyOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.PutPolicyInput, ...func(*acmpca.Options)) (*acmpca.PutPolicyOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.PutPolicyInput, ...func(*acmpca.Options)) *acmpca.PutPolicyOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.PutPolicyOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.PutPolicyInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RestoreCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) RestoreCertificateAuthority(ctx context.Context, params *acmpca.RestoreCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.RestoreCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RestoreCertificateAuthority") + } + + var r0 *acmpca.RestoreCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.RestoreCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.RestoreCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.RestoreCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.RestoreCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.RestoreCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.RestoreCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RevokeCertificate provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) RevokeCertificate(ctx context.Context, params *acmpca.RevokeCertificateInput, optFns ...func(*acmpca.Options)) (*acmpca.RevokeCertificateOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for RevokeCertificate") + } + + var r0 *acmpca.RevokeCertificateOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.RevokeCertificateInput, ...func(*acmpca.Options)) (*acmpca.RevokeCertificateOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.RevokeCertificateInput, ...func(*acmpca.Options)) *acmpca.RevokeCertificateOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.RevokeCertificateOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.RevokeCertificateInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) TagCertificateAuthority(ctx context.Context, params *acmpca.TagCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.TagCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for TagCertificateAuthority") + } + + var r0 *acmpca.TagCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.TagCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.TagCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.TagCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.TagCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.TagCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.TagCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UntagCertificateAuthority(ctx context.Context, params *acmpca.UntagCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.UntagCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UntagCertificateAuthority") + } + + var r0 *acmpca.UntagCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.UntagCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.UntagCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.UntagCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.UntagCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.UntagCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.UntagCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateCertificateAuthority provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateCertificateAuthority(ctx context.Context, params *acmpca.UpdateCertificateAuthorityInput, optFns ...func(*acmpca.Options)) (*acmpca.UpdateCertificateAuthorityOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateCertificateAuthority") + } + + var r0 *acmpca.UpdateCertificateAuthorityOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.UpdateCertificateAuthorityInput, ...func(*acmpca.Options)) (*acmpca.UpdateCertificateAuthorityOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *acmpca.UpdateCertificateAuthorityInput, ...func(*acmpca.Options)) *acmpca.UpdateCertificateAuthorityOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*acmpca.UpdateCertificateAuthorityOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *acmpca.UpdateCertificateAuthorityInput, ...func(*acmpca.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/service/amp/mocks/IClient.go b/service/amp/mocks/IClient.go new file mode 100644 index 00000000..e8ff937d --- /dev/null +++ b/service/amp/mocks/IClient.go @@ -0,0 +1,1010 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + amp "github.com/aws/aws-sdk-go-v2/service/amp" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// CreateAlertManagerDefinition provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateAlertManagerDefinition(ctx context.Context, params *amp.CreateAlertManagerDefinitionInput, optFns ...func(*amp.Options)) (*amp.CreateAlertManagerDefinitionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateAlertManagerDefinition") + } + + var r0 *amp.CreateAlertManagerDefinitionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateAlertManagerDefinitionInput, ...func(*amp.Options)) (*amp.CreateAlertManagerDefinitionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateAlertManagerDefinitionInput, ...func(*amp.Options)) *amp.CreateAlertManagerDefinitionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.CreateAlertManagerDefinitionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.CreateAlertManagerDefinitionInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLoggingConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateLoggingConfiguration(ctx context.Context, params *amp.CreateLoggingConfigurationInput, optFns ...func(*amp.Options)) (*amp.CreateLoggingConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateLoggingConfiguration") + } + + var r0 *amp.CreateLoggingConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateLoggingConfigurationInput, ...func(*amp.Options)) (*amp.CreateLoggingConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateLoggingConfigurationInput, ...func(*amp.Options)) *amp.CreateLoggingConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.CreateLoggingConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.CreateLoggingConfigurationInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateRuleGroupsNamespace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateRuleGroupsNamespace(ctx context.Context, params *amp.CreateRuleGroupsNamespaceInput, optFns ...func(*amp.Options)) (*amp.CreateRuleGroupsNamespaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateRuleGroupsNamespace") + } + + var r0 *amp.CreateRuleGroupsNamespaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateRuleGroupsNamespaceInput, ...func(*amp.Options)) (*amp.CreateRuleGroupsNamespaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateRuleGroupsNamespaceInput, ...func(*amp.Options)) *amp.CreateRuleGroupsNamespaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.CreateRuleGroupsNamespaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.CreateRuleGroupsNamespaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateScraper provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateScraper(ctx context.Context, params *amp.CreateScraperInput, optFns ...func(*amp.Options)) (*amp.CreateScraperOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateScraper") + } + + var r0 *amp.CreateScraperOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateScraperInput, ...func(*amp.Options)) (*amp.CreateScraperOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateScraperInput, ...func(*amp.Options)) *amp.CreateScraperOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.CreateScraperOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.CreateScraperInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateWorkspace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateWorkspace(ctx context.Context, params *amp.CreateWorkspaceInput, optFns ...func(*amp.Options)) (*amp.CreateWorkspaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateWorkspace") + } + + var r0 *amp.CreateWorkspaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateWorkspaceInput, ...func(*amp.Options)) (*amp.CreateWorkspaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.CreateWorkspaceInput, ...func(*amp.Options)) *amp.CreateWorkspaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.CreateWorkspaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.CreateWorkspaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteAlertManagerDefinition provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteAlertManagerDefinition(ctx context.Context, params *amp.DeleteAlertManagerDefinitionInput, optFns ...func(*amp.Options)) (*amp.DeleteAlertManagerDefinitionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteAlertManagerDefinition") + } + + var r0 *amp.DeleteAlertManagerDefinitionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteAlertManagerDefinitionInput, ...func(*amp.Options)) (*amp.DeleteAlertManagerDefinitionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteAlertManagerDefinitionInput, ...func(*amp.Options)) *amp.DeleteAlertManagerDefinitionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DeleteAlertManagerDefinitionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DeleteAlertManagerDefinitionInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteLoggingConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteLoggingConfiguration(ctx context.Context, params *amp.DeleteLoggingConfigurationInput, optFns ...func(*amp.Options)) (*amp.DeleteLoggingConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteLoggingConfiguration") + } + + var r0 *amp.DeleteLoggingConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteLoggingConfigurationInput, ...func(*amp.Options)) (*amp.DeleteLoggingConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteLoggingConfigurationInput, ...func(*amp.Options)) *amp.DeleteLoggingConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DeleteLoggingConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DeleteLoggingConfigurationInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteRuleGroupsNamespace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteRuleGroupsNamespace(ctx context.Context, params *amp.DeleteRuleGroupsNamespaceInput, optFns ...func(*amp.Options)) (*amp.DeleteRuleGroupsNamespaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteRuleGroupsNamespace") + } + + var r0 *amp.DeleteRuleGroupsNamespaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteRuleGroupsNamespaceInput, ...func(*amp.Options)) (*amp.DeleteRuleGroupsNamespaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteRuleGroupsNamespaceInput, ...func(*amp.Options)) *amp.DeleteRuleGroupsNamespaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DeleteRuleGroupsNamespaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DeleteRuleGroupsNamespaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteScraper provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteScraper(ctx context.Context, params *amp.DeleteScraperInput, optFns ...func(*amp.Options)) (*amp.DeleteScraperOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteScraper") + } + + var r0 *amp.DeleteScraperOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteScraperInput, ...func(*amp.Options)) (*amp.DeleteScraperOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteScraperInput, ...func(*amp.Options)) *amp.DeleteScraperOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DeleteScraperOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DeleteScraperInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteWorkspace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteWorkspace(ctx context.Context, params *amp.DeleteWorkspaceInput, optFns ...func(*amp.Options)) (*amp.DeleteWorkspaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteWorkspace") + } + + var r0 *amp.DeleteWorkspaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteWorkspaceInput, ...func(*amp.Options)) (*amp.DeleteWorkspaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DeleteWorkspaceInput, ...func(*amp.Options)) *amp.DeleteWorkspaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DeleteWorkspaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DeleteWorkspaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeAlertManagerDefinition provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeAlertManagerDefinition(ctx context.Context, params *amp.DescribeAlertManagerDefinitionInput, optFns ...func(*amp.Options)) (*amp.DescribeAlertManagerDefinitionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeAlertManagerDefinition") + } + + var r0 *amp.DescribeAlertManagerDefinitionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeAlertManagerDefinitionInput, ...func(*amp.Options)) (*amp.DescribeAlertManagerDefinitionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeAlertManagerDefinitionInput, ...func(*amp.Options)) *amp.DescribeAlertManagerDefinitionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DescribeAlertManagerDefinitionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DescribeAlertManagerDefinitionInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeLoggingConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeLoggingConfiguration(ctx context.Context, params *amp.DescribeLoggingConfigurationInput, optFns ...func(*amp.Options)) (*amp.DescribeLoggingConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeLoggingConfiguration") + } + + var r0 *amp.DescribeLoggingConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeLoggingConfigurationInput, ...func(*amp.Options)) (*amp.DescribeLoggingConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeLoggingConfigurationInput, ...func(*amp.Options)) *amp.DescribeLoggingConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DescribeLoggingConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DescribeLoggingConfigurationInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeRuleGroupsNamespace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeRuleGroupsNamespace(ctx context.Context, params *amp.DescribeRuleGroupsNamespaceInput, optFns ...func(*amp.Options)) (*amp.DescribeRuleGroupsNamespaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeRuleGroupsNamespace") + } + + var r0 *amp.DescribeRuleGroupsNamespaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeRuleGroupsNamespaceInput, ...func(*amp.Options)) (*amp.DescribeRuleGroupsNamespaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeRuleGroupsNamespaceInput, ...func(*amp.Options)) *amp.DescribeRuleGroupsNamespaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DescribeRuleGroupsNamespaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DescribeRuleGroupsNamespaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeScraper provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeScraper(ctx context.Context, params *amp.DescribeScraperInput, optFns ...func(*amp.Options)) (*amp.DescribeScraperOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeScraper") + } + + var r0 *amp.DescribeScraperOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeScraperInput, ...func(*amp.Options)) (*amp.DescribeScraperOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeScraperInput, ...func(*amp.Options)) *amp.DescribeScraperOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DescribeScraperOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DescribeScraperInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DescribeWorkspace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DescribeWorkspace(ctx context.Context, params *amp.DescribeWorkspaceInput, optFns ...func(*amp.Options)) (*amp.DescribeWorkspaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DescribeWorkspace") + } + + var r0 *amp.DescribeWorkspaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeWorkspaceInput, ...func(*amp.Options)) (*amp.DescribeWorkspaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.DescribeWorkspaceInput, ...func(*amp.Options)) *amp.DescribeWorkspaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.DescribeWorkspaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.DescribeWorkspaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetDefaultScraperConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetDefaultScraperConfiguration(ctx context.Context, params *amp.GetDefaultScraperConfigurationInput, optFns ...func(*amp.Options)) (*amp.GetDefaultScraperConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDefaultScraperConfiguration") + } + + var r0 *amp.GetDefaultScraperConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.GetDefaultScraperConfigurationInput, ...func(*amp.Options)) (*amp.GetDefaultScraperConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.GetDefaultScraperConfigurationInput, ...func(*amp.Options)) *amp.GetDefaultScraperConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.GetDefaultScraperConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.GetDefaultScraperConfigurationInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListRuleGroupsNamespaces provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListRuleGroupsNamespaces(ctx context.Context, params *amp.ListRuleGroupsNamespacesInput, optFns ...func(*amp.Options)) (*amp.ListRuleGroupsNamespacesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListRuleGroupsNamespaces") + } + + var r0 *amp.ListRuleGroupsNamespacesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListRuleGroupsNamespacesInput, ...func(*amp.Options)) (*amp.ListRuleGroupsNamespacesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListRuleGroupsNamespacesInput, ...func(*amp.Options)) *amp.ListRuleGroupsNamespacesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.ListRuleGroupsNamespacesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.ListRuleGroupsNamespacesInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListScrapers provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListScrapers(ctx context.Context, params *amp.ListScrapersInput, optFns ...func(*amp.Options)) (*amp.ListScrapersOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListScrapers") + } + + var r0 *amp.ListScrapersOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListScrapersInput, ...func(*amp.Options)) (*amp.ListScrapersOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListScrapersInput, ...func(*amp.Options)) *amp.ListScrapersOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.ListScrapersOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.ListScrapersInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTagsForResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListTagsForResource(ctx context.Context, params *amp.ListTagsForResourceInput, optFns ...func(*amp.Options)) (*amp.ListTagsForResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListTagsForResource") + } + + var r0 *amp.ListTagsForResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListTagsForResourceInput, ...func(*amp.Options)) (*amp.ListTagsForResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListTagsForResourceInput, ...func(*amp.Options)) *amp.ListTagsForResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.ListTagsForResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.ListTagsForResourceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListWorkspaces provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListWorkspaces(ctx context.Context, params *amp.ListWorkspacesInput, optFns ...func(*amp.Options)) (*amp.ListWorkspacesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListWorkspaces") + } + + var r0 *amp.ListWorkspacesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListWorkspacesInput, ...func(*amp.Options)) (*amp.ListWorkspacesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.ListWorkspacesInput, ...func(*amp.Options)) *amp.ListWorkspacesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.ListWorkspacesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.ListWorkspacesInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() amp.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 amp.Options + if rf, ok := ret.Get(0).(func() amp.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(amp.Options) + } + + return r0 +} + +// PutAlertManagerDefinition provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutAlertManagerDefinition(ctx context.Context, params *amp.PutAlertManagerDefinitionInput, optFns ...func(*amp.Options)) (*amp.PutAlertManagerDefinitionOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutAlertManagerDefinition") + } + + var r0 *amp.PutAlertManagerDefinitionOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.PutAlertManagerDefinitionInput, ...func(*amp.Options)) (*amp.PutAlertManagerDefinitionOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.PutAlertManagerDefinitionInput, ...func(*amp.Options)) *amp.PutAlertManagerDefinitionOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.PutAlertManagerDefinitionOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.PutAlertManagerDefinitionInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// PutRuleGroupsNamespace provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) PutRuleGroupsNamespace(ctx context.Context, params *amp.PutRuleGroupsNamespaceInput, optFns ...func(*amp.Options)) (*amp.PutRuleGroupsNamespaceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PutRuleGroupsNamespace") + } + + var r0 *amp.PutRuleGroupsNamespaceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.PutRuleGroupsNamespaceInput, ...func(*amp.Options)) (*amp.PutRuleGroupsNamespaceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.PutRuleGroupsNamespaceInput, ...func(*amp.Options)) *amp.PutRuleGroupsNamespaceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.PutRuleGroupsNamespaceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.PutRuleGroupsNamespaceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) TagResource(ctx context.Context, params *amp.TagResourceInput, optFns ...func(*amp.Options)) (*amp.TagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for TagResource") + } + + var r0 *amp.TagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.TagResourceInput, ...func(*amp.Options)) (*amp.TagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.TagResourceInput, ...func(*amp.Options)) *amp.TagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.TagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.TagResourceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UntagResource(ctx context.Context, params *amp.UntagResourceInput, optFns ...func(*amp.Options)) (*amp.UntagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UntagResource") + } + + var r0 *amp.UntagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.UntagResourceInput, ...func(*amp.Options)) (*amp.UntagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.UntagResourceInput, ...func(*amp.Options)) *amp.UntagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.UntagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.UntagResourceInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateLoggingConfiguration provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateLoggingConfiguration(ctx context.Context, params *amp.UpdateLoggingConfigurationInput, optFns ...func(*amp.Options)) (*amp.UpdateLoggingConfigurationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateLoggingConfiguration") + } + + var r0 *amp.UpdateLoggingConfigurationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.UpdateLoggingConfigurationInput, ...func(*amp.Options)) (*amp.UpdateLoggingConfigurationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.UpdateLoggingConfigurationInput, ...func(*amp.Options)) *amp.UpdateLoggingConfigurationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.UpdateLoggingConfigurationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.UpdateLoggingConfigurationInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateWorkspaceAlias provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateWorkspaceAlias(ctx context.Context, params *amp.UpdateWorkspaceAliasInput, optFns ...func(*amp.Options)) (*amp.UpdateWorkspaceAliasOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateWorkspaceAlias") + } + + var r0 *amp.UpdateWorkspaceAliasOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amp.UpdateWorkspaceAliasInput, ...func(*amp.Options)) (*amp.UpdateWorkspaceAliasOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amp.UpdateWorkspaceAliasInput, ...func(*amp.Options)) *amp.UpdateWorkspaceAliasOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amp.UpdateWorkspaceAliasOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amp.UpdateWorkspaceAliasInput, ...func(*amp.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/service/amplify/mocks/IClient.go b/service/amplify/mocks/IClient.go new file mode 100644 index 00000000..ccd7da1e --- /dev/null +++ b/service/amplify/mocks/IClient.go @@ -0,0 +1,1417 @@ +// Code generated by mockery v2.39.2. DO NOT EDIT. + +package mocks + +import ( + context "context" + + amplify "github.com/aws/aws-sdk-go-v2/service/amplify" + + mock "github.com/stretchr/testify/mock" +) + +// IClient is an autogenerated mock type for the IClient type +type IClient struct { + mock.Mock +} + +// CreateApp provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateApp(ctx context.Context, params *amplify.CreateAppInput, optFns ...func(*amplify.Options)) (*amplify.CreateAppOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateApp") + } + + var r0 *amplify.CreateAppOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateAppInput, ...func(*amplify.Options)) (*amplify.CreateAppOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateAppInput, ...func(*amplify.Options)) *amplify.CreateAppOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateAppOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateAppInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateBackendEnvironment provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateBackendEnvironment(ctx context.Context, params *amplify.CreateBackendEnvironmentInput, optFns ...func(*amplify.Options)) (*amplify.CreateBackendEnvironmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateBackendEnvironment") + } + + var r0 *amplify.CreateBackendEnvironmentOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateBackendEnvironmentInput, ...func(*amplify.Options)) (*amplify.CreateBackendEnvironmentOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateBackendEnvironmentInput, ...func(*amplify.Options)) *amplify.CreateBackendEnvironmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateBackendEnvironmentOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateBackendEnvironmentInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateBranch provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateBranch(ctx context.Context, params *amplify.CreateBranchInput, optFns ...func(*amplify.Options)) (*amplify.CreateBranchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateBranch") + } + + var r0 *amplify.CreateBranchOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateBranchInput, ...func(*amplify.Options)) (*amplify.CreateBranchOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateBranchInput, ...func(*amplify.Options)) *amplify.CreateBranchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateBranchOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateBranchInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDeployment provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateDeployment(ctx context.Context, params *amplify.CreateDeploymentInput, optFns ...func(*amplify.Options)) (*amplify.CreateDeploymentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateDeployment") + } + + var r0 *amplify.CreateDeploymentOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateDeploymentInput, ...func(*amplify.Options)) (*amplify.CreateDeploymentOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateDeploymentInput, ...func(*amplify.Options)) *amplify.CreateDeploymentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateDeploymentOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateDeploymentInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateDomainAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateDomainAssociation(ctx context.Context, params *amplify.CreateDomainAssociationInput, optFns ...func(*amplify.Options)) (*amplify.CreateDomainAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateDomainAssociation") + } + + var r0 *amplify.CreateDomainAssociationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateDomainAssociationInput, ...func(*amplify.Options)) (*amplify.CreateDomainAssociationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateDomainAssociationInput, ...func(*amplify.Options)) *amplify.CreateDomainAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateDomainAssociationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateDomainAssociationInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateWebhook provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) CreateWebhook(ctx context.Context, params *amplify.CreateWebhookInput, optFns ...func(*amplify.Options)) (*amplify.CreateWebhookOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateWebhook") + } + + var r0 *amplify.CreateWebhookOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateWebhookInput, ...func(*amplify.Options)) (*amplify.CreateWebhookOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.CreateWebhookInput, ...func(*amplify.Options)) *amplify.CreateWebhookOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.CreateWebhookOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.CreateWebhookInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteApp provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteApp(ctx context.Context, params *amplify.DeleteAppInput, optFns ...func(*amplify.Options)) (*amplify.DeleteAppOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteApp") + } + + var r0 *amplify.DeleteAppOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteAppInput, ...func(*amplify.Options)) (*amplify.DeleteAppOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteAppInput, ...func(*amplify.Options)) *amplify.DeleteAppOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteAppOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteAppInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteBackendEnvironment provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteBackendEnvironment(ctx context.Context, params *amplify.DeleteBackendEnvironmentInput, optFns ...func(*amplify.Options)) (*amplify.DeleteBackendEnvironmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteBackendEnvironment") + } + + var r0 *amplify.DeleteBackendEnvironmentOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteBackendEnvironmentInput, ...func(*amplify.Options)) (*amplify.DeleteBackendEnvironmentOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteBackendEnvironmentInput, ...func(*amplify.Options)) *amplify.DeleteBackendEnvironmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteBackendEnvironmentOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteBackendEnvironmentInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteBranch provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteBranch(ctx context.Context, params *amplify.DeleteBranchInput, optFns ...func(*amplify.Options)) (*amplify.DeleteBranchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteBranch") + } + + var r0 *amplify.DeleteBranchOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteBranchInput, ...func(*amplify.Options)) (*amplify.DeleteBranchOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteBranchInput, ...func(*amplify.Options)) *amplify.DeleteBranchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteBranchOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteBranchInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteDomainAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteDomainAssociation(ctx context.Context, params *amplify.DeleteDomainAssociationInput, optFns ...func(*amplify.Options)) (*amplify.DeleteDomainAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteDomainAssociation") + } + + var r0 *amplify.DeleteDomainAssociationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteDomainAssociationInput, ...func(*amplify.Options)) (*amplify.DeleteDomainAssociationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteDomainAssociationInput, ...func(*amplify.Options)) *amplify.DeleteDomainAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteDomainAssociationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteDomainAssociationInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteJob provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteJob(ctx context.Context, params *amplify.DeleteJobInput, optFns ...func(*amplify.Options)) (*amplify.DeleteJobOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteJob") + } + + var r0 *amplify.DeleteJobOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteJobInput, ...func(*amplify.Options)) (*amplify.DeleteJobOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteJobInput, ...func(*amplify.Options)) *amplify.DeleteJobOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteJobOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteJobInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// DeleteWebhook provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) DeleteWebhook(ctx context.Context, params *amplify.DeleteWebhookInput, optFns ...func(*amplify.Options)) (*amplify.DeleteWebhookOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteWebhook") + } + + var r0 *amplify.DeleteWebhookOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteWebhookInput, ...func(*amplify.Options)) (*amplify.DeleteWebhookOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.DeleteWebhookInput, ...func(*amplify.Options)) *amplify.DeleteWebhookOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.DeleteWebhookOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.DeleteWebhookInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GenerateAccessLogs provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GenerateAccessLogs(ctx context.Context, params *amplify.GenerateAccessLogsInput, optFns ...func(*amplify.Options)) (*amplify.GenerateAccessLogsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GenerateAccessLogs") + } + + var r0 *amplify.GenerateAccessLogsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GenerateAccessLogsInput, ...func(*amplify.Options)) (*amplify.GenerateAccessLogsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GenerateAccessLogsInput, ...func(*amplify.Options)) *amplify.GenerateAccessLogsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GenerateAccessLogsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GenerateAccessLogsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetApp provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetApp(ctx context.Context, params *amplify.GetAppInput, optFns ...func(*amplify.Options)) (*amplify.GetAppOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetApp") + } + + var r0 *amplify.GetAppOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetAppInput, ...func(*amplify.Options)) (*amplify.GetAppOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetAppInput, ...func(*amplify.Options)) *amplify.GetAppOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetAppOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetAppInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetArtifactUrl provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetArtifactUrl(ctx context.Context, params *amplify.GetArtifactUrlInput, optFns ...func(*amplify.Options)) (*amplify.GetArtifactUrlOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetArtifactUrl") + } + + var r0 *amplify.GetArtifactUrlOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetArtifactUrlInput, ...func(*amplify.Options)) (*amplify.GetArtifactUrlOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetArtifactUrlInput, ...func(*amplify.Options)) *amplify.GetArtifactUrlOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetArtifactUrlOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetArtifactUrlInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetBackendEnvironment provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetBackendEnvironment(ctx context.Context, params *amplify.GetBackendEnvironmentInput, optFns ...func(*amplify.Options)) (*amplify.GetBackendEnvironmentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetBackendEnvironment") + } + + var r0 *amplify.GetBackendEnvironmentOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetBackendEnvironmentInput, ...func(*amplify.Options)) (*amplify.GetBackendEnvironmentOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetBackendEnvironmentInput, ...func(*amplify.Options)) *amplify.GetBackendEnvironmentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetBackendEnvironmentOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetBackendEnvironmentInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetBranch provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetBranch(ctx context.Context, params *amplify.GetBranchInput, optFns ...func(*amplify.Options)) (*amplify.GetBranchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetBranch") + } + + var r0 *amplify.GetBranchOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetBranchInput, ...func(*amplify.Options)) (*amplify.GetBranchOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetBranchInput, ...func(*amplify.Options)) *amplify.GetBranchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetBranchOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetBranchInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetDomainAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetDomainAssociation(ctx context.Context, params *amplify.GetDomainAssociationInput, optFns ...func(*amplify.Options)) (*amplify.GetDomainAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDomainAssociation") + } + + var r0 *amplify.GetDomainAssociationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetDomainAssociationInput, ...func(*amplify.Options)) (*amplify.GetDomainAssociationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetDomainAssociationInput, ...func(*amplify.Options)) *amplify.GetDomainAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetDomainAssociationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetDomainAssociationInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetJob provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetJob(ctx context.Context, params *amplify.GetJobInput, optFns ...func(*amplify.Options)) (*amplify.GetJobOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetJob") + } + + var r0 *amplify.GetJobOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetJobInput, ...func(*amplify.Options)) (*amplify.GetJobOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetJobInput, ...func(*amplify.Options)) *amplify.GetJobOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetJobOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetJobInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetWebhook provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) GetWebhook(ctx context.Context, params *amplify.GetWebhookInput, optFns ...func(*amplify.Options)) (*amplify.GetWebhookOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetWebhook") + } + + var r0 *amplify.GetWebhookOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetWebhookInput, ...func(*amplify.Options)) (*amplify.GetWebhookOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.GetWebhookInput, ...func(*amplify.Options)) *amplify.GetWebhookOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.GetWebhookOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.GetWebhookInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListApps provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListApps(ctx context.Context, params *amplify.ListAppsInput, optFns ...func(*amplify.Options)) (*amplify.ListAppsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListApps") + } + + var r0 *amplify.ListAppsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListAppsInput, ...func(*amplify.Options)) (*amplify.ListAppsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListAppsInput, ...func(*amplify.Options)) *amplify.ListAppsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListAppsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListAppsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListArtifacts provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListArtifacts(ctx context.Context, params *amplify.ListArtifactsInput, optFns ...func(*amplify.Options)) (*amplify.ListArtifactsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListArtifacts") + } + + var r0 *amplify.ListArtifactsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListArtifactsInput, ...func(*amplify.Options)) (*amplify.ListArtifactsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListArtifactsInput, ...func(*amplify.Options)) *amplify.ListArtifactsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListArtifactsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListArtifactsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListBackendEnvironments provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListBackendEnvironments(ctx context.Context, params *amplify.ListBackendEnvironmentsInput, optFns ...func(*amplify.Options)) (*amplify.ListBackendEnvironmentsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListBackendEnvironments") + } + + var r0 *amplify.ListBackendEnvironmentsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListBackendEnvironmentsInput, ...func(*amplify.Options)) (*amplify.ListBackendEnvironmentsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListBackendEnvironmentsInput, ...func(*amplify.Options)) *amplify.ListBackendEnvironmentsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListBackendEnvironmentsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListBackendEnvironmentsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListBranches provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListBranches(ctx context.Context, params *amplify.ListBranchesInput, optFns ...func(*amplify.Options)) (*amplify.ListBranchesOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListBranches") + } + + var r0 *amplify.ListBranchesOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListBranchesInput, ...func(*amplify.Options)) (*amplify.ListBranchesOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListBranchesInput, ...func(*amplify.Options)) *amplify.ListBranchesOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListBranchesOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListBranchesInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListDomainAssociations provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListDomainAssociations(ctx context.Context, params *amplify.ListDomainAssociationsInput, optFns ...func(*amplify.Options)) (*amplify.ListDomainAssociationsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListDomainAssociations") + } + + var r0 *amplify.ListDomainAssociationsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListDomainAssociationsInput, ...func(*amplify.Options)) (*amplify.ListDomainAssociationsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListDomainAssociationsInput, ...func(*amplify.Options)) *amplify.ListDomainAssociationsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListDomainAssociationsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListDomainAssociationsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListJobs provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListJobs(ctx context.Context, params *amplify.ListJobsInput, optFns ...func(*amplify.Options)) (*amplify.ListJobsOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListJobs") + } + + var r0 *amplify.ListJobsOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListJobsInput, ...func(*amplify.Options)) (*amplify.ListJobsOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListJobsInput, ...func(*amplify.Options)) *amplify.ListJobsOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListJobsOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListJobsInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTagsForResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListTagsForResource(ctx context.Context, params *amplify.ListTagsForResourceInput, optFns ...func(*amplify.Options)) (*amplify.ListTagsForResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListTagsForResource") + } + + var r0 *amplify.ListTagsForResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListTagsForResourceInput, ...func(*amplify.Options)) (*amplify.ListTagsForResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListTagsForResourceInput, ...func(*amplify.Options)) *amplify.ListTagsForResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListTagsForResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListTagsForResourceInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListWebhooks provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) ListWebhooks(ctx context.Context, params *amplify.ListWebhooksInput, optFns ...func(*amplify.Options)) (*amplify.ListWebhooksOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for ListWebhooks") + } + + var r0 *amplify.ListWebhooksOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListWebhooksInput, ...func(*amplify.Options)) (*amplify.ListWebhooksOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.ListWebhooksInput, ...func(*amplify.Options)) *amplify.ListWebhooksOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.ListWebhooksOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.ListWebhooksInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Options provides a mock function with given fields: +func (_m *IClient) Options() amplify.Options { + ret := _m.Called() + + if len(ret) == 0 { + panic("no return value specified for Options") + } + + var r0 amplify.Options + if rf, ok := ret.Get(0).(func() amplify.Options); ok { + r0 = rf() + } else { + r0 = ret.Get(0).(amplify.Options) + } + + return r0 +} + +// StartDeployment provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StartDeployment(ctx context.Context, params *amplify.StartDeploymentInput, optFns ...func(*amplify.Options)) (*amplify.StartDeploymentOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StartDeployment") + } + + var r0 *amplify.StartDeploymentOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StartDeploymentInput, ...func(*amplify.Options)) (*amplify.StartDeploymentOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StartDeploymentInput, ...func(*amplify.Options)) *amplify.StartDeploymentOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.StartDeploymentOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.StartDeploymentInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StartJob provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StartJob(ctx context.Context, params *amplify.StartJobInput, optFns ...func(*amplify.Options)) (*amplify.StartJobOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StartJob") + } + + var r0 *amplify.StartJobOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StartJobInput, ...func(*amplify.Options)) (*amplify.StartJobOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StartJobInput, ...func(*amplify.Options)) *amplify.StartJobOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.StartJobOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.StartJobInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// StopJob provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) StopJob(ctx context.Context, params *amplify.StopJobInput, optFns ...func(*amplify.Options)) (*amplify.StopJobOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for StopJob") + } + + var r0 *amplify.StopJobOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StopJobInput, ...func(*amplify.Options)) (*amplify.StopJobOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.StopJobInput, ...func(*amplify.Options)) *amplify.StopJobOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.StopJobOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.StopJobInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) TagResource(ctx context.Context, params *amplify.TagResourceInput, optFns ...func(*amplify.Options)) (*amplify.TagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for TagResource") + } + + var r0 *amplify.TagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.TagResourceInput, ...func(*amplify.Options)) (*amplify.TagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.TagResourceInput, ...func(*amplify.Options)) *amplify.TagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.TagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.TagResourceInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UntagResource provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UntagResource(ctx context.Context, params *amplify.UntagResourceInput, optFns ...func(*amplify.Options)) (*amplify.UntagResourceOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UntagResource") + } + + var r0 *amplify.UntagResourceOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UntagResourceInput, ...func(*amplify.Options)) (*amplify.UntagResourceOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UntagResourceInput, ...func(*amplify.Options)) *amplify.UntagResourceOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.UntagResourceOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.UntagResourceInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateApp provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateApp(ctx context.Context, params *amplify.UpdateAppInput, optFns ...func(*amplify.Options)) (*amplify.UpdateAppOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateApp") + } + + var r0 *amplify.UpdateAppOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateAppInput, ...func(*amplify.Options)) (*amplify.UpdateAppOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateAppInput, ...func(*amplify.Options)) *amplify.UpdateAppOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.UpdateAppOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.UpdateAppInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateBranch provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateBranch(ctx context.Context, params *amplify.UpdateBranchInput, optFns ...func(*amplify.Options)) (*amplify.UpdateBranchOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateBranch") + } + + var r0 *amplify.UpdateBranchOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateBranchInput, ...func(*amplify.Options)) (*amplify.UpdateBranchOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateBranchInput, ...func(*amplify.Options)) *amplify.UpdateBranchOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.UpdateBranchOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.UpdateBranchInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateDomainAssociation provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateDomainAssociation(ctx context.Context, params *amplify.UpdateDomainAssociationInput, optFns ...func(*amplify.Options)) (*amplify.UpdateDomainAssociationOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateDomainAssociation") + } + + var r0 *amplify.UpdateDomainAssociationOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateDomainAssociationInput, ...func(*amplify.Options)) (*amplify.UpdateDomainAssociationOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateDomainAssociationInput, ...func(*amplify.Options)) *amplify.UpdateDomainAssociationOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.UpdateDomainAssociationOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.UpdateDomainAssociationInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateWebhook provides a mock function with given fields: ctx, params, optFns +func (_m *IClient) UpdateWebhook(ctx context.Context, params *amplify.UpdateWebhookInput, optFns ...func(*amplify.Options)) (*amplify.UpdateWebhookOutput, error) { + _va := make([]interface{}, len(optFns)) + for _i := range optFns { + _va[_i] = optFns[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateWebhook") + } + + var r0 *amplify.UpdateWebhookOutput + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateWebhookInput, ...func(*amplify.Options)) (*amplify.UpdateWebhookOutput, error)); ok { + return rf(ctx, params, optFns...) + } + if rf, ok := ret.Get(0).(func(context.Context, *amplify.UpdateWebhookInput, ...func(*amplify.Options)) *amplify.UpdateWebhookOutput); ok { + r0 = rf(ctx, params, optFns...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*amplify.UpdateWebhookOutput) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *amplify.UpdateWebhookInput, ...func(*amplify.Options)) error); ok { + r1 = rf(ctx, params, optFns...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// NewIClient creates a new instance of IClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewIClient(t interface { + mock.TestingT + Cleanup(func()) +}) *IClient { + mock := &IClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +}