diff --git a/go.sum b/go.sum index 163fe032..8c23fe79 100644 --- a/go.sum +++ b/go.sum @@ -96,6 +96,8 @@ github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKe github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/hcl/v2 v2.23.0 h1:Fphj1/gCylPxHutVSEOf2fBOh1VE4AuLV7+kbJf3qos= github.com/hashicorp/hcl/v2 v2.23.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= +github.com/hashicorp/hcp-sdk-go v0.123.0 h1:kUf/kSCVkQ4XXyny8GUyUWjvIIIanGRRkhRmgj2lC+4= +github.com/hashicorp/hcp-sdk-go v0.123.0/go.mod h1:vQ4fzdL1AmhIAbCw+4zmFe5Hbpajj3NvRWkJoVuxmAk= github.com/hashicorp/hcp-sdk-go v0.125.0 h1:pak7lGeNmoQTR5Dkx+CxYF6xLjn1UJ4XPg43ldyle+Y= github.com/hashicorp/hcp-sdk-go v0.125.0/go.mod h1:vQ4fzdL1AmhIAbCw+4zmFe5Hbpajj3NvRWkJoVuxmAk= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= diff --git a/internal/pkg/api/mocks/github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/mock_ClientService.go b/internal/pkg/api/mocks/github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/mock_ClientService.go index e36a8542..85139a10 100644 --- a/internal/pkg/api/mocks/github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/mock_ClientService.go +++ b/internal/pkg/api/mocks/github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/mock_ClientService.go @@ -392,6 +392,80 @@ func (_c *MockClientService_CreateAwsIntegration_Call) RunAndReturn(run func(*se return _c } +// CreateAzureApplicationPasswordRotatingSecret provides a mock function with given fields: params, authInfo, opts +func (_m *MockClientService) CreateAzureApplicationPasswordRotatingSecret(params *secret_service.CreateAzureApplicationPasswordRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.CreateAzureApplicationPasswordRotatingSecretOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params, authInfo) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for CreateAzureApplicationPasswordRotatingSecret") + } + + var r0 *secret_service.CreateAzureApplicationPasswordRotatingSecretOK + var r1 error + if rf, ok := ret.Get(0).(func(*secret_service.CreateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.CreateAzureApplicationPasswordRotatingSecretOK, error)); ok { + return rf(params, authInfo, opts...) + } + if rf, ok := ret.Get(0).(func(*secret_service.CreateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) *secret_service.CreateAzureApplicationPasswordRotatingSecretOK); ok { + r0 = rf(params, authInfo, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*secret_service.CreateAzureApplicationPasswordRotatingSecretOK) + } + } + + if rf, ok := ret.Get(1).(func(*secret_service.CreateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) error); ok { + r1 = rf(params, authInfo, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAzureApplicationPasswordRotatingSecret' +type MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call struct { + *mock.Call +} + +// CreateAzureApplicationPasswordRotatingSecret is a helper method to define mock.On call +// - params *secret_service.CreateAzureApplicationPasswordRotatingSecretParams +// - authInfo runtime.ClientAuthInfoWriter +// - opts ...secret_service.ClientOption +func (_e *MockClientService_Expecter) CreateAzureApplicationPasswordRotatingSecret(params interface{}, authInfo interface{}, opts ...interface{}) *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call { + return &MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call{Call: _e.mock.On("CreateAzureApplicationPasswordRotatingSecret", + append([]interface{}{params, authInfo}, opts...)...)} +} + +func (_c *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call) Run(run func(params *secret_service.CreateAzureApplicationPasswordRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption)) *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]secret_service.ClientOption, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(secret_service.ClientOption) + } + } + run(args[0].(*secret_service.CreateAzureApplicationPasswordRotatingSecretParams), args[1].(runtime.ClientAuthInfoWriter), variadicArgs...) + }) + return _c +} + +func (_c *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call) Return(_a0 *secret_service.CreateAzureApplicationPasswordRotatingSecretOK, _a1 error) *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call) RunAndReturn(run func(*secret_service.CreateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.CreateAzureApplicationPasswordRotatingSecretOK, error)) *MockClientService_CreateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Return(run) + return _c +} + // CreateAzureIntegration provides a mock function with given fields: params, authInfo, opts func (_m *MockClientService) CreateAzureIntegration(params *secret_service.CreateAzureIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.CreateAzureIntegrationOK, error) { _va := make([]interface{}, len(opts)) @@ -3130,6 +3204,80 @@ func (_c *MockClientService_GetAwsIntegration_Call) RunAndReturn(run func(*secre return _c } +// GetAzureApplicationPasswordRotatingSecretConfig provides a mock function with given fields: params, authInfo, opts +func (_m *MockClientService) GetAzureApplicationPasswordRotatingSecretConfig(params *secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params, authInfo) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAzureApplicationPasswordRotatingSecretConfig") + } + + var r0 *secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK + var r1 error + if rf, ok := ret.Get(0).(func(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK, error)); ok { + return rf(params, authInfo, opts...) + } + if rf, ok := ret.Get(0).(func(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) *secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK); ok { + r0 = rf(params, authInfo, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK) + } + } + + if rf, ok := ret.Get(1).(func(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) error); ok { + r1 = rf(params, authInfo, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAzureApplicationPasswordRotatingSecretConfig' +type MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call struct { + *mock.Call +} + +// GetAzureApplicationPasswordRotatingSecretConfig is a helper method to define mock.On call +// - params *secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams +// - authInfo runtime.ClientAuthInfoWriter +// - opts ...secret_service.ClientOption +func (_e *MockClientService_Expecter) GetAzureApplicationPasswordRotatingSecretConfig(params interface{}, authInfo interface{}, opts ...interface{}) *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call { + return &MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call{Call: _e.mock.On("GetAzureApplicationPasswordRotatingSecretConfig", + append([]interface{}{params, authInfo}, opts...)...)} +} + +func (_c *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call) Run(run func(params *secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption)) *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]secret_service.ClientOption, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(secret_service.ClientOption) + } + } + run(args[0].(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams), args[1].(runtime.ClientAuthInfoWriter), variadicArgs...) + }) + return _c +} + +func (_c *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call) Return(_a0 *secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK, _a1 error) *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call) RunAndReturn(run func(*secret_service.GetAzureApplicationPasswordRotatingSecretConfigParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.GetAzureApplicationPasswordRotatingSecretConfigOK, error)) *MockClientService_GetAzureApplicationPasswordRotatingSecretConfig_Call { + _c.Call.Return(run) + return _c +} + // GetAzureIntegration provides a mock function with given fields: params, authInfo, opts func (_m *MockClientService) GetAzureIntegration(params *secret_service.GetAzureIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.GetAzureIntegrationOK, error) { _va := make([]interface{}, len(opts)) @@ -6715,6 +6863,80 @@ func (_c *MockClientService_UpdateAwsIntegration_Call) RunAndReturn(run func(*se return _c } +// UpdateAzureApplicationPasswordRotatingSecret provides a mock function with given fields: params, authInfo, opts +func (_m *MockClientService) UpdateAzureApplicationPasswordRotatingSecret(params *secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.UpdateAzureApplicationPasswordRotatingSecretOK, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, params, authInfo) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for UpdateAzureApplicationPasswordRotatingSecret") + } + + var r0 *secret_service.UpdateAzureApplicationPasswordRotatingSecretOK + var r1 error + if rf, ok := ret.Get(0).(func(*secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.UpdateAzureApplicationPasswordRotatingSecretOK, error)); ok { + return rf(params, authInfo, opts...) + } + if rf, ok := ret.Get(0).(func(*secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) *secret_service.UpdateAzureApplicationPasswordRotatingSecretOK); ok { + r0 = rf(params, authInfo, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*secret_service.UpdateAzureApplicationPasswordRotatingSecretOK) + } + } + + if rf, ok := ret.Get(1).(func(*secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) error); ok { + r1 = rf(params, authInfo, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAzureApplicationPasswordRotatingSecret' +type MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call struct { + *mock.Call +} + +// UpdateAzureApplicationPasswordRotatingSecret is a helper method to define mock.On call +// - params *secret_service.UpdateAzureApplicationPasswordRotatingSecretParams +// - authInfo runtime.ClientAuthInfoWriter +// - opts ...secret_service.ClientOption +func (_e *MockClientService_Expecter) UpdateAzureApplicationPasswordRotatingSecret(params interface{}, authInfo interface{}, opts ...interface{}) *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call { + return &MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call{Call: _e.mock.On("UpdateAzureApplicationPasswordRotatingSecret", + append([]interface{}{params, authInfo}, opts...)...)} +} + +func (_c *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call) Run(run func(params *secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption)) *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]secret_service.ClientOption, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(secret_service.ClientOption) + } + } + run(args[0].(*secret_service.UpdateAzureApplicationPasswordRotatingSecretParams), args[1].(runtime.ClientAuthInfoWriter), variadicArgs...) + }) + return _c +} + +func (_c *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call) Return(_a0 *secret_service.UpdateAzureApplicationPasswordRotatingSecretOK, _a1 error) *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call) RunAndReturn(run func(*secret_service.UpdateAzureApplicationPasswordRotatingSecretParams, runtime.ClientAuthInfoWriter, ...secret_service.ClientOption) (*secret_service.UpdateAzureApplicationPasswordRotatingSecretOK, error)) *MockClientService_UpdateAzureApplicationPasswordRotatingSecret_Call { + _c.Call.Return(run) + return _c +} + // UpdateAzureIntegration provides a mock function with given fields: params, authInfo, opts func (_m *MockClientService) UpdateAzureIntegration(params *secret_service.UpdateAzureIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...secret_service.ClientOption) (*secret_service.UpdateAzureIntegrationOK, error) { _va := make([]interface{}, len(opts))