github.com/pulumi/terraform@v1.4.0/pkg/plugin6/mock_proto/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/pulumi/terraform/pkg/tfplugin6 (interfaces: ProviderClient) 3 4 // Package mock_tfplugin6 is a generated GoMock package. 5 package mock_tfplugin6 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 tfplugin6 "github.com/pulumi/terraform/pkg/tfplugin6" 13 grpc "google.golang.org/grpc" 14 ) 15 16 // MockProviderClient is a mock of ProviderClient interface. 17 type MockProviderClient struct { 18 ctrl *gomock.Controller 19 recorder *MockProviderClientMockRecorder 20 } 21 22 // MockProviderClientMockRecorder is the mock recorder for MockProviderClient. 23 type MockProviderClientMockRecorder struct { 24 mock *MockProviderClient 25 } 26 27 // NewMockProviderClient creates a new mock instance. 28 func NewMockProviderClient(ctrl *gomock.Controller) *MockProviderClient { 29 mock := &MockProviderClient{ctrl: ctrl} 30 mock.recorder = &MockProviderClientMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockProviderClient) EXPECT() *MockProviderClientMockRecorder { 36 return m.recorder 37 } 38 39 // ApplyResourceChange mocks base method. 40 func (m *MockProviderClient) ApplyResourceChange(arg0 context.Context, arg1 *tfplugin6.ApplyResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin6.ApplyResourceChange_Response, error) { 41 m.ctrl.T.Helper() 42 varargs := []interface{}{arg0, arg1} 43 for _, a := range arg2 { 44 varargs = append(varargs, a) 45 } 46 ret := m.ctrl.Call(m, "ApplyResourceChange", varargs...) 47 ret0, _ := ret[0].(*tfplugin6.ApplyResourceChange_Response) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // ApplyResourceChange indicates an expected call of ApplyResourceChange. 53 func (mr *MockProviderClientMockRecorder) ApplyResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 varargs := append([]interface{}{arg0, arg1}, arg2...) 56 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyResourceChange", reflect.TypeOf((*MockProviderClient)(nil).ApplyResourceChange), varargs...) 57 } 58 59 // ConfigureProvider mocks base method. 60 func (m *MockProviderClient) ConfigureProvider(arg0 context.Context, arg1 *tfplugin6.ConfigureProvider_Request, arg2 ...grpc.CallOption) (*tfplugin6.ConfigureProvider_Response, error) { 61 m.ctrl.T.Helper() 62 varargs := []interface{}{arg0, arg1} 63 for _, a := range arg2 { 64 varargs = append(varargs, a) 65 } 66 ret := m.ctrl.Call(m, "ConfigureProvider", varargs...) 67 ret0, _ := ret[0].(*tfplugin6.ConfigureProvider_Response) 68 ret1, _ := ret[1].(error) 69 return ret0, ret1 70 } 71 72 // ConfigureProvider indicates an expected call of ConfigureProvider. 73 func (mr *MockProviderClientMockRecorder) ConfigureProvider(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 74 mr.mock.ctrl.T.Helper() 75 varargs := append([]interface{}{arg0, arg1}, arg2...) 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigureProvider", reflect.TypeOf((*MockProviderClient)(nil).ConfigureProvider), varargs...) 77 } 78 79 // GetProviderSchema mocks base method. 80 func (m *MockProviderClient) GetProviderSchema(arg0 context.Context, arg1 *tfplugin6.GetProviderSchema_Request, arg2 ...grpc.CallOption) (*tfplugin6.GetProviderSchema_Response, error) { 81 m.ctrl.T.Helper() 82 varargs := []interface{}{arg0, arg1} 83 for _, a := range arg2 { 84 varargs = append(varargs, a) 85 } 86 ret := m.ctrl.Call(m, "GetProviderSchema", varargs...) 87 ret0, _ := ret[0].(*tfplugin6.GetProviderSchema_Response) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // GetProviderSchema indicates an expected call of GetProviderSchema. 93 func (mr *MockProviderClientMockRecorder) GetProviderSchema(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 varargs := append([]interface{}{arg0, arg1}, arg2...) 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProviderSchema", reflect.TypeOf((*MockProviderClient)(nil).GetProviderSchema), varargs...) 97 } 98 99 // ImportResourceState mocks base method. 100 func (m *MockProviderClient) ImportResourceState(arg0 context.Context, arg1 *tfplugin6.ImportResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin6.ImportResourceState_Response, error) { 101 m.ctrl.T.Helper() 102 varargs := []interface{}{arg0, arg1} 103 for _, a := range arg2 { 104 varargs = append(varargs, a) 105 } 106 ret := m.ctrl.Call(m, "ImportResourceState", varargs...) 107 ret0, _ := ret[0].(*tfplugin6.ImportResourceState_Response) 108 ret1, _ := ret[1].(error) 109 return ret0, ret1 110 } 111 112 // ImportResourceState indicates an expected call of ImportResourceState. 113 func (mr *MockProviderClientMockRecorder) ImportResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 varargs := append([]interface{}{arg0, arg1}, arg2...) 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportResourceState", reflect.TypeOf((*MockProviderClient)(nil).ImportResourceState), varargs...) 117 } 118 119 // PlanResourceChange mocks base method. 120 func (m *MockProviderClient) PlanResourceChange(arg0 context.Context, arg1 *tfplugin6.PlanResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin6.PlanResourceChange_Response, error) { 121 m.ctrl.T.Helper() 122 varargs := []interface{}{arg0, arg1} 123 for _, a := range arg2 { 124 varargs = append(varargs, a) 125 } 126 ret := m.ctrl.Call(m, "PlanResourceChange", varargs...) 127 ret0, _ := ret[0].(*tfplugin6.PlanResourceChange_Response) 128 ret1, _ := ret[1].(error) 129 return ret0, ret1 130 } 131 132 // PlanResourceChange indicates an expected call of PlanResourceChange. 133 func (mr *MockProviderClientMockRecorder) PlanResourceChange(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 134 mr.mock.ctrl.T.Helper() 135 varargs := append([]interface{}{arg0, arg1}, arg2...) 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlanResourceChange", reflect.TypeOf((*MockProviderClient)(nil).PlanResourceChange), varargs...) 137 } 138 139 // ReadDataSource mocks base method. 140 func (m *MockProviderClient) ReadDataSource(arg0 context.Context, arg1 *tfplugin6.ReadDataSource_Request, arg2 ...grpc.CallOption) (*tfplugin6.ReadDataSource_Response, error) { 141 m.ctrl.T.Helper() 142 varargs := []interface{}{arg0, arg1} 143 for _, a := range arg2 { 144 varargs = append(varargs, a) 145 } 146 ret := m.ctrl.Call(m, "ReadDataSource", varargs...) 147 ret0, _ := ret[0].(*tfplugin6.ReadDataSource_Response) 148 ret1, _ := ret[1].(error) 149 return ret0, ret1 150 } 151 152 // ReadDataSource indicates an expected call of ReadDataSource. 153 func (mr *MockProviderClientMockRecorder) ReadDataSource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 154 mr.mock.ctrl.T.Helper() 155 varargs := append([]interface{}{arg0, arg1}, arg2...) 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadDataSource", reflect.TypeOf((*MockProviderClient)(nil).ReadDataSource), varargs...) 157 } 158 159 // ReadResource mocks base method. 160 func (m *MockProviderClient) ReadResource(arg0 context.Context, arg1 *tfplugin6.ReadResource_Request, arg2 ...grpc.CallOption) (*tfplugin6.ReadResource_Response, error) { 161 m.ctrl.T.Helper() 162 varargs := []interface{}{arg0, arg1} 163 for _, a := range arg2 { 164 varargs = append(varargs, a) 165 } 166 ret := m.ctrl.Call(m, "ReadResource", varargs...) 167 ret0, _ := ret[0].(*tfplugin6.ReadResource_Response) 168 ret1, _ := ret[1].(error) 169 return ret0, ret1 170 } 171 172 // ReadResource indicates an expected call of ReadResource. 173 func (mr *MockProviderClientMockRecorder) ReadResource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 174 mr.mock.ctrl.T.Helper() 175 varargs := append([]interface{}{arg0, arg1}, arg2...) 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadResource", reflect.TypeOf((*MockProviderClient)(nil).ReadResource), varargs...) 177 } 178 179 // StopProvider mocks base method. 180 func (m *MockProviderClient) StopProvider(arg0 context.Context, arg1 *tfplugin6.StopProvider_Request, arg2 ...grpc.CallOption) (*tfplugin6.StopProvider_Response, error) { 181 m.ctrl.T.Helper() 182 varargs := []interface{}{arg0, arg1} 183 for _, a := range arg2 { 184 varargs = append(varargs, a) 185 } 186 ret := m.ctrl.Call(m, "StopProvider", varargs...) 187 ret0, _ := ret[0].(*tfplugin6.StopProvider_Response) 188 ret1, _ := ret[1].(error) 189 return ret0, ret1 190 } 191 192 // StopProvider indicates an expected call of StopProvider. 193 func (mr *MockProviderClientMockRecorder) StopProvider(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 varargs := append([]interface{}{arg0, arg1}, arg2...) 196 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopProvider", reflect.TypeOf((*MockProviderClient)(nil).StopProvider), varargs...) 197 } 198 199 // UpgradeResourceState mocks base method. 200 func (m *MockProviderClient) UpgradeResourceState(arg0 context.Context, arg1 *tfplugin6.UpgradeResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin6.UpgradeResourceState_Response, error) { 201 m.ctrl.T.Helper() 202 varargs := []interface{}{arg0, arg1} 203 for _, a := range arg2 { 204 varargs = append(varargs, a) 205 } 206 ret := m.ctrl.Call(m, "UpgradeResourceState", varargs...) 207 ret0, _ := ret[0].(*tfplugin6.UpgradeResourceState_Response) 208 ret1, _ := ret[1].(error) 209 return ret0, ret1 210 } 211 212 // UpgradeResourceState indicates an expected call of UpgradeResourceState. 213 func (mr *MockProviderClientMockRecorder) UpgradeResourceState(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 214 mr.mock.ctrl.T.Helper() 215 varargs := append([]interface{}{arg0, arg1}, arg2...) 216 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpgradeResourceState", reflect.TypeOf((*MockProviderClient)(nil).UpgradeResourceState), varargs...) 217 } 218 219 // ValidateDataResourceConfig mocks base method. 220 func (m *MockProviderClient) ValidateDataResourceConfig(arg0 context.Context, arg1 *tfplugin6.ValidateDataResourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateDataResourceConfig_Response, error) { 221 m.ctrl.T.Helper() 222 varargs := []interface{}{arg0, arg1} 223 for _, a := range arg2 { 224 varargs = append(varargs, a) 225 } 226 ret := m.ctrl.Call(m, "ValidateDataResourceConfig", varargs...) 227 ret0, _ := ret[0].(*tfplugin6.ValidateDataResourceConfig_Response) 228 ret1, _ := ret[1].(error) 229 return ret0, ret1 230 } 231 232 // ValidateDataResourceConfig indicates an expected call of ValidateDataResourceConfig. 233 func (mr *MockProviderClientMockRecorder) ValidateDataResourceConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 234 mr.mock.ctrl.T.Helper() 235 varargs := append([]interface{}{arg0, arg1}, arg2...) 236 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateDataResourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateDataResourceConfig), varargs...) 237 } 238 239 // ValidateProviderConfig mocks base method. 240 func (m *MockProviderClient) ValidateProviderConfig(arg0 context.Context, arg1 *tfplugin6.ValidateProviderConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateProviderConfig_Response, error) { 241 m.ctrl.T.Helper() 242 varargs := []interface{}{arg0, arg1} 243 for _, a := range arg2 { 244 varargs = append(varargs, a) 245 } 246 ret := m.ctrl.Call(m, "ValidateProviderConfig", varargs...) 247 ret0, _ := ret[0].(*tfplugin6.ValidateProviderConfig_Response) 248 ret1, _ := ret[1].(error) 249 return ret0, ret1 250 } 251 252 // ValidateProviderConfig indicates an expected call of ValidateProviderConfig. 253 func (mr *MockProviderClientMockRecorder) ValidateProviderConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 254 mr.mock.ctrl.T.Helper() 255 varargs := append([]interface{}{arg0, arg1}, arg2...) 256 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateProviderConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateProviderConfig), varargs...) 257 } 258 259 // ValidateResourceConfig mocks base method. 260 func (m *MockProviderClient) ValidateResourceConfig(arg0 context.Context, arg1 *tfplugin6.ValidateResourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin6.ValidateResourceConfig_Response, error) { 261 m.ctrl.T.Helper() 262 varargs := []interface{}{arg0, arg1} 263 for _, a := range arg2 { 264 varargs = append(varargs, a) 265 } 266 ret := m.ctrl.Call(m, "ValidateResourceConfig", varargs...) 267 ret0, _ := ret[0].(*tfplugin6.ValidateResourceConfig_Response) 268 ret1, _ := ret[1].(error) 269 return ret0, ret1 270 } 271 272 // ValidateResourceConfig indicates an expected call of ValidateResourceConfig. 273 func (mr *MockProviderClientMockRecorder) ValidateResourceConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 274 mr.mock.ctrl.T.Helper() 275 varargs := append([]interface{}{arg0, arg1}, arg2...) 276 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateResourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateResourceConfig), varargs...) 277 }