2021-02-22 16:22:45 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/hashicorp/terraform/internal/tfplugin6 (interfaces: ProviderClient)
|
|
|
|
|
|
|
|
// Package mock_tfplugin6 is a generated GoMock package.
|
|
|
|
package mock_tfplugin6
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-10-29 03:16:26 +02:00
|
|
|
reflect "reflect"
|
|
|
|
|
2021-02-22 16:22:45 +01:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
tfplugin6 "github.com/hashicorp/terraform/internal/tfplugin6"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// MockProviderClient is a mock of ProviderClient interface.
|
2021-02-22 16:22:45 +01:00
|
|
|
type MockProviderClient struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockProviderClientMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// MockProviderClientMockRecorder is the mock recorder for MockProviderClient.
|
2021-02-22 16:22:45 +01:00
|
|
|
type MockProviderClientMockRecorder struct {
|
|
|
|
mock *MockProviderClient
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// NewMockProviderClient creates a new mock instance.
|
2021-02-22 16:22:45 +01:00
|
|
|
func NewMockProviderClient(ctrl *gomock.Controller) *MockProviderClient {
|
|
|
|
mock := &MockProviderClient{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockProviderClientMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) EXPECT() *MockProviderClientMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ApplyResourceChange mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ApplyResourceChange(arg0 context.Context, arg1 *tfplugin6.ApplyResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin6.ApplyResourceChange_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ApplyResourceChange", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ApplyResourceChange_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ApplyResourceChange indicates an expected call of ApplyResourceChange.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ApplyResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyResourceChange", reflect.TypeOf((*MockProviderClient)(nil).ApplyResourceChange), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ConfigureProvider mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ConfigureProvider(arg0 context.Context, arg1 *tfplugin6.ConfigureProvider_Request, arg2 ...grpc.CallOption) (*tfplugin6.ConfigureProvider_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ConfigureProvider", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ConfigureProvider_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ConfigureProvider indicates an expected call of ConfigureProvider.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ConfigureProvider(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigureProvider", reflect.TypeOf((*MockProviderClient)(nil).ConfigureProvider), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// GetProviderSchema mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) GetProviderSchema(arg0 context.Context, arg1 *tfplugin6.GetProviderSchema_Request, arg2 ...grpc.CallOption) (*tfplugin6.GetProviderSchema_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetProviderSchema", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.GetProviderSchema_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// GetProviderSchema indicates an expected call of GetProviderSchema.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) GetProviderSchema(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProviderSchema", reflect.TypeOf((*MockProviderClient)(nil).GetProviderSchema), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ImportResourceState mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ImportResourceState(arg0 context.Context, arg1 *tfplugin6.ImportResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin6.ImportResourceState_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ImportResourceState", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ImportResourceState_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ImportResourceState indicates an expected call of ImportResourceState.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ImportResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportResourceState", reflect.TypeOf((*MockProviderClient)(nil).ImportResourceState), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// PlanResourceChange mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) PlanResourceChange(arg0 context.Context, arg1 *tfplugin6.PlanResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin6.PlanResourceChange_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "PlanResourceChange", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.PlanResourceChange_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// PlanResourceChange indicates an expected call of PlanResourceChange.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) PlanResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlanResourceChange", reflect.TypeOf((*MockProviderClient)(nil).PlanResourceChange), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ReadDataSource mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ReadDataSource(arg0 context.Context, arg1 *tfplugin6.ReadDataSource_Request, arg2 ...grpc.CallOption) (*tfplugin6.ReadDataSource_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ReadDataSource", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ReadDataSource_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ReadDataSource indicates an expected call of ReadDataSource.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ReadDataSource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataSource", reflect.TypeOf((*MockProviderClient)(nil).ReadDataSource), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ReadResource mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ReadResource(arg0 context.Context, arg1 *tfplugin6.ReadResource_Request, arg2 ...grpc.CallOption) (*tfplugin6.ReadResource_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ReadResource", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ReadResource_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ReadResource indicates an expected call of ReadResource.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ReadResource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadResource", reflect.TypeOf((*MockProviderClient)(nil).ReadResource), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// StopProvider mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) StopProvider(arg0 context.Context, arg1 *tfplugin6.StopProvider_Request, arg2 ...grpc.CallOption) (*tfplugin6.StopProvider_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "StopProvider", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.StopProvider_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// StopProvider indicates an expected call of StopProvider.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) StopProvider(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopProvider", reflect.TypeOf((*MockProviderClient)(nil).StopProvider), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// UpgradeResourceState mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) UpgradeResourceState(arg0 context.Context, arg1 *tfplugin6.UpgradeResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin6.UpgradeResourceState_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "UpgradeResourceState", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.UpgradeResourceState_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// UpgradeResourceState indicates an expected call of UpgradeResourceState.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) UpgradeResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpgradeResourceState", reflect.TypeOf((*MockProviderClient)(nil).UpgradeResourceState), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateDataResourceConfig mocks base method.
|
2021-02-24 18:04:28 +01:00
|
|
|
func (m *MockProviderClient) ValidateDataResourceConfig(arg0 context.Context, arg1 *tfplugin6.ValidateDataResourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateDataResourceConfig_Response, error) {
|
2021-02-22 16:22:45 +01:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
2021-02-24 18:04:28 +01:00
|
|
|
ret := m.ctrl.Call(m, "ValidateDataResourceConfig", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ValidateDataResourceConfig_Response)
|
2021-02-22 16:22:45 +01:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateDataResourceConfig indicates an expected call of ValidateDataResourceConfig.
|
2021-02-24 18:04:28 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ValidateDataResourceConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
2021-02-22 16:22:45 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
2021-02-24 18:04:28 +01:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateDataResourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateDataResourceConfig), varargs...)
|
2021-02-22 16:22:45 +01:00
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateProviderConfig mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ValidateProviderConfig(arg0 context.Context, arg1 *tfplugin6.ValidateProviderConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateProviderConfig_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ValidateProviderConfig", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ValidateProviderConfig_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateProviderConfig indicates an expected call of ValidateProviderConfig.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ValidateProviderConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateProviderConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateProviderConfig), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateResourceConfig mocks base method.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (m *MockProviderClient) ValidateResourceConfig(arg0 context.Context, arg1 *tfplugin6.ValidateResourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateResourceConfig_Response, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ValidateResourceConfig", varargs...)
|
|
|
|
ret0, _ := ret[0].(*tfplugin6.ValidateResourceConfig_Response)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-10-29 03:16:26 +02:00
|
|
|
// ValidateResourceConfig indicates an expected call of ValidateResourceConfig.
|
2021-02-22 16:22:45 +01:00
|
|
|
func (mr *MockProviderClientMockRecorder) ValidateResourceConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateResourceConfig), varargs...)
|
|
|
|
}
|