github.com/argoproj/argo-cd/v3@v3.2.1/pkg/apiclient/cluster/mocks/ClusterServiceServer.go (about)

     1  // Code generated by mockery; DO NOT EDIT.
     2  // github.com/vektra/mockery
     3  // template: testify
     4  
     5  package mocks
     6  
     7  import (
     8  	"context"
     9  
    10  	"github.com/argoproj/argo-cd/v3/pkg/apiclient/cluster"
    11  	"github.com/argoproj/argo-cd/v3/pkg/apis/application/v1alpha1"
    12  	mock "github.com/stretchr/testify/mock"
    13  )
    14  
    15  // NewClusterServiceServer creates a new instance of ClusterServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    16  // The first argument is typically a *testing.T value.
    17  func NewClusterServiceServer(t interface {
    18  	mock.TestingT
    19  	Cleanup(func())
    20  }) *ClusterServiceServer {
    21  	mock := &ClusterServiceServer{}
    22  	mock.Mock.Test(t)
    23  
    24  	t.Cleanup(func() { mock.AssertExpectations(t) })
    25  
    26  	return mock
    27  }
    28  
    29  // ClusterServiceServer is an autogenerated mock type for the ClusterServiceServer type
    30  type ClusterServiceServer struct {
    31  	mock.Mock
    32  }
    33  
    34  type ClusterServiceServer_Expecter struct {
    35  	mock *mock.Mock
    36  }
    37  
    38  func (_m *ClusterServiceServer) EXPECT() *ClusterServiceServer_Expecter {
    39  	return &ClusterServiceServer_Expecter{mock: &_m.Mock}
    40  }
    41  
    42  // Create provides a mock function for the type ClusterServiceServer
    43  func (_mock *ClusterServiceServer) Create(context1 context.Context, clusterCreateRequest *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error) {
    44  	ret := _mock.Called(context1, clusterCreateRequest)
    45  
    46  	if len(ret) == 0 {
    47  		panic("no return value specified for Create")
    48  	}
    49  
    50  	var r0 *v1alpha1.Cluster
    51  	var r1 error
    52  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error)); ok {
    53  		return returnFunc(context1, clusterCreateRequest)
    54  	}
    55  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterCreateRequest) *v1alpha1.Cluster); ok {
    56  		r0 = returnFunc(context1, clusterCreateRequest)
    57  	} else {
    58  		if ret.Get(0) != nil {
    59  			r0 = ret.Get(0).(*v1alpha1.Cluster)
    60  		}
    61  	}
    62  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterCreateRequest) error); ok {
    63  		r1 = returnFunc(context1, clusterCreateRequest)
    64  	} else {
    65  		r1 = ret.Error(1)
    66  	}
    67  	return r0, r1
    68  }
    69  
    70  // ClusterServiceServer_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
    71  type ClusterServiceServer_Create_Call struct {
    72  	*mock.Call
    73  }
    74  
    75  // Create is a helper method to define mock.On call
    76  //   - context1 context.Context
    77  //   - clusterCreateRequest *cluster.ClusterCreateRequest
    78  func (_e *ClusterServiceServer_Expecter) Create(context1 interface{}, clusterCreateRequest interface{}) *ClusterServiceServer_Create_Call {
    79  	return &ClusterServiceServer_Create_Call{Call: _e.mock.On("Create", context1, clusterCreateRequest)}
    80  }
    81  
    82  func (_c *ClusterServiceServer_Create_Call) Run(run func(context1 context.Context, clusterCreateRequest *cluster.ClusterCreateRequest)) *ClusterServiceServer_Create_Call {
    83  	_c.Call.Run(func(args mock.Arguments) {
    84  		var arg0 context.Context
    85  		if args[0] != nil {
    86  			arg0 = args[0].(context.Context)
    87  		}
    88  		var arg1 *cluster.ClusterCreateRequest
    89  		if args[1] != nil {
    90  			arg1 = args[1].(*cluster.ClusterCreateRequest)
    91  		}
    92  		run(
    93  			arg0,
    94  			arg1,
    95  		)
    96  	})
    97  	return _c
    98  }
    99  
   100  func (_c *ClusterServiceServer_Create_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceServer_Create_Call {
   101  	_c.Call.Return(cluster1, err)
   102  	return _c
   103  }
   104  
   105  func (_c *ClusterServiceServer_Create_Call) RunAndReturn(run func(context1 context.Context, clusterCreateRequest *cluster.ClusterCreateRequest) (*v1alpha1.Cluster, error)) *ClusterServiceServer_Create_Call {
   106  	_c.Call.Return(run)
   107  	return _c
   108  }
   109  
   110  // Delete provides a mock function for the type ClusterServiceServer
   111  func (_mock *ClusterServiceServer) Delete(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*cluster.ClusterResponse, error) {
   112  	ret := _mock.Called(context1, clusterQuery)
   113  
   114  	if len(ret) == 0 {
   115  		panic("no return value specified for Delete")
   116  	}
   117  
   118  	var r0 *cluster.ClusterResponse
   119  	var r1 error
   120  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) (*cluster.ClusterResponse, error)); ok {
   121  		return returnFunc(context1, clusterQuery)
   122  	}
   123  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *cluster.ClusterResponse); ok {
   124  		r0 = returnFunc(context1, clusterQuery)
   125  	} else {
   126  		if ret.Get(0) != nil {
   127  			r0 = ret.Get(0).(*cluster.ClusterResponse)
   128  		}
   129  	}
   130  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   131  		r1 = returnFunc(context1, clusterQuery)
   132  	} else {
   133  		r1 = ret.Error(1)
   134  	}
   135  	return r0, r1
   136  }
   137  
   138  // ClusterServiceServer_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
   139  type ClusterServiceServer_Delete_Call struct {
   140  	*mock.Call
   141  }
   142  
   143  // Delete is a helper method to define mock.On call
   144  //   - context1 context.Context
   145  //   - clusterQuery *cluster.ClusterQuery
   146  func (_e *ClusterServiceServer_Expecter) Delete(context1 interface{}, clusterQuery interface{}) *ClusterServiceServer_Delete_Call {
   147  	return &ClusterServiceServer_Delete_Call{Call: _e.mock.On("Delete", context1, clusterQuery)}
   148  }
   149  
   150  func (_c *ClusterServiceServer_Delete_Call) Run(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery)) *ClusterServiceServer_Delete_Call {
   151  	_c.Call.Run(func(args mock.Arguments) {
   152  		var arg0 context.Context
   153  		if args[0] != nil {
   154  			arg0 = args[0].(context.Context)
   155  		}
   156  		var arg1 *cluster.ClusterQuery
   157  		if args[1] != nil {
   158  			arg1 = args[1].(*cluster.ClusterQuery)
   159  		}
   160  		run(
   161  			arg0,
   162  			arg1,
   163  		)
   164  	})
   165  	return _c
   166  }
   167  
   168  func (_c *ClusterServiceServer_Delete_Call) Return(clusterResponse *cluster.ClusterResponse, err error) *ClusterServiceServer_Delete_Call {
   169  	_c.Call.Return(clusterResponse, err)
   170  	return _c
   171  }
   172  
   173  func (_c *ClusterServiceServer_Delete_Call) RunAndReturn(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*cluster.ClusterResponse, error)) *ClusterServiceServer_Delete_Call {
   174  	_c.Call.Return(run)
   175  	return _c
   176  }
   177  
   178  // Get provides a mock function for the type ClusterServiceServer
   179  func (_mock *ClusterServiceServer) Get(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.Cluster, error) {
   180  	ret := _mock.Called(context1, clusterQuery)
   181  
   182  	if len(ret) == 0 {
   183  		panic("no return value specified for Get")
   184  	}
   185  
   186  	var r0 *v1alpha1.Cluster
   187  	var r1 error
   188  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) (*v1alpha1.Cluster, error)); ok {
   189  		return returnFunc(context1, clusterQuery)
   190  	}
   191  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *v1alpha1.Cluster); ok {
   192  		r0 = returnFunc(context1, clusterQuery)
   193  	} else {
   194  		if ret.Get(0) != nil {
   195  			r0 = ret.Get(0).(*v1alpha1.Cluster)
   196  		}
   197  	}
   198  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   199  		r1 = returnFunc(context1, clusterQuery)
   200  	} else {
   201  		r1 = ret.Error(1)
   202  	}
   203  	return r0, r1
   204  }
   205  
   206  // ClusterServiceServer_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
   207  type ClusterServiceServer_Get_Call struct {
   208  	*mock.Call
   209  }
   210  
   211  // Get is a helper method to define mock.On call
   212  //   - context1 context.Context
   213  //   - clusterQuery *cluster.ClusterQuery
   214  func (_e *ClusterServiceServer_Expecter) Get(context1 interface{}, clusterQuery interface{}) *ClusterServiceServer_Get_Call {
   215  	return &ClusterServiceServer_Get_Call{Call: _e.mock.On("Get", context1, clusterQuery)}
   216  }
   217  
   218  func (_c *ClusterServiceServer_Get_Call) Run(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery)) *ClusterServiceServer_Get_Call {
   219  	_c.Call.Run(func(args mock.Arguments) {
   220  		var arg0 context.Context
   221  		if args[0] != nil {
   222  			arg0 = args[0].(context.Context)
   223  		}
   224  		var arg1 *cluster.ClusterQuery
   225  		if args[1] != nil {
   226  			arg1 = args[1].(*cluster.ClusterQuery)
   227  		}
   228  		run(
   229  			arg0,
   230  			arg1,
   231  		)
   232  	})
   233  	return _c
   234  }
   235  
   236  func (_c *ClusterServiceServer_Get_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceServer_Get_Call {
   237  	_c.Call.Return(cluster1, err)
   238  	return _c
   239  }
   240  
   241  func (_c *ClusterServiceServer_Get_Call) RunAndReturn(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.Cluster, error)) *ClusterServiceServer_Get_Call {
   242  	_c.Call.Return(run)
   243  	return _c
   244  }
   245  
   246  // InvalidateCache provides a mock function for the type ClusterServiceServer
   247  func (_mock *ClusterServiceServer) InvalidateCache(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.Cluster, error) {
   248  	ret := _mock.Called(context1, clusterQuery)
   249  
   250  	if len(ret) == 0 {
   251  		panic("no return value specified for InvalidateCache")
   252  	}
   253  
   254  	var r0 *v1alpha1.Cluster
   255  	var r1 error
   256  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) (*v1alpha1.Cluster, error)); ok {
   257  		return returnFunc(context1, clusterQuery)
   258  	}
   259  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *v1alpha1.Cluster); ok {
   260  		r0 = returnFunc(context1, clusterQuery)
   261  	} else {
   262  		if ret.Get(0) != nil {
   263  			r0 = ret.Get(0).(*v1alpha1.Cluster)
   264  		}
   265  	}
   266  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   267  		r1 = returnFunc(context1, clusterQuery)
   268  	} else {
   269  		r1 = ret.Error(1)
   270  	}
   271  	return r0, r1
   272  }
   273  
   274  // ClusterServiceServer_InvalidateCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateCache'
   275  type ClusterServiceServer_InvalidateCache_Call struct {
   276  	*mock.Call
   277  }
   278  
   279  // InvalidateCache is a helper method to define mock.On call
   280  //   - context1 context.Context
   281  //   - clusterQuery *cluster.ClusterQuery
   282  func (_e *ClusterServiceServer_Expecter) InvalidateCache(context1 interface{}, clusterQuery interface{}) *ClusterServiceServer_InvalidateCache_Call {
   283  	return &ClusterServiceServer_InvalidateCache_Call{Call: _e.mock.On("InvalidateCache", context1, clusterQuery)}
   284  }
   285  
   286  func (_c *ClusterServiceServer_InvalidateCache_Call) Run(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery)) *ClusterServiceServer_InvalidateCache_Call {
   287  	_c.Call.Run(func(args mock.Arguments) {
   288  		var arg0 context.Context
   289  		if args[0] != nil {
   290  			arg0 = args[0].(context.Context)
   291  		}
   292  		var arg1 *cluster.ClusterQuery
   293  		if args[1] != nil {
   294  			arg1 = args[1].(*cluster.ClusterQuery)
   295  		}
   296  		run(
   297  			arg0,
   298  			arg1,
   299  		)
   300  	})
   301  	return _c
   302  }
   303  
   304  func (_c *ClusterServiceServer_InvalidateCache_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceServer_InvalidateCache_Call {
   305  	_c.Call.Return(cluster1, err)
   306  	return _c
   307  }
   308  
   309  func (_c *ClusterServiceServer_InvalidateCache_Call) RunAndReturn(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.Cluster, error)) *ClusterServiceServer_InvalidateCache_Call {
   310  	_c.Call.Return(run)
   311  	return _c
   312  }
   313  
   314  // List provides a mock function for the type ClusterServiceServer
   315  func (_mock *ClusterServiceServer) List(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.ClusterList, error) {
   316  	ret := _mock.Called(context1, clusterQuery)
   317  
   318  	if len(ret) == 0 {
   319  		panic("no return value specified for List")
   320  	}
   321  
   322  	var r0 *v1alpha1.ClusterList
   323  	var r1 error
   324  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) (*v1alpha1.ClusterList, error)); ok {
   325  		return returnFunc(context1, clusterQuery)
   326  	}
   327  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *v1alpha1.ClusterList); ok {
   328  		r0 = returnFunc(context1, clusterQuery)
   329  	} else {
   330  		if ret.Get(0) != nil {
   331  			r0 = ret.Get(0).(*v1alpha1.ClusterList)
   332  		}
   333  	}
   334  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   335  		r1 = returnFunc(context1, clusterQuery)
   336  	} else {
   337  		r1 = ret.Error(1)
   338  	}
   339  	return r0, r1
   340  }
   341  
   342  // ClusterServiceServer_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
   343  type ClusterServiceServer_List_Call struct {
   344  	*mock.Call
   345  }
   346  
   347  // List is a helper method to define mock.On call
   348  //   - context1 context.Context
   349  //   - clusterQuery *cluster.ClusterQuery
   350  func (_e *ClusterServiceServer_Expecter) List(context1 interface{}, clusterQuery interface{}) *ClusterServiceServer_List_Call {
   351  	return &ClusterServiceServer_List_Call{Call: _e.mock.On("List", context1, clusterQuery)}
   352  }
   353  
   354  func (_c *ClusterServiceServer_List_Call) Run(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery)) *ClusterServiceServer_List_Call {
   355  	_c.Call.Run(func(args mock.Arguments) {
   356  		var arg0 context.Context
   357  		if args[0] != nil {
   358  			arg0 = args[0].(context.Context)
   359  		}
   360  		var arg1 *cluster.ClusterQuery
   361  		if args[1] != nil {
   362  			arg1 = args[1].(*cluster.ClusterQuery)
   363  		}
   364  		run(
   365  			arg0,
   366  			arg1,
   367  		)
   368  	})
   369  	return _c
   370  }
   371  
   372  func (_c *ClusterServiceServer_List_Call) Return(clusterList *v1alpha1.ClusterList, err error) *ClusterServiceServer_List_Call {
   373  	_c.Call.Return(clusterList, err)
   374  	return _c
   375  }
   376  
   377  func (_c *ClusterServiceServer_List_Call) RunAndReturn(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*v1alpha1.ClusterList, error)) *ClusterServiceServer_List_Call {
   378  	_c.Call.Return(run)
   379  	return _c
   380  }
   381  
   382  // RotateAuth provides a mock function for the type ClusterServiceServer
   383  func (_mock *ClusterServiceServer) RotateAuth(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*cluster.ClusterResponse, error) {
   384  	ret := _mock.Called(context1, clusterQuery)
   385  
   386  	if len(ret) == 0 {
   387  		panic("no return value specified for RotateAuth")
   388  	}
   389  
   390  	var r0 *cluster.ClusterResponse
   391  	var r1 error
   392  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) (*cluster.ClusterResponse, error)); ok {
   393  		return returnFunc(context1, clusterQuery)
   394  	}
   395  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterQuery) *cluster.ClusterResponse); ok {
   396  		r0 = returnFunc(context1, clusterQuery)
   397  	} else {
   398  		if ret.Get(0) != nil {
   399  			r0 = ret.Get(0).(*cluster.ClusterResponse)
   400  		}
   401  	}
   402  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterQuery) error); ok {
   403  		r1 = returnFunc(context1, clusterQuery)
   404  	} else {
   405  		r1 = ret.Error(1)
   406  	}
   407  	return r0, r1
   408  }
   409  
   410  // ClusterServiceServer_RotateAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RotateAuth'
   411  type ClusterServiceServer_RotateAuth_Call struct {
   412  	*mock.Call
   413  }
   414  
   415  // RotateAuth is a helper method to define mock.On call
   416  //   - context1 context.Context
   417  //   - clusterQuery *cluster.ClusterQuery
   418  func (_e *ClusterServiceServer_Expecter) RotateAuth(context1 interface{}, clusterQuery interface{}) *ClusterServiceServer_RotateAuth_Call {
   419  	return &ClusterServiceServer_RotateAuth_Call{Call: _e.mock.On("RotateAuth", context1, clusterQuery)}
   420  }
   421  
   422  func (_c *ClusterServiceServer_RotateAuth_Call) Run(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery)) *ClusterServiceServer_RotateAuth_Call {
   423  	_c.Call.Run(func(args mock.Arguments) {
   424  		var arg0 context.Context
   425  		if args[0] != nil {
   426  			arg0 = args[0].(context.Context)
   427  		}
   428  		var arg1 *cluster.ClusterQuery
   429  		if args[1] != nil {
   430  			arg1 = args[1].(*cluster.ClusterQuery)
   431  		}
   432  		run(
   433  			arg0,
   434  			arg1,
   435  		)
   436  	})
   437  	return _c
   438  }
   439  
   440  func (_c *ClusterServiceServer_RotateAuth_Call) Return(clusterResponse *cluster.ClusterResponse, err error) *ClusterServiceServer_RotateAuth_Call {
   441  	_c.Call.Return(clusterResponse, err)
   442  	return _c
   443  }
   444  
   445  func (_c *ClusterServiceServer_RotateAuth_Call) RunAndReturn(run func(context1 context.Context, clusterQuery *cluster.ClusterQuery) (*cluster.ClusterResponse, error)) *ClusterServiceServer_RotateAuth_Call {
   446  	_c.Call.Return(run)
   447  	return _c
   448  }
   449  
   450  // Update provides a mock function for the type ClusterServiceServer
   451  func (_mock *ClusterServiceServer) Update(context1 context.Context, clusterUpdateRequest *cluster.ClusterUpdateRequest) (*v1alpha1.Cluster, error) {
   452  	ret := _mock.Called(context1, clusterUpdateRequest)
   453  
   454  	if len(ret) == 0 {
   455  		panic("no return value specified for Update")
   456  	}
   457  
   458  	var r0 *v1alpha1.Cluster
   459  	var r1 error
   460  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterUpdateRequest) (*v1alpha1.Cluster, error)); ok {
   461  		return returnFunc(context1, clusterUpdateRequest)
   462  	}
   463  	if returnFunc, ok := ret.Get(0).(func(context.Context, *cluster.ClusterUpdateRequest) *v1alpha1.Cluster); ok {
   464  		r0 = returnFunc(context1, clusterUpdateRequest)
   465  	} else {
   466  		if ret.Get(0) != nil {
   467  			r0 = ret.Get(0).(*v1alpha1.Cluster)
   468  		}
   469  	}
   470  	if returnFunc, ok := ret.Get(1).(func(context.Context, *cluster.ClusterUpdateRequest) error); ok {
   471  		r1 = returnFunc(context1, clusterUpdateRequest)
   472  	} else {
   473  		r1 = ret.Error(1)
   474  	}
   475  	return r0, r1
   476  }
   477  
   478  // ClusterServiceServer_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
   479  type ClusterServiceServer_Update_Call struct {
   480  	*mock.Call
   481  }
   482  
   483  // Update is a helper method to define mock.On call
   484  //   - context1 context.Context
   485  //   - clusterUpdateRequest *cluster.ClusterUpdateRequest
   486  func (_e *ClusterServiceServer_Expecter) Update(context1 interface{}, clusterUpdateRequest interface{}) *ClusterServiceServer_Update_Call {
   487  	return &ClusterServiceServer_Update_Call{Call: _e.mock.On("Update", context1, clusterUpdateRequest)}
   488  }
   489  
   490  func (_c *ClusterServiceServer_Update_Call) Run(run func(context1 context.Context, clusterUpdateRequest *cluster.ClusterUpdateRequest)) *ClusterServiceServer_Update_Call {
   491  	_c.Call.Run(func(args mock.Arguments) {
   492  		var arg0 context.Context
   493  		if args[0] != nil {
   494  			arg0 = args[0].(context.Context)
   495  		}
   496  		var arg1 *cluster.ClusterUpdateRequest
   497  		if args[1] != nil {
   498  			arg1 = args[1].(*cluster.ClusterUpdateRequest)
   499  		}
   500  		run(
   501  			arg0,
   502  			arg1,
   503  		)
   504  	})
   505  	return _c
   506  }
   507  
   508  func (_c *ClusterServiceServer_Update_Call) Return(cluster1 *v1alpha1.Cluster, err error) *ClusterServiceServer_Update_Call {
   509  	_c.Call.Return(cluster1, err)
   510  	return _c
   511  }
   512  
   513  func (_c *ClusterServiceServer_Update_Call) RunAndReturn(run func(context1 context.Context, clusterUpdateRequest *cluster.ClusterUpdateRequest) (*v1alpha1.Cluster, error)) *ClusterServiceServer_Update_Call {
   514  	_c.Call.Return(run)
   515  	return _c
   516  }