github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/storage/automock/operations.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	internal "github.com/kyma-project/kyma-environment-broker/internal"
     7  	dbmodel "github.com/kyma-project/kyma-environment-broker/internal/storage/dbmodel"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	time "time"
    12  )
    13  
    14  // Operations is an autogenerated mock type for the Operations type
    15  type Operations struct {
    16  	mock.Mock
    17  }
    18  
    19  // GetDeprovisioningOperationByID provides a mock function with given fields: operationID
    20  func (_m *Operations) GetDeprovisioningOperationByID(operationID string) (*internal.DeprovisioningOperation, error) {
    21  	ret := _m.Called(operationID)
    22  
    23  	var r0 *internal.DeprovisioningOperation
    24  	if rf, ok := ret.Get(0).(func(string) *internal.DeprovisioningOperation); ok {
    25  		r0 = rf(operationID)
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).(*internal.DeprovisioningOperation)
    29  		}
    30  	}
    31  
    32  	var r1 error
    33  	if rf, ok := ret.Get(1).(func(string) error); ok {
    34  		r1 = rf(operationID)
    35  	} else {
    36  		r1 = ret.Error(1)
    37  	}
    38  
    39  	return r0, r1
    40  }
    41  
    42  // GetDeprovisioningOperationByInstanceID provides a mock function with given fields: instanceID
    43  func (_m *Operations) GetDeprovisioningOperationByInstanceID(instanceID string) (*internal.DeprovisioningOperation, error) {
    44  	ret := _m.Called(instanceID)
    45  
    46  	var r0 *internal.DeprovisioningOperation
    47  	if rf, ok := ret.Get(0).(func(string) *internal.DeprovisioningOperation); ok {
    48  		r0 = rf(instanceID)
    49  	} else {
    50  		if ret.Get(0) != nil {
    51  			r0 = ret.Get(0).(*internal.DeprovisioningOperation)
    52  		}
    53  	}
    54  
    55  	var r1 error
    56  	if rf, ok := ret.Get(1).(func(string) error); ok {
    57  		r1 = rf(instanceID)
    58  	} else {
    59  		r1 = ret.Error(1)
    60  	}
    61  
    62  	return r0, r1
    63  }
    64  
    65  // GetLastOperation provides a mock function with given fields: instanceID
    66  func (_m *Operations) GetLastOperation(instanceID string) (*internal.Operation, error) {
    67  	ret := _m.Called(instanceID)
    68  
    69  	var r0 *internal.Operation
    70  	if rf, ok := ret.Get(0).(func(string) *internal.Operation); ok {
    71  		r0 = rf(instanceID)
    72  	} else {
    73  		if ret.Get(0) != nil {
    74  			r0 = ret.Get(0).(*internal.Operation)
    75  		}
    76  	}
    77  
    78  	var r1 error
    79  	if rf, ok := ret.Get(1).(func(string) error); ok {
    80  		r1 = rf(instanceID)
    81  	} else {
    82  		r1 = ret.Error(1)
    83  	}
    84  
    85  	return r0, r1
    86  }
    87  
    88  // GetNotFinishedOperationsByType provides a mock function with given fields: operationType
    89  func (_m *Operations) GetNotFinishedOperationsByType(operationType internal.OperationType) ([]internal.Operation, error) {
    90  	ret := _m.Called(operationType)
    91  
    92  	var r0 []internal.Operation
    93  	if rf, ok := ret.Get(0).(func(internal.OperationType) []internal.Operation); ok {
    94  		r0 = rf(operationType)
    95  	} else {
    96  		if ret.Get(0) != nil {
    97  			r0 = ret.Get(0).([]internal.Operation)
    98  		}
    99  	}
   100  
   101  	var r1 error
   102  	if rf, ok := ret.Get(1).(func(internal.OperationType) error); ok {
   103  		r1 = rf(operationType)
   104  	} else {
   105  		r1 = ret.Error(1)
   106  	}
   107  
   108  	return r0, r1
   109  }
   110  
   111  // GetOperationByID provides a mock function with given fields: operationID
   112  func (_m *Operations) GetOperationByID(operationID string) (*internal.Operation, error) {
   113  	ret := _m.Called(operationID)
   114  
   115  	var r0 *internal.Operation
   116  	if rf, ok := ret.Get(0).(func(string) *internal.Operation); ok {
   117  		r0 = rf(operationID)
   118  	} else {
   119  		if ret.Get(0) != nil {
   120  			r0 = ret.Get(0).(*internal.Operation)
   121  		}
   122  	}
   123  
   124  	var r1 error
   125  	if rf, ok := ret.Get(1).(func(string) error); ok {
   126  		r1 = rf(operationID)
   127  	} else {
   128  		r1 = ret.Error(1)
   129  	}
   130  
   131  	return r0, r1
   132  }
   133  
   134  // GetOperationByInstanceID provides a mock function with given fields: instanceID
   135  func (_m *Operations) GetOperationByInstanceID(instanceID string) (*internal.Operation, error) {
   136  	ret := _m.Called(instanceID)
   137  
   138  	var r0 *internal.Operation
   139  	if rf, ok := ret.Get(0).(func(string) *internal.Operation); ok {
   140  		r0 = rf(instanceID)
   141  	} else {
   142  		if ret.Get(0) != nil {
   143  			r0 = ret.Get(0).(*internal.Operation)
   144  		}
   145  	}
   146  
   147  	var r1 error
   148  	if rf, ok := ret.Get(1).(func(string) error); ok {
   149  		r1 = rf(instanceID)
   150  	} else {
   151  		r1 = ret.Error(1)
   152  	}
   153  
   154  	return r0, r1
   155  }
   156  
   157  // GetOperationStatsByPlan provides a mock function with given fields:
   158  func (_m *Operations) GetOperationStatsByPlan() (map[string]internal.OperationStats, error) {
   159  	ret := _m.Called()
   160  
   161  	var r0 map[string]internal.OperationStats
   162  	if rf, ok := ret.Get(0).(func() map[string]internal.OperationStats); ok {
   163  		r0 = rf()
   164  	} else {
   165  		if ret.Get(0) != nil {
   166  			r0 = ret.Get(0).(map[string]internal.OperationStats)
   167  		}
   168  	}
   169  
   170  	var r1 error
   171  	if rf, ok := ret.Get(1).(func() error); ok {
   172  		r1 = rf()
   173  	} else {
   174  		r1 = ret.Error(1)
   175  	}
   176  
   177  	return r0, r1
   178  }
   179  
   180  // GetOperationStatsForOrchestration provides a mock function with given fields: orchestrationID
   181  func (_m *Operations) GetOperationStatsForOrchestration(orchestrationID string) (map[string]int, error) {
   182  	ret := _m.Called(orchestrationID)
   183  
   184  	var r0 map[string]int
   185  	if rf, ok := ret.Get(0).(func(string) map[string]int); ok {
   186  		r0 = rf(orchestrationID)
   187  	} else {
   188  		if ret.Get(0) != nil {
   189  			r0 = ret.Get(0).(map[string]int)
   190  		}
   191  	}
   192  
   193  	var r1 error
   194  	if rf, ok := ret.Get(1).(func(string) error); ok {
   195  		r1 = rf(orchestrationID)
   196  	} else {
   197  		r1 = ret.Error(1)
   198  	}
   199  
   200  	return r0, r1
   201  }
   202  
   203  // GetOperationsForIDs provides a mock function with given fields: operationIDList
   204  func (_m *Operations) GetOperationsForIDs(operationIDList []string) ([]internal.Operation, error) {
   205  	ret := _m.Called(operationIDList)
   206  
   207  	var r0 []internal.Operation
   208  	if rf, ok := ret.Get(0).(func([]string) []internal.Operation); ok {
   209  		r0 = rf(operationIDList)
   210  	} else {
   211  		if ret.Get(0) != nil {
   212  			r0 = ret.Get(0).([]internal.Operation)
   213  		}
   214  	}
   215  
   216  	var r1 error
   217  	if rf, ok := ret.Get(1).(func([]string) error); ok {
   218  		r1 = rf(operationIDList)
   219  	} else {
   220  		r1 = ret.Error(1)
   221  	}
   222  
   223  	return r0, r1
   224  }
   225  
   226  // GetProvisioningOperationByID provides a mock function with given fields: operationID
   227  func (_m *Operations) GetProvisioningOperationByID(operationID string) (*internal.ProvisioningOperation, error) {
   228  	ret := _m.Called(operationID)
   229  
   230  	var r0 *internal.ProvisioningOperation
   231  	if rf, ok := ret.Get(0).(func(string) *internal.ProvisioningOperation); ok {
   232  		r0 = rf(operationID)
   233  	} else {
   234  		if ret.Get(0) != nil {
   235  			r0 = ret.Get(0).(*internal.ProvisioningOperation)
   236  		}
   237  	}
   238  
   239  	var r1 error
   240  	if rf, ok := ret.Get(1).(func(string) error); ok {
   241  		r1 = rf(operationID)
   242  	} else {
   243  		r1 = ret.Error(1)
   244  	}
   245  
   246  	return r0, r1
   247  }
   248  
   249  // GetProvisioningOperationByInstanceID provides a mock function with given fields: instanceID
   250  func (_m *Operations) GetProvisioningOperationByInstanceID(instanceID string) (*internal.ProvisioningOperation, error) {
   251  	ret := _m.Called(instanceID)
   252  
   253  	var r0 *internal.ProvisioningOperation
   254  	if rf, ok := ret.Get(0).(func(string) *internal.ProvisioningOperation); ok {
   255  		r0 = rf(instanceID)
   256  	} else {
   257  		if ret.Get(0) != nil {
   258  			r0 = ret.Get(0).(*internal.ProvisioningOperation)
   259  		}
   260  	}
   261  
   262  	var r1 error
   263  	if rf, ok := ret.Get(1).(func(string) error); ok {
   264  		r1 = rf(instanceID)
   265  	} else {
   266  		r1 = ret.Error(1)
   267  	}
   268  
   269  	return r0, r1
   270  }
   271  
   272  // GetUpdatingOperationByID provides a mock function with given fields: operationID
   273  func (_m *Operations) GetUpdatingOperationByID(operationID string) (*internal.UpdatingOperation, error) {
   274  	ret := _m.Called(operationID)
   275  
   276  	var r0 *internal.UpdatingOperation
   277  	if rf, ok := ret.Get(0).(func(string) *internal.UpdatingOperation); ok {
   278  		r0 = rf(operationID)
   279  	} else {
   280  		if ret.Get(0) != nil {
   281  			r0 = ret.Get(0).(*internal.UpdatingOperation)
   282  		}
   283  	}
   284  
   285  	var r1 error
   286  	if rf, ok := ret.Get(1).(func(string) error); ok {
   287  		r1 = rf(operationID)
   288  	} else {
   289  		r1 = ret.Error(1)
   290  	}
   291  
   292  	return r0, r1
   293  }
   294  
   295  // GetUpgradeClusterOperationByID provides a mock function with given fields: operationID
   296  func (_m *Operations) GetUpgradeClusterOperationByID(operationID string) (*internal.UpgradeClusterOperation, error) {
   297  	ret := _m.Called(operationID)
   298  
   299  	var r0 *internal.UpgradeClusterOperation
   300  	if rf, ok := ret.Get(0).(func(string) *internal.UpgradeClusterOperation); ok {
   301  		r0 = rf(operationID)
   302  	} else {
   303  		if ret.Get(0) != nil {
   304  			r0 = ret.Get(0).(*internal.UpgradeClusterOperation)
   305  		}
   306  	}
   307  
   308  	var r1 error
   309  	if rf, ok := ret.Get(1).(func(string) error); ok {
   310  		r1 = rf(operationID)
   311  	} else {
   312  		r1 = ret.Error(1)
   313  	}
   314  
   315  	return r0, r1
   316  }
   317  
   318  // GetUpgradeKymaOperationByID provides a mock function with given fields: operationID
   319  func (_m *Operations) GetUpgradeKymaOperationByID(operationID string) (*internal.UpgradeKymaOperation, error) {
   320  	ret := _m.Called(operationID)
   321  
   322  	var r0 *internal.UpgradeKymaOperation
   323  	if rf, ok := ret.Get(0).(func(string) *internal.UpgradeKymaOperation); ok {
   324  		r0 = rf(operationID)
   325  	} else {
   326  		if ret.Get(0) != nil {
   327  			r0 = ret.Get(0).(*internal.UpgradeKymaOperation)
   328  		}
   329  	}
   330  
   331  	var r1 error
   332  	if rf, ok := ret.Get(1).(func(string) error); ok {
   333  		r1 = rf(operationID)
   334  	} else {
   335  		r1 = ret.Error(1)
   336  	}
   337  
   338  	return r0, r1
   339  }
   340  
   341  // GetUpgradeKymaOperationByInstanceID provides a mock function with given fields: instanceID
   342  func (_m *Operations) GetUpgradeKymaOperationByInstanceID(instanceID string) (*internal.UpgradeKymaOperation, error) {
   343  	ret := _m.Called(instanceID)
   344  
   345  	var r0 *internal.UpgradeKymaOperation
   346  	if rf, ok := ret.Get(0).(func(string) *internal.UpgradeKymaOperation); ok {
   347  		r0 = rf(instanceID)
   348  	} else {
   349  		if ret.Get(0) != nil {
   350  			r0 = ret.Get(0).(*internal.UpgradeKymaOperation)
   351  		}
   352  	}
   353  
   354  	var r1 error
   355  	if rf, ok := ret.Get(1).(func(string) error); ok {
   356  		r1 = rf(instanceID)
   357  	} else {
   358  		r1 = ret.Error(1)
   359  	}
   360  
   361  	return r0, r1
   362  }
   363  
   364  // InsertDeprovisioningOperation provides a mock function with given fields: operation
   365  func (_m *Operations) InsertDeprovisioningOperation(operation internal.DeprovisioningOperation) error {
   366  	ret := _m.Called(operation)
   367  
   368  	var r0 error
   369  	if rf, ok := ret.Get(0).(func(internal.DeprovisioningOperation) error); ok {
   370  		r0 = rf(operation)
   371  	} else {
   372  		r0 = ret.Error(0)
   373  	}
   374  
   375  	return r0
   376  }
   377  
   378  // InsertOperation provides a mock function with given fields: operation
   379  func (_m *Operations) InsertOperation(operation internal.Operation) error {
   380  	ret := _m.Called(operation)
   381  
   382  	var r0 error
   383  	if rf, ok := ret.Get(0).(func(internal.Operation) error); ok {
   384  		r0 = rf(operation)
   385  	} else {
   386  		r0 = ret.Error(0)
   387  	}
   388  
   389  	return r0
   390  }
   391  
   392  // InsertProvisioningOperation provides a mock function with given fields: operation
   393  func (_m *Operations) InsertProvisioningOperation(operation internal.ProvisioningOperation) error {
   394  	ret := _m.Called(operation)
   395  
   396  	var r0 error
   397  	if rf, ok := ret.Get(0).(func(internal.ProvisioningOperation) error); ok {
   398  		r0 = rf(operation)
   399  	} else {
   400  		r0 = ret.Error(0)
   401  	}
   402  
   403  	return r0
   404  }
   405  
   406  // InsertUpdatingOperation provides a mock function with given fields: operation
   407  func (_m *Operations) InsertUpdatingOperation(operation internal.UpdatingOperation) error {
   408  	ret := _m.Called(operation)
   409  
   410  	var r0 error
   411  	if rf, ok := ret.Get(0).(func(internal.UpdatingOperation) error); ok {
   412  		r0 = rf(operation)
   413  	} else {
   414  		r0 = ret.Error(0)
   415  	}
   416  
   417  	return r0
   418  }
   419  
   420  // InsertUpgradeClusterOperation provides a mock function with given fields: operation
   421  func (_m *Operations) InsertUpgradeClusterOperation(operation internal.UpgradeClusterOperation) error {
   422  	ret := _m.Called(operation)
   423  
   424  	var r0 error
   425  	if rf, ok := ret.Get(0).(func(internal.UpgradeClusterOperation) error); ok {
   426  		r0 = rf(operation)
   427  	} else {
   428  		r0 = ret.Error(0)
   429  	}
   430  
   431  	return r0
   432  }
   433  
   434  // InsertUpgradeKymaOperation provides a mock function with given fields: operation
   435  func (_m *Operations) InsertUpgradeKymaOperation(operation internal.UpgradeKymaOperation) error {
   436  	ret := _m.Called(operation)
   437  
   438  	var r0 error
   439  	if rf, ok := ret.Get(0).(func(internal.UpgradeKymaOperation) error); ok {
   440  		r0 = rf(operation)
   441  	} else {
   442  		r0 = ret.Error(0)
   443  	}
   444  
   445  	return r0
   446  }
   447  
   448  // ListDeprovisioningOperations provides a mock function with given fields:
   449  func (_m *Operations) ListDeprovisioningOperations() ([]internal.DeprovisioningOperation, error) {
   450  	ret := _m.Called()
   451  
   452  	var r0 []internal.DeprovisioningOperation
   453  	if rf, ok := ret.Get(0).(func() []internal.DeprovisioningOperation); ok {
   454  		r0 = rf()
   455  	} else {
   456  		if ret.Get(0) != nil {
   457  			r0 = ret.Get(0).([]internal.DeprovisioningOperation)
   458  		}
   459  	}
   460  
   461  	var r1 error
   462  	if rf, ok := ret.Get(1).(func() error); ok {
   463  		r1 = rf()
   464  	} else {
   465  		r1 = ret.Error(1)
   466  	}
   467  
   468  	return r0, r1
   469  }
   470  
   471  // ListDeprovisioningOperationsByInstanceID provides a mock function with given fields: instanceID
   472  func (_m *Operations) ListDeprovisioningOperationsByInstanceID(instanceID string) ([]internal.DeprovisioningOperation, error) {
   473  	ret := _m.Called(instanceID)
   474  
   475  	var r0 []internal.DeprovisioningOperation
   476  	if rf, ok := ret.Get(0).(func(string) []internal.DeprovisioningOperation); ok {
   477  		r0 = rf(instanceID)
   478  	} else {
   479  		if ret.Get(0) != nil {
   480  			r0 = ret.Get(0).([]internal.DeprovisioningOperation)
   481  		}
   482  	}
   483  
   484  	var r1 error
   485  	if rf, ok := ret.Get(1).(func(string) error); ok {
   486  		r1 = rf(instanceID)
   487  	} else {
   488  		r1 = ret.Error(1)
   489  	}
   490  
   491  	return r0, r1
   492  }
   493  
   494  // ListOperations provides a mock function with given fields: filter
   495  func (_m *Operations) ListOperations(filter dbmodel.OperationFilter) ([]internal.Operation, int, int, error) {
   496  	ret := _m.Called(filter)
   497  
   498  	var r0 []internal.Operation
   499  	if rf, ok := ret.Get(0).(func(dbmodel.OperationFilter) []internal.Operation); ok {
   500  		r0 = rf(filter)
   501  	} else {
   502  		if ret.Get(0) != nil {
   503  			r0 = ret.Get(0).([]internal.Operation)
   504  		}
   505  	}
   506  
   507  	var r1 int
   508  	if rf, ok := ret.Get(1).(func(dbmodel.OperationFilter) int); ok {
   509  		r1 = rf(filter)
   510  	} else {
   511  		r1 = ret.Get(1).(int)
   512  	}
   513  
   514  	var r2 int
   515  	if rf, ok := ret.Get(2).(func(dbmodel.OperationFilter) int); ok {
   516  		r2 = rf(filter)
   517  	} else {
   518  		r2 = ret.Get(2).(int)
   519  	}
   520  
   521  	var r3 error
   522  	if rf, ok := ret.Get(3).(func(dbmodel.OperationFilter) error); ok {
   523  		r3 = rf(filter)
   524  	} else {
   525  		r3 = ret.Error(3)
   526  	}
   527  
   528  	return r0, r1, r2, r3
   529  }
   530  
   531  // ListOperationsByInstanceID provides a mock function with given fields: instanceID
   532  func (_m *Operations) ListOperationsByInstanceID(instanceID string) ([]internal.Operation, error) {
   533  	ret := _m.Called(instanceID)
   534  
   535  	var r0 []internal.Operation
   536  	if rf, ok := ret.Get(0).(func(string) []internal.Operation); ok {
   537  		r0 = rf(instanceID)
   538  	} else {
   539  		if ret.Get(0) != nil {
   540  			r0 = ret.Get(0).([]internal.Operation)
   541  		}
   542  	}
   543  
   544  	var r1 error
   545  	if rf, ok := ret.Get(1).(func(string) error); ok {
   546  		r1 = rf(instanceID)
   547  	} else {
   548  		r1 = ret.Error(1)
   549  	}
   550  
   551  	return r0, r1
   552  }
   553  
   554  // ListOperationsByOrchestrationID provides a mock function with given fields: orchestrationID, filter
   555  func (_m *Operations) ListOperationsByOrchestrationID(orchestrationID string, filter dbmodel.OperationFilter) ([]internal.Operation, int, int, error) {
   556  	ret := _m.Called(orchestrationID, filter)
   557  
   558  	var r0 []internal.Operation
   559  	if rf, ok := ret.Get(0).(func(string, dbmodel.OperationFilter) []internal.Operation); ok {
   560  		r0 = rf(orchestrationID, filter)
   561  	} else {
   562  		if ret.Get(0) != nil {
   563  			r0 = ret.Get(0).([]internal.Operation)
   564  		}
   565  	}
   566  
   567  	var r1 int
   568  	if rf, ok := ret.Get(1).(func(string, dbmodel.OperationFilter) int); ok {
   569  		r1 = rf(orchestrationID, filter)
   570  	} else {
   571  		r1 = ret.Get(1).(int)
   572  	}
   573  
   574  	var r2 int
   575  	if rf, ok := ret.Get(2).(func(string, dbmodel.OperationFilter) int); ok {
   576  		r2 = rf(orchestrationID, filter)
   577  	} else {
   578  		r2 = ret.Get(2).(int)
   579  	}
   580  
   581  	var r3 error
   582  	if rf, ok := ret.Get(3).(func(string, dbmodel.OperationFilter) error); ok {
   583  		r3 = rf(orchestrationID, filter)
   584  	} else {
   585  		r3 = ret.Error(3)
   586  	}
   587  
   588  	return r0, r1, r2, r3
   589  }
   590  
   591  // ListOperationsInTimeRange provides a mock function with given fields: from, to
   592  func (_m *Operations) ListOperationsInTimeRange(from time.Time, to time.Time) ([]internal.Operation, error) {
   593  	ret := _m.Called(from, to)
   594  
   595  	var r0 []internal.Operation
   596  	if rf, ok := ret.Get(0).(func(time.Time, time.Time) []internal.Operation); ok {
   597  		r0 = rf(from, to)
   598  	} else {
   599  		if ret.Get(0) != nil {
   600  			r0 = ret.Get(0).([]internal.Operation)
   601  		}
   602  	}
   603  
   604  	var r1 error
   605  	if rf, ok := ret.Get(1).(func(time.Time, time.Time) error); ok {
   606  		r1 = rf(from, to)
   607  	} else {
   608  		r1 = ret.Error(1)
   609  	}
   610  
   611  	return r0, r1
   612  }
   613  
   614  // ListProvisioningOperationsByInstanceID provides a mock function with given fields: instanceID
   615  func (_m *Operations) ListProvisioningOperationsByInstanceID(instanceID string) ([]internal.ProvisioningOperation, error) {
   616  	ret := _m.Called(instanceID)
   617  
   618  	var r0 []internal.ProvisioningOperation
   619  	if rf, ok := ret.Get(0).(func(string) []internal.ProvisioningOperation); ok {
   620  		r0 = rf(instanceID)
   621  	} else {
   622  		if ret.Get(0) != nil {
   623  			r0 = ret.Get(0).([]internal.ProvisioningOperation)
   624  		}
   625  	}
   626  
   627  	var r1 error
   628  	if rf, ok := ret.Get(1).(func(string) error); ok {
   629  		r1 = rf(instanceID)
   630  	} else {
   631  		r1 = ret.Error(1)
   632  	}
   633  
   634  	return r0, r1
   635  }
   636  
   637  // ListUpdatingOperationsByInstanceID provides a mock function with given fields: instanceID
   638  func (_m *Operations) ListUpdatingOperationsByInstanceID(instanceID string) ([]internal.UpdatingOperation, error) {
   639  	ret := _m.Called(instanceID)
   640  
   641  	var r0 []internal.UpdatingOperation
   642  	if rf, ok := ret.Get(0).(func(string) []internal.UpdatingOperation); ok {
   643  		r0 = rf(instanceID)
   644  	} else {
   645  		if ret.Get(0) != nil {
   646  			r0 = ret.Get(0).([]internal.UpdatingOperation)
   647  		}
   648  	}
   649  
   650  	var r1 error
   651  	if rf, ok := ret.Get(1).(func(string) error); ok {
   652  		r1 = rf(instanceID)
   653  	} else {
   654  		r1 = ret.Error(1)
   655  	}
   656  
   657  	return r0, r1
   658  }
   659  
   660  // ListUpgradeClusterOperationsByInstanceID provides a mock function with given fields: instanceID
   661  func (_m *Operations) ListUpgradeClusterOperationsByInstanceID(instanceID string) ([]internal.UpgradeClusterOperation, error) {
   662  	ret := _m.Called(instanceID)
   663  
   664  	var r0 []internal.UpgradeClusterOperation
   665  	if rf, ok := ret.Get(0).(func(string) []internal.UpgradeClusterOperation); ok {
   666  		r0 = rf(instanceID)
   667  	} else {
   668  		if ret.Get(0) != nil {
   669  			r0 = ret.Get(0).([]internal.UpgradeClusterOperation)
   670  		}
   671  	}
   672  
   673  	var r1 error
   674  	if rf, ok := ret.Get(1).(func(string) error); ok {
   675  		r1 = rf(instanceID)
   676  	} else {
   677  		r1 = ret.Error(1)
   678  	}
   679  
   680  	return r0, r1
   681  }
   682  
   683  // ListUpgradeClusterOperationsByOrchestrationID provides a mock function with given fields: orchestrationID, filter
   684  func (_m *Operations) ListUpgradeClusterOperationsByOrchestrationID(orchestrationID string, filter dbmodel.OperationFilter) ([]internal.UpgradeClusterOperation, int, int, error) {
   685  	ret := _m.Called(orchestrationID, filter)
   686  
   687  	var r0 []internal.UpgradeClusterOperation
   688  	if rf, ok := ret.Get(0).(func(string, dbmodel.OperationFilter) []internal.UpgradeClusterOperation); ok {
   689  		r0 = rf(orchestrationID, filter)
   690  	} else {
   691  		if ret.Get(0) != nil {
   692  			r0 = ret.Get(0).([]internal.UpgradeClusterOperation)
   693  		}
   694  	}
   695  
   696  	var r1 int
   697  	if rf, ok := ret.Get(1).(func(string, dbmodel.OperationFilter) int); ok {
   698  		r1 = rf(orchestrationID, filter)
   699  	} else {
   700  		r1 = ret.Get(1).(int)
   701  	}
   702  
   703  	var r2 int
   704  	if rf, ok := ret.Get(2).(func(string, dbmodel.OperationFilter) int); ok {
   705  		r2 = rf(orchestrationID, filter)
   706  	} else {
   707  		r2 = ret.Get(2).(int)
   708  	}
   709  
   710  	var r3 error
   711  	if rf, ok := ret.Get(3).(func(string, dbmodel.OperationFilter) error); ok {
   712  		r3 = rf(orchestrationID, filter)
   713  	} else {
   714  		r3 = ret.Error(3)
   715  	}
   716  
   717  	return r0, r1, r2, r3
   718  }
   719  
   720  // ListUpgradeKymaOperations provides a mock function with given fields:
   721  func (_m *Operations) ListUpgradeKymaOperations() ([]internal.UpgradeKymaOperation, error) {
   722  	ret := _m.Called()
   723  
   724  	var r0 []internal.UpgradeKymaOperation
   725  	if rf, ok := ret.Get(0).(func() []internal.UpgradeKymaOperation); ok {
   726  		r0 = rf()
   727  	} else {
   728  		if ret.Get(0) != nil {
   729  			r0 = ret.Get(0).([]internal.UpgradeKymaOperation)
   730  		}
   731  	}
   732  
   733  	var r1 error
   734  	if rf, ok := ret.Get(1).(func() error); ok {
   735  		r1 = rf()
   736  	} else {
   737  		r1 = ret.Error(1)
   738  	}
   739  
   740  	return r0, r1
   741  }
   742  
   743  // ListUpgradeKymaOperationsByInstanceID provides a mock function with given fields: instanceID
   744  func (_m *Operations) ListUpgradeKymaOperationsByInstanceID(instanceID string) ([]internal.UpgradeKymaOperation, error) {
   745  	ret := _m.Called(instanceID)
   746  
   747  	var r0 []internal.UpgradeKymaOperation
   748  	if rf, ok := ret.Get(0).(func(string) []internal.UpgradeKymaOperation); ok {
   749  		r0 = rf(instanceID)
   750  	} else {
   751  		if ret.Get(0) != nil {
   752  			r0 = ret.Get(0).([]internal.UpgradeKymaOperation)
   753  		}
   754  	}
   755  
   756  	var r1 error
   757  	if rf, ok := ret.Get(1).(func(string) error); ok {
   758  		r1 = rf(instanceID)
   759  	} else {
   760  		r1 = ret.Error(1)
   761  	}
   762  
   763  	return r0, r1
   764  }
   765  
   766  // ListUpgradeKymaOperationsByOrchestrationID provides a mock function with given fields: orchestrationID, filter
   767  func (_m *Operations) ListUpgradeKymaOperationsByOrchestrationID(orchestrationID string, filter dbmodel.OperationFilter) ([]internal.UpgradeKymaOperation, int, int, error) {
   768  	ret := _m.Called(orchestrationID, filter)
   769  
   770  	var r0 []internal.UpgradeKymaOperation
   771  	if rf, ok := ret.Get(0).(func(string, dbmodel.OperationFilter) []internal.UpgradeKymaOperation); ok {
   772  		r0 = rf(orchestrationID, filter)
   773  	} else {
   774  		if ret.Get(0) != nil {
   775  			r0 = ret.Get(0).([]internal.UpgradeKymaOperation)
   776  		}
   777  	}
   778  
   779  	var r1 int
   780  	if rf, ok := ret.Get(1).(func(string, dbmodel.OperationFilter) int); ok {
   781  		r1 = rf(orchestrationID, filter)
   782  	} else {
   783  		r1 = ret.Get(1).(int)
   784  	}
   785  
   786  	var r2 int
   787  	if rf, ok := ret.Get(2).(func(string, dbmodel.OperationFilter) int); ok {
   788  		r2 = rf(orchestrationID, filter)
   789  	} else {
   790  		r2 = ret.Get(2).(int)
   791  	}
   792  
   793  	var r3 error
   794  	if rf, ok := ret.Get(3).(func(string, dbmodel.OperationFilter) error); ok {
   795  		r3 = rf(orchestrationID, filter)
   796  	} else {
   797  		r3 = ret.Error(3)
   798  	}
   799  
   800  	return r0, r1, r2, r3
   801  }
   802  
   803  // UpdateDeprovisioningOperation provides a mock function with given fields: operation
   804  func (_m *Operations) UpdateDeprovisioningOperation(operation internal.DeprovisioningOperation) (*internal.DeprovisioningOperation, error) {
   805  	ret := _m.Called(operation)
   806  
   807  	var r0 *internal.DeprovisioningOperation
   808  	if rf, ok := ret.Get(0).(func(internal.DeprovisioningOperation) *internal.DeprovisioningOperation); ok {
   809  		r0 = rf(operation)
   810  	} else {
   811  		if ret.Get(0) != nil {
   812  			r0 = ret.Get(0).(*internal.DeprovisioningOperation)
   813  		}
   814  	}
   815  
   816  	var r1 error
   817  	if rf, ok := ret.Get(1).(func(internal.DeprovisioningOperation) error); ok {
   818  		r1 = rf(operation)
   819  	} else {
   820  		r1 = ret.Error(1)
   821  	}
   822  
   823  	return r0, r1
   824  }
   825  
   826  // UpdateOperation provides a mock function with given fields: operation
   827  func (_m *Operations) UpdateOperation(operation internal.Operation) (*internal.Operation, error) {
   828  	ret := _m.Called(operation)
   829  
   830  	var r0 *internal.Operation
   831  	if rf, ok := ret.Get(0).(func(internal.Operation) *internal.Operation); ok {
   832  		r0 = rf(operation)
   833  	} else {
   834  		if ret.Get(0) != nil {
   835  			r0 = ret.Get(0).(*internal.Operation)
   836  		}
   837  	}
   838  
   839  	var r1 error
   840  	if rf, ok := ret.Get(1).(func(internal.Operation) error); ok {
   841  		r1 = rf(operation)
   842  	} else {
   843  		r1 = ret.Error(1)
   844  	}
   845  
   846  	return r0, r1
   847  }
   848  
   849  // UpdateProvisioningOperation provides a mock function with given fields: operation
   850  func (_m *Operations) UpdateProvisioningOperation(operation internal.ProvisioningOperation) (*internal.ProvisioningOperation, error) {
   851  	ret := _m.Called(operation)
   852  
   853  	var r0 *internal.ProvisioningOperation
   854  	if rf, ok := ret.Get(0).(func(internal.ProvisioningOperation) *internal.ProvisioningOperation); ok {
   855  		r0 = rf(operation)
   856  	} else {
   857  		if ret.Get(0) != nil {
   858  			r0 = ret.Get(0).(*internal.ProvisioningOperation)
   859  		}
   860  	}
   861  
   862  	var r1 error
   863  	if rf, ok := ret.Get(1).(func(internal.ProvisioningOperation) error); ok {
   864  		r1 = rf(operation)
   865  	} else {
   866  		r1 = ret.Error(1)
   867  	}
   868  
   869  	return r0, r1
   870  }
   871  
   872  // UpdateUpdatingOperation provides a mock function with given fields: operation
   873  func (_m *Operations) UpdateUpdatingOperation(operation internal.UpdatingOperation) (*internal.UpdatingOperation, error) {
   874  	ret := _m.Called(operation)
   875  
   876  	var r0 *internal.UpdatingOperation
   877  	if rf, ok := ret.Get(0).(func(internal.UpdatingOperation) *internal.UpdatingOperation); ok {
   878  		r0 = rf(operation)
   879  	} else {
   880  		if ret.Get(0) != nil {
   881  			r0 = ret.Get(0).(*internal.UpdatingOperation)
   882  		}
   883  	}
   884  
   885  	var r1 error
   886  	if rf, ok := ret.Get(1).(func(internal.UpdatingOperation) error); ok {
   887  		r1 = rf(operation)
   888  	} else {
   889  		r1 = ret.Error(1)
   890  	}
   891  
   892  	return r0, r1
   893  }
   894  
   895  // UpdateUpgradeClusterOperation provides a mock function with given fields: operation
   896  func (_m *Operations) UpdateUpgradeClusterOperation(operation internal.UpgradeClusterOperation) (*internal.UpgradeClusterOperation, error) {
   897  	ret := _m.Called(operation)
   898  
   899  	var r0 *internal.UpgradeClusterOperation
   900  	if rf, ok := ret.Get(0).(func(internal.UpgradeClusterOperation) *internal.UpgradeClusterOperation); ok {
   901  		r0 = rf(operation)
   902  	} else {
   903  		if ret.Get(0) != nil {
   904  			r0 = ret.Get(0).(*internal.UpgradeClusterOperation)
   905  		}
   906  	}
   907  
   908  	var r1 error
   909  	if rf, ok := ret.Get(1).(func(internal.UpgradeClusterOperation) error); ok {
   910  		r1 = rf(operation)
   911  	} else {
   912  		r1 = ret.Error(1)
   913  	}
   914  
   915  	return r0, r1
   916  }
   917  
   918  // UpdateUpgradeKymaOperation provides a mock function with given fields: operation
   919  func (_m *Operations) UpdateUpgradeKymaOperation(operation internal.UpgradeKymaOperation) (*internal.UpgradeKymaOperation, error) {
   920  	ret := _m.Called(operation)
   921  
   922  	var r0 *internal.UpgradeKymaOperation
   923  	if rf, ok := ret.Get(0).(func(internal.UpgradeKymaOperation) *internal.UpgradeKymaOperation); ok {
   924  		r0 = rf(operation)
   925  	} else {
   926  		if ret.Get(0) != nil {
   927  			r0 = ret.Get(0).(*internal.UpgradeKymaOperation)
   928  		}
   929  	}
   930  
   931  	var r1 error
   932  	if rf, ok := ret.Get(1).(func(internal.UpgradeKymaOperation) error); ok {
   933  		r1 = rf(operation)
   934  	} else {
   935  		r1 = ret.Error(1)
   936  	}
   937  
   938  	return r0, r1
   939  }
   940  
   941  type mockConstructorTestingTNewOperations interface {
   942  	mock.TestingT
   943  	Cleanup(func())
   944  }
   945  
   946  // NewOperations creates a new instance of Operations. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   947  func NewOperations(t mockConstructorTestingTNewOperations) *Operations {
   948  	mock := &Operations{}
   949  	mock.Mock.Test(t)
   950  
   951  	t.Cleanup(func() { mock.AssertExpectations(t) })
   952  
   953  	return mock
   954  }