github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/plugin/mock_proto/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5 (interfaces: ProviderClient,ProvisionerClient,Provisioner_ProvisionResourceClient,Provisioner_ProvisionResourceServer) 3 4 // Package mock_tfplugin5 is a generated GoMock package. 5 package mock_tfplugin5 6 7 import ( 8 context "context" 9 gomock "github.com/golang/mock/gomock" 10 tfplugin5 "github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5" 11 grpc "google.golang.org/grpc" 12 metadata "google.golang.org/grpc/metadata" 13 reflect "reflect" 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 *tfplugin5.ApplyResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin5.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].(*tfplugin5.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 // Configure mocks base method 60 func (m *MockProviderClient) Configure(arg0 context.Context, arg1 *tfplugin5.Configure_Request, arg2 ...grpc.CallOption) (*tfplugin5.Configure_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, "Configure", varargs...) 67 ret0, _ := ret[0].(*tfplugin5.Configure_Response) 68 ret1, _ := ret[1].(error) 69 return ret0, ret1 70 } 71 72 // Configure indicates an expected call of Configure 73 func (mr *MockProviderClientMockRecorder) Configure(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, "Configure", reflect.TypeOf((*MockProviderClient)(nil).Configure), varargs...) 77 } 78 79 // GetSchema mocks base method 80 func (m *MockProviderClient) GetSchema(arg0 context.Context, arg1 *tfplugin5.GetProviderSchema_Request, arg2 ...grpc.CallOption) (*tfplugin5.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, "GetSchema", varargs...) 87 ret0, _ := ret[0].(*tfplugin5.GetProviderSchema_Response) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // GetSchema indicates an expected call of GetSchema 93 func (mr *MockProviderClientMockRecorder) GetSchema(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, "GetSchema", reflect.TypeOf((*MockProviderClient)(nil).GetSchema), varargs...) 97 } 98 99 // ImportResourceState mocks base method 100 func (m *MockProviderClient) ImportResourceState(arg0 context.Context, arg1 *tfplugin5.ImportResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin5.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].(*tfplugin5.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 *tfplugin5.PlanResourceChange_Request, arg2 ...grpc.CallOption) (*tfplugin5.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].(*tfplugin5.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 // PrepareProviderConfig mocks base method 140 func (m *MockProviderClient) PrepareProviderConfig(arg0 context.Context, arg1 *tfplugin5.PrepareProviderConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.PrepareProviderConfig_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, "PrepareProviderConfig", varargs...) 147 ret0, _ := ret[0].(*tfplugin5.PrepareProviderConfig_Response) 148 ret1, _ := ret[1].(error) 149 return ret0, ret1 150 } 151 152 // PrepareProviderConfig indicates an expected call of PrepareProviderConfig 153 func (mr *MockProviderClientMockRecorder) PrepareProviderConfig(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, "PrepareProviderConfig", reflect.TypeOf((*MockProviderClient)(nil).PrepareProviderConfig), varargs...) 157 } 158 159 // ReadDataSource mocks base method 160 func (m *MockProviderClient) ReadDataSource(arg0 context.Context, arg1 *tfplugin5.ReadDataSource_Request, arg2 ...grpc.CallOption) (*tfplugin5.ReadDataSource_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, "ReadDataSource", varargs...) 167 ret0, _ := ret[0].(*tfplugin5.ReadDataSource_Response) 168 ret1, _ := ret[1].(error) 169 return ret0, ret1 170 } 171 172 // ReadDataSource indicates an expected call of ReadDataSource 173 func (mr *MockProviderClientMockRecorder) ReadDataSource(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, "ReadDataSource", reflect.TypeOf((*MockProviderClient)(nil).ReadDataSource), varargs...) 177 } 178 179 // ReadResource mocks base method 180 func (m *MockProviderClient) ReadResource(arg0 context.Context, arg1 *tfplugin5.ReadResource_Request, arg2 ...grpc.CallOption) (*tfplugin5.ReadResource_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, "ReadResource", varargs...) 187 ret0, _ := ret[0].(*tfplugin5.ReadResource_Response) 188 ret1, _ := ret[1].(error) 189 return ret0, ret1 190 } 191 192 // ReadResource indicates an expected call of ReadResource 193 func (mr *MockProviderClientMockRecorder) ReadResource(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, "ReadResource", reflect.TypeOf((*MockProviderClient)(nil).ReadResource), varargs...) 197 } 198 199 // Stop mocks base method 200 func (m *MockProviderClient) Stop(arg0 context.Context, arg1 *tfplugin5.Stop_Request, arg2 ...grpc.CallOption) (*tfplugin5.Stop_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, "Stop", varargs...) 207 ret0, _ := ret[0].(*tfplugin5.Stop_Response) 208 ret1, _ := ret[1].(error) 209 return ret0, ret1 210 } 211 212 // Stop indicates an expected call of Stop 213 func (mr *MockProviderClientMockRecorder) Stop(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, "Stop", reflect.TypeOf((*MockProviderClient)(nil).Stop), varargs...) 217 } 218 219 // UpgradeResourceState mocks base method 220 func (m *MockProviderClient) UpgradeResourceState(arg0 context.Context, arg1 *tfplugin5.UpgradeResourceState_Request, arg2 ...grpc.CallOption) (*tfplugin5.UpgradeResourceState_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, "UpgradeResourceState", varargs...) 227 ret0, _ := ret[0].(*tfplugin5.UpgradeResourceState_Response) 228 ret1, _ := ret[1].(error) 229 return ret0, ret1 230 } 231 232 // UpgradeResourceState indicates an expected call of UpgradeResourceState 233 func (mr *MockProviderClientMockRecorder) UpgradeResourceState(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, "UpgradeResourceState", reflect.TypeOf((*MockProviderClient)(nil).UpgradeResourceState), varargs...) 237 } 238 239 // ValidateDataSourceConfig mocks base method 240 func (m *MockProviderClient) ValidateDataSourceConfig(arg0 context.Context, arg1 *tfplugin5.ValidateDataSourceConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateDataSourceConfig_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, "ValidateDataSourceConfig", varargs...) 247 ret0, _ := ret[0].(*tfplugin5.ValidateDataSourceConfig_Response) 248 ret1, _ := ret[1].(error) 249 return ret0, ret1 250 } 251 252 // ValidateDataSourceConfig indicates an expected call of ValidateDataSourceConfig 253 func (mr *MockProviderClientMockRecorder) ValidateDataSourceConfig(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, "ValidateDataSourceConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateDataSourceConfig), varargs...) 257 } 258 259 // ValidateResourceTypeConfig mocks base method 260 func (m *MockProviderClient) ValidateResourceTypeConfig(arg0 context.Context, arg1 *tfplugin5.ValidateResourceTypeConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateResourceTypeConfig_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, "ValidateResourceTypeConfig", varargs...) 267 ret0, _ := ret[0].(*tfplugin5.ValidateResourceTypeConfig_Response) 268 ret1, _ := ret[1].(error) 269 return ret0, ret1 270 } 271 272 // ValidateResourceTypeConfig indicates an expected call of ValidateResourceTypeConfig 273 func (mr *MockProviderClientMockRecorder) ValidateResourceTypeConfig(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, "ValidateResourceTypeConfig", reflect.TypeOf((*MockProviderClient)(nil).ValidateResourceTypeConfig), varargs...) 277 } 278 279 // MockProvisionerClient is a mock of ProvisionerClient interface 280 type MockProvisionerClient struct { 281 ctrl *gomock.Controller 282 recorder *MockProvisionerClientMockRecorder 283 } 284 285 // MockProvisionerClientMockRecorder is the mock recorder for MockProvisionerClient 286 type MockProvisionerClientMockRecorder struct { 287 mock *MockProvisionerClient 288 } 289 290 // NewMockProvisionerClient creates a new mock instance 291 func NewMockProvisionerClient(ctrl *gomock.Controller) *MockProvisionerClient { 292 mock := &MockProvisionerClient{ctrl: ctrl} 293 mock.recorder = &MockProvisionerClientMockRecorder{mock} 294 return mock 295 } 296 297 // EXPECT returns an object that allows the caller to indicate expected use 298 func (m *MockProvisionerClient) EXPECT() *MockProvisionerClientMockRecorder { 299 return m.recorder 300 } 301 302 // GetSchema mocks base method 303 func (m *MockProvisionerClient) GetSchema(arg0 context.Context, arg1 *tfplugin5.GetProvisionerSchema_Request, arg2 ...grpc.CallOption) (*tfplugin5.GetProvisionerSchema_Response, error) { 304 m.ctrl.T.Helper() 305 varargs := []interface{}{arg0, arg1} 306 for _, a := range arg2 { 307 varargs = append(varargs, a) 308 } 309 ret := m.ctrl.Call(m, "GetSchema", varargs...) 310 ret0, _ := ret[0].(*tfplugin5.GetProvisionerSchema_Response) 311 ret1, _ := ret[1].(error) 312 return ret0, ret1 313 } 314 315 // GetSchema indicates an expected call of GetSchema 316 func (mr *MockProvisionerClientMockRecorder) GetSchema(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 317 mr.mock.ctrl.T.Helper() 318 varargs := append([]interface{}{arg0, arg1}, arg2...) 319 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchema", reflect.TypeOf((*MockProvisionerClient)(nil).GetSchema), varargs...) 320 } 321 322 // ProvisionResource mocks base method 323 func (m *MockProvisionerClient) ProvisionResource(arg0 context.Context, arg1 *tfplugin5.ProvisionResource_Request, arg2 ...grpc.CallOption) (tfplugin5.Provisioner_ProvisionResourceClient, error) { 324 m.ctrl.T.Helper() 325 varargs := []interface{}{arg0, arg1} 326 for _, a := range arg2 { 327 varargs = append(varargs, a) 328 } 329 ret := m.ctrl.Call(m, "ProvisionResource", varargs...) 330 ret0, _ := ret[0].(tfplugin5.Provisioner_ProvisionResourceClient) 331 ret1, _ := ret[1].(error) 332 return ret0, ret1 333 } 334 335 // ProvisionResource indicates an expected call of ProvisionResource 336 func (mr *MockProvisionerClientMockRecorder) ProvisionResource(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 337 mr.mock.ctrl.T.Helper() 338 varargs := append([]interface{}{arg0, arg1}, arg2...) 339 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProvisionResource", reflect.TypeOf((*MockProvisionerClient)(nil).ProvisionResource), varargs...) 340 } 341 342 // Stop mocks base method 343 func (m *MockProvisionerClient) Stop(arg0 context.Context, arg1 *tfplugin5.Stop_Request, arg2 ...grpc.CallOption) (*tfplugin5.Stop_Response, error) { 344 m.ctrl.T.Helper() 345 varargs := []interface{}{arg0, arg1} 346 for _, a := range arg2 { 347 varargs = append(varargs, a) 348 } 349 ret := m.ctrl.Call(m, "Stop", varargs...) 350 ret0, _ := ret[0].(*tfplugin5.Stop_Response) 351 ret1, _ := ret[1].(error) 352 return ret0, ret1 353 } 354 355 // Stop indicates an expected call of Stop 356 func (mr *MockProvisionerClientMockRecorder) Stop(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 357 mr.mock.ctrl.T.Helper() 358 varargs := append([]interface{}{arg0, arg1}, arg2...) 359 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProvisionerClient)(nil).Stop), varargs...) 360 } 361 362 // ValidateProvisionerConfig mocks base method 363 func (m *MockProvisionerClient) ValidateProvisionerConfig(arg0 context.Context, arg1 *tfplugin5.ValidateProvisionerConfig_Request, arg2 ...grpc.CallOption) (*tfplugin5.ValidateProvisionerConfig_Response, error) { 364 m.ctrl.T.Helper() 365 varargs := []interface{}{arg0, arg1} 366 for _, a := range arg2 { 367 varargs = append(varargs, a) 368 } 369 ret := m.ctrl.Call(m, "ValidateProvisionerConfig", varargs...) 370 ret0, _ := ret[0].(*tfplugin5.ValidateProvisionerConfig_Response) 371 ret1, _ := ret[1].(error) 372 return ret0, ret1 373 } 374 375 // ValidateProvisionerConfig indicates an expected call of ValidateProvisionerConfig 376 func (mr *MockProvisionerClientMockRecorder) ValidateProvisionerConfig(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { 377 mr.mock.ctrl.T.Helper() 378 varargs := append([]interface{}{arg0, arg1}, arg2...) 379 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateProvisionerConfig", reflect.TypeOf((*MockProvisionerClient)(nil).ValidateProvisionerConfig), varargs...) 380 } 381 382 // MockProvisioner_ProvisionResourceClient is a mock of Provisioner_ProvisionResourceClient interface 383 type MockProvisioner_ProvisionResourceClient struct { 384 ctrl *gomock.Controller 385 recorder *MockProvisioner_ProvisionResourceClientMockRecorder 386 } 387 388 // MockProvisioner_ProvisionResourceClientMockRecorder is the mock recorder for MockProvisioner_ProvisionResourceClient 389 type MockProvisioner_ProvisionResourceClientMockRecorder struct { 390 mock *MockProvisioner_ProvisionResourceClient 391 } 392 393 // NewMockProvisioner_ProvisionResourceClient creates a new mock instance 394 func NewMockProvisioner_ProvisionResourceClient(ctrl *gomock.Controller) *MockProvisioner_ProvisionResourceClient { 395 mock := &MockProvisioner_ProvisionResourceClient{ctrl: ctrl} 396 mock.recorder = &MockProvisioner_ProvisionResourceClientMockRecorder{mock} 397 return mock 398 } 399 400 // EXPECT returns an object that allows the caller to indicate expected use 401 func (m *MockProvisioner_ProvisionResourceClient) EXPECT() *MockProvisioner_ProvisionResourceClientMockRecorder { 402 return m.recorder 403 } 404 405 // CloseSend mocks base method 406 func (m *MockProvisioner_ProvisionResourceClient) CloseSend() error { 407 m.ctrl.T.Helper() 408 ret := m.ctrl.Call(m, "CloseSend") 409 ret0, _ := ret[0].(error) 410 return ret0 411 } 412 413 // CloseSend indicates an expected call of CloseSend 414 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) CloseSend() *gomock.Call { 415 mr.mock.ctrl.T.Helper() 416 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseSend", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).CloseSend)) 417 } 418 419 // Context mocks base method 420 func (m *MockProvisioner_ProvisionResourceClient) Context() context.Context { 421 m.ctrl.T.Helper() 422 ret := m.ctrl.Call(m, "Context") 423 ret0, _ := ret[0].(context.Context) 424 return ret0 425 } 426 427 // Context indicates an expected call of Context 428 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Context() *gomock.Call { 429 mr.mock.ctrl.T.Helper() 430 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Context)) 431 } 432 433 // Header mocks base method 434 func (m *MockProvisioner_ProvisionResourceClient) Header() (metadata.MD, error) { 435 m.ctrl.T.Helper() 436 ret := m.ctrl.Call(m, "Header") 437 ret0, _ := ret[0].(metadata.MD) 438 ret1, _ := ret[1].(error) 439 return ret0, ret1 440 } 441 442 // Header indicates an expected call of Header 443 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Header() *gomock.Call { 444 mr.mock.ctrl.T.Helper() 445 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Header", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Header)) 446 } 447 448 // Recv mocks base method 449 func (m *MockProvisioner_ProvisionResourceClient) Recv() (*tfplugin5.ProvisionResource_Response, error) { 450 m.ctrl.T.Helper() 451 ret := m.ctrl.Call(m, "Recv") 452 ret0, _ := ret[0].(*tfplugin5.ProvisionResource_Response) 453 ret1, _ := ret[1].(error) 454 return ret0, ret1 455 } 456 457 // Recv indicates an expected call of Recv 458 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Recv() *gomock.Call { 459 mr.mock.ctrl.T.Helper() 460 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Recv", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Recv)) 461 } 462 463 // RecvMsg mocks base method 464 func (m *MockProvisioner_ProvisionResourceClient) RecvMsg(arg0 interface{}) error { 465 m.ctrl.T.Helper() 466 ret := m.ctrl.Call(m, "RecvMsg", arg0) 467 ret0, _ := ret[0].(error) 468 return ret0 469 } 470 471 // RecvMsg indicates an expected call of RecvMsg 472 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 473 mr.mock.ctrl.T.Helper() 474 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).RecvMsg), arg0) 475 } 476 477 // SendMsg mocks base method 478 func (m *MockProvisioner_ProvisionResourceClient) SendMsg(arg0 interface{}) error { 479 m.ctrl.T.Helper() 480 ret := m.ctrl.Call(m, "SendMsg", arg0) 481 ret0, _ := ret[0].(error) 482 return ret0 483 } 484 485 // SendMsg indicates an expected call of SendMsg 486 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 487 mr.mock.ctrl.T.Helper() 488 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).SendMsg), arg0) 489 } 490 491 // Trailer mocks base method 492 func (m *MockProvisioner_ProvisionResourceClient) Trailer() metadata.MD { 493 m.ctrl.T.Helper() 494 ret := m.ctrl.Call(m, "Trailer") 495 ret0, _ := ret[0].(metadata.MD) 496 return ret0 497 } 498 499 // Trailer indicates an expected call of Trailer 500 func (mr *MockProvisioner_ProvisionResourceClientMockRecorder) Trailer() *gomock.Call { 501 mr.mock.ctrl.T.Helper() 502 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Trailer", reflect.TypeOf((*MockProvisioner_ProvisionResourceClient)(nil).Trailer)) 503 } 504 505 // MockProvisioner_ProvisionResourceServer is a mock of Provisioner_ProvisionResourceServer interface 506 type MockProvisioner_ProvisionResourceServer struct { 507 ctrl *gomock.Controller 508 recorder *MockProvisioner_ProvisionResourceServerMockRecorder 509 } 510 511 // MockProvisioner_ProvisionResourceServerMockRecorder is the mock recorder for MockProvisioner_ProvisionResourceServer 512 type MockProvisioner_ProvisionResourceServerMockRecorder struct { 513 mock *MockProvisioner_ProvisionResourceServer 514 } 515 516 // NewMockProvisioner_ProvisionResourceServer creates a new mock instance 517 func NewMockProvisioner_ProvisionResourceServer(ctrl *gomock.Controller) *MockProvisioner_ProvisionResourceServer { 518 mock := &MockProvisioner_ProvisionResourceServer{ctrl: ctrl} 519 mock.recorder = &MockProvisioner_ProvisionResourceServerMockRecorder{mock} 520 return mock 521 } 522 523 // EXPECT returns an object that allows the caller to indicate expected use 524 func (m *MockProvisioner_ProvisionResourceServer) EXPECT() *MockProvisioner_ProvisionResourceServerMockRecorder { 525 return m.recorder 526 } 527 528 // Context mocks base method 529 func (m *MockProvisioner_ProvisionResourceServer) Context() context.Context { 530 m.ctrl.T.Helper() 531 ret := m.ctrl.Call(m, "Context") 532 ret0, _ := ret[0].(context.Context) 533 return ret0 534 } 535 536 // Context indicates an expected call of Context 537 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) Context() *gomock.Call { 538 mr.mock.ctrl.T.Helper() 539 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).Context)) 540 } 541 542 // RecvMsg mocks base method 543 func (m *MockProvisioner_ProvisionResourceServer) RecvMsg(arg0 interface{}) error { 544 m.ctrl.T.Helper() 545 ret := m.ctrl.Call(m, "RecvMsg", arg0) 546 ret0, _ := ret[0].(error) 547 return ret0 548 } 549 550 // RecvMsg indicates an expected call of RecvMsg 551 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call { 552 mr.mock.ctrl.T.Helper() 553 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RecvMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).RecvMsg), arg0) 554 } 555 556 // Send mocks base method 557 func (m *MockProvisioner_ProvisionResourceServer) Send(arg0 *tfplugin5.ProvisionResource_Response) error { 558 m.ctrl.T.Helper() 559 ret := m.ctrl.Call(m, "Send", arg0) 560 ret0, _ := ret[0].(error) 561 return ret0 562 } 563 564 // Send indicates an expected call of Send 565 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) Send(arg0 interface{}) *gomock.Call { 566 mr.mock.ctrl.T.Helper() 567 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).Send), arg0) 568 } 569 570 // SendHeader mocks base method 571 func (m *MockProvisioner_ProvisionResourceServer) SendHeader(arg0 metadata.MD) error { 572 m.ctrl.T.Helper() 573 ret := m.ctrl.Call(m, "SendHeader", arg0) 574 ret0, _ := ret[0].(error) 575 return ret0 576 } 577 578 // SendHeader indicates an expected call of SendHeader 579 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call { 580 mr.mock.ctrl.T.Helper() 581 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendHeader", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SendHeader), arg0) 582 } 583 584 // SendMsg mocks base method 585 func (m *MockProvisioner_ProvisionResourceServer) SendMsg(arg0 interface{}) error { 586 m.ctrl.T.Helper() 587 ret := m.ctrl.Call(m, "SendMsg", arg0) 588 ret0, _ := ret[0].(error) 589 return ret0 590 } 591 592 // SendMsg indicates an expected call of SendMsg 593 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call { 594 mr.mock.ctrl.T.Helper() 595 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMsg", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SendMsg), arg0) 596 } 597 598 // SetHeader mocks base method 599 func (m *MockProvisioner_ProvisionResourceServer) SetHeader(arg0 metadata.MD) error { 600 m.ctrl.T.Helper() 601 ret := m.ctrl.Call(m, "SetHeader", arg0) 602 ret0, _ := ret[0].(error) 603 return ret0 604 } 605 606 // SetHeader indicates an expected call of SetHeader 607 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call { 608 mr.mock.ctrl.T.Helper() 609 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeader", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SetHeader), arg0) 610 } 611 612 // SetTrailer mocks base method 613 func (m *MockProvisioner_ProvisionResourceServer) SetTrailer(arg0 metadata.MD) { 614 m.ctrl.T.Helper() 615 m.ctrl.Call(m, "SetTrailer", arg0) 616 } 617 618 // SetTrailer indicates an expected call of SetTrailer 619 func (mr *MockProvisioner_ProvisionResourceServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call { 620 mr.mock.ctrl.T.Helper() 621 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTrailer", reflect.TypeOf((*MockProvisioner_ProvisionResourceServer)(nil).SetTrailer), arg0) 622 }